Lines Matching refs:tb_port
446 static void tb_dump_port(struct tb *tb, const struct tb_port *port) in tb_dump_port()
471 int tb_port_state(struct tb_port *port) in tb_port_state()
500 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged) in tb_wait_for_port()
561 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits()
598 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter()
612 int tb_port_unlock(struct tb_port *port) in tb_port_unlock()
623 static int __tb_port_enable(struct tb_port *port, bool enable) in __tb_port_enable()
657 int tb_port_enable(struct tb_port *port) in tb_port_enable()
668 int tb_port_disable(struct tb_port *port) in tb_port_disable()
681 static int tb_init_port(struct tb_port *port) in tb_init_port()
744 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, in tb_port_alloc_hopid()
780 int tb_port_alloc_in_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_in_hopid()
794 int tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_out_hopid()
804 void tb_port_release_in_hopid(struct tb_port *port, int hopid) in tb_port_release_in_hopid()
814 void tb_port_release_out_hopid(struct tb_port *port, int hopid) in tb_port_release_out_hopid()
841 struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end, in tb_next_port_on_path()
842 struct tb_port *prev) in tb_next_port_on_path()
844 struct tb_port *next; in tb_next_port_on_path()
886 int tb_port_get_link_speed(struct tb_port *port) in tb_port_get_link_speed()
911 int tb_port_get_link_width(struct tb_port *port) in tb_port_get_link_width()
928 static bool tb_port_is_width_supported(struct tb_port *port, int width) in tb_port_is_width_supported()
957 int tb_port_set_link_width(struct tb_port *port, unsigned int width) in tb_port_set_link_width()
1003 int tb_port_set_lane_bonding(struct tb_port *port, bool bonding) in tb_port_set_lane_bonding()
1048 int tb_port_lane_bonding_enable(struct tb_port *port) in tb_port_lane_bonding_enable()
1090 void tb_port_lane_bonding_disable(struct tb_port *port) in tb_port_lane_bonding_disable()
1108 int tb_port_wait_for_link_width(struct tb_port *port, int width, in tb_port_wait_for_link_width()
1134 static int tb_port_do_update_credits(struct tb_port *port) in tb_port_do_update_credits()
1167 int tb_port_update_credits(struct tb_port *port) in tb_port_update_credits()
1177 static int __tb_port_pm_secondary_set(struct tb_port *port, bool secondary) in __tb_port_pm_secondary_set()
1196 static int tb_port_pm_secondary_enable(struct tb_port *port) in tb_port_pm_secondary_enable()
1201 static int tb_port_pm_secondary_disable(struct tb_port *port) in tb_port_pm_secondary_disable()
1207 static bool tb_port_clx_supported(struct tb_port *port, unsigned int clx_mask) in tb_port_clx_supported()
1242 static int __tb_port_clx_set(struct tb_port *port, enum tb_clx clx, bool enable) in __tb_port_clx_set()
1268 static int tb_port_clx_disable(struct tb_port *port, enum tb_clx clx) in tb_port_clx_disable()
1273 static int tb_port_clx_enable(struct tb_port *port, enum tb_clx clx) in tb_port_clx_enable()
1285 bool tb_port_is_clx_enabled(struct tb_port *port, unsigned int clx_mask) in tb_port_is_clx_enabled()
1306 static int tb_port_start_lane_initialization(struct tb_port *port) in tb_port_start_lane_initialization()
1321 static bool tb_port_resume(struct tb_port *port) in tb_port_resume()
1348 bool tb_port_is_enabled(struct tb_port *port) in tb_port_is_enabled()
1372 bool tb_usb3_port_is_enabled(struct tb_port *port) in tb_usb3_port_is_enabled()
1388 int tb_usb3_port_enable(struct tb_port *port, bool enable) in tb_usb3_port_enable()
1403 bool tb_pci_port_is_enabled(struct tb_port *port) in tb_pci_port_is_enabled()
1419 int tb_pci_port_enable(struct tb_port *port, bool enable) in tb_pci_port_enable()
1434 int tb_dp_port_hpd_is_active(struct tb_port *port) in tb_dp_port_hpd_is_active()
1453 int tb_dp_port_hpd_clear(struct tb_port *port) in tb_dp_port_hpd_clear()
1479 int tb_dp_port_set_hops(struct tb_port *port, unsigned int video, in tb_dp_port_set_hops()
1511 bool tb_dp_port_is_enabled(struct tb_port *port) in tb_dp_port_is_enabled()
1530 int tb_dp_port_enable(struct tb_port *port, bool enable) in tb_dp_port_enable()
2160 struct tb_port *port; in tb_switch_release()
2191 const struct tb_port *port; in tb_switch_uevent()
2329 struct tb_port *down; in tb_switch_alloc()
2669 struct tb_port *port = &sw->ports[i]; in tb_switch_default_link_ports()
2670 struct tb_port *subordinate; in tb_switch_default_link_ports()
2696 const struct tb_port *up = tb_upstream_port(sw); in tb_switch_lane_bonding_possible()
2708 struct tb_port *up; in tb_switch_update_link_attributes()
2749 struct tb_port *up, *down; in tb_switch_lane_bonding_enable()
2803 struct tb_port *up, *down; in tb_switch_lane_bonding_disable()
2845 struct tb_port *up, *down; in tb_switch_configure_link()
2874 struct tb_port *up, *down; in tb_switch_unconfigure_link()
2906 struct tb_port *port; in tb_switch_port_hotplug_enable()
3060 struct tb_port *port; in tb_switch_remove()
3100 struct tb_port *port; in tb_sw_set_unplugged()
3133 struct tb_port *port; in tb_switch_resume()
3232 struct tb_port *port; in tb_switch_suspend()
3282 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
3298 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
3324 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
3455 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()
3458 struct tb_port *port; in tb_switch_find_port()
3471 struct tb_port *up, *down; in tb_switch_pm_secondary_resolve()
3490 struct tb_port *up, *down; in __tb_switch_enable_clx()
3589 struct tb_port *up, *down; in __tb_switch_disable_clx()
3787 struct tb_port *port1, *port3; in tb_switch_xhci_connect()
3832 struct tb_port *port1 = &sw->ports[1]; in tb_switch_xhci_disconnect()
3833 struct tb_port *port3 = &sw->ports[3]; in tb_switch_xhci_disconnect()