Lines Matching refs:hubd_t

98 static usb_port_t  hubd_get_port_num(hubd_t *, struct devctl_iocdata *);
99 static dev_info_t *hubd_get_child_dip(hubd_t *, usb_port_t);
100 static uint_t hubd_cfgadm_state(hubd_t *, usb_port_t);
101 static int hubd_toggle_port(hubd_t *, usb_port_t);
102 static void hubd_register_cpr_callback(hubd_t *);
103 static void hubd_unregister_cpr_callback(hubd_t *);
276 hubd_t *root_hubd;
288 root_hubd = kmem_zalloc(sizeof (hubd_t), KM_SLEEP);
394 kmem_free(root_hubd, sizeof (hubd_t));
430 kmem_free(usba_device->usb_root_hubd, sizeof (hubd_t));
499 static int hubd_cleanup(dev_info_t *dip, hubd_t *hubd);
500 static int hubd_check_ports(hubd_t *hubd);
502 static int hubd_open_intr_pipe(hubd_t *hubd);
503 static void hubd_start_polling(hubd_t *hubd, int always);
504 static void hubd_stop_polling(hubd_t *hubd);
505 static void hubd_close_intr_pipe(hubd_t *hubd);
513 hubd_t *hubd,
519 static int hubd_delete_child(hubd_t *hubd, usb_port_t port, uint_t flag,
522 static int hubd_get_hub_descriptor(hubd_t *hubd);
524 static int hubd_get_hub_status_words(hubd_t *hubd, uint16_t *status);
526 static int hubd_reset_port(hubd_t *hubd, usb_port_t port);
528 static int hubd_get_hub_status(hubd_t *hubd);
530 static int hubd_handle_port_connect(hubd_t *hubd, usb_port_t port);
532 static int hubd_disable_port(hubd_t *hubd, usb_port_t port);
534 static int hubd_enable_port(hubd_t *hubd, usb_port_t port);
535 static int hubd_recover_disabled_port(hubd_t *hubd, usb_port_t port);
537 static int hubd_determine_port_status(hubd_t *hubd, usb_port_t port,
540 static int hubd_enable_all_port_power(hubd_t *hubd);
541 static int hubd_disable_all_port_power(hubd_t *hubd);
542 static int hubd_disable_port_power(hubd_t *hubd, usb_port_t port);
543 static int hubd_enable_port_power(hubd_t *hubd, usb_port_t port);
545 static void hubd_free_usba_device(hubd_t *hubd, usba_device_t *usba_device);
547 static int hubd_can_suspend(hubd_t *hubd);
548 static void hubd_restore_device_state(dev_info_t *dip, hubd_t *hubd);
549 static int hubd_setdevaddr(hubd_t *hubd, usb_port_t port);
550 static void hubd_setdevconfig(hubd_t *hubd, usb_port_t port);
552 static int hubd_register_events(hubd_t *hubd);
553 static void hubd_do_callback(hubd_t *hubd, dev_info_t *dip,
555 static void hubd_run_callbacks(hubd_t *hubd, usba_event_t type);
556 static void hubd_post_event(hubd_t *hubd, usb_port_t port, usba_event_t type);
557 static void hubd_create_pm_components(dev_info_t *dip, hubd_t *hubd);
563 static int hubd_cpr_suspend(hubd_t *hubd);
566 static int hubd_check_same_device(hubd_t *hubd, usb_port_t port);
568 static int hubd_init_power_budget(hubd_t *hubd);
604 hubd_t *
629 hubd_pm_busy_component(hubd_t *hubd, dev_info_t *dip, int component)
648 hubd_pm_idle_component(hubd_t *hubd, dev_info_t *dip, int component)
669 hubd_set_child_pwrlvl(hubd_t *hubd, usb_port_t port, uint8_t power)
711 hubd_child_dip2port(hubd_t *hubd, dev_info_t *dip)
734 hubd_can_suspend(hubd_t *hubd)
773 hubd_resume_port(hubd_t *hubd, usb_port_t port)
924 hubd_suspend_port(hubd_t *hubd, usb_port_t port)
1032 hubd_post_attach(hubd_t *hubd, usb_port_t port, struct attachspec *as)
1059 hubd_post_detach(hubd_t *hubd, usb_port_t port, struct detachspec *ds)
1100 hubd_post_power(hubd_t *hubd, usb_port_t port, pm_bp_child_pwrchg_t *bpc,
1155 hubd_t *hubd;
1299 hubd_config_one(hubd_t *hubd, int port)
1374 hubd_t *hubd = hubd_get_soft_state(dip);
1421 hubd_t *hubd = hubd_get_soft_state(dip);
1492 hubd_t *hubd;
1626 hubd_pwrlvl0(hubd_t *hubd)
1679 hubd_pwrlvl1(hubd_t *hubd)
1690 hubd_pwrlvl2(hubd_t *hubd)
1700 hubd_pwrlvl3(hubd_t *hubd)
1755 hubd_t *hubd;
1822 hubd_t *hubd = NULL;
2117 hubd_t *hubd = hubd_get_soft_state(dip);
2143 hubd_setdevaddr(hubd_t *hubd, usb_port_t port)
2237 hubd_setdevconfig(hubd_t *hubd, usb_port_t port)
2296 hubd_t *hubd;
2384 hubd_t *root_hubd = (hubd_t *)arg;
2447 hubd_t *root_hubd;
2502 hubd_restore_device_state(dev_info_t *dip, hubd_t *hubd)
2733 hubd_cleanup(dev_info_t *dip, hubd_t *hubd)
2949 hubd_determine_port_connection(hubd_t *hubd)
2997 hubd_check_ports(hubd_t *hubd)
3116 hubd_get_hub_descriptor(hubd_t *hubd)
3233 hubd_get_hub_status_words(hubd_t *hubd, uint16_t *status)
3284 hubd_open_intr_pipe(hubd_t *hubd)
3323 hubd_start_polling(hubd_t *hubd, int always)
3381 hubd_stop_polling(hubd_t *hubd)
3414 hubd_close_intr_pipe(hubd_t *hubd)
3449 hubd_t *hubd = (hubd_t *)(reqp->intr_client_private);
3524 hubd_t *hubd = (hubd_t *)(reqp->intr_client_private);
3651 hubd_t *hubd = hd_arg->hubd;
4087 hubd_handle_port_connect(hubd_t *hubd, usb_port_t port)
4401 hubd_get_hub_status(hubd_t *hubd)
4612 hubd_reset_port(hubd_t *hubd, usb_port_t port)
4787 hubd_enable_port(hubd_t *hubd, usb_port_t port)
4834 hubd_disable_port(hubd_t *hubd, usb_port_t port)
4897 hubd_determine_port_status(hubd_t *hubd, usb_port_t port,
5178 hubd_recover_disabled_port(hubd_t *hubd, usb_port_t port)
5215 hubd_enable_all_port_power(hubd_t *hubd)
5317 hubd_enable_port_power(hubd_t *hubd, usb_port_t port)
5358 hubd_disable_all_port_power(hubd_t *hubd)
5383 hubd_disable_port_power(hubd_t *hubd, usb_port_t port)
5427 hubd_select_device_configuration(hubd_t *hubd, usb_port_t port,
5503 hubd_get_this_config_cloud(hubd_t *hubd, dev_info_t *dip,
5690 hubd_get_all_device_config_cloud(hubd_t *hubd, dev_info_t *dip,
5742 hubd_ready_device(hubd_t *hubd, dev_info_t *child_dip, usba_device_t *child_ud,
5826 hubd_t *hubd,
6441 hubd_delete_child(hubd_t *hubd, usb_port_t port, uint_t flag, boolean_t retry)
6523 hubd_free_usba_device(hubd_t *hubd, usba_device_t *usba_device)
6560 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6585 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6626 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6653 hubd_do_callback(hubd_t *hubd, dev_info_t *cdip, ddi_eventcookie_t cookie)
6667 hubd_run_callbacks(hubd_t *hubd, usba_event_t type)
6696 hubd_post_event(hubd_t *hubd, usb_port_t port, usba_event_t type)
6847 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6927 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6957 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
6987 hubd_cpr_suspend(hubd_t *hubd)
7119 hubd_t *hubd = (hubd_t *)hubd_get_soft_state(dip);
7135 hubd_register_events(hubd_t *hubd)
7162 hubd_t *hubd = cpr_cb->statep;
7220 hubd_register_cpr_callback(hubd_t *hubd)
7240 hubd_unregister_cpr_callback(hubd_t *hubd)
7261 hubd_create_pm_components(dev_info_t *dip, hubd_t *hubd)
7326 hubd_t *hubd;
7360 hubd_t *hubd;
7394 hubd_t *hubd;
8043 hubd_get_ancestry_str(hubd_t *hubd)
8047 hubd_t *phubd;
8095 hubd_get_port_num(hubd_t *hubd, struct devctl_iocdata *dcp)
8117 hubd_get_child_dip(hubd_t *hubd, usb_port_t port)
8143 hubd_cfgadm_state(hubd_t *hubd, usb_port_t port)
8192 hubd_toggle_port(hubd_t *hubd, usb_port_t port)
8286 hubd_init_power_budget(hubd_t *hubd)
8293 hubd_t *phubd = NULL;
8426 hubd_t *hubd;
8501 hubd_t *hubd = hubd_get_soft_state(dip);
8562 hubd_t *hubd = hubd_get_soft_state(dip);
8622 hubd_wait_for_hotplug_exit(hubd_t *hubd)
8656 hubd_t *hubd = hd_arg->hubd;
8854 hubd_check_same_device(hubd_t *hubd, usb_port_t port)
8890 hubd_t *hubd;