/illumos-gate/usr/src/cmd/svr4pkg/pkginfo/ |
H A D | pkginfo.c | 65 "%s -d device [-q] [-x|l] [options] [pkg ...]\n" \ 97 static char *device = NULL; variable 188 /* -d could specify stream or mountable device */ 189 device = flex_device(optarg, 1); 286 /* convert device appropriately */ 287 if (pkghead(device)) 293 * device is not NULL. 308 * device is not NULL.
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmi/ |
H A D | audiocmi.c | 871 uint16_t vendor, device; local 883 device = pci_config_get16(pcih, PCI_CONF_DEVID); 886 ((device != CMEDIA_CM8738) && (device != CMEDIA_CM8338A) && 887 (device != CMEDIA_CM8338B))) { 889 audio_dev_warn(NULL, "device not recognized"); 920 switch (device) { 965 audio_dev_warn(dev->adev, "can't init device");
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmihd/ |
H A D | audiocmihd.c | 1534 uint16_t pci_command, vendor, device, subvendor, subdevice; local 1557 device = pci_config_get16(pcih, PCI_CONF_DEVID); 1561 device != PCI_DEVICE_ID_CMEDIAHD) { 1563 "(vendor=%x, dev=%x)", vendor, device); 1580 /* Detect Xonar device */ 1623 /* Add the AC97 Mixer if there is an onboard AC97 device */ 1633 /* Add the front panel AC97 device if one exists */
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | dcopy.c | 55 /* device state for register/unregister */ 57 /* DMA device drivers private pointer */ 60 /* to track list of channels from this DMA device */ 66 * before it's safe to allow the DMA device driver to detach. 91 /* shortcut to device callbacks */ 96 * it's safe to free up this channel so the DMA device driver can 113 /* pointer back to our device */ 155 static void dcopy_device_cleanup(dcopy_device_handle_t device, 218 /* Initialize the list we use to track device register/unregister */ 298 * can happen if there aren't any DMA device registere 328 dcopy_device_handle_t device; local 605 struct dcopy_device_s *device; local 724 dcopy_device_handle_t device; local 777 dcopy_device_cleanup(dcopy_device_handle_t device, boolean_t do_callback) argument [all...] |
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_hp.c | 557 * If the AP device is in open state then return 682 * state then call the ndi_devi_online() on the device 857 uint8_t bus, device, function; local 873 * Get the PCI device number information from the devinfo 881 /* Porbably not a real device, like PCS for example */ 885 cardbus_err(dip, 1, "cubs_configure: Don't configure device\n"); 894 /* get the pci device id information */ 896 device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 908 "cbus_configure on-line device at: " 909 "[0x%x][0x%x][0x%x]\n", bus, device, functio 973 uint_t bus, device, func, length; local [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_cma.c | 215 /* List of listeners for this device */ 336 ib_device_t *device = id->device; local 344 if (cma_devp->cma_device != device) 478 if (rdma_idp->device) 1952 struct ib_device *device; 1958 device = ep_chanp->chan_listenp->listen_ep_device; 1959 ASSERT(device); 1960 cma_device = device->data; 2230 if (idp->device [all...] |
H A D | sol_kverbs.c | 109 ib_device_t *device; local 119 device = entry->ptr; 120 if (device->node_guid == htonll(guid)) { 121 ASSERT(device->reg_state == IB_DEV_CLOSE); 122 ASSERT(device->node_type == RDMA_NODE_IB_CA); 123 ASSERT(device->clnt_hdl == (ofs_client_p_t)ofs_client); 124 return (device); 203 ib_device_t *device; local 206 /* re-use the device once it was created */ 208 device 262 struct ib_device *device; local 317 ib_device_t *device; local 514 ib_device_t *device; local 612 ib_get_client_data(struct ib_device *device, struct ib_client *client) argument 666 ib_set_client_data(struct ib_device *device, struct ib_client *client, void *data) argument 714 ib_query_device(struct ib_device *device, struct ib_device_attr *attr) argument 807 ib_alloc_pd(struct ib_device *device) argument 938 ib_create_cq(struct ib_device *device, ib_comp_handler comp_handler, void (*event_handler)(struct ib_event *, void *), void *cq_context, int cqe, void *comp_vector) argument 2314 ib_get_ibt_hca_hdl(struct ib_device *device) argument [all...] |
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/ |
H A D | pcie_hp.c | 347 * 1. remove all child device nodes 395 * Parse the string of a pci Port name and get the device number 421 * Parse the string of a pci Port name and get the device number 435 /* Control structure used to find a device in the devinfo tree */ 437 uint_t device; member in struct:pcie_hp_find_ctrl 443 * find a devinfo node with specified device and function number 444 * in the device tree under 'dip' 447 pcie_hp_devi_find(dev_info_t *dip, uint_t device, uint_t function) argument 452 ctrl.device = device; [all...] |
/illumos-gate/usr/src/uts/intel/io/heci/ |
H A D | heci_main.c | 103 static int heci_initialize(dev_info_t *dip, struct iamt_heci_device *device); 221 struct iamt_heci_device *device; local 240 device = ddi_get_soft_state(heci_soft_state_p, instance); 241 ASSERT(device != NULL); /* can't fail - we only just allocated it */ 243 device->dip = dip; 245 status = heci_initialize(dip, device); 270 heci_initialize(dev_info_t *dip, struct iamt_heci_device *device) argument 275 err = ddi_get_iblock_cookie(dip, 0, &device->sc_iblk); 281 /* initializes the heci device structure */ 282 init_heci_device(dip, device); 482 struct iamt_heci_device *device; local 1329 struct iamt_heci_device *device = NULL; local 1443 struct iamt_heci_device *device; local 1511 struct iamt_heci_device *device; local [all...] |
/illumos-gate/usr/src/cmd/lvm/metassist/common/ |
H A D | volume_devconfig.c | 130 * Check the type of the given device. 132 * @param device 133 * the device whose type to check 136 * the type of the device against which to compare 138 * @return B_TRUE if the device is of the given type, B_FALSE 143 devconfig_t *device, 148 if (device == NULL) { 152 if (devconfig_get_type(device, &curtype) != 0) { 180 devconfig_t *device, 191 /* For each component of this device 142 devconfig_isA( devconfig_t *device, component_type_t type) argument 179 devconfig_get_component( devconfig_t *device, component_type_t type, devconfig_t **component, boolean_t create) argument 238 devconfig_set_available( devconfig_t *device, char **available) argument 255 devconfig_get_available( devconfig_t *device) argument 272 devconfig_set_unavailable( devconfig_t *device, char **unavailable) argument 289 devconfig_get_unavailable( devconfig_t *device) argument 305 devconfig_set_components( devconfig_t *device, dlist_t *components) argument 321 devconfig_get_components( devconfig_t *device) argument 344 devconfig_set_name( devconfig_t *device, char *name) argument 460 devconfig_get_name( devconfig_t *device, char **name) argument 492 devconfig_set_type( devconfig_t *device, component_type_t type) argument 516 devconfig_get_type( devconfig_t *device, component_type_t *type) argument 559 devconfig_set_size( devconfig_t *device, uint64_t size_in_bytes) argument 597 devconfig_get_size( devconfig_t *device, uint64_t *size_in_bytes) argument 630 devconfig_set_size_in_blocks( devconfig_t *device, uint64_t size_in_blocks) argument 663 devconfig_get_size_in_blocks( devconfig_t *device, uint64_t *size_in_blocks) argument 1550 devconfig_dump( devconfig_t *device, char *prefix) argument [all...] |
/illumos-gate/usr/src/cmd/lvm/metassist/controller/ |
H A D | metassist.c | 685 char *device; local 695 /* For each device in the string list... */ 696 while ((device = strtok(stringdup, DEVICELISTDELIM)) != NULL) { 698 /* Duplicate the device string */ 699 if ((dup = strdup(device)) == NULL) { 704 /* Create new dlist_t for this device */
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_check.c | 143 * check whether device is swapped on 235 * check whether device is a dump device 246 char device[MAXPATHLEN]; local 252 if (ioctl(dump_fd, DIOCGETDEV, device) != -1) { 255 if ((dump_np = metaname(&sp, device, UNKNOWN, ep)) == NULL) { 264 } else { /* not a dump device - but does it overlap? */ 278 * check whether device is mounted 330 } else { /* device isn't in mnttab - does it overlap? */ 406 * with a device alread [all...] |
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_dataset.c | 808 jobject device = NULL; local 816 device = create_PoolBean(env, zphp, zhp); 821 device = create_DatasetBean(env, zhp); 830 return (device);
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 122 static int read_bootblock_from_disk(ib_device_t *device, ib_bootblock_t *, 238 read_bootblock_from_disk(ib_device_t *device, ib_bootblock_t *bblock, argument 247 assert(device != NULL); 250 if (device->target.fstype == IG_FS_ZFS) { 251 dev_fd = device->target.fd; 253 *path = device->target.path; 255 dev_fd = device->stage.fd; 256 offset = device->stage.offset * SECTOR_SIZE; 257 *path = device->stage.path; 329 ib_device_t *device local 418 ib_device_t *device; local 463 ib_device_t *device; local 487 ib_device_t *device = &data->device; local 539 ib_device_t *device = &data->device; local 610 get_start_sector(ib_device_t *device) argument 856 get_boot_partition(ib_device_t *device, struct mboot *mbr) argument 911 get_boot_slice(ib_device_t *device, struct dk_gpt *vtoc) argument 946 init_device(ib_device_t *device, char *path) argument 1109 cleanup_device(ib_device_t *device) argument 1301 ib_device_t *device = &data.device; local [all...] |
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | disk_link.c | 392 * xVM virtual block device 394 * Xen passes device number in next format: 421 decode_xen_device(uint_t device, uint_t *disk, uint_t *plun) argument 426 if ((device >> XEN_EXT_SHIFT) > 1) 429 if (device < HD_BASE) { 430 /* legacy device address */ 431 dsk = device; 436 if (device & (1 << XEN_EXT_SHIFT)) { 438 dsk = device & (~0xff); 439 lun = device [all...] |
/illumos-gate/usr/src/common/ficl/ |
H A D | loader.c | 849 * pcibios-device-count (devid -- count) 852 * in the system. devid is the 32-bit vendor + device. 871 * Locator is bus << 8 | device << 3 | fuction 893 * Locator is bus << 8 | device << 3 | fuction 920 * Locator is bus << 8 | device << 3 | fuction (or -1 on error) 937 * pcibios-find-device(devid index -- locator) 944 * Locator is bus << 8 | device << 3 | fuction (or -1 on error) 961 * pcibios-find-device(bus device function -- locator) 963 * converts bus, device, functio 970 uint32_t bus, device, function, locator; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/sparc64/boot1/ |
H A D | boot1.c | 63 static int domount(const char *device); 365 printf("usage: boot device [/path/to/loader]\n"); 500 domount(const char *device) argument 503 if ((bootdev = ofw_open(device)) == -1) { 504 printf("domount: can't open device\n");
|
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | psm_common.c | 153 * If the interrupt link device is already configured, 158 * ACPI_PSM_SUCCESS if the interrupt link device is already configured. 162 * When two devices share the same interrupt link device, and the 163 * link device is already configured (i.e. found in the irq cache) 165 * the link device. 176 * Convert the passed-in link device name to a handle 183 * Assume that the link device is invalid if no _CRS method 195 " for device %s, instance #%d, irq no %d\n", 230 get_bdf(dev_info_t *dip, int *bus, int *device, int *func) argument 245 if (device ! [all...] |
/illumos-gate/usr/src/lib/efcode/include/fcode/ |
H A D | engine.h | 95 * device. 135 device_t *device; member in struct:INSTANCE 137 * These are copies of the same structures from the device definition
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 78 * Revoke all access to a device node and make sure that there are 80 * device is actually opened. 81 * When fdetach is called, the underlying device node is revealed; it 113 "failed to chown device %s: %s\n", 136 "failed to set acl on device %s: %s\n", 145 "failed to chmod device %s: %s\n", 169 char *device; local 241 err = -1; /* empty device list, skip */ 245 ": line %d, empty device list -- %s\n", 252 device [all...] |
/illumos-gate/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 228 * indicates the underlying DLPI device does not support Native mode 229 * (pre-GLDV3 device drivers). 1010 * This function attempts to open a device under the following namespaces: 1034 * a known device name or its VLAN PPA hack name. (for example, assuming 1035 * device bge0 is renamed to net0, opening /dev/net/bge1000 would return 1037 * as VLAN 1 over the bge0 device should be named as net1000. 1061 char device[DLPI_LINKNAME_MAX]; local 1087 * the given name is a device name or its VLAN PPA hack name 1095 (void) snprintf(device, DLPI_LINKNAME_MAX, "%s%d", driver, 1102 if (dladm_dev2linkid(handle, device, [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgtrans.c | 68 extern char *devattr(char *device, char *attribute); 71 extern int getvol(char *device, char *label, int options, char *prompt); 72 extern int _getvol(char *device, char *label, int options, char *prompt, 76 extern int ds_ginit(char *device); 116 static int wdsheader(struct dm_buf *, char *src, char *device, 154 pkghead(char *device) argument 162 if (device == NULL) 164 else if ((device[0] == '/') && !isdir(device)) { 165 pkgdir = device; 925 wdsheader(struct dm_buf *hdr, char *src, char *device, char **pkg, PKCS7 *sig) argument 948 logerr(pkg_gt(MSG_OPEN), device, errno); local 954 logerr(pkg_gt(MSG_OPEN), device, errno); local [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/sunfire/common/ |
H A D | sunfire.c | 157 "UPA Port A device", /* 3 */ 158 "UPA Port B device", /* 4 */ 450 * thruogh the device tree, this routine will be silent. 756 char device[MAXSTRLEN]; local 763 /* Find the device node using upa address */ 768 (void) sprintf(device, "%s@%x", FFB_NAME, 774 if (strstr(direntp->d_name, device) != NULL) { 775 (void) sprintf(device, "/devices/%s", 777 fd = open(device, O_RDWR, 0666); 798 fmt_manf_id(fsi.dac_version, device), [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/ |
H A D | tazmo.c | 132 * The PROM device tree is read to obtain this information. 234 * thruogh the device tree, this routine will be silent. 445 * in the device tree. To get back to that level, 708 char device[MAXSTRLEN]; local 715 /* Find the device node using upa address */ 720 (void) sprintf(device, "%s@%x", FFB_NAME, 726 if (strstr(direntp->d_name, device) != NULL) { 727 (void) sprintf(device, "/devices/%s", 729 fd = open(device, O_RDWR, 0666); 749 fmt_manf_id(fsi.dac_version, device), 1478 tazmo_physical_slot(Prom_node *slotd, Prom_node *parent, int device, char *str) argument [all...] |
/illumos-gate/usr/src/cmd/pcitool/ |
H A D | pcitool.c | 50 /* First 16 longs of device PCI config header. */ 127 static int open_node(char *device, pcitool_uiargs_t *input_args_p); 193 open_node(char *device, pcitool_uiargs_t *input_args_p) argument 207 prefix = (strstr(device, slash_devices) == device) ? "" : slash_devices; 211 if (strstr(device, PCI_MINOR_INTR) == 212 device + (strlen(device) - strlen(PCI_MINOR_INTR))) { 219 if (strstr(device, PCI_MINOR_REG) == 220 device [all...] |