Lines Matching refs:tb_port
162 struct tb_port *port; in usb4_switch_check_wakes()
211 static bool link_is_usb4(struct tb_port *port) in link_is_usb4()
242 struct tb_port *down; in usb4_switch_setup()
391 struct tb_port *up; in usb4_switch_lane_bonding_possible()
413 struct tb_port *port; in usb4_switch_set_wake()
734 const struct tb_port *port; in usb4_switch_credits_init()
870 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_query_dp_resource()
900 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_alloc_dp_resource()
923 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_dealloc_dp_resource()
939 static int usb4_port_idx(const struct tb_switch *sw, const struct tb_port *port) in usb4_port_idx()
941 struct tb_port *p; in usb4_port_idx()
970 struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw, in usb4_switch_map_pcie_down()
971 const struct tb_port *port) in usb4_switch_map_pcie_down()
974 struct tb_port *p; in usb4_switch_map_pcie_down()
1001 struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw, in usb4_switch_map_usb3_down()
1002 const struct tb_port *port) in usb4_switch_map_usb3_down()
1005 struct tb_port *p; in usb4_switch_map_usb3_down()
1033 struct tb_port *port; in usb4_switch_add_ports()
1066 struct tb_port *port; in usb4_switch_remove_ports()
1083 int usb4_port_unlock(struct tb_port *port) in usb4_port_unlock()
1103 int usb4_port_hotplug_enable(struct tb_port *port) in usb4_port_hotplug_enable()
1116 static int usb4_port_set_configured(struct tb_port *port, bool configured) in usb4_port_set_configured()
1144 int usb4_port_configure(struct tb_port *port) in usb4_port_configure()
1155 void usb4_port_unconfigure(struct tb_port *port) in usb4_port_unconfigure()
1160 static int usb4_set_xdomain_configured(struct tb_port *port, bool configured) in usb4_set_xdomain_configured()
1190 int usb4_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd) in usb4_port_configure_xdomain()
1202 void usb4_port_unconfigure_xdomain(struct tb_port *port) in usb4_port_unconfigure_xdomain()
1207 static int usb4_port_wait_for_bit(struct tb_port *port, u32 offset, u32 bit, in usb4_port_wait_for_bit()
1229 static int usb4_port_read_data(struct tb_port *port, void *data, size_t dwords) in usb4_port_read_data()
1238 static int usb4_port_write_data(struct tb_port *port, const void *data, in usb4_port_write_data()
1248 static int usb4_port_sb_read(struct tb_port *port, enum usb4_sb_target target, in usb4_port_sb_read()
1288 static int usb4_port_sb_write(struct tb_port *port, enum usb4_sb_target target, in usb4_port_sb_write()
1349 static int usb4_port_sb_op(struct tb_port *port, enum usb4_sb_target target, in usb4_port_sb_op()
1378 static int usb4_port_set_router_offline(struct tb_port *port, bool offline) in usb4_port_set_router_offline()
1404 int usb4_port_router_offline(struct tb_port *port) in usb4_port_router_offline()
1415 int usb4_port_router_online(struct tb_port *port) in usb4_port_router_online()
1428 int usb4_port_enumerate_retimers(struct tb_port *port) in usb4_port_enumerate_retimers()
1444 bool usb4_port_clx_supported(struct tb_port *port) in usb4_port_clx_supported()
1464 int usb4_port_margining_caps(struct tb_port *port, u32 *caps) in usb4_port_margining_caps()
1490 int usb4_port_hw_margin(struct tb_port *port, unsigned int lanes, in usb4_port_hw_margin()
1533 int usb4_port_sw_margin(struct tb_port *port, unsigned int lanes, bool timing, in usb4_port_sw_margin()
1564 int usb4_port_sw_margin_errors(struct tb_port *port, u32 *errors) in usb4_port_sw_margin_errors()
1577 static inline int usb4_port_retimer_op(struct tb_port *port, u8 index, in usb4_port_retimer_op()
1593 int usb4_port_retimer_set_inbound_sbtx(struct tb_port *port, u8 index) in usb4_port_retimer_set_inbound_sbtx()
1620 int usb4_port_retimer_unset_inbound_sbtx(struct tb_port *port, u8 index) in usb4_port_retimer_unset_inbound_sbtx()
1640 int usb4_port_retimer_read(struct tb_port *port, u8 index, u8 reg, void *buf, in usb4_port_retimer_read()
1660 int usb4_port_retimer_write(struct tb_port *port, u8 index, u8 reg, in usb4_port_retimer_write()
1677 int usb4_port_retimer_is_last(struct tb_port *port, u8 index) in usb4_port_retimer_is_last()
1703 int usb4_port_retimer_nvm_sector_size(struct tb_port *port, u8 index) in usb4_port_retimer_nvm_sector_size()
1729 int usb4_port_retimer_nvm_set_offset(struct tb_port *port, u8 index, in usb4_port_retimer_nvm_set_offset()
1749 struct tb_port *port;
1758 struct tb_port *port = info->port; in usb4_port_retimer_nvm_write_next_block()
1784 int usb4_port_retimer_nvm_write(struct tb_port *port, u8 index, unsigned int address, in usb4_port_retimer_nvm_write()
1809 int usb4_port_retimer_nvm_authenticate(struct tb_port *port, u8 index) in usb4_port_retimer_nvm_authenticate()
1836 int usb4_port_retimer_nvm_authenticate_status(struct tb_port *port, u8 index, in usb4_port_retimer_nvm_authenticate_status()
1871 struct tb_port *port = info->port; in usb4_port_retimer_nvm_read_block()
1905 int usb4_port_retimer_nvm_read(struct tb_port *port, u8 index, in usb4_port_retimer_nvm_read()
1915 usb4_usb3_port_max_bandwidth(const struct tb_port *port, unsigned int bw) in usb4_usb3_port_max_bandwidth()
1930 int usb4_usb3_port_max_link_rate(struct tb_port *port) in usb4_usb3_port_max_link_rate()
1956 int usb4_usb3_port_actual_link_rate(struct tb_port *port) in usb4_usb3_port_actual_link_rate()
1978 static int usb4_usb3_port_cm_request(struct tb_port *port, bool request) in usb4_usb3_port_cm_request()
2012 static inline int usb4_usb3_port_set_cm_request(struct tb_port *port) in usb4_usb3_port_set_cm_request()
2017 static inline int usb4_usb3_port_clear_cm_request(struct tb_port *port) in usb4_usb3_port_clear_cm_request()
2039 static int usb4_usb3_port_read_allocated_bandwidth(struct tb_port *port, in usb4_usb3_port_read_allocated_bandwidth()
2077 int usb4_usb3_port_allocated_bandwidth(struct tb_port *port, int *upstream_bw, in usb4_usb3_port_allocated_bandwidth()
2093 static int usb4_usb3_port_read_consumed_bandwidth(struct tb_port *port, in usb4_usb3_port_read_consumed_bandwidth()
2121 static int usb4_usb3_port_write_allocated_bandwidth(struct tb_port *port, in usb4_usb3_port_write_allocated_bandwidth()
2180 int usb4_usb3_port_allocate_bandwidth(struct tb_port *port, int *upstream_bw, in usb4_usb3_port_allocate_bandwidth()
2222 int usb4_usb3_port_release_bandwidth(struct tb_port *port, int *upstream_bw, in usb4_usb3_port_release_bandwidth()
2258 static bool is_usb4_dpin(const struct tb_port *port) in is_usb4_dpin()
2276 int usb4_dp_port_set_cm_id(struct tb_port *port, int cm_id) in usb4_dp_port_set_cm_id()
2304 bool usb4_dp_port_bandwidth_mode_supported(struct tb_port *port) in usb4_dp_port_bandwidth_mode_supported()
2328 bool usb4_dp_port_bandwidth_mode_enabled(struct tb_port *port) in usb4_dp_port_bandwidth_mode_enabled()
2355 int usb4_dp_port_set_cm_bandwidth_mode_supported(struct tb_port *port, in usb4_dp_port_set_cm_bandwidth_mode_supported()
2386 int usb4_dp_port_group_id(struct tb_port *port) in usb4_dp_port_group_id()
2412 int usb4_dp_port_set_group_id(struct tb_port *port, int group_id) in usb4_dp_port_set_group_id()
2442 int usb4_dp_port_nrd(struct tb_port *port, int *rate, int *lanes) in usb4_dp_port_nrd()
2498 int usb4_dp_port_set_nrd(struct tb_port *port, int rate, int lanes) in usb4_dp_port_set_nrd()
2559 int usb4_dp_port_granularity(struct tb_port *port) in usb4_dp_port_granularity()
2596 int usb4_dp_port_set_granularity(struct tb_port *port, int granularity) in usb4_dp_port_set_granularity()
2640 int usb4_dp_port_set_estimated_bandwidth(struct tb_port *port, int bw) in usb4_dp_port_set_estimated_bandwidth()
2673 int usb4_dp_port_allocated_bandwidth(struct tb_port *port) in usb4_dp_port_allocated_bandwidth()
2697 static int __usb4_dp_port_set_cm_ack(struct tb_port *port, bool ack) in __usb4_dp_port_set_cm_ack()
2716 static inline int usb4_dp_port_set_cm_ack(struct tb_port *port) in usb4_dp_port_set_cm_ack()
2721 static int usb4_dp_port_wait_and_clear_cm_ack(struct tb_port *port, in usb4_dp_port_wait_and_clear_cm_ack()
2767 int usb4_dp_port_allocate_bandwidth(struct tb_port *port, int bw) in usb4_dp_port_allocate_bandwidth()
2810 int usb4_dp_port_requested_bandwidth(struct tb_port *port) in usb4_dp_port_requested_bandwidth()
2843 int usb4_pci_port_set_ext_encapsulation(struct tb_port *port, bool enable) in usb4_pci_port_set_ext_encapsulation()