/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | hba.c | 263 int instance = ddi_get_instance(dip); local 276 if (ddi_soft_state_zalloc(scsa1394_statep, instance) != 0) { 279 sp = SCSA1394_INST2STATE(instance); 283 sp->s_instance = instance; 340 int instance = ddi_get_instance(dip); local 343 if ((sp = SCSA1394_INST2STATE(instance)) == NULL) { 376 int instance = ddi_get_instance(dip); local 380 sp = SCSA1394_INST2STATE(instance); 419 int instance = ddi_get_instance(dip); local 424 sp = SCSA1394_INST2STATE(instance); [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | asy.c | 601 int instance; local 605 instance = ddi_get_instance(devi); /* find out which unit */ 607 asy = ddi_get_soft_state(asy_soft_state, instance); 615 instance, asy_hw_name(asy)); 635 instance); 739 int instance; local 753 instance = ddi_get_instance(devi); /* find out which unit */ 766 asy = ddi_get_soft_state(asy_soft_state, instance); 820 ret = ddi_soft_state_zalloc(asy_soft_state, instance); 823 asy = ddi_get_soft_state(asy_soft_state, instance); 1125 int instance, error; local 1777 int instance; local 2029 int instance; local 2567 int instance = UNIT(async->async_dev); local 2681 int instance = UNIT(async->async_dev); local 2991 int instance = UNIT(async->async_dev); local 3039 int instance = UNIT(async->async_dev); local 3218 int instance; local 3321 int instance = UNIT(async->async_dev); local 3786 int instance; local 4095 int instance = (uintptr_t)unit; local 4131 int instance = UNIT(async->async_dev); local 4244 int instance = asy->asy_unit; local 4595 int instance = UNIT(async->async_dev); local 4669 int instance = UNIT(async->async_dev); local 4716 int instance = UNIT(async->async_dev); local 4769 int instance = UNIT(async->async_dev); local 4809 int instance; local [all...] |
H A D | pm.c | 59 * Minor number is instance<<8 + clone minor from range 1-254; (0 reserved 196 if (pmstp->pm_instance != -1) /* Only allow one instance */ 834 int instance; local 845 instance = getminor(dev) >> 8; 846 *result = (void *)(uintptr_t)instance;
|
H A D | pshot.c | 447 int instance = ddi_get_instance(devi); local 459 instance, bus_addr); 474 int instance; local 479 instance = pshot_minor_decode_inst(minor); 482 pshot = ddi_get_soft_state(pshot_softstatep, instance); 485 "on minor %u, instance %d", minor, instance); 491 *result = (void *)(uintptr_t)instance; 495 "minor %u, instance %d", infocmd, minor, instance); 506 int instance = ddi_get_instance(devi); local 843 int instance = ddi_get_instance(devi); local 1049 int instance; local 1322 int instance = ddi_get_instance(dip); local 1371 int instance = ddi_get_instance(dip); local 1767 int instance; local 1806 int instance; local 1835 int instance; local 1879 int instance; local 2258 int instance; local 2348 int instance = ddi_get_instance(dip); local 2369 int instance = ddi_get_instance(dip); local 2392 int instance = ddi_get_instance(dip); local 2414 int instance = ddi_get_instance(dip); local 2537 int instance = ddi_get_instance(parent); local [all...] |
/illumos-gate/usr/src/uts/common/io/ath/ |
H A D | ath_main.c | 1972 int instance; local 1987 instance = ddi_get_instance(devinfo); 1988 if (ddi_soft_state_zalloc(ath_soft_state_p, instance) != DDI_SUCCESS) { 2230 /* different instance has different WPA door */ 2309 ATH_NODENAME, instance); 2311 instance + 1, DDI_NT_NET_WIFI, 0); 2351 ddi_soft_state_free(ath_soft_state_p, instance);
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3.h | 280 uint32_t instance; member in struct:cpqary3_per_controller
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_nexus.c | 216 minor = getminor((dev_t)arg); /* same as instance# in our case */ 264 int i, instance, rc = DDI_SUCCESS, n10g, n1g, rqidx, tqidx, q; local 284 instance = ddi_get_instance(dip); 285 rc = ddi_soft_state_zalloc(t4_list, instance); 292 sc = ddi_get_soft_state(t4_list, instance); 294 sc->dev = makedevice(ddi_driver_major(dip), instance); 353 * Do this really early. Note that minor number = instance. 355 (void) snprintf(name, sizeof (name), "%s,%d", T4_NEXUS_NAME, instance); 356 rc = ddi_create_minor_node(dip, name, S_IFCHR, instance, 687 int instance, local 790 int instance; local 849 int instance, i; local 892 int instance, i, rc; local 963 int instance; local [all...] |
/illumos-gate/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_main.c | 2212 * ========== Per-instance setup/teardown code ========== 2491 dmfe_init_kstats(dmfe_t *dmfep, int instance) argument 2500 ksp = kstat_create(DRIVER_NAME, instance, "dmfe_events", "net", 2577 int instance; local 2580 instance = ddi_get_instance(devinfo); 2608 instance); 2685 dmfe_init_kstats(dmfep, instance);
|
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus.c | 424 "cbus-instance") == 1) { 426 "%s%d: cardbus instance already initialized!\n", 433 * initialize soft state structure for the bus instance. 450 * Save the instance number of the soft state structure for 454 "cbus-instance", (caddr_t)&cb_instance, 457 "%s%d: failed to add the property 'cbus-instance'", 521 /* get the instance number for the cardbus soft state data */ 523 DDI_PROP_DONTPASS, "cbus-instance", -1); 526 return (DDI_FAILURE); /* no instance is setup for this bus */ 563 /* remove the 'cbus-instance' propert 2351 int instance; local [all...] |
/illumos-gate/usr/src/uts/common/pcmcia/sys/ |
H A D | cs_priv.h | 391 int32_t instance; /* client's driver instance */ member in struct:client_t 450 uint32_t instance; /* instance number of this adapter */ member in struct:cs_adapter_t
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xdf.c | 677 xdf_kstat_create(dev_info_t *dip, char *ks_module, int instance) argument 684 ks_module, instance, NULL, "disk", 2383 int instance; local 2386 instance = ddi_get_instance(dip); 2388 if ((vdp = ddi_get_soft_state(xdf_ssp, instance)) == NULL) 3146 int instance = XDF_INST(getminor((dev_t)arg)); local 3151 if ((vbdp = ddi_get_soft_state(xdf_ssp, instance)) == NULL) { 3159 *rp = (void *)(uintptr_t)instance; 3218 int n, instance = ddi_get_instance(dip); local 3271 if (ddi_soft_state_zalloc(xdf_ssp, instance) ! 3409 int instance = ddi_get_instance(dip); local 3441 int instance; local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr.c | 133 * Per instance soft-state structure. 488 int instance; local 495 instance = DR_MINOR2INST(getminor(*dev)); 496 softsp = ddi_get_soft_state(dr_g.softsp, instance); 560 int instance; local 568 instance = DR_MINOR2INST(getminor(dev)); 569 softsp = ddi_get_soft_state(dr_g.softsp, instance); 571 cmn_err(CE_WARN, "dr%d: module not yet attached", instance); 707 int instance; local 711 instance 805 int instance; local 850 int instance, error; local [all...] |
/illumos-gate/usr/src/uts/common/io/hme/ |
H A D | hme.h | 45 * Per-Stream instance state information. 47 * Each instance is dynamically allocated at open() and free'd 48 * at close(). Each per-Stream instance points to at most one 69 * HME Device Channel instance state information. 71 * Each instance is dynamically allocated on first attach. 77 int instance; /* instance */ member in struct:hme
|
/illumos-gate/usr/src/uts/common/io/hotplug/pcihp/ |
H A D | pcihp.c | 100 * Soft state structure associated with each hot plug pci bus instance. 403 int instance; local 407 instance = PCIHP_AP_MINOR_NUM_TO_INSTANCE(minor); 414 *result = (void *)(intptr_t)instance; 423 instance) { 798 PCIHP_DEBUG((CE_WARN, "Hot Plug bus %s instance is unconfigured" 1803 cmn_err(CE_WARN, "%s%d: pcihp instance already initialized!", 1809 * Initialize soft state structure for the bus instance. 1843 * register the bus instance with the HPS framework. 1887 * The bus instance i [all...] |
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_kstats.c | 626 hxge_setup_local_kstat(p_hxge_t hxgep, int instance, char *name, argument 634 ksp = kstat_create(HXGE_DRIVER_NAME, instance, name, "net", 668 hxgep->instance, stat_name, &hxge_rdc_stats[0], 677 hxgep->instance, "RDC_system", &hxge_rdc_sys_stats[0], 687 hxgep->instance, stat_name, &hxge_tdc_stats[0], 696 hxgep->instance, "TDC_system", &hxge_tdc_sys_stats[0], 703 hxgep->instance, "PFC", &hxge_pfc_stats[0], 710 hxgep->instance, "VMAC", &hxge_vmac_stats[0], 717 hxgep->instance, "MMAC", &hxge_mmac_stats[0], 724 hxgep->instance, "PE [all...] |
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon.c | 80 int instance); 271 minor_t instance; local 276 instance = HERMON_DEV_INSTANCE(dev); 277 state = ddi_get_soft_state(hermon_statep, instance); 286 instance = HERMON_DEV_INSTANCE(dev); 287 *result = (void *)(uintptr_t)instance; 308 minor_t instance; local 314 instance = HERMON_DEV_INSTANCE(*devp); 315 state = ddi_get_soft_state(hermon_statep, instance); 335 * instance an 461 minor_t instance; local 549 int instance; local 746 int instance, status; local 1266 hermon_drv_init(hermon_state_t *state, dev_info_t *dip, int instance) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex.c | 264 * with 1 to 1 mapping between minor node and instance should use 294 * Global per-instance IB Nexus data. 295 * There is only one instance of IB Nexus supported. 432 * Configure and attach an instance of the IB Nexus driver 433 * Only one instance of IB Nexus is supported 443 int instance = ddi_get_instance(dip); local 457 /* Fail attach for more than one instance */ 495 if (ddi_create_minor_node(dip, IBNEX_FABRIC, S_IFCHR, instance, 509 if (ddi_create_minor_node(dip, "devctl", S_IFCHR, instance, 597 * instance numbe [all...] |
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | unm_nic_main.c | 421 adapter->name, adapter->instance, state); 2012 adapter->instance, data.cmd); 2110 unm_setup_named_kstat(unm_adapter *adapter, int instance, char *name, argument 2120 ksp = kstat_create(unm_nic_driver_name, instance, name, "net", 2154 unm_init_kstats(unm_adapter* adapter, int instance) argument 2157 instance, "kstatinfo", unm_kstat, 2215 adapter->name, adapter->instance); 2224 adapter->name, adapter->instance); 2247 adapter->name, adapter->instance); 2254 adapter->name, adapter->instance); [all...] |
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_virtual.c | 184 int instance; local 191 instance = ddi_get_instance(dip); 192 NXGE_DEBUG_MSG((NULL, VIR_CTL, "Instance %d ", instance)); 199 nxgep = (p_nxge_t)ddi_get_soft_state(nxge_list, instance); 3039 * If function zero instance, it needs to handle the system and MIF 3300 * If function zero instance, it needs to handle the system error
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 251 int instance = PCI_MINOR_NUM_TO_INSTANCE(minor); local 252 pcieb_devstate_t *pcieb = ddi_get_soft_state(pcieb_state, instance); 257 *result = (void *)(intptr_t)instance; 365 int instance; local 400 instance = ddi_get_instance(devi); 401 if (ddi_soft_state_zalloc(pcieb_state, instance) != DDI_SUCCESS) 403 pcieb = ddi_get_soft_state(pcieb_state, instance); 808 * Pseudo nodes indicate a prototype node with per-instance
|
/illumos-gate/usr/src/uts/common/io/ral/ |
H A D | rt2560.c | 2348 int instance; local 2373 instance = ddi_get_instance(devinfo); 2375 if (ddi_soft_state_zalloc(ral_soft_state_p, instance) != DDI_SUCCESS) { 2381 sc = ddi_get_soft_state(ral_soft_state_p, instance); 2604 "ral", instance); 2606 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/rum/ |
H A D | rum.c | 2211 int instance; local 2231 instance = ddi_get_instance(devinfo); 2233 if (ddi_soft_state_zalloc(rum_soft_state_p, instance) != DDI_SUCCESS) { 2239 sc = ddi_get_soft_state(rum_soft_state_p, instance); 2402 "rum", instance); 2404 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/rwd/ |
H A D | rt2661.c | 2810 int i, ac, err, ntries, instance; local 2839 instance = ddi_get_instance(devinfo); 2841 err = ddi_soft_state_zalloc(rt2661_soft_state_p, instance); 2848 sc = ddi_get_soft_state(rt2661_soft_state_p, instance); 3119 "rwd", instance); 3121 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/rwn/ |
H A D | rt2860.c | 2816 int i, err, qid, ntries, instance; local 2842 instance = ddi_get_instance(devinfo); 2844 err = ddi_soft_state_zalloc(rt2860_soft_state_p, instance); 2851 sc = ddi_get_soft_state(rt2860_soft_state_p, instance); 3063 "rwn", instance); 3065 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/sata/adapters/si3124/ |
H A D | si3124.c | 51 * controller instance. Each of the sata ports within a single 109 * handler running for each instance of controller. 521 int instance; local 528 instance = ddi_get_instance(dip); 536 status = ddi_soft_state_zalloc(si_statep, instance); 541 si_ctlp = ddi_get_soft_state(si_statep, instance); 716 si_ctlp = ddi_get_soft_state(si_statep, instance); 790 ddi_soft_state_free(si_statep, instance); 806 int instance; local 809 instance 6056 int instance; local [all...] |