/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | device_dump.c | 28 #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/libdiskmgt/common/ |
H A D | inuse_dump.c | 53 * 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/libadm/common/ |
H A D | devattr.c | 39 * 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 D | listdev.c | 38 * 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/lib/libcmdutils/common/ |
H A D | avltree.c | 84 * a device id and inode number provided by the calling application. 96 * allocating memory and setting the nodes device id and inode number 104 * dev_t device (device id of the inode to be stored) 126 * Compare two nodes by first trying to match on the node's device 138 /* first match device id */ 142 /* device id match, now check inode */ 156 * Build a height balanced tree of nodes consisting of a device id and 161 add_tnode(avl_tree_t **stree, dev_t device, ino_t inode) argument 185 tnode->node_dev = device; [all...] |
/illumos-gate/usr/src/test/zfs-tests/cmd/devname2devid/ |
H A D | devname2devid.c | 48 * 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/uts/i86pc/os/ |
H A D | pci_mech1.c | 48 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 D | pci_mech1_amd.c | 95 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 D | pci_mech2.c | 39 * 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 D | pci_neptune.c | 65 * 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 D | pci_orion.c | 87 /* 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/man/man9p/ |
H A D | Makefile | 22 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/cmd/boot/mbr/ |
H A D | mbr.c | 43 fprintf(stderr, "Usage: %s [ -d | -n | -o | -r ] <device> [<mboot>]\n", 57 char *device; local 102 device = strdup(argv[optind]); 103 if (!device) { 106 fd = open(device, O_RDWR); 108 fprintf(stderr, "cannot read MBR on %s\n", device);
|
/illumos-gate/usr/src/lib/efcode/packages/ |
H A D | populate.c | 133 device_t *device; local 141 CONVERT_PHANDLE(env, device, d); 142 if (!is_device_builtin_package(env, device)) {
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk.c | 81 char *device, *driver; local 127 TOPO_BINDING_OCCUPANT, &device, &err) != 0) { 135 err = disk_declare_path(mod, baynode, dlistp, device); 137 topo_mod_strfree(mod, device);
|
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | PrinterUtil.java | 151 public synchronized static String[] getProbePrinter(String device) argument 155 String ret[] = DoPrinterUtil.getProbe(device);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ndievents.c | 39 dip_to_pathname(struct dev_info *device, char *path, int buflen) { argument 47 if (!device) { 52 if (device->devi_parent == NULL) { 54 (uintptr_t)device->devi_node_name) == -1) { 67 (uintptr_t)device->devi_parent) == -1) { 69 (uintptr_t)device->devi_parent); 78 (uintptr_t)device->devi_node_name) == -1) { 82 if (device->devi_node_state < DS_INITIALIZED) { 85 addr = device->devi_addr;
|
/illumos-gate/usr/src/cmd/fm/schemes/mem/ |
H A D | mem_read.c | 149 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 D | hal-storage-closetray.c | 80 char *device; local 95 device = getenv ("HAL_PROP_BLOCK_DEVICE"); 96 if (device == NULL)
|
H A D | hal-storage-unmount.c | 79 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/hal/utils/ |
H A D | printer.c | 56 /* parse the 1284 device id string */ 116 char **command_set, char *device) 120 "description=%s, serial=%s, device=%s\n", 122 NP(serial_number), NP(device))); 143 if (device != NULL) 145 "printer.device", device); 114 add_printer_info(LibHalChangeSet *cs, char *udi, char *manufacturer, char *model, char *description, char *serial_number, char **command_set, char *device) argument
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgparam/ |
H A D | pkgparam.c | 54 "\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 D | tmterm.c | 53 * 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 D | tmutil.c | 53 * 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/uts/common/io/cxgbe/common/ |
H A D | common.c | 70 is_bypass_device(int device) argument 72 /* TODO - this should be set based upon device capabilities */ 73 switch (device) {
|