/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_main.c | 2792 int instance; local 2814 instance = ddi_get_instance(devinfo); 2815 if (ddi_soft_state_zalloc(arn_soft_state_p, instance) != DDI_SUCCESS) { 3127 /* different instance has different WPA door */ 3228 ARN_NODENAME, instance); 3230 instance + 1, DDI_NT_NET_WIFI, 0); 3291 ddi_soft_state_free(arn_soft_state_p, instance);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cmlb.c | 671 * the rest is instance number 674 * the rest is instance number 1435 * Description: Create or adjust the minor device nodes for the instance. 1452 int instance, shift; local 1484 instance = ddi_get_instance(CMLB_DEVINFO(cl)); 1495 (instance << shift) | dmdp->minor, 1514 (instance << CMLBUNIT_FORCE_P0_SHIFT) | P0_RAW_DISK, 1522 (instance << CMLBUNIT_FORCE_P0_SHIFT) | P0_RAW_DISK, 1557 instance = ddi_get_instance(CMLB_DEVINFO(cl)); 1570 S_IFBLK, (instance << shif 2078 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...] |
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 | bscv.c | 495 int instance; local 498 instance = DEVICETOINSTANCE(dev); 502 *result = (void *)(uintptr_t)instance; 507 ssp = ddi_get_soft_state(bscv_statep, instance); 603 int instance; local 608 instance = ddi_get_instance(dip); 610 if (ddi_soft_state_zalloc(bscv_statep, instance) != 616 ssp = ddi_get_soft_state(bscv_statep, instance); 621 ssp->instance = instance; 769 int instance; local 809 int instance; local 840 int instance; local 1924 int instance; local 5076 int instance; local [all...] |
H A D | gld.c | 503 * gld_register -- called once per device instance (PPA) 508 * physical device instance. 620 * Per-instance initialization 718 cmn_err(CE_WARN, "%s%d instance != ppa %d", 910 /* We now have one fewer instance for this major device */ 1177 int instance; local 1181 instance = (vlan->gldv_id * GLD_VLAN_SCALE) + mac->gldm_ppa; 1183 if ((ksp = kstat_create(name, instance, 1188 name, instance); 1315 * any particular instance numbe [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | devinfo.c | 1014 mdb_printf(", instance #%d", dev->devi_instance); 1388 mdb_printf(" instance %d\n", dn.dn_instance); 1524 int instance; local 1532 instance = argv[0].a_un.a_val; 1534 instance = mdb_strtoull(argv->a_un.a_str); 1536 if (mdb_get_soft_state_byaddr(addr, instance, &statep, NULL, 0) == -1) { 1538 mdb_warn("instance %d unused\n", instance); 1541 "instance %d", instance); [all...] |
/illumos-gate/usr/src/lib/libshare/nfs/ |
H A D | libshare_nfs.c | 2218 * Public is special in that only one instance can 2731 /* Replace NULL with the correct instance */ 3150 char *instance = NULL; local 3165 ret = nfs_smf_set_prop(name, value, instance, sctype,
|
/illumos-gate/usr/src/uts/common/io/vioif/ |
H A D | vioif.c | 1683 int ret, instance; local 1689 instance = ddi_get_instance(devinfo); 1716 sc->sc_intrstat = kstat_create("vioif", instance, "intr", "controller", 1743 (void) snprintf(cache_name, CACHE_NAME_SIZE, "vioif%d_rx", instance);
|
/illumos-gate/usr/src/uts/intel/io/scsi/adapters/pvscsi/ |
H A D | pvscsi.c | 396 dev_err(pvs->dip, CE_WARN, "!failed to alloc device instance"); 2364 int instance; local 2378 instance = ddi_get_instance(dip); 2381 if (ddi_soft_state_zalloc(pvscsi_sstate, instance) != DDI_SUCCESS) { 2383 "!ddi_soft_state_zalloc() failed for instance %d", 2384 instance); 2388 if ((pvs = ddi_get_soft_state(pvscsi_sstate, instance)) == NULL) { 2389 cmn_err(CE_WARN, "!failed to get soft state for instance %d", 2390 instance); 2400 /* Setup HBA instance */ 2509 int instance; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | log_sysevent.c | 1776 int32_t instance; local 1786 instance = fnvlist_lookup_int32(nvlist, DEV_INSTANCE); 1798 (void) snprintf(name, sizeof (name), "%d", instance);
|
H A D | cpu.c | 3115 int instance = cp->cpu_id; local 3131 ksp = kstat_create_zone(module, instance, (name), class, \ 3140 module, instance, (name));
|
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_main2.c | 2095 * ========== Per-instance setup/teardown code ========== 3631 int instance; local 3648 instance = ddi_get_instance(devinfo); 3650 BGE_GTRACE(("bge_attach($%p, %d) instance %d", 3651 (void *)devinfo, cmd, instance)); 3680 BGE_DRIVER_NAME, instance); 4061 bge_init_kstats(bgep, instance);
|
/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...] |
H A D | fcip.c | 771 int instance; local 886 * allocate soft state for this instance 888 instance = ddi_get_instance(fport->fcipp_dip); 890 instance) != DDI_SUCCESS) { 893 "soft state alloc failed", instance); 897 fptr = ddi_get_soft_state(fcip_softp, instance); 902 "failure to get soft state", instance); 921 fptr->fcip_instance = instance; 979 " instance: 0x%x", instance); 2060 int instance; local 2260 int instance; local 2519 int instance; local 4950 int instance; local [all...] |
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | kernel.c | 90 kstat_create(const char *module, int instance, const char *name, argument
|
/illumos-gate/usr/src/lib/efcode/engine/ |
H A D | forth.c | 1166 instance(fcode_env_t *env) function 2287 system_message(env, "No instance context"); 2291 (instance_mode ? "instance" : ""),
|
/illumos-gate/usr/src/lib/libcfgadm/common/ |
H A D | config_admin.c | 1119 * mklog_common - make a logical name from the driver and instance 1146 * mklog_common - make a logical name from the driver and instance 2091 int instance; local 2128 instance = di_instance(node); 2130 if (node_minor == NULL || drv_name == NULL || instance == -1) { 2135 (void) sprintf(inst2, "%d", instance); 2138 * If the base matches driver and instance try and find a lib for it, 2141 * driver based logical ap_ids are derived from driver name + instance. 2287 * instance number is already represented in the plugin library list. 2288 * If the instance numbe [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | piclfrutree.c | 3520 int instance; local 3553 &instance, sizeof (instance))) != PICL_SUCCESS) { 3558 if (instance < 0) { 3597 "NODE", driver, instance, node_name, 3598 "PROP", PICL_PROP_LABEL, "string", "r", label, instance, 3600 "PROP", PICL_PROP_GEO_ADDR, "uint", "r", instance, 3982 portp->instance = *(int *)vbuf; 5519 portp->instance); 5521 portp->instance); [all...] |
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac.h | 383 int instance; member in struct:aac_softstate
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiohd/ |
H A D | audiohd.c | 307 int instance; local 309 instance = ddi_get_instance(dip); 366 if ((statep->hda_ksp = kstat_create(DRVNAME, instance, 2077 * This routine initailizes soft state of driver instance,
|
/illumos-gate/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt.h | 265 int instance; member in struct:qlt_state
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | adapter.h | 115 uint8_t instance; /* Associated adapter instance */ member in struct:port_info 116 uint8_t child_inst; /* Associated child instance */
|
/illumos-gate/usr/src/uts/common/io/hme/ |
H A D | hme.c | 1209 hmep->instance = ddi_get_instance(dip); 1609 * Remove instance of the intr 1629 * the structures for this instance. 1819 int instance; local 1822 instance = hmep->instance; 1825 if ((ksp = kstat_create(driver, instance, 1833 (void) snprintf(buf, sizeof (buf), "%sc%d", driver, instance); 1834 hmep->hme_intrstats = kstat_create(driver, instance, buf, "controller", 3488 hmep->instance, msg_buffe [all...] |
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_kstats.c | 1160 nxge_setup_local_kstat(p_nxge_t nxgep, int instance, char *name, argument 1168 ksp = kstat_create(NXGE_DRIVER_NAME, instance, name, "net", 1195 nxgep->instance, 1216 nxgep->instance, 1241 nxgep->instance, 1249 nxgep->instance, 1261 nxgep->instance, "TXC Stats", &nxge_txc_stats[0], 1270 nxgep->instance, "ZCP Stats", &nxge_zcp_stats[0], 1279 nxgep->instance, "FFLP Stats", &nxge_fflp_stats[0], 1288 (void) sprintf(mmac_name, "MMAC Stats%d", nxgep->instance); [all...] |