Lines Matching defs:instance

447 	int	instance = ddi_get_instance(devi);
459 instance, bus_addr);
474 int instance;
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);
529 instance);
540 instance, bus_addr);
550 if (ddi_soft_state_zalloc(pshot_softstatep, instance) !=
554 pshot = ddi_get_soft_state(pshot_softstatep, instance);
556 pshot->instance = instance;
563 pshot->nodes[i].minor = pshot_minor_encode(instance, i);
569 pshot->nodes[i].minor = pshot_minor_encode(instance, i);
604 instance,
617 instance,
627 instance * drv_usectohz(60000000));
646 instance);
674 if (instance == 0) {
679 " for the root node\n", instance);
704 " STRICT PARENT\n", instance);
712 " INVOLVED PARENT\n", instance);
731 instance);
745 " NO-PM_COMPONENTS PARENT\n", instance);
759 instance);
778 " raise power to MAXPWR\n", instance);
793 cmn_err(CE_CONT, "pshot%d attached\n", instance);
801 ddi_soft_state_free(pshot_softstatep, instance);
807 instance);
809 pshot = ddi_get_soft_state(pshot_softstatep, instance);
818 " raise power to MAXPWR\n", instance);
831 instance);
843 int instance = ddi_get_instance(devi);
845 pshot_t *pshot = ddi_get_soft_state(pshot_softstatep, instance);
855 cmn_err(CE_CONT, "pshot%d: DDI_DETACH\n", instance);
863 " power off\n", instance);
884 instance);
894 " failed\n", instance);
926 cmn_err(CE_CONT, "pshot%d detached\n", instance);
930 ddi_soft_state_free(pshot_softstatep, instance);
935 cmn_err(CE_CONT, "pshot%d: DDI_SUSPEND\n", instance);
962 instance);
972 instance);
1005 * returns a minor number encoded with instance <inst> and an index <nodenum>
1006 * that identifies the minor node for this instance
1016 * returns instance of <minor>
1025 * returns node number indexing a minor node for the instance in <minor>
1049 int instance;
1061 instance = ddi_get_instance(dip);
1062 pshot = ddi_get_soft_state(pshot_softstatep, instance);
1136 name, instance, childname, childinstance,
1156 " busy = %d\n", name, instance,
1183 " busy = %d\n", name, instance,
1213 name, instance, childname, childinstance,
1237 " busy = %d\n", name, instance,
1259 " busy = %d\n", name, instance,
1284 name, instance, childname,
1322 int instance = ddi_get_instance(dip);
1327 pshot = ddi_get_soft_state(pshot_softstatep, instance);
1347 name, instance, pshot->level, level, pshot->busy);
1352 name, instance, cmpt, pshot->level, level);
1371 int instance = ddi_get_instance(dip);
1381 pshot = ddi_get_soft_state(pshot_softstatep, instance);
1393 name, instance, ddi_node_name(bpc->bpc_dip),
1413 name, instance,
1445 " (%d->%d): enter", name, instance,
1463 name, instance,
1474 name, instance,
1498 name, instance,
1519 name, instance,
1533 name, instance, ddi_node_name(bpc->bpc_dip),
1548 instance, ddi_node_name(bpc->bpc_dip),
1563 name, instance,
1598 " busy = %d\n", name, instance,
1615 name, instance, ddi_node_name(bphc->bphc_dip),
1642 " busy = %d\n", name, instance,
1767 int instance;
1773 instance = pshot_minor_decode_inst(getminor(*devp));
1774 if ((pshot = ddi_get_soft_state(pshot_softstatep, instance)) == NULL)
1778 * Access is currently determined on a per-instance basis.
1793 cmn_err(CE_CONT, "pshot%d open\n", instance);
1806 int instance;
1812 instance = pshot_minor_decode_inst(getminor(dev));
1813 if ((pshot = ddi_get_soft_state(pshot_softstatep, instance)) == NULL)
1820 cmn_err(CE_CONT, "pshot%d closed\n", instance);
1835 int instance;
1839 instance = pshot_minor_decode_inst(getminor(dev));
1840 if ((pshot = ddi_get_soft_state(pshot_softstatep, instance)) == NULL)
1849 instance, (void *)dev, cmd, (void *)arg, mode);
1879 int instance;
1886 instance = pshot->instance;
1895 instance, pshot_devctls[i].ioctl_char);
1908 " failed, rv = %d", instance, rv);
1925 " DEVCTL_DEVICE_RESET\n", instance);
1934 " DEVCTL_BUS_QUIESCE\n", instance);
1950 " DEVCTL_BUS_UNQUIESCE\n", instance);
1988 " DEVCTL_PM_BUSY_COMP\n", instance);
1996 " %d busy_ioctl %d\n", instance, pshot->busy,
2011 " DEVCTL_PM_BUSY_COMP_TEST\n", instance);
2019 instance);
2024 " comp 0 busy %d busy_ioctl %d\n", instance,
2037 " DEVCTL_PM_IDLE_COMP\n", instance);
2047 " busy %d busy_ioctl %d\n", instance,
2066 " DEVCTL_PM_RAISE_PWR\n", instance);
2075 " to level %d\n", instance, pshot->level);
2088 " DEVCTL_PM_LOWER_PWR\n", instance);
2097 " to level %d\n", instance, pshot->level);
2110 " DEVCTL_PM_CHANGE_PWR_LOW\n", instance);
2120 " level %d\n", instance, pshot->level);
2133 " DEVCTL_PM_CHANGE_PWR_HIGH\n", instance);
2144 " level %d\n", instance, pshot->level);
2157 " DEVCTL_PM_POWER\n", instance);
2165 instance);
2170 " POWER_FLAG = %d\n", instance, state);
2182 " DEVCTL_PM_FAIL_SUSPEND\n", instance);
2189 instance);
2205 instance);
2211 instance, ((state == 0) ? "INVOLVED" : "STRICT"));
2226 " DEVCTL_PM_BUS_NO_INVOL\n", instance);
2258 int instance;
2265 instance = pshot->instance;
2275 instance, pshot_devctls[i].ioctl_char);
2282 " DEVCTL_PM_POWER\n", instance);
2291 " DEVCTL_PM_POWER\n", instance);
2307 " DEVCTL_PM_POWER\n", instance);
2348 int instance = ddi_get_instance(dip);
2349 pshot_t *pshot = ddi_get_soft_state(pshot_softstatep, instance);
2355 instance, (void *)dip, (void *)rdip,
2369 int instance = ddi_get_instance(dip);
2370 pshot_t *pshot = ddi_get_soft_state(pshot_softstatep, instance);
2377 instance, (void *)dip, (void *)rdip,
2392 int instance = ddi_get_instance(dip);
2393 pshot_t *pshot = ddi_get_soft_state(pshot_softstatep, instance);
2401 instance, (void *)dip, (void *)cb->ndi_evtcb_dip,
2414 int instance = ddi_get_instance(dip);
2415 pshot_t *pshot = ddi_get_soft_state(pshot_softstatep, instance);
2423 instance, (void *)dip, (void *)rdip,
2431 instance, (void *)dip, (void *)cookie,
2457 pshot->instance, event_tag,
2468 pshot->instance, event_tag,
2500 pshot->instance, (void *)dip, (void *)cookie,
2516 "pshot_event_cb\n", pshot->instance,
2537 int instance = ddi_get_instance(parent);
2547 pshot = ddi_get_soft_state(pshot_softstatep, instance);
2881 * BUS_CONFIG_ONE: setup a child nexus instance.
2938 * BUS_CONFIG_ONE: setup a child leaf device instance.
3752 pshot->instance);
3763 pshot->instance, rval);
3766 pshot->instance * drv_usectohz(60000000));