/illumos-gate/usr/src/uts/common/io/ |
H A D | srn.c | 58 * Minor number is instance<<8 + clone minor from range 1-255; 177 if (srn.srn_instance != -1) /* Only allow one instance */ 278 int instance; local 289 instance = getminor(dev) >> 8; 290 *result = (void *)(uintptr_t)instance;
|
H A D | tclient.c | 152 int instance = ddi_get_instance(devi); local 159 if (ddi_soft_state_zalloc(dstates, instance) != DDI_SUCCESS) { 161 ddi_get_name(devi), instance); 165 dstatep = ddi_get_soft_state(dstates, instance); 169 (INST_TO_MINOR(instance)), DDI_PSEUDO, NULL); 172 ddi_soft_state_free(dstates, instance); 174 ddi_get_name(devi), instance); 186 int instance; local 192 instance = ddi_get_instance(devi); 193 ddi_soft_state_free(dstates, instance); 202 int instance; local 260 int instance; local [all...] |
H A D | tphci.c | 175 * has worked -- if this works, then we know that each instance 244 int instance, phci_regis = 0; local 247 instance = ddi_get_instance(dip); 264 if (ddi_soft_state_zalloc(tphci_state, instance) != DDI_SUCCESS) { 268 phci = ddi_get_soft_state(tphci_state, instance); 281 * Attach this instance with the mpxio framework 291 instance, DDI_NT_SCSI_NEXUS, 0) != DDI_SUCCESS) { 305 ddi_soft_state_free(tphci_state, instance); 314 int instance = ddi_get_instance(dip); local 332 ddi_soft_state_free(tphci_state, instance); 349 int instance = getminor((dev_t)arg); local [all...] |
H A D | tvhci.c | 188 * has worked -- if this works, then we know that each instance 257 int instance, vhci_regis = 0; local 261 instance = ddi_get_instance(dip); 278 if (ddi_soft_state_zalloc(tvhci_state, instance) != DDI_SUCCESS) { 282 vhci = ddi_get_soft_state(tvhci_state, instance); 309 * Attach this instance with the mpxio framework 319 instance, DDI_NT_SCSI_NEXUS, 0) != DDI_SUCCESS) { 333 ddi_soft_state_free(tvhci_state, instance); 342 int instance = ddi_get_instance(dip); local 360 ddi_soft_state_free(tvhci_state, instance); 377 int instance = getminor((dev_t)arg); local [all...] |
/illumos-gate/usr/src/uts/common/io/tpm/ |
H A D | tpm_ddi.h | 69 int instance; member in struct:tpm_state
|
/illumos-gate/usr/src/uts/common/io/usb/clients/ugen/ |
H A D | ugen.c | 175 int instance = local 181 ugen_skelp = ddi_get_soft_state(ugen_skel_statep, instance); 193 *result = (void *)(uintptr_t)instance; 213 int instance; /* Driver instance number */ local 217 /* Get instance number */ 218 instance = ddi_get_instance(dip); 225 ugen_skelp = ddi_get_soft_state(ugen_skel_statep, instance); 239 if (ddi_soft_state_zalloc(ugen_skel_statep, instance) == 242 instance); [all...] |
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/ |
H A D | usbser_keyspan.c | 357 int instance = ddi_get_instance(dip); local 421 if (ddi_soft_state_zalloc(statep, instance) == DDI_SUCCESS) { 422 kbp = ddi_get_soft_state(statep, instance); 426 kbp->kb_instance = instance; 447 ddi_soft_state_free(statep, instance); 458 int instance = ddi_get_instance(dip); local 461 kbp = ddi_get_soft_state(statep, instance); 477 ddi_soft_state_free(statep, instance);
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | hcdi.c | 99 * Called by an HCD to attach an instance of the driver 100 * make this instance known to USBA 214 * Called by an HCD to detach an instance of the driver 270 usba_hcdi_create_stats(usba_hcdi_t *hcdi, int instance) argument 279 dname, instance); 280 HCDI_HOTPLUG_STATS(hcdi) = kstat_create("usba", instance, 309 dname, instance); 310 HCDI_ERROR_STATS(hcdi) = kstat_create("usba", instance,
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_msg.h | 82 uint32_t instance; /* Adapter instance */ member in struct:emlxs_msg_entry 96 uint32_t instance; member in struct:emlxs_msg_log
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | bofi_impl.h | 88 int instance; /* as returned by ddi_get_instance() */ member in struct:bofi_shadow
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sgsbbc.c | 222 int instance; local 230 instance = ddi_get_instance(devi); 235 if (ddi_soft_state_zalloc(sbbcp, instance) != 0) 238 softsp = ddi_get_soft_state(sbbcp, instance); 239 softsp->sbbc_instance = instance; 244 * per instance mutex. 251 * this device. If not, this instance will be ignored. 257 "SBBC instance %d\n", instance); 261 * Add this instance t 345 int instance; local 927 sbbc_get_soft_state(int instance) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/snowbird/io/todds1307/ |
H A D | todds1307.c | 85 static int instance = -1; variable 248 if (instance != -1) { 252 instance = ddi_get_instance(dip); 257 if (ddi_soft_state_zalloc(ds1307_statep, instance) != DDI_SUCCESS) { 261 statep = ddi_get_soft_state(ds1307_statep, instance); 269 ddi_soft_state_free(ds1307_statep, instance); 286 ddi_soft_state_free(ds1307_statep, instance); 309 ddi_soft_state_free(ds1307_statep, instance); 348 * instance)) == NULL) { 352 * ddi_soft_state_free(ds1307_statep, instance); [all...] |
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | todds1337.h | 104 /* per instance based */ 113 int instance; member in struct:ds1337_state
|
/illumos-gate/usr/src/uts/sun4v/io/iospc/ |
H A D | iospc.c | 149 * Per-instance initialization. Suspend/resume not supported. 155 int instance = ddi_get_instance(dip); local 186 if (ddi_soft_state_zalloc(iospc_state_p, instance) != 192 instance); 206 (void) ddi_soft_state_free(iospc_state_p, instance); 221 * Per-instance cleanup. Suspend/resume not supported. 226 int instance = ddi_get_instance(dip); local 230 iospc_state_p, instance); 236 (void) ddi_soft_state_free(iospc_state_p, instance); 286 * Per-instance initializatio [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | mdesc.c | 68 int instance; member in struct:mdesc_state 214 int instance = ddi_get_instance(dip); local 219 if (ddi_create_minor_node(dip, MDESC_NAME, S_IFCHR, instance, 222 MDESC_NAME, instance); 305 mdsp->instance = minor; 367 int instance = getminor(dev); local 379 if ((mdsp = ddi_get_soft_state(mdesc_state_head, instance)) == NULL) 382 ASSERT(mdsp->instance == instance); 419 int instance local 484 int instance = getminor(dev); local [all...] |
/illumos-gate/usr/src/uts/sun4v/io/niumx/ |
H A D | niumx_tools.c | 80 char *driver_name, char *path_name, int instance); 225 int instance = ddi_get_instance(dip); local 228 PCI_MINOR_NUM(instance, PCI_TOOL_INTR_MINOR_NUM), 245 char *path_name, int instance) 249 dev->dev_inst = instance; 244 niumxtool_fill_in_intr_devs(pcitool_intr_dev_t *dev, char *driver_name, char *path_name, int instance) argument
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_tools.c | 773 int instance = ddi_get_instance(dip); local 776 PCI_MINOR_NUM(instance, PCI_TOOL_REG_MINOR_NUM), 782 PCI_MINOR_NUM(instance, PCI_TOOL_INTR_MINOR_NUM),
|
/illumos-gate/usr/src/uts/sun4u/grover/io/ |
H A D | grfans.c | 148 int instance; local 152 instance = MINOR_TO_DEVINST(dev); 153 *result = (void *)(uintptr_t)instance; 163 int instance; local 168 instance = ddi_get_instance(dip); 170 if (ddi_soft_state_zalloc(grfans_soft_statep, instance) != 0) { 172 ddi_get_name(dip), instance); 178 printf("attached instance number %d\n", instance); 181 unitp = ddi_get_soft_state(grfans_soft_statep, instance); 266 int instance; local 303 int instance = MINOR_TO_DEVINST(*devp); local 356 int instance = MINOR_TO_DEVINST(dev); local 391 int instance = MINOR_TO_DEVINST(getminor(dev)); local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | bbc_beep.c | 177 int instance; /* Instance number */ local 193 /* Get the instance and create soft state */ 194 instance = ddi_get_instance(dip); 196 if (ddi_soft_state_zalloc(bbc_beep_statep, instance) != 0) { 201 bbc_beeptr = ddi_get_soft_state(bbc_beep_statep, instance); 208 BBC_BEEP_DEBUG1((CE_CONT, "bbc_beeptr = 0x%p, instance %x", 209 (void *)bbc_beeptr, instance)); 285 int instance, error; local 291 instance = BEEP_UNIT(dev); 294 instance)) 439 int instance = ddi_get_instance(dip); local 458 int instance = ddi_get_instance(bbc_beeptr->bbc_beep_dip); local [all...] |
H A D | gpio_87317.c | 174 int instance = getminor((dev_t)arg); local 180 if ((softc = getsoftc(instance)) == NULL) { 188 *result = (void *)(uintptr_t)instance; 203 int instance; local 211 /* Allocate and get the soft state structure for this instance. */ 213 instance = ddi_get_instance(dip); 214 DBG(dip, "attach: instance is %d", instance, 0, 0, 0, 0); 215 if (ddi_soft_state_zalloc(statep, instance) != DDI_SUCCESS) 217 softc = getsoftc(instance); 293 int instance; local 322 int instance = getminor(*devp); local 333 int instance = getminor(dev); local 345 int instance = getminor(dev); local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/ |
H A D | adm1026.c | 185 int instance; 188 instance = getminor(*devp); 190 D2CMN_ERR((CE_WARN, "adm1026_open: instance=%d\n", instance)); 192 if (instance < 0) { 197 ddi_get_soft_state(adm1026soft_statep, instance); 234 int instance; 236 instance = getminor(dev); 238 D2CMN_ERR((CE_WARN, "adm1026_close: instance=%d\n", instance)); 292 int instance; local 359 int instance; local [all...] |
H A D | adm1031.c | 213 int instance = ddi_get_instance(dip); local 218 ddi_get_soft_state(adm1031_soft_statep, instance); 267 admp->adm1031_name, instance); 276 int instance = ddi_get_instance(dip); local 278 admp = ddi_get_soft_state(adm1031_soft_statep, instance); 296 ddi_soft_state_free(adm1031_soft_statep, instance); 321 int instance = ddi_get_instance(dip); local 327 if (ddi_soft_state_zalloc(adm1031_soft_statep, instance) != 0) { 329 ddi_get_name(dip), instance); 332 admp = ddi_get_soft_state(adm1031_soft_statep, instance); 463 int instance = ddi_get_instance(dip); local 546 int instance; local 588 int instance; local 614 int instance = ADM1031_MINOR_TO_INST(minor); local 887 int instance = ADM1031_MINOR_TO_INST(minor); local [all...] |
H A D | max1617.c | 156 int instance; local 160 instance = MAX1617_MINOR_TO_INST(getminor(dev)); 161 *result = (void *)(uintptr_t)instance; 171 int instance; local 175 instance = ddi_get_instance(dip); 177 if (ddi_soft_state_zalloc(max1617_soft_statep, instance) != 0) { 179 ddi_get_name(dip), instance); 184 unitp = ddi_get_soft_state(max1617_soft_statep, instance); 187 "%s%d", ddi_node_name(dip), instance); 190 minor_number = MAX1617_INST_TO_MINOR(instance) | 233 int instance = ddi_get_instance(dip); local 325 int instance; local 350 int instance = ddi_get_instance(dip); local 601 int instance = MAX1617_MINOR_TO_INST(getminor(dev)); local [all...] |
H A D | pca9556.c | 180 int instance = ddi_get_instance(dip); local 190 ddi_get_soft_state(pca9556_soft_statep, instance); 260 int instance = ddi_get_instance(dip); local 262 pcap = ddi_get_soft_state(pca9556_soft_statep, instance); 275 ddi_soft_state_free(pca9556_soft_statep, instance); 283 int instance = ddi_get_instance(dip); local 289 if (ddi_soft_state_zalloc(pca9556_soft_statep, instance) != 0) { 291 ddi_get_name(dip), instance); 295 pcap = ddi_get_soft_state(pca9556_soft_statep, instance); 304 "%s_%d", ddi_driver_name(dip), instance); 418 int instance = ddi_get_instance(dip); local 535 int instance; local 576 int instance; local 606 int instance = MINOR_TO_INST(getminor(dev)); local [all...] |
H A D | pcf8591.c | 153 int instance; 156 instance = MINOR_TO_INST(getminor(*devp)); 158 if (instance < 0) { 163 ddi_get_soft_state(pcf8591soft_statep, instance); 200 int instance; 202 instance = MINOR_TO_INST(getminor(dev)); 204 if (instance < 0) { 209 ddi_get_soft_state(pcf8591soft_statep, instance); 233 int instance = MINOR_TO_INST(getminor(dev)); local 246 ddi_get_soft_state(pcf8591soft_statep, instance); 416 int instance; local 457 int instance; local 529 int instance; local [all...] |