/illumos-gate/usr/src/uts/sun4u/lw8/io/ |
H A D | ntwdt.c | 52 * concurrent instance of open() is allowed. On the close(), 578 int instance; local 604 instance = ddi_get_instance(dip); 605 ASSERT(instance == 0); 607 if (ddi_soft_state_zalloc(ntwdt_statep, instance) 611 ntwdt_ptr = ddi_get_soft_state(ntwdt_statep, instance); 702 ddi_soft_state_free(ntwdt_statep, instance); 792 int instance = ddi_get_instance(dip); local 798 ntwdt_ptr = ddi_get_soft_state(ntwdt_statep, instance); 830 ddi_soft_state_free(ntwdt_statep, instance); 933 int instance; local [all...] |
H A D | sgenv.c | 488 int instance; local 494 instance = ddi_get_instance(dip); 497 err = ddi_soft_state_zalloc(sgenv_statep, instance); 500 "structure for inst %d.", instance); 504 softsp = ddi_get_soft_state(sgenv_statep, instance); 506 ddi_soft_state_free(sgenv_statep, instance); 508 "structure for inst %d.", instance); 513 softsp->instance = instance; 524 ddi_soft_state_free(sgenv_statep, instance); 589 int instance; local [all...] |
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ |
H A D | acebus.c | 229 int instance; local 236 * Allocate soft state for this instance. 238 instance = ddi_get_instance(dip); 239 if (ddi_soft_state_zalloc(per_acebus_state, instance) 244 ebus_p = get_acebus_soft_state(instance); 252 free_acebus_soft_state(instance); 260 free_acebus_soft_state(instance); 274 instance = ddi_get_instance(dip); 275 ebus_p = get_acebus_soft_state(instance); 282 free_acebus_soft_state(instance); 298 int instance = ddi_get_instance(dip); local [all...] |
H A D | hsc.c | 1496 scsb_hsc_attach(dev_info_t *dip, void *scsb_handle, int instance) argument 1537 rc = ddi_soft_state_zalloc(hsc_state, instance); 1541 hsc = (hsc_state_t *)ddi_get_soft_state(hsc_state, instance); 1544 hsc->instance = instance; 1591 ddi_soft_state_free(hsc_state, instance); 1605 ddi_soft_state_free(hsc_state, instance); 1690 ddi_soft_state_free(hsc_state, instance); 1706 ddi_soft_state_free(hsc_state, instance); 1754 ddi_soft_state_free(hsc_state, instance); 1785 scsb_hsc_detach(dev_info_t *dip, void *scsb_handle, int instance) argument 1859 int instance = ddi_get_instance(dip); local 1914 int instance = ddi_get_instance(dip); local 1968 int instance = ddi_get_instance(dip); local 1986 hsc_ac_op(int instance, int pslotnum, int op, void *arg) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | bscbus.c | 159 * Each instance of the host interface has 3 registers on the H8: 246 /* Changes to these are protected by the instance ch_mutex mutex */ 305 int instance; member in struct:bscbus_state 402 (void) strlog(csp->ssp->majornum, csp->ssp->instance, 411 bscbus_getstate(dev_info_t *dip, int instance, const char *caller) argument 419 * Use the instance number from the <dip>; also, 422 instance = ddi_get_instance(dip); 431 instance = -1; 435 if (instance >= 0) 436 ssp = ddi_get_soft_state(bscbus_statep, instance); 2336 bscbus_unattach(struct bscbus_state *ssp, int instance) argument 2369 int instance; local 2446 int instance; local [all...] |
H A D | lofi.c | 38 * during attach, and is instance number 0. lofiadm communicates with lofi 41 * are identified by lofi instance number, and the instance number is also used 49 * To support virtual disks, the instance number space is divided to two 50 * parts, upper part for instance number and lower part for minor number 83 * unmap and remove the lofi instance. 87 * last lofi_close will perform the unmapping and this lofi instance will be 95 * will perform unmap and this lofi instance will be removed. 98 * Once ls_cleanup is set for the instance, we do not allow lofi_open() 99 * calls to succeed and can have last lofi_close() to remove the instance 366 int instance; local 444 int instance; local 1788 int instance; local 1809 int instance = ddi_get_instance(lsp->ls_dip); local 1877 int instance = ddi_get_instance(dip); local 1949 int instance = ddi_get_instance(dip); local 1995 int instance = ddi_get_instance(dip); local [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_isr.c | 174 QL_PRINT_3(CE_CONT, "(%d): started\n", ha->instance); 182 QL_PRINT_3(CE_CONT, "(%d): power down exit\n", ha->instance); 414 ha->instance); 536 QL_PRINT_3(CE_CONT, "(%d): done\n", ha->instance); 541 ha->instance); 582 ha->instance, hccr_reg, stat, 681 QL_PRINT_3(CE_CONT, "(%d): started\n", ha->instance); 720 QL_PRINT_3(CE_CONT, "(%d): done\n", ha->instance); 752 QL_PRINT_3(CE_CONT, "(%d): started\n", ha->instance); 790 ha->instance); [all...] |
/illumos-gate/usr/src/uts/sun4u/tazmo/io/ |
H A D | envctrl.c | 414 int instance; local 432 instance = ddi_get_instance(dip); 438 if (!(unitp = ddi_get_soft_state(envctrlsoft_statep, instance))) 467 if (ddi_soft_state_zalloc(envctrlsoft_statep, instance) != 0) { 472 unitp = ddi_get_soft_state(envctrlsoft_statep, instance); 507 instance); 515 instance); 520 (void) sprintf(name, "envctrl%d", instance); 522 if (ddi_create_minor_node(dip, name, S_IFCHR, instance, DDI_PSEUDO, 749 int instance; local 821 minor_t instance = getminor(dev); local 853 int instance; local 2453 envctrl_add_encl_kstats(struct envctrlunit *unitp, int type, int instance, uint8_t val) argument 2939 int i, instance; local 3253 envctrl_mod_encl_kstats(struct envctrlunit *unitp, int type, int instance, uint8_t val) argument 3274 int instance; local [all...] |
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu.c | 310 int instance; local 322 instance = ddi_get_instance(dip); 323 if (instance != 0) { 325 "Invaild instance => %d", instance); 330 meta_minor = instance | META_NODE_MASK; 332 user_minor = instance | USER_NODE_MASK; 530 * If the node which will open is User-Access-Node, and instance 1165 oplmsu_set_lpathnum(int lnk_id, int instance) argument 1176 lpath->path_no = instance; /* Se 1199 int instance; local 1314 int instance; local 1715 int instance; local 1866 int instance; local [all...] |
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/ |
H A D | Poold.java | 300 * Singleton instance of Poold. 302 private static Poold instance; field in class:Poold 634 * Only one poold instance should be running per system. 696 * severity doesn't match that of an existing instance. 701 if (instance == null) 702 return (instance = new Poold(consoleSeverity)); 708 return (instance); 877 instance = null; 956 * will have ERROR severity unless an instance of 976 * will have ERROR severity unless an instance o [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/fpc/ |
H A D | fpc-kstats.c | 70 static kstat_t *fpc_create_cntr_kstat(char *name, int instance, 455 fpc_create_cntr_kstat(char *name, int instance, int (*update)(kstat_t *, int), argument 464 FPC_DBG1("fpc_create_cntr_kstat: name: %s instance: %d\n", 465 name, instance); 471 if ((counters_ksp = kstat_create(name, instance, "counters", "bus", 474 name, instance);
|
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_kstats.c | 587 bge_setup_named_kstat(bge_t *bgep, int instance, char *name, argument 596 ksp = kstat_create(BGE_DRIVER_NAME, instance, name, "net", 629 bge_init_kstats(bge_t *bgep, int instance) argument 633 BGE_TRACE(("bge_init_kstats($%p, %d)", (void *)bgep, instance)); 638 kstat_create(BGE_DRIVER_NAME, instance, 647 instance, "statistics", bge_statistics, 651 instance, "statistics", bge_stat_val, 656 instance, "chipid", bge_chipid, 660 instance, "driverinfo", bge_driverinfo, 665 instance, "serde [all...] |
/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/sun4u/io/pci/ |
H A D | simba.c | 343 int instance; local 345 instance = getminor((dev_t)arg); 347 instance); 354 *result = (void *)(uintptr_t)instance; 377 int instance; local 394 instance = ddi_get_instance(devi); 395 if (ddi_soft_state_zalloc(simba_state, instance) != DDI_SUCCESS) 398 instance); 406 if (ddi_create_minor_node(devi, "devctl", S_IFCHR, instance, 409 ddi_soft_state_free(simba_state, instance); [all...] |
/illumos-gate/usr/src/lib/libshare/smbfs/ |
H A D | smbfs_scfutil.c | 111 * Check if instance with given name exists for a service. 112 * Returns 0 is instance exist 133 * Create a service instance. returns 0 if successful. 134 * If instance already exists enable it. 140 char *instance; local 152 instance = malloc(sz); 153 if (!instance) { 156 (void) snprintf(instance, sz, "%s:%s", serv_prefix, inst_name); 162 if (smf_enable_instance(instance, 0)) 168 if (smf_enable_instance(instance, [all...] |
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394.c | 196 int instance = ddi_get_instance(dip); local 205 if ((avp = AV1394_INST2STATE(instance)) == NULL) { 214 if (ddi_soft_state_zalloc(av1394_statep, instance) != 0) { 220 avp = AV1394_INST2STATE(instance); 233 avp->av_instance = instance; 267 int instance = ddi_get_instance(dip); local 272 if ((avp = AV1394_INST2STATE(instance)) == NULL) {
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_kstats.c | 203 nge_setup_named_kstat(nge_t *ngep, int instance, char *name, argument 212 ksp = kstat_create(NGE_DRIVER_NAME, instance, name, "net", 246 nge_init_kstats(nge_t *ngep, int instance) argument 248 NGE_TRACE(("nge_init_kstats($%p, %d)", (void *)ngep, instance)); 251 instance, "statistics", nge_statistics, 255 instance, "chipinfo", nge_chipinfo, 259 instance, "driver-debug", nge_debuginfo,
|
/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/sun4u/io/ |
H A D | mc-us3.c | 229 int instance, len, err; local 231 /* get the instance of this devi */ 232 instance = ddi_get_instance(devi); 240 softsp = ddi_get_soft_state(mcp, instance); 242 instance)); 259 instance); 267 if (ddi_soft_state_zalloc(mcp, instance) != DDI_SUCCESS) 270 softsp = ddi_get_soft_state(mcp, instance); 278 instance, "portid")); 283 instance, softs 394 int instance; local [all...] |
H A D | sysiosbus.c | 445 int instance, error; local 455 instance = ddi_get_instance(devi); 462 softsp = ddi_get_soft_state(sbusp, instance); 476 cpr_softsp = ddi_get_soft_state(sbus_cprp, instance); 481 ddi_soft_state_free(sbus_cprp, instance); 490 if (ddi_soft_state_zalloc(sbusp, instance) != DDI_SUCCESS) 493 softsp = ddi_get_soft_state(sbusp, instance); 596 ddi_soft_state_free(sbusp, instance); 604 int instance; local 616 instance 640 int instance, pic; local 2427 int instance = ddi_get_instance(dip); 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/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/fibre-channel/ulp/ |
H A D | fcsm.c | 296 * has worked -- if this works, then we know that each instance 463 int instance; local 466 instance = getminor((dev_t)arg); 470 *result = (void *)(long)instance; /* minor number is instance */ 493 int instance; local 496 instance = ddi_get_instance(pinfo->port_dip); 508 "instance 0x%x", instance)); 518 if (fcsm_handle_port_attach(pinfo, s_id, instance) 582 fcsm_handle_port_attach(fc_ulp_port_info_t *pinfo, uint32_t s_id, int instance) argument 927 int instance; local 1509 int status, instance, count; local 2372 fcsm_init_job(fcsm_job_t *job, int instance, uint32_t command, uint32_t flags, opaque_t arg, opaque_t caller_priv, void (*comp)(opaque_t, fcsm_job_t *, int), opaque_t comp_arg) argument 3219 fcsm_ct_passthru(int instance, fcio_t *fcio, int sleep, int job_flags, void (*func)(fcio_t *)) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/qlc/ |
H A D | qlc.c | 288 mdb_printf("%<u>%-?s\t%-45s%</u>\n\n", "baseaddr", "instance"); 302 qlstate->hba.base_address, qlstate->instance); 434 "version", "instance list"); 474 qlstate->instance); 477 qlstate->instance); 502 * for the specificed qlc instance(s). 525 uint32_t instance; local 609 instance = (uint32_t)mdb_strtoull( 612 /* find the correct instance to change */ 623 if (qlstate->instance [all...] |