Lines Matching refs:hubpm
673 hub_power_t *hubpm; in hubd_set_child_pwrlvl() local
680 hubpm = hubd->h_hubpm; in hubd_set_child_pwrlvl()
684 old_power += hubpm->hubp_child_pwrstate[portno]; in hubd_set_child_pwrlvl()
736 hub_power_t *hubpm; in hubd_can_suspend() local
740 hubpm = hubd->h_hubpm; in hubd_can_suspend()
751 if (gethrtime() < (hubpm->hubp_time_at_full_power + in hubd_can_suspend()
752 hubpm->hubp_min_pm_threshold)) { in hubd_can_suspend()
759 total_power += hubpm->hubp_child_pwrstate[port]; in hubd_can_suspend()
1626 hub_power_t *hubpm; in hubd_pwrlvl0() local
1637 hubpm = hubd->h_hubpm; in hubd_pwrlvl0()
1645 hubpm->hubp_current_power = USB_DEV_OS_PWR_OFF; in hubd_pwrlvl0()
1700 hub_power_t *hubpm; in hubd_pwrlvl3() local
1705 hubpm = hubd->h_hubpm; in hubd_pwrlvl3()
1708 ASSERT(hubpm->hubp_current_power == USB_DEV_OS_PWR_OFF); in hubd_pwrlvl3()
1719 hubpm->hubp_current_power = USB_DEV_OS_FULL_PWR; in hubd_pwrlvl3()
1720 hubpm->hubp_time_at_full_power = gethrtime(); in hubd_pwrlvl3()
1754 hub_power_t *hubpm; in usba_hubdi_power() local
1764 hubpm = hubd->h_hubpm; in usba_hubdi_power()
1767 if (USB_DEV_PWRSTATE_OK(hubpm->hubp_pwr_states, level)) { in usba_hubdi_power()
1770 "hubp_pwr_states=0x%x", level, hubpm->hubp_pwr_states); in usba_hubdi_power()
2763 hub_power_t *hubpm; in hubd_cleanup() local
2888 hubpm = hubd->h_hubpm; in hubd_cleanup()
2890 if ((hubpm) && (hubd->h_dev_state != USB_DEV_DISCONNECTED)) { in hubd_cleanup()
2915 if (hubpm) { in hubd_cleanup()
2916 if (hubpm->hubp_child_pwrstate) { in hubd_cleanup()
2917 kmem_free(hubpm->hubp_child_pwrstate, in hubd_cleanup()
2920 kmem_free(hubpm, sizeof (hub_power_t)); in hubd_cleanup()
3792 hub_power_t *hubpm; in hubd_hotplug_thread() local
3846 hubpm = hubd->h_hubpm; in hubd_hotplug_thread()
3849 hubpm->hubp_current_power = USB_DEV_OS_FULL_PWR; in hubd_hotplug_thread()
3850 hubpm->hubp_time_at_full_power = gethrtime(); in hubd_hotplug_thread()
7545 hub_power_t *hubpm; in hubd_create_pm_components() local
7551 hubpm = kmem_zalloc(sizeof (hub_power_t), KM_SLEEP); in hubd_create_pm_components()
7553 hubd->h_hubpm = hubpm; in hubd_create_pm_components()
7554 hubpm->hubp_hubd = hubd; in hubd_create_pm_components()
7555 hubpm->hubp_pm_capabilities = 0; in hubd_create_pm_components()
7556 hubpm->hubp_current_power = USB_DEV_OS_FULL_PWR; in hubd_create_pm_components()
7557 hubpm->hubp_time_at_full_power = gethrtime(); in hubd_create_pm_components()
7558 hubpm->hubp_min_pm_threshold = hubdi_min_pm_threshold * NANOSEC; in hubd_create_pm_components()
7561 hubpm->hubp_child_pwrstate = (uint8_t *) in hubd_create_pm_components()
7582 hubpm->hubp_wakeup_enabled = 1; in hubd_create_pm_components()
7583 hubpm->hubp_pwr_states = (uint8_t)pwr_states; in hubd_create_pm_components()
8936 hub_power_t *hubpm; in hubd_reset_thread() local
8984 hubpm = hubd->h_hubpm; in hubd_reset_thread()
8987 hubpm->hubp_current_power = USB_DEV_OS_FULL_PWR; in hubd_reset_thread()
8988 hubpm->hubp_time_at_full_power = gethrtime(); in hubd_reset_thread()