Lines Matching defs:usb_ac_statep
290 void *usb_ac_statep;
367 if ((rval = ddi_soft_state_init(&usb_ac_statep,
375 ddi_soft_state_fini(&usb_ac_statep);
389 ddi_soft_state_fini(&usb_ac_statep);
441 if (ddi_soft_state_zalloc(usb_ac_statep, instance) != DDI_SUCCESS) {
449 uacp = (usb_ac_state_t *)ddi_get_soft_state(usb_ac_statep, instance);
472 ddi_soft_state_free(usb_ac_statep, uacp->usb_ac_instance);
484 ddi_soft_state_free(usb_ac_statep, uacp->usb_ac_instance);
568 uacp = ddi_get_soft_state(usb_ac_statep, instance);
707 ddi_soft_state_free(usb_ac_statep, uacp->usb_ac_instance);
719 usb_ac_state_t *uacp = ddi_get_soft_state(usb_ac_statep, inst);
738 usb_ac_state_t *uacp = ddi_get_soft_state(usb_ac_statep, inst);
853 uacp = ddi_get_soft_state(usb_ac_statep, instance);
2364 usb_ac_statep, ddi_get_instance(dip));
2398 usb_ac_statep, ddi_get_instance(dip));
2427 usb_ac_statep, ddi_get_instance(dip));
2471 usb_ac_statep, ddi_get_instance(dip));
3467 usb_ac_pm_busy_component(usb_ac_state_t *usb_ac_statep)
3469 ASSERT(!mutex_owned(&usb_ac_statep->usb_ac_mutex));
3471 if (usb_ac_statep->usb_ac_pm != NULL) {
3472 mutex_enter(&usb_ac_statep->usb_ac_mutex);
3473 usb_ac_statep->usb_ac_pm->acpm_pm_busy++;
3476 usb_ac_statep->usb_ac_log_handle,
3478 usb_ac_statep->usb_ac_pm->acpm_pm_busy);
3480 mutex_exit(&usb_ac_statep->usb_ac_mutex);
3482 if (pm_busy_component(usb_ac_statep->usb_ac_dip, 0) !=
3484 mutex_enter(&usb_ac_statep->usb_ac_mutex);
3485 usb_ac_statep->usb_ac_pm->acpm_pm_busy--;
3488 usb_ac_statep->usb_ac_log_handle,
3490 usb_ac_statep->usb_ac_pm->acpm_pm_busy);
3492 mutex_exit(&usb_ac_statep->usb_ac_mutex);
3499 usb_ac_pm_idle_component(usb_ac_state_t *usb_ac_statep)
3501 ASSERT(!mutex_owned(&usb_ac_statep->usb_ac_mutex));
3503 if (usb_ac_statep->usb_ac_pm != NULL) {
3504 if (pm_idle_component(usb_ac_statep->usb_ac_dip, 0) ==
3506 mutex_enter(&usb_ac_statep->usb_ac_mutex);
3507 ASSERT(usb_ac_statep->usb_ac_pm->acpm_pm_busy > 0);
3508 usb_ac_statep->usb_ac_pm->acpm_pm_busy--;
3511 usb_ac_statep->usb_ac_log_handle,
3513 usb_ac_statep->usb_ac_pm->acpm_pm_busy);
3515 mutex_exit(&usb_ac_statep->usb_ac_mutex);