Lines Matching refs:tb_port
443 static void tb_dump_port(struct tb *tb, const struct tb_port *port) in tb_dump_port()
468 int tb_port_state(struct tb_port *port) in tb_port_state()
497 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged) in tb_wait_for_port()
566 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits()
603 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter()
617 int tb_port_unlock(struct tb_port *port) in tb_port_unlock()
628 static int __tb_port_enable(struct tb_port *port, bool enable) in __tb_port_enable()
662 int tb_port_enable(struct tb_port *port) in tb_port_enable()
673 int tb_port_disable(struct tb_port *port) in tb_port_disable()
686 static int tb_init_port(struct tb_port *port) in tb_init_port()
749 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, in tb_port_alloc_hopid()
785 int tb_port_alloc_in_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_in_hopid()
799 int tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_out_hopid()
809 void tb_port_release_in_hopid(struct tb_port *port, int hopid) in tb_port_release_in_hopid()
819 void tb_port_release_out_hopid(struct tb_port *port, int hopid) in tb_port_release_out_hopid()
846 struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end, in tb_next_port_on_path()
847 struct tb_port *prev) in tb_next_port_on_path()
849 struct tb_port *next; in tb_next_port_on_path()
891 int tb_port_get_link_speed(struct tb_port *port) in tb_port_get_link_speed()
924 int tb_port_get_link_width(struct tb_port *port) in tb_port_get_link_width()
942 static bool tb_port_is_width_supported(struct tb_port *port, in tb_port_is_width_supported()
962 static bool is_gen4_link(struct tb_port *port) in is_gen4_link()
977 int tb_port_set_link_width(struct tb_port *port, enum tb_link_width width) in tb_port_set_link_width()
1023 static int tb_port_set_lane_bonding(struct tb_port *port, bool bonding) in tb_port_set_lane_bonding()
1057 int tb_port_lane_bonding_enable(struct tb_port *port) in tb_port_lane_bonding_enable()
1115 void tb_port_lane_bonding_disable(struct tb_port *port) in tb_port_lane_bonding_disable()
1136 int tb_port_wait_for_link_width(struct tb_port *port, unsigned int width_mask, in tb_port_wait_for_link_width()
1166 static int tb_port_do_update_credits(struct tb_port *port) in tb_port_do_update_credits()
1199 int tb_port_update_credits(struct tb_port *port) in tb_port_update_credits()
1209 static int tb_port_start_lane_initialization(struct tb_port *port) in tb_port_start_lane_initialization()
1224 static bool tb_port_resume(struct tb_port *port) in tb_port_resume()
1251 bool tb_port_is_enabled(struct tb_port *port) in tb_port_is_enabled()
1275 bool tb_usb3_port_is_enabled(struct tb_port *port) in tb_usb3_port_is_enabled()
1291 int tb_usb3_port_enable(struct tb_port *port, bool enable) in tb_usb3_port_enable()
1306 bool tb_pci_port_is_enabled(struct tb_port *port) in tb_pci_port_is_enabled()
1322 int tb_pci_port_enable(struct tb_port *port, bool enable) in tb_pci_port_enable()
1337 int tb_dp_port_hpd_is_active(struct tb_port *port) in tb_dp_port_hpd_is_active()
1356 int tb_dp_port_hpd_clear(struct tb_port *port) in tb_dp_port_hpd_clear()
1382 int tb_dp_port_set_hops(struct tb_port *port, unsigned int video, in tb_dp_port_set_hops()
1414 bool tb_dp_port_is_enabled(struct tb_port *port) in tb_dp_port_is_enabled()
1433 int tb_dp_port_enable(struct tb_port *port, bool enable) in tb_dp_port_enable()
2100 struct tb_port *port; in tb_switch_release()
2132 const struct tb_port *port; in tb_switch_uevent()
2271 struct tb_port *down; in tb_switch_alloc()
2631 struct tb_port *port = &sw->ports[i]; in tb_switch_default_link_ports()
2632 struct tb_port *subordinate; in tb_switch_default_link_ports()
2658 const struct tb_port *up = tb_upstream_port(sw); in tb_switch_lane_bonding_possible()
2670 struct tb_port *up; in tb_switch_update_link_attributes()
2710 struct tb_port *up, *down; in tb_switch_lane_bonding_enable()
2775 struct tb_port *up, *down; in tb_switch_lane_bonding_disable()
2819 struct tb_port *up, *down; in tb_switch_configure_link()
2848 struct tb_port *up, *down; in tb_switch_unconfigure_link()
2880 struct tb_port *port; in tb_switch_port_hotplug_enable()
3038 struct tb_port *port; in tb_switch_remove()
3078 struct tb_port *port; in tb_sw_set_unplugged()
3111 struct tb_port *port; in tb_switch_resume()
3210 struct tb_port *port; in tb_switch_suspend()
3255 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
3271 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
3297 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
3428 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()
3431 struct tb_port *port; in tb_switch_find_port()
3532 struct tb_port *port1, *port3; in tb_switch_xhci_connect()
3577 struct tb_port *port1 = &sw->ports[1]; in tb_switch_xhci_disconnect()
3578 struct tb_port *port3 = &sw->ports[3]; in tb_switch_xhci_disconnect()