Lines Matching refs:tb_port
447 static void tb_dump_port(struct tb *tb, const struct tb_port *port) in tb_dump_port()
472 int tb_port_state(struct tb_port *port) in tb_port_state()
501 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged) in tb_wait_for_port()
570 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits()
607 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter()
621 int tb_port_unlock(struct tb_port *port) in tb_port_unlock()
632 static int __tb_port_enable(struct tb_port *port, bool enable) in __tb_port_enable()
666 int tb_port_enable(struct tb_port *port) in tb_port_enable()
677 int tb_port_disable(struct tb_port *port) in tb_port_disable()
690 static int tb_init_port(struct tb_port *port) in tb_init_port()
753 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, in tb_port_alloc_hopid()
789 int tb_port_alloc_in_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_in_hopid()
803 int tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_out_hopid()
813 void tb_port_release_in_hopid(struct tb_port *port, int hopid) in tb_port_release_in_hopid()
823 void tb_port_release_out_hopid(struct tb_port *port, int hopid) in tb_port_release_out_hopid()
850 struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end, in tb_next_port_on_path()
851 struct tb_port *prev) in tb_next_port_on_path()
853 struct tb_port *next; in tb_next_port_on_path()
895 int tb_port_get_link_speed(struct tb_port *port) in tb_port_get_link_speed()
920 int tb_port_get_link_width(struct tb_port *port) in tb_port_get_link_width()
937 static bool tb_port_is_width_supported(struct tb_port *port, int width) in tb_port_is_width_supported()
966 int tb_port_set_link_width(struct tb_port *port, unsigned int width) in tb_port_set_link_width()
1012 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()
1099 void tb_port_lane_bonding_disable(struct tb_port *port) in tb_port_lane_bonding_disable()
1117 int tb_port_wait_for_link_width(struct tb_port *port, int width, in tb_port_wait_for_link_width()
1143 static int tb_port_do_update_credits(struct tb_port *port) in tb_port_do_update_credits()
1176 int tb_port_update_credits(struct tb_port *port) in tb_port_update_credits()
1186 static int __tb_port_pm_secondary_set(struct tb_port *port, bool secondary) in __tb_port_pm_secondary_set()
1205 static int tb_port_pm_secondary_enable(struct tb_port *port) in tb_port_pm_secondary_enable()
1210 static int tb_port_pm_secondary_disable(struct tb_port *port) in tb_port_pm_secondary_disable()
1216 static bool tb_port_clx_supported(struct tb_port *port, unsigned int clx_mask) in tb_port_clx_supported()
1251 static int __tb_port_clx_set(struct tb_port *port, enum tb_clx clx, bool enable) in __tb_port_clx_set()
1277 static int tb_port_clx_disable(struct tb_port *port, enum tb_clx clx) in tb_port_clx_disable()
1282 static int tb_port_clx_enable(struct tb_port *port, enum tb_clx clx) in tb_port_clx_enable()
1294 bool tb_port_is_clx_enabled(struct tb_port *port, unsigned int clx_mask) in tb_port_is_clx_enabled()
1315 static int tb_port_start_lane_initialization(struct tb_port *port) in tb_port_start_lane_initialization()
1330 static bool tb_port_resume(struct tb_port *port) in tb_port_resume()
1357 bool tb_port_is_enabled(struct tb_port *port) in tb_port_is_enabled()
1381 bool tb_usb3_port_is_enabled(struct tb_port *port) in tb_usb3_port_is_enabled()
1397 int tb_usb3_port_enable(struct tb_port *port, bool enable) in tb_usb3_port_enable()
1412 bool tb_pci_port_is_enabled(struct tb_port *port) in tb_pci_port_is_enabled()
1428 int tb_pci_port_enable(struct tb_port *port, bool enable) in tb_pci_port_enable()
1443 int tb_dp_port_hpd_is_active(struct tb_port *port) in tb_dp_port_hpd_is_active()
1462 int tb_dp_port_hpd_clear(struct tb_port *port) in tb_dp_port_hpd_clear()
1488 int tb_dp_port_set_hops(struct tb_port *port, unsigned int video, in tb_dp_port_set_hops()
1520 bool tb_dp_port_is_enabled(struct tb_port *port) in tb_dp_port_is_enabled()
1539 int tb_dp_port_enable(struct tb_port *port, bool enable) in tb_dp_port_enable()
2169 struct tb_port *port; in tb_switch_release()
2200 const struct tb_port *port; in tb_switch_uevent()
2338 struct tb_port *down; in tb_switch_alloc()
2678 struct tb_port *port = &sw->ports[i]; in tb_switch_default_link_ports()
2679 struct tb_port *subordinate; in tb_switch_default_link_ports()
2705 const struct tb_port *up = tb_upstream_port(sw); in tb_switch_lane_bonding_possible()
2717 struct tb_port *up; in tb_switch_update_link_attributes()
2758 struct tb_port *up, *down; in tb_switch_lane_bonding_enable()
2812 struct tb_port *up, *down; in tb_switch_lane_bonding_disable()
2854 struct tb_port *up, *down; in tb_switch_configure_link()
2883 struct tb_port *up, *down; in tb_switch_unconfigure_link()
2915 struct tb_port *port; in tb_switch_port_hotplug_enable()
3069 struct tb_port *port; in tb_switch_remove()
3109 struct tb_port *port; in tb_sw_set_unplugged()
3142 struct tb_port *port; in tb_switch_resume()
3241 struct tb_port *port; in tb_switch_suspend()
3291 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
3307 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
3333 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
3464 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()
3467 struct tb_port *port; in tb_switch_find_port()
3480 struct tb_port *up, *down; in tb_switch_pm_secondary_resolve()
3499 struct tb_port *up, *down; in __tb_switch_enable_clx()
3598 struct tb_port *up, *down; in __tb_switch_disable_clx()
3796 struct tb_port *port1, *port3; in tb_switch_xhci_connect()
3841 struct tb_port *port1 = &sw->ports[1]; in tb_switch_xhci_disconnect()
3842 struct tb_port *port3 = &sw->ports[3]; in tb_switch_xhci_disconnect()