/illumos-gate/usr/src/uts/common/io/audio/drv/audiots/ |
H A D | audiots.c | 364 * Attach an instance of the audiots driver. This routine does the 379 int instance; local 381 instance = ddi_get_instance(dip); 389 state = ddi_get_soft_state(audiots_statep, instance); 419 "been disabled.", ddi_driver_name(dip), instance); 425 if (ddi_soft_state_zalloc(audiots_statep, instance) == DDI_FAILURE) { 427 ddi_driver_name(dip), instance); 437 state = ddi_get_soft_state(audiots_statep, instance); 492 * Detach an instance of the audiots driver. 506 int instance; local 562 int instance; local [all...] |
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_engine.c | 54 audio_dev_alloc(dev_info_t *dip, int instance) argument 60 * allow the driver to provide a different instance numbering 61 * scheme than the standard DDI instance number. (This is 63 * -- by default PPA == instance, but sometimes we need more 66 if (instance == 0) { 67 instance = ddi_get_instance(dip); 70 if (instance > AUDIO_MN_INST_MASK) { 71 audio_dev_warn(NULL, "bad instance number for %s (%d)", 72 ddi_driver_name(dip), instance); 83 d->d_instance = instance; 283 int instance; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | dcopy.c | 881 int instance; local 887 instance = ddi_get_instance(channel->ch_device->dc_info.di_dip); 892 channel->ch_kstat = kstat_create(name, instance, chanstr, "misc",
|
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_sunmod.c | 110 /* initialize the instance list lock */ 138 int instance = ddi_get_instance(dip); local 172 (void) sprintf(buf, "%s%d", GFX_NAME, instance); 174 INST2NODE0(instance), DDI_NT_DISPLAY, NULL); 194 pci_cfg_handle, INST2NODE1(instance)); 212 (void) sprintf(buf, "%s%d", DRM_DEVNODE, instance); 214 INST2NODE2(instance), DDI_NT_DISPLAY_DRM, 0)) { 282 int instance; local 295 * the mid 3 bits are used for instance number. All minor numbers 303 instance 945 int instance = DEV2INST(dev); local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddi.c | 611 * belonging to any queue instance in the STREAM, and blocks 1136 * Associate the stream with an instance of the bottom driver. This 1140 * ndd(1M) "instance=" ioctl(2). This interface may be called from a 1167 * corner cases occur, and qassociate() finds the requested instance 1177 qassociate(queue_t *q, int instance) argument 1183 if (instance == -1) { 1190 dip = ddi_hold_devi_by_instance(major, instance,
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xencons.c | 204 int instance; local 223 instance = ddi_get_instance(devi); /* find out which unit */ 225 xcp = ddi_get_soft_state(xencons_soft_state, instance); 249 instance); 301 int instance = ddi_get_instance(devi); local 306 if (instance != 0) 320 ret = ddi_soft_state_zalloc(xencons_soft_state, instance); 323 xcp = ddi_get_soft_state(xencons_soft_state, instance); 329 xcp->unit = instance; 354 ret = ddi_create_minor_node(devi, "xencons", S_IFCHR, instance, 375 int instance, error; local 477 int instance; local 541 int instance; local 771 int instance = xcp->unit; local 900 int instance = xcp->unit; local 1240 int instance = (uintptr_t)unit; local 1433 int instance = xcp->unit; local 1479 int instance = xcp->unit; local [all...] |
/illumos-gate/usr/src/uts/i86pc/i86hvm/io/ |
H A D | xdf_shell.c | 84 * xdf shell devices and to xdf devices. The 'disk' entry to xdf instance 213 int instance = ddi_get_instance(dip); local 214 xdfs_state_t *xsp = ddi_get_soft_state(xdfs_ssp, instance); 472 int instance = ddi_get_instance(dip); local 473 xdfs_state_t *xsp = ddi_get_soft_state(xdfs_ssp, instance); 498 int instance = XDFS_DEV2UNIT(dev); local 500 xdfs_state_t *xsp = ddi_get_soft_state(xdfs_ssp, instance); 578 int instance = XDFS_DEV2UNIT(dev); local 580 xdfs_state_t *xsp = ddi_get_soft_state(xdfs_ssp, instance); 629 int instance local 695 int instance = XDFS_DEV2UNIT(dev); local 711 int instance = XDFS_DEV2UNIT(dev); local 727 int instance = XDFS_DEV2UNIT(dev); local 743 int instance = XDFS_DEV2UNIT(dev); local 762 int instance = XDFS_DEV2UNIT(dev); local 781 int instance = XDFS_DEV2UNIT(dev); local 810 int instance = ddi_get_instance(dip); local 829 int instance = ddi_get_instance(dip); local 922 int instance = XDFS_DEV2UNIT(dev); local 946 int instance = ddi_get_instance(dip); local 975 int instance = ddi_get_instance(dip); local 1053 int instance = ddi_get_instance(dip); local 1078 int instance = ddi_get_instance(dip); local 1095 int instance = ddi_get_instance(dip); local 1116 int instance = ddi_get_instance(dip); local 1142 int instance = ddi_get_instance(dip); local 1156 int instance = ddi_get_instance(dip); local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci.c | 226 int instance = ddi_get_instance(devi); local 244 if (ddi_soft_state_zalloc(pci_statep, instance) == DDI_SUCCESS) { 245 pcip = ddi_get_soft_state(pci_statep, instance); 291 ddi_soft_state_free(pci_statep, instance); 300 int instance = ddi_get_instance(devi); local 321 ddi_soft_state_free(pci_statep, instance); 664 * Pseudo nodes indicate a prototype node with per-instance 788 int instance = PCI_MINOR_NUM_TO_INSTANCE(minor); local 789 pci_state_t *pci_p = ddi_get_soft_state(pci_statep, instance);
|
/illumos-gate/usr/src/uts/i86pc/io/pciex/ |
H A D | npe.c | 249 int instance = PCI_MINOR_NUM_TO_INSTANCE(minor); local 250 pci_state_t *pcip = ddi_get_soft_state(npe_statep, instance); 255 *result = (void *)(intptr_t)instance; 277 int instance = ddi_get_instance(devi); local 306 if (ddi_soft_state_zalloc(npe_statep, instance) == DDI_SUCCESS) 307 pcip = ddi_get_soft_state(npe_statep, instance); 343 ddi_soft_state_free(npe_statep, instance); 352 int instance = ddi_get_instance(devi); local 374 ddi_soft_state_free(npe_statep, instance); 864 * Pseudo nodes indicate a prototype node with per-instance 986 int instance = PCI_MINOR_NUM_TO_INSTANCE(minor); local 1036 int instance = PCI_MINOR_NUM_TO_INSTANCE(minor); local 1066 int instance = PCI_MINOR_NUM_TO_INSTANCE(minor); local [all...] |
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_umap.c | 136 minor_t instance; local 142 /* Get Hermon softstate structure from instance */ 143 instance = HERMON_DEV_INSTANCE(dev); 144 state = ddi_get_soft_state(hermon_statep, instance); 174 status = hermon_umap_db_find(instance, key, type, &value, 0, NULL); 463 minor_t instance; local 467 /* Get Hermon softstate structure from instance */ 468 instance = HERMON_DEV_INSTANCE(dev); 469 state = ddi_get_soft_state(hermon_statep, instance); 868 minor_t instance; local 1250 minor_t instance; local 1837 hermon_umap_db_alloc(uint_t instance, uint64_t key, uint_t type, uint64_t value) argument 1925 hermon_umap_db_find(uint_t instance, uint64_t key, uint_t type, uint64_t *value, uint_t flag, hermon_umap_db_entry_t **umapdb) argument 1944 hermon_umap_db_find_nolock(uint_t instance, uint64_t key, uint_t type, uint64_t *value, uint_t flags, hermon_umap_db_entry_t **umapdb) argument 2021 uint_t instance; local 2166 minor_t instance; local 2227 minor_t instance; local [all...] |
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_ioctl.c | 138 minor_t instance; local 149 instance = TAVOR_DEV_INSTANCE(dev); 150 if (instance == -1) { 156 state = ddi_get_soft_state(tavor_statep, instance);
|
H A D | tavor_umap.c | 121 minor_t instance; local 128 /* Get Tavor softstate structure from instance */ 129 instance = TAVOR_DEV_INSTANCE(dev); 130 state = ddi_get_soft_state(tavor_statep, instance); 158 status = tavor_umap_db_find(instance, key, type, &value, 0, NULL); 422 minor_t instance; local 428 /* Get Tavor softstate structure from instance */ 429 instance = TAVOR_DEV_INSTANCE(dev); 430 state = ddi_get_soft_state(tavor_statep, instance); 821 minor_t instance; local 1476 tavor_umap_db_alloc(uint_t instance, uint64_t key, uint_t type, uint64_t value) argument 1581 tavor_umap_db_find(uint_t instance, uint64_t key, uint_t type, uint64_t *value, uint_t flag, tavor_umap_db_entry_t **umapdb) argument 1603 tavor_umap_db_find_nolock(uint_t instance, uint64_t key, uint_t type, uint64_t *value, uint_t flags, tavor_umap_db_entry_t **umapdb) argument 1684 uint_t instance; local 1849 minor_t instance; local 1925 minor_t instance; local [all...] |
/illumos-gate/usr/src/uts/common/io/usb/clients/usbskel/ |
H A D | usbskel.c | 296 int instance = ddi_get_instance(dip); local 322 if (ddi_soft_state_zalloc(usbskel_statep, instance) == DDI_SUCCESS) { 323 usbskelp = ddi_get_soft_state(usbskel_statep, instance); 334 ddi_driver_name(dip), instance); 420 if (ddi_create_minor_node(dip, name, S_IFCHR, instance, 460 * detach or suspend driver instance 467 int instance = ddi_get_instance(dip); local 469 ddi_get_soft_state(usbskel_statep, instance); 949 int instance = ddi_get_instance(dip); local 951 ddi_get_soft_state(usbskel_statep, instance); 979 int instance = ddi_get_instance(dip); local 1087 int instance = ddi_get_instance(dip); local 1156 int instance = ddi_get_instance(dip); local [all...] |
/illumos-gate/usr/src/uts/common/io/usb/hcd/uhci/ |
H A D | uhci.c | 248 int instance, polled; local 267 /* Get the instance and create soft state */ 268 instance = ddi_get_instance(dip); 270 /* Allocate the soft state structure for this instance of the driver */ 271 if (ddi_soft_state_zalloc(uhci_statep, instance) != 0) { 276 if ((uhcip = ddi_get_soft_state(uhci_statep, instance)) == NULL) { 287 /* Save the dip and instance */ 289 uhcip->uhci_instance = instance; 303 ddi_soft_state_free(uhci_statep, instance); 333 ddi_soft_state_free(uhci_statep, instance); 753 int instance; local 1870 int instance = UHCI_UNIT(dev); local [all...] |
/illumos-gate/usr/src/uts/common/io/usb/usb_mid/ |
H A D | usb_mid.c | 281 int instance = local 288 instance)) != NULL) { 299 *result = (void *)(intptr_t)instance; 571 int instance = ddi_get_instance(dip); local 582 instance); 601 if (ddi_soft_state_zalloc(usb_mid_statep, instance) != DDI_SUCCESS) { 605 usb_mid = ddi_get_soft_state(usb_mid_statep, instance); 619 usb_mid->mi_instance = instance; 644 instance << USB_MID_MINOR_INSTANCE_SHIFT, 703 instance); 1437 int instance = ddi_get_instance(dip); local [all...] |
/illumos-gate/usr/src/uts/common/io/zyd/ |
H A D | zyd.c | 588 int instance; local 606 instance = ddi_get_instance(dip); 607 err = ddi_soft_state_zalloc(zyd_ssp, instance); 614 sc = ddi_get_soft_state(zyd_ssp, instance); 619 ddi_soft_state_free(zyd_ssp, instance); 625 ddi_soft_state_free(zyd_ssp, instance); 634 ddi_soft_state_free(zyd_ssp, instance); 641 (void) snprintf(strbuf, sizeof (strbuf), ZYD_DRV_NAME"%d", instance); 643 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_provider.c | 127 uint_t instance; local 152 * 0: Get the mac's instance number from m_dip. 155 * [1 .. MAC_MAX_MINOR-1]: Use the value as the mac's instance number. 157 * "key" will be used as the instance number. 159 * -1: Assign an instance number from [MAC_MAX_MINOR .. MAXMIN-1]. 163 * Note that the instance number is used to derive the mi_minor field 170 instance = ddi_get_instance(mregp->m_dip); 178 instance = minor - 1; 181 instance = mregp->m_instance; 182 if (instance > [all...] |
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sghsc.c | 317 uint_t instance; local 322 instance = ddi_get_instance(dip); 332 instance, cmd); 344 instance, "portid", portid); 348 if (ddi_soft_state_zalloc(sghsc_state, instance) != DDI_SUCCESS) 351 sghsc = (sghsc_t *)ddi_get_soft_state(sghsc_state, instance); 354 sghsc->sghsc_instance = instance; 368 instance, sghsc->sghsc_node_id, sghsc->sghsc_board); 373 instance, sghsc->sghsc_node_id, sghsc->sghsc_board, 388 " / board %d", instance, sghs 491 int instance; local 1444 int instance; local 1700 int instance; local [all...] |
H A D | ssm.c | 96 ssm_make_nodes(dev_info_t *dip, int instance, int ssm_nodeid); 318 int instance; local 322 instance = (getminor(dev) >> SSM_INSTANCE_SHIFT); 323 *result = (void *)(uintptr_t)instance; 336 int instance; local 353 instance = ddi_get_instance(devi); 355 if (ddi_soft_state_zalloc(ssm_softstates, instance) != DDI_SUCCESS) 358 softsp = ddi_get_soft_state(ssm_softstates, instance); 366 instance, (void *)devi, (void *)softsp)); 371 instance, "nodei 457 int instance, rv; local 675 ssm_make_nodes(dev_info_t *dip, int instance, int ssm_nodeid) argument 709 minor_t board, instance; local 782 minor_t board, instance; local 806 int instance, rv = 0; local [all...] |
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | sbbcvar.h | 96 int instance; member in struct:sbbcsoft
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | cnex.c | 40 #include <sys/instance.h> 479 int status, instance; local 482 /* Get device instance and structure */ 483 instance = ddi_get_instance(dip); 484 cnex_ssp = ddi_get_soft_state(cnex_state, instance); 615 int instance; local 617 /* Get device instance and structure */ 618 instance = ddi_get_instance(dip); 619 cnex_ssp = ddi_get_soft_state(cnex_state, instance); 749 int instance; local 804 int instance, istate; local 909 int instance; local 1014 int rv, instance, reglen; local 1093 int instance; local 1136 int instance; local 1152 int instance; local 1169 int instance; local [all...] |
H A D | ds_drv.c | 975 * Unregister all handles related to device open instance. 978 ds_unreg_all(int instance) argument 992 if ((svc->flags & DSSF_ISUSER) != 0 && svc->drvi == instance) { 1101 ds_is_my_hdl(ds_svc_hdl_t hdl, int instance) argument 1111 } else if (instance == DS_INVALID_INSTANCE) { 1117 } else if ((svc->flags & DSSF_ISUSER) == 0 || svc->drvi != instance) {
|
H A D | ds_pri.c | 103 int instance; member in struct:ds_pri_state 309 int instance; local 325 instance = ddi_get_instance(dip); 327 if (ddi_soft_state_zalloc(ds_pri_statep, instance) != 330 DS_PRI_NAME, instance); 333 sp = ddi_get_soft_state(ds_pri_statep, instance); 338 if (ddi_create_minor_node(dip, DS_PRI_NAME, S_IFCHR, instance, 341 DS_PRI_NAME, instance); 384 ddi_soft_state_free(ds_pri_statep, instance); 395 int instance; local 436 int instance; local 480 int instance; local 514 int instance; local 595 int instance; local 731 int instance; local 767 int instance; local 797 int instance; local [all...] |
H A D | ds_snmp.c | 87 int instance; member in struct:ds_snmp_state 452 sp->instance = minor; 477 ASSERT(sp->instance == minor);
|
/illumos-gate/usr/src/uts/sun4v/io/glvc/ |
H A D | glvc.c | 255 int instance; local 261 instance = ddi_get_instance(dip); 283 DPRINTF(("Glvc instance %d negotiated VSC API version, " 285 instance, glvc_hsvc.hsvc_major, glvc_vsc_min_ver)); 287 if (ddi_soft_state_zalloc(glvc_ssp, instance) 296 softsp = ddi_get_soft_state(glvc_ssp, instance); 341 instance, DDI_PSEUDO, NULL); 380 DPRINTF(("glvc instance %d, s_id %lu," 381 "mtu %lu attached\n", instance, softsp->s_id, 404 cmn_err(CE_WARN, "glvc: attach failed for instance 413 int instance; local 461 int instance; local 524 int instance; local 558 int instance; local 602 int instance; local 627 int instance; local 717 int instance; local 952 int instance = getminor(dev); local [all...] |