Searched defs:device (Results 1 - 25 of 204) sorted by relevance

123456789

/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_dump.c53 * Check the dump device against the input slice.
60 char device[MAXPATHLEN]; local
84 if (ioctl(fd, DIOCGETDEV, device) != -1) {
85 if (strcmp(slice, device) == 0) {
/illumos-gate/usr/src/lib/libcontract/common/
H A Ddevice_dump.c28 #include <sys/contract/device.h>
51 char *device; local
60 statfd = contract_open(ctid, "device", "status", O_RDONLY);
71 if (ct_dev_status_get_minor(stathdl, &device) != 0) {
79 s = dgettext(TEXT_DOMAIN, "device %s offlining\n");
82 s = dgettext(TEXT_DOMAIN, "device %s degrading\n");
85 s = dgettext(TEXT_DOMAIN, "device %s online\n");
92 s = dgettext(TEXT_DOMAIN, "device %s sent an unknown event\n");
98 (void) fprintf(file, s, device);
/illumos-gate/usr/src/lib/libadm/common/
H A Ddevattr.c39 * devattr() Get the value of a attribute for a specific device
49 * "devtab.h" Local device table definitions
70 * char *devattr(device, attr)
72 * This function searches the device table, looking for the device
73 * specified by <device>. If it finds a record corresponding to that
74 * device (see below for a definition of that correspondence), it
79 * device Pointer to the character-string that describes the
80 * device whose record is to be looked for
81 * attr The device'
99 devattr( char *device, char *attribute) argument
[all...]
H A Dlistdev.c38 * listdev() List attributes defined for a device
46 * "devtab.h" Local device table definitions
113 * char **listdev(device)
114 * char *device;
117 * attributes defined for the device <device>.
120 * device Device who's attributes are to be listed
124 * device. (Never empty since all devices have the "alias"
129 listdev(char *device) /* Device to describe */ argument
142 /* If the device <devic
[all...]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_mech1.c48 pci_mech1_getb(int bus, int device, int function, int reg) argument
51 if (device == PCI_MECH1_SPEC_CYCLE_DEV &&
57 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
64 pci_mech1_getw(int bus, int device, int function, int reg) argument
68 if (device == PCI_MECH1_SPEC_CYCLE_DEV &&
74 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
81 pci_mech1_getl(int bus, int device, int function, int reg) argument
85 if (device == PCI_MECH1_SPEC_CYCLE_DEV &&
91 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg));
98 pci_mech1_putb(int bus, int device, in argument
112 pci_mech1_putw(int bus, int device, int function, int reg, uint16_t val) argument
126 pci_mech1_putl(int bus, int device, int function, int reg, uint32_t val) argument
[all...]
H A Dpci_mech1_amd.c95 pci_mech1_amd_getb(int bus, int device, int function, int reg) argument
99 if (device == PCI_MECH1_SPEC_CYCLE_DEV &&
105 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
112 pci_mech1_amd_getw(int bus, int device, int function, int reg) argument
116 if (device == PCI_MECH1_SPEC_CYCLE_DEV &&
122 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
129 pci_mech1_amd_getl(int bus, int device, int function, int reg) argument
133 if (device == PCI_MECH1_SPEC_CYCLE_DEV &&
139 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg));
146 pci_mech1_amd_putb(int bus, int device, in argument
160 pci_mech1_amd_putw(int bus, int device, int function, int reg, uint16_t val) argument
174 pci_mech1_amd_putl(int bus, int device, int function, int reg, uint32_t val) argument
[all...]
H A Dpci_mech2.c39 * The "mechanism 2" interface only has 4 bits for device number. To
73 pci_mech2_getb(int bus, int device, int function, int reg) argument
78 if (device >= PCI_MAX_DEVS_2)
82 val = inb(PCI_CADDR2(device, reg));
89 pci_mech2_getw(int bus, int device, int function, int reg) argument
94 if (device >= PCI_MAX_DEVS_2)
98 val = inw(PCI_CADDR2(device, reg));
105 pci_mech2_getl(int bus, int device, int function, int reg) argument
110 if (device >= PCI_MAX_DEVS_2)
114 val = inl(PCI_CADDR2(device, re
121 pci_mech2_putb(int bus, int device, int function, int reg, uint8_t val) argument
134 pci_mech2_putw(int bus, int device, int function, int reg, uint16_t val) argument
147 pci_mech2_putl(int bus, int device, int function, int reg, uint32_t val) argument
[all...]
H A Dpci_neptune.c65 * First check the vendor and device ids of the Host to
67 * because the same device ID can refer to either
71 /* check the vendor id, the device id, and the revision id */
104 /* check the vendor and device id's of the Host to PCI bridge */
140 pci_neptune_getb(int bus, int device, int function, int reg) argument
146 val = pci_mech1_getb(bus, device, function, reg);
153 pci_neptune_getw(int bus, int device, int function, int reg) argument
159 val = pci_mech1_getw(bus, device, function, reg);
166 pci_neptune_getl(int bus, int device, int function, int reg) argument
172 val = pci_mech1_getl(bus, device, functio
179 pci_neptune_putb(int bus, int device, int function, int reg, uint8_t val) argument
189 pci_neptune_putw(int bus, int device, int function, int reg, uint16_t val) argument
199 pci_neptune_putl(int bus, int device, int function, int reg, uint32_t val) argument
[all...]
H A Dpci_orion.c87 /* nc82454 Found - store device no. */
132 * device ID registers on the nc82454. This is probabilistic, of course,
133 * because the nc82454 *could* be pointing at a register on some device
181 pci_orion_getb(int bus, int device, int function, int reg) argument
187 val = pci_mech1_getb(bus, device, function, reg);
194 pci_orion_getw(int bus, int device, int function, int reg) argument
200 val = pci_mech1_getw(bus, device, function, reg);
207 pci_orion_getl(int bus, int device, int function, int reg) argument
213 val = pci_mech1_getl(bus, device, function, reg);
220 pci_orion_putb(int bus, int device, in argument
230 pci_orion_putw(int bus, int device, int function, int reg, uint16_t val) argument
240 pci_orion_putl(int bus, int device, int function, int reg, uint32_t val) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/cmd/devname2devid/
H A Ddevname2devid.c48 * device id.
60 char *minor_name, *devidstr, *device; local
72 device = argv[1];
74 if ((fd = open(device, O_RDONLY|O_NDELAY)) < 0) {
75 perror(device);
108 /* loop through list and process device names and numbers */
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Davltree.c85 * a device id and inode number provided by the calling application.
97 * allocating memory and setting the nodes device id and inode number
105 * dev_t device (device id of the inode to be stored)
127 * Compare two nodes by first trying to match on the node's device
139 /* first match device id */
143 /* device id match, now check inode */
157 * Build a height balanced tree of nodes consisting of a device id and
162 add_tnode(avl_tree_t **stree, dev_t device, ino_t inode) argument
186 tnode->node_dev = device;
[all...]
/illumos-gate/usr/src/man/man9p/
H A DMakefile22 inquiry-device-type.9p \
32 device-blksize.9p \
33 device-nblocks.9p \
41 inquiry-product-id.9p := LINKSRC = inquiry-device-type.9p
42 inquiry-revision-id.9p := LINKSRC = inquiry-device-type.9p
43 inquiry-serial-no.9p := LINKSRC = inquiry-device-type.9p
44 inquiry-vendor-id.9p := LINKSRC = inquiry-device-type.9p
48 device-blksize.9p := LINKSRC = size.9p
49 device-nblocks.9p := LINKSRC = size.9p
/illumos-gate/usr/src/lib/efcode/packages/
H A Dpopulate.c133 device_t *device; local
141 CONVERT_PHANDLE(env, device, d);
142 if (!is_device_builtin_package(env, device)) {
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DPrinterUtil.java151 public synchronized static String[] getProbePrinter(String device) argument
155 String ret[] = DoPrinterUtil.getProbe(device);
/illumos-gate/usr/src/cmd/fm/schemes/mem/
H A Dmem_read.c149 mem_get_serid(const char *device, char *serid, size_t seridsz) argument
155 if ((fd = open(device, O_RDONLY)) < 0)
/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal-storage-closetray.c80 char *device; local
95 device = getenv ("HAL_PROP_BLOCK_DEVICE");
96 if (device == NULL)
H A Dhal-storage-unmount.c79 char *device; local
100 device = getenv ("HAL_PROP_BLOCK_DEVICE");
101 if (device == NULL)
182 udi, NULL, drive, device, invoked_by_uid,
203 udi, volume, drive, device, invoked_by_uid,
/illumos-gate/usr/src/cmd/svr4pkg/pkgparam/
H A Dpkgparam.c54 "\t%s [-v] [-d device] pkginst [param [param ...]]\n" \
60 static char *device = NULL; variable
116 /* -d could specify stream or mountable device */
117 device = flex_device(optarg, 1);
136 if (device)
143 if (pkghead(device))
144 return (1); /* couldn't obtain info about device */
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmterm.c53 * set_termio - set termio on device
54 * fd - fd for the device
192 char *device) /* device name for printing msg */
213 log("push (%s) on %s failed: %s", p, device,
189 push_linedisc( int fd, char *modules, char *device) argument
H A Dtmutil.c53 * check_device - check to see if the device exists,
54 * - and if it is a character device
58 check_device(char *device) argument
62 if ((device == NULL) || (*device == '\0')) {
63 log("error -- device field is missing");
66 if (*device != '/') {
67 log("error -- must specify full path name for \"%s\".", device);
70 if (access(device, 0) == 0) {
71 if (stat(device,
[all...]
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.h60 ib_device_t device; member in struct:_ib_data
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dports.c160 char *device; local
185 device = pp->device;
186 if (is_printer_uri(device) == 0) {
188 * if it's a device uri and the endpoint contains a valid
191 * local device, so use /dev/null.
193 device = strstr(device, "://");
194 if (device != NULL)
195 device
324 push_module(int fd, char *device, char *module) argument
[all...]
/illumos-gate/usr/src/cmd/acct/lib/
H A Ddevtolin.c31 * convert device to linename (as in /dev/linename)
33 * device must be character device
48 dev_t tdev; /* device */
66 devtolin(dev_t device) argument
74 if (device == tp->tdev)
85 found = srch_dir(device, srch_dirs[dirno],
97 found = srch_dir(device, dev_dir, 0, srch_dirs);
106 tp->tdev = device;
113 * if not found put "?" in the tlist structure for that device
134 srch_dir(dev_t device, char *path, int depth, char *skip_dirs[]) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk.c81 char *device, *driver, *pname; local
135 TOPO_BINDING_OCCUPANT, &device, &err) != 0) {
143 err = disk_declare_path(mod, baynode, dlistp, device);
145 topo_mod_strfree(mod, device);
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dndievents.c41 dip_to_pathname(struct dev_info *device, char *path, int buflen) argument
49 if (!device) {
54 if (device->devi_parent == NULL) {
56 (uintptr_t)device->devi_node_name) == -1) {
69 (uintptr_t)device->devi_parent) == -1) {
71 (uintptr_t)device->devi_parent);
80 (uintptr_t)device->devi_node_name) == -1) {
84 if (device->devi_node_state < DS_INITIALIZED) {
87 addr = device->devi_addr;

Completed in 286 milliseconds

123456789