/illumos-gate/usr/src/uts/common/io/ |
H A D | pcic.c | 272 * Each instance gets a chunk above the base that is used to map 275 * one per instance. 465 * provide instance/device information about driver 512 * instance since they share I/O space 708 * Allocate soft state associated with this instance. 1571 * instance setup. Note that there is no corresponding detach() 1584 * instance setup. 6812 int instance; local 6828 instance = ddi_get_instance(dip); 6832 instance [all...] |
H A D | ecpp.c | 590 int instance; local 595 instance = ddi_get_instance(dip); 602 if (!(pp = ddi_get_soft_state(ecppsoft_statep, instance))) { 631 if (ddi_soft_state_zalloc(ecppsoft_statep, instance) != 0) { 636 pp = ddi_get_soft_state(ecppsoft_statep, instance); 691 (void) sprintf(name, "ecpp%d", instance); 693 if (ddi_create_minor_node(dip, name, S_IFCHR, instance, 744 ddi_soft_state_free(ecppsoft_statep, instance); 754 int instance; local 757 instance 989 int instance, ret; local 1022 int instance; local [all...] |
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge.h | 376 * Per-instance soft-state structure 379 dev_info_t *devinfo; /* device instance */ 403 int32_t instance; member in struct:rge 405 uint32_t debug; /* per-instance debug */ 682 * versions look in the per-instance data (rgep->debug) and so require a 736 void rge_init_kstats(rge_t *rgep, int instance);
|
/illumos-gate/usr/src/uts/common/io/rtls/ |
H A D | rtls.h | 155 dev_info_t *devinfo; /* device instance */ 156 int32_t instance; member in struct:rtls_instance
|
/illumos-gate/usr/src/uts/common/io/rtw/ |
H A D | rtw.c | 3128 int instance = ddi_get_instance(devinfo); local 3341 "rtw", instance); 3343 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/sata/adapters/ahci/ |
H A D | ahci.c | 519 int instance = ddi_get_instance(dip); local 548 ahci_ctlp = ddi_get_soft_state(ahci_statep, instance); 596 status = ddi_soft_state_zalloc(ahci_statep, instance); 599 instance); 603 ahci_ctlp = ddi_get_soft_state(ahci_statep, instance); 636 instance); 651 instance); 666 instance); 686 cmn_err(CE_NOTE, "!ahci%d: hba AHCI version = %x.%x", instance, 694 "than version 1.0", instance); 1041 int instance; local 1798 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 2055 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 2438 int instance = ddi_get_instance(dip); local 2998 int instance = ddi_get_instance(dip); local 3130 int instance = ddi_get_instance(dip); local 3202 int instance = ddi_get_instance(dip); local 5206 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 5407 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 7775 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 9301 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 9575 int instance; local 9742 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 9950 int instance = ddi_get_instance(ahci_ctlp->ahcictl_dip); local 10217 int instance, port; local [all...] |
/illumos-gate/usr/src/uts/common/io/sata/adapters/nv_sata/ |
H A D | nv_sata.c | 401 * When a driver instance with a CBP value that is already in the array is 991 int instance; local 995 instance = getminor(dev); 999 nvc = ddi_get_soft_state(nv_statep, instance); 1008 *(int *)result = instance; 4058 * variable argument wrapper for cmn_err. prefixes the instance and port 6388 int port, instance = ddi_get_instance(dip); local 6391 if ((nvc = (nv_ctl_t *)ddi_get_soft_state(nv_statep, instance)) == NULL) 6515 * Initialize the shared space for this instance. This could 7096 * structure isn't present in this instance, ther [all...] |
/illumos-gate/usr/src/uts/common/io/skd/ |
H A D | skd.h | 410 int instance; member in struct:skd_device
|
/illumos-gate/usr/src/uts/common/io/urtw/ |
H A D | urtw.c | 4205 int error, i, instance; local 4239 instance = ddi_get_instance(devinfo); 4241 if (ddi_soft_state_zalloc(urtw_soft_state_p, instance) != DDI_SUCCESS) { 4246 sc = ddi_get_soft_state(urtw_soft_state_p, instance); 4438 "urtw", instance); 4440 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ac/ |
H A D | usb_ac.c | 409 int instance = ddi_get_instance(dip); local 433 "usb_ac%d attach too early", instance); 441 if (ddi_soft_state_zalloc(usb_ac_statep, instance) != DDI_SUCCESS) { 449 uacp = (usb_ac_state_t *)ddi_get_soft_state(usb_ac_statep, instance); 461 uacp->usb_ac_instance = instance; 465 ddi_driver_name(dip), instance); 564 int instance = ddi_get_instance(dip); local 568 uacp = ddi_get_soft_state(usb_ac_statep, instance); 606 ddi_driver_name(dip), instance); 780 "message from hid, instance 848 int instance = ddi_get_instance(dip); local [all...] |
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | hubdi.c | 190 * Called by an HUB to attach an instance of the driver 191 * make this instance known to USBA 211 * add this hubdi instance to the list of known hubdi's 225 * Called by an HUB to detach an instance of the driver 614 int instance = ddi_get_instance(dip); local 616 return (ddi_get_soft_state(hubd_statep, instance)); 663 * track power level changes for children of this instance 1818 int instance = ddi_get_instance(dip); local 1831 "hubd_attach instance %d, cmd=0x%x", instance, cm [all...] |
/illumos-gate/usr/src/uts/common/io/iwh/ |
H A D | iwh.c | 511 int instance, i; local 525 instance = ddi_get_instance(dip); 527 instance); 544 instance = ddi_get_instance(dip); 545 err = ddi_soft_state_zalloc(iwh_soft_state_p, instance); 552 sc = ddi_get_soft_state(iwh_soft_state_p, instance); 834 * different instance has different WPA door 919 (void) snprintf(strbuf, sizeof (strbuf), DRV_NAME_SP"%d", instance); 921 instance + 1, DDI_NT_NET_WIFI, 0); 987 ddi_soft_state_free(iwh_soft_state_p, instance); [all...] |
/illumos-gate/usr/src/uts/common/io/iwp/ |
H A D | iwp.c | 473 int instance, i; local 486 instance = ddi_get_instance(dip); 488 instance); 504 instance = ddi_get_instance(dip); 505 err = ddi_soft_state_zalloc(iwp_soft_state_p, instance); 512 sc = ddi_get_soft_state(iwp_soft_state_p, instance); 757 * different instance has different WPA door 842 (void) snprintf(strbuf, sizeof (strbuf), DRV_NAME_SP"%d", instance); 844 instance + 1, DDI_NT_NET_WIFI, 0); 897 ddi_soft_state_free(iwp_soft_state_p, instance); [all...] |
/illumos-gate/usr/src/uts/common/io/mwl/ |
H A D | mwl.c | 3801 int i, err, qid, instance; local 3836 instance = ddi_get_instance(devinfo); 4172 "mwl", instance); 4174 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/sun4u/sunfire/io/ |
H A D | jtag.c | 1638 find_chip(jtag_ring_desc *rd, jtag_log_comp *chip, int instance) argument 1646 if (found == instance) {
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | envctrl.h | 177 int instance; /* instance of this type */ member in struct:envctrl_ps 186 int instance; /* instance of this type */ member in struct:envctrl_fan 194 int instance; member in struct:envctrl_encl 725 int instance; member in struct:envctrlunit
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pcisch.c | 319 int instance; local 322 instance = ddi_get_instance(dip); 323 if ((pci_xmits_sc_max_prf & (1 << instance)) && 717 int instance = ddi_get_instance(dip); local 719 uint64_t mask = 1ll << instance; 730 ddi_driver_name(dip), instance); 1483 * (if captured) to a device instance. pbm_afsr_report() calls a chip specific
|
/illumos-gate/usr/src/uts/sun4u/lw2plus/io/ |
H A D | lombus.c | 260 int instance; member in struct:lombus_state 366 (void) strlog(ssp->majornum, ssp->instance, code, SL_TRACE, 372 lombus_getstate(dev_info_t *dip, int instance, const char *caller) argument 380 * Use the instance number from the <dip>; also, 383 instance = ddi_get_instance(dip); 392 instance = -1; 396 if (instance >= 0) 397 ssp = ddi_get_soft_state(lombus_statep, instance); 945 * the per-instance state to the per-handle fault flag. 2008 lombus_unattach(struct lombus_state *ssp, int instance) argument 2038 int instance; local 2138 int instance; local [all...] |
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | mc-opl.c | 491 int instance; local 494 /* get the instance of this devi */ 495 instance = ddi_get_instance(devi); 501 mcp = ddi_get_soft_state(mc_statep, instance); 508 if (ddi_soft_state_zalloc(mc_statep, instance) != DDI_SUCCESS) 511 if (ddi_create_minor_node(devi, "mc-opl", S_IFCHR, instance, 517 if ((mcp = ddi_get_soft_state(mc_statep, instance)) == NULL) { 552 ddi_soft_state_free(mc_statep, instance); 561 int instance; local 564 /* get the instance o [all...] |
/illumos-gate/usr/src/uts/intel/io/scsi/adapters/arcmsr/ |
H A D | arcmsr.c | 132 static int arcmsr_do_ddi_attach(dev_info_t *dev_info, int instance); 357 int instance; local 361 instance = ddi_get_instance(dev_info); 362 acb = ddi_get_soft_state(arcmsr_soft_state, instance); 392 arcmsr_warn(acb, "Unable to detach instance cleanly " 402 ddi_soft_state_free(arcmsr_soft_state, instance); 476 int instance = MINOR2INST(getminor(dev)); local 478 if (instance < 0) 484 acb = ddi_get_soft_state(arcmsr_soft_state, instance); 744 * Description: Called when initializing a target device instance 2527 int i, id, lun, instance; local 2780 arcmsr_do_ddi_attach(dev_info_t *dev_info, int instance) argument 3150 int i, instance, timeout_count = 0; local [all...] |
/illumos-gate/usr/src/uts/sun/io/dada/targets/ |
H A D | dad.c | 276 int instance, part; \ 280 instance = minor >> DCDUNIT_SHIFT; \ 281 if ((un = ddi_get_soft_state(dcd_state, instance)) == NULL) \ 407 int instance; local 410 instance = ddi_get_instance(devi); 413 * Keep a count of how many disks (ie. highest instance no) we have 417 if (instance > dcd_max_instance) 418 dcd_max_instance = instance; 423 if (ddi_get_soft_state(dcd_state, instance) != NULL) 473 int instance, rva local 617 int instance = ddi_get_instance(devi); local 670 int instance; local 740 int instance; local 814 int instance; local 897 int instance; local 1607 int instance, error; local 1665 int instance; local 4270 dcd_create_errstats(struct dcd_disk *un, int instance) argument [all...] |
/illumos-gate/usr/src/uts/sun/io/ |
H A D | fd.c | 599 int instance = ddi_get_instance(dip); local 609 if (!(fdc = fd_getctlr(instance << FDINSTSHIFT))) { 779 (instance << FDINSTSHIFT) | dmdp->minor, 1239 (C, "fd_cleanup instance: %d ctlr: 0x%p\n", 1347 int instance = ddi_get_instance(dip); local 1348 struct fdctlr *fdc = fd_getctlr(instance << FDINSTSHIFT); 1912 * convention as sd.c in that the instance number is 1916 * The dki_cnum contains the controller instance 1919 * one controller, the controller instance number 6156 int instance; local [all...] |
H A D | socal.c | 472 int instance; local 487 instance = ddi_get_instance(dip); 489 DEBUGF(4, (CE_CONT, "socal%d entering attach: cmd=%x\n", instance, 503 DEBUGF(4, (CE_CONT, "socal%d resumed\n", instance)); 513 instance); 521 instance); 535 instance); 540 if (ddi_soft_state_zalloc(socal_soft_state_p, instance) 543 instance); 547 instance)); 974 int instance = ddi_get_instance(dip); local 1262 int instance; local 1291 int instance = getminor(*devp)/2; local 1315 int instance = getminor(dev)/2; local 1337 int instance = getminor(dev)/2; local 2279 int instance; local 2577 int instance = ddi_get_instance(socalp->dip); local 2619 int instance = ddi_get_instance(socalp->dip); local 3187 int instance = ddi_get_instance(socalp->dip); local 3308 int instance = ddi_get_instance(socalp->dip); local 3623 int instance = ddi_get_instance(socalp->dip); local 4933 int i, instance; local 4984 int instance = getminor(dev) / 2; local [all...] |
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlstat.c | 69 dladm_kstat_lookup(kstat_ctl_t *kcp, const char *module, int instance, argument 76 (instance == -1 || ksp->ks_instance == instance) && 174 uint_t instance; local 193 status = dladm_parselink(dpap.dp_dev, module, &instance); 207 if ((ksp = kstat_lookup(kcp, module, instance, "mac")) == NULL && 208 (ksp = kstat_lookup(kcp, module, instance, NULL)) == NULL) 2178 uint_t instance; local 2181 if (dladm_parselink(portname, module, &instance) != DLADM_STATUS_OK) 2189 ksp = dladm_kstat_lookup(kcp, module, instance, "ma [all...] |
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_main.c | 214 * This list contains the instance structures for the Hydra 392 int instance; local 399 * Get the device instance since we'll need to setup or retrieve a soft 400 * state for this instance. 402 instance = ddi_get_instance(dip); 411 hxgep = (p_hxge_t)ddi_get_soft_state(hxge_list, instance); 429 hxgep = (p_hxge_t)ddi_get_soft_state(hxge_list, instance); 447 if (ddi_soft_state_zalloc(hxge_list, instance) == DDI_FAILURE) { 454 hxgep = ddi_get_soft_state(hxge_list, instance); 464 hxgep->instance 614 int instance; local 1119 int instance; local [all...] |