Lines Matching refs:hubd_t

100 static usb_port_t  hubd_get_port_num(hubd_t *, struct devctl_iocdata *);
101 static dev_info_t *hubd_get_child_dip(hubd_t *, usb_port_t);
102 static uint_t hubd_cfgadm_state(hubd_t *, usb_port_t);
103 static int hubd_toggle_port(hubd_t *, usb_port_t);
104 static void hubd_register_cpr_callback(hubd_t *);
105 static void hubd_unregister_cpr_callback(hubd_t *);
278 hubd_t *root_hubd;
290 root_hubd = kmem_zalloc(sizeof (hubd_t), KM_SLEEP);
396 kmem_free(root_hubd, sizeof (hubd_t));
432 kmem_free(usba_device->usb_root_hubd, sizeof (hubd_t));
501 static int hubd_cleanup(dev_info_t *dip, hubd_t *hubd);
502 static int hubd_check_ports(hubd_t *hubd);
504 static int hubd_open_intr_pipe(hubd_t *hubd);
505 static void hubd_start_polling(hubd_t *hubd, int always);
506 static void hubd_stop_polling(hubd_t *hubd);
507 static void hubd_close_intr_pipe(hubd_t *hubd);
515 hubd_t *hubd,
521 static int hubd_delete_child(hubd_t *hubd, usb_port_t port, uint_t flag,
524 static int hubd_get_hub_descriptor(hubd_t *hubd);
526 static int hubd_get_hub_status_words(hubd_t *hubd, uint16_t *status);
528 static int hubd_reset_port(hubd_t *hubd, usb_port_t port);
530 static int hubd_get_hub_status(hubd_t *hubd);
532 static int hubd_handle_port_connect(hubd_t *hubd, usb_port_t port);
534 static int hubd_disable_port(hubd_t *hubd, usb_port_t port);
536 static int hubd_enable_port(hubd_t *hubd, usb_port_t port);
537 static int hubd_recover_disabled_port(hubd_t *hubd, usb_port_t port);
539 static int hubd_determine_port_status(hubd_t *hubd, usb_port_t port,
542 static int hubd_enable_all_port_power(hubd_t *hubd);
543 static int hubd_disable_all_port_power(hubd_t *hubd);
544 static int hubd_disable_port_power(hubd_t *hubd, usb_port_t port);
545 static int hubd_enable_port_power(hubd_t *hubd, usb_port_t port);
547 static void hubd_free_usba_device(hubd_t *hubd, usba_device_t *usba_device);
549 static int hubd_can_suspend(hubd_t *hubd);
550 static void hubd_restore_device_state(dev_info_t *dip, hubd_t *hubd);
551 static int hubd_setdevaddr(hubd_t *hubd, usb_port_t port);
552 static void hubd_setdevconfig(hubd_t *hubd, usb_port_t port);
554 static int hubd_register_events(hubd_t *hubd);
555 static void hubd_do_callback(hubd_t *hubd, dev_info_t *dip,
557 static void hubd_run_callbacks(hubd_t *hubd, usba_event_t type);
558 static void hubd_post_event(hubd_t *hubd, usb_port_t port, usba_event_t type);
559 static void hubd_create_pm_components(dev_info_t *dip, hubd_t *hubd);
565 static int hubd_cpr_suspend(hubd_t *hubd);
568 static int hubd_check_same_device(hubd_t *hubd, usb_port_t port);
570 static int hubd_init_power_budget(hubd_t *hubd);
601 hubd_t *
626 hubd_pm_busy_component(hubd_t *hubd, dev_info_t *dip, int component)
645 hubd_pm_idle_component(hubd_t *hubd, dev_info_t *dip, int component)
666 hubd_set_child_pwrlvl(hubd_t *hubd, usb_port_t port, uint8_t power)
708 hubd_child_dip2port(hubd_t *hubd, dev_info_t *dip)
731 hubd_can_suspend(hubd_t *hubd)
770 hubd_resume_port(hubd_t *hubd, usb_port_t port)
921 hubd_suspend_port(hubd_t *hubd, usb_port_t port)
1029 hubd_post_attach(hubd_t *hubd, usb_port_t port, struct attachspec *as)
1056 hubd_post_detach(hubd_t *hubd, usb_port_t port, struct detachspec *ds)
1097 hubd_post_power(hubd_t *hubd, usb_port_t port, pm_bp_child_pwrchg_t *bpc,
1152 hubd_t *hubd;
1296 hubd_config_one(hubd_t *hubd, int port)
1371 hubd_t *hubd = hubd_get_soft_state(dip);
1418 hubd_t *hubd = hubd_get_soft_state(dip);
1489 hubd_t *hubd;
1623 hubd_pwrlvl0(hubd_t *hubd)
1676 hubd_pwrlvl1(hubd_t *hubd)
1687 hubd_pwrlvl2(hubd_t *hubd)
1697 hubd_pwrlvl3(hubd_t *hubd)
1752 hubd_t *hubd;
1819 hubd_t *hubd = NULL;
2114 hubd_t *hubd = hubd_get_soft_state(dip);
2140 hubd_setdevaddr(hubd_t *hubd, usb_port_t port)
2234 hubd_setdevconfig(hubd_t *hubd, usb_port_t port)
2293 hubd_t *hubd;
2381 hubd_t *root_hubd = (hubd_t *)arg;
2444 hubd_t *root_hubd;
2499 hubd_restore_device_state(dev_info_t *dip, hubd_t *hubd)
2730 hubd_cleanup(dev_info_t *dip, hubd_t *hubd)
2946 hubd_determine_port_connection(hubd_t *hubd)
2994 hubd_check_ports(hubd_t *hubd)
3113 hubd_get_hub_descriptor(hubd_t *hubd)
3230 hubd_get_hub_status_words(hubd_t *hubd, uint16_t *status)
3281 hubd_open_intr_pipe(hubd_t *hubd)
3320 hubd_start_polling(hubd_t *hubd, int always)
3378 hubd_stop_polling(hubd_t *hubd)
3411 hubd_close_intr_pipe(hubd_t *hubd)
3446 hubd_t *hubd = (hubd_t *)(reqp->intr_client_private);
3521 hubd_t *hubd = (hubd_t *)(reqp->intr_client_private);
3648 hubd_t *hubd = hd_arg->hubd;
4084 hubd_handle_port_connect(hubd_t *hubd, usb_port_t port)
4398 hubd_get_hub_status(hubd_t *hubd)
4609 hubd_reset_port(hubd_t *hubd, usb_port_t port)
4784 hubd_enable_port(hubd_t *hubd, usb_port_t port)
4831 hubd_disable_port(hubd_t *hubd, usb_port_t port)
4894 hubd_determine_port_status(hubd_t *hubd, usb_port_t port,
5175 hubd_recover_disabled_port(hubd_t *hubd, usb_port_t port)
5212 hubd_enable_all_port_power(hubd_t *hubd)
5314 hubd_enable_port_power(hubd_t *hubd, usb_port_t port)
5355 hubd_disable_all_port_power(hubd_t *hubd)
5380 hubd_disable_port_power(hubd_t *hubd, usb_port_t port)
5424 hubd_select_device_configuration(hubd_t *hubd, usb_port_t port,
5500 hubd_get_this_config_cloud(hubd_t *hubd, dev_info_t *dip,
5687 hubd_get_all_device_config_cloud(hubd_t *hubd, dev_info_t *dip,
5739 hubd_ready_device(hubd_t *hubd, dev_info_t *child_dip, usba_device_t *child_ud,
5823 hubd_t *hubd,
6438 hubd_delete_child(hubd_t *hubd, usb_port_t port, uint_t flag, boolean_t retry)
6507 hubd_free_usba_device(hubd_t *hubd, usba_device_t *usba_device)
6544 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6569 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6610 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6637 hubd_do_callback(hubd_t *hubd, dev_info_t *cdip, ddi_eventcookie_t cookie)
6651 hubd_run_callbacks(hubd_t *hubd, usba_event_t type)
6680 hubd_post_event(hubd_t *hubd, usb_port_t port, usba_event_t type)
6831 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6911 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6941 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6971 hubd_cpr_suspend(hubd_t *hubd)
7103 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
7119 hubd_register_events(hubd_t *hubd)
7146 hubd_t *hubd = cpr_cb->statep;
7204 hubd_register_cpr_callback(hubd_t *hubd)
7224 hubd_unregister_cpr_callback(hubd_t *hubd)
7245 hubd_create_pm_components(dev_info_t *dip, hubd_t *hubd)
7310 hubd_t *hubd;
7344 hubd_t *hubd;
7378 hubd_t *hubd;
8027 hubd_get_ancestry_str(hubd_t *hubd)
8031 hubd_t *phubd;
8079 hubd_get_port_num(hubd_t *hubd, struct devctl_iocdata *dcp)
8101 hubd_get_child_dip(hubd_t *hubd, usb_port_t port)
8127 hubd_cfgadm_state(hubd_t *hubd, usb_port_t port)
8176 hubd_toggle_port(hubd_t *hubd, usb_port_t port)
8270 hubd_init_power_budget(hubd_t *hubd)
8277 hubd_t *phubd = NULL;
8410 hubd_t *hubd;
8485 hubd_t *hubd = hubd_get_soft_state(dip);
8546 hubd_t *hubd = hubd_get_soft_state(dip);
8606 hubd_wait_for_hotplug_exit(hubd_t *hubd)
8640 hubd_t *hubd = hd_arg->hubd;
8838 hubd_check_same_device(hubd_t *hubd, usb_port_t port)
8874 hubd_t *hubd;