| /linux-6.15/drivers/thunderbolt/ |
| H A D | dma_port.c | 181 ret = dma_port_read(sw->tb->ctl, &type, tb_route(sw), ports[i], in dma_find_port() 249 ret = dma_port_read(sw->tb->ctl, &in, tb_route(sw), dma->port, in dma_port_wait_for_completion() 285 ret = dma_port_write(sw->tb->ctl, &in, tb_route(sw), dma->port, in dma_port_request() 294 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port, in dma_port_request() 320 return dma_port_read(sw->tb->ctl, buf, tb_route(sw), dma->port, in dma_port_flash_read_block() 333 ret = dma_port_write(sw->tb->ctl, buf, tb_route(sw), dma->port, in dma_port_flash_write_block() 426 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port, in dma_port_flash_update_auth_status()
|
| H A D | switch.c | 275 if (!tb_route(sw)) { in nvm_authenticate() 836 return (tb_route(parent) & mask) == (tb_route(sw) & mask); in tb_switch_is_reachable() 1653 if (tb_route(sw)) in tb_switch_reset() 2214 if (tb_route(sw)) in switch_attr_is_visible() 2226 if (tb_route(sw)) in switch_attr_is_visible() 2691 if (tb_route(sw)) in tb_switch_add_dma_port() 2744 if (!tb_route(sw)) in tb_switch_add_dma_port() 2759 if (!tb_route(sw)) in tb_switch_add_dma_port() 3084 if (!tb_route(sw)) in tb_switch_set_link_width() 3410 if (tb_route(sw)) in tb_switch_remove() [all …]
|
| H A D | tb.h | 581 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() function 677 tb_route(sw), in tb_sw_read() 691 tb_route(sw), in tb_sw_write() 705 tb_route(port->sw), in tb_port_read() 719 tb_route(port->sw), in tb_port_write() 736 tb_route(__sw), ## arg); \ 747 tb_route(__port->sw), __port->port, ## arg); \ 900 if (WARN_ON(!tb_route(sw))) in tb_switch_downstream_port() 902 return tb_port_at(tb_route(sw), tb_switch_parent(sw)); in tb_switch_downstream_port() 1229 return tb_route(port->sw) in tb_downstream_route()
|
| H A D | clx.c | 216 if (!tb_route(sw)) in tb_switch_clx_init() 242 if (!tb_route(sw)) in tb_switch_pm_secondary_resolve() 264 if (!tb_route(sw)) in tb_switch_mask_clx_objections()
|
| H A D | path.c | 170 path->name, tb_route(src->sw), src->port); in tb_path_discover() 485 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_deactivate() 487 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate() 514 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_activate() 516 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
|
| H A D | tunnel.h | 203 tb_route(__tunnel->src_port->sw), \ 205 tb_route(__tunnel->dst_port->sw), \
|
| H A D | tb.c | 129 if (tb_route(sw)) in tb_add_dp_resources() 530 port = tb_port_at(tb_route(sw), tb->root_switch); in tb_find_first_usb3_tunnel() 930 if (tb_route(parent)) { in tb_tunnel_usb3() 970 if (tb_route(parent)) in tb_tunnel_usb3() 978 if (tb_route(parent)) in tb_tunnel_usb3() 992 if (tb_route(sw)) { in tb_create_usb3_tunnels() 1808 } else if (!tb_route(sw)) { in tb_find_pcie_down() 1851 host_port = tb_route(in->sw) ? in tb_find_dp_out() 1875 if (host_port && tb_route(port->sw)) { in tb_find_dp_out() 2101 if (tb_route(sw)) in tb_enter_redrive() [all …]
|
| H A D | test.c | 511 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 523 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 570 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk() 582 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk() 633 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk() 645 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk() 717 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk() 729 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk() 820 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk() 832 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk() [all …]
|
| H A D | tmu.c | 377 if (tb_route(sw)) { in tmu_mode_init() 452 if (!tb_route(sw)) in tb_switch_tmu_post_time() 565 if (tb_route(sw)) { in tb_switch_tmu_disable() 961 if (tb_route(sw)) { in tb_switch_tmu_enable()
|
| H A D | lc.c | 222 if (!tb_route(sw)) in tb_lc_start_lane_initialization() 420 if (!tb_route(sw)) in tb_lc_set_wake()
|
| H A D | icm.c | 633 u64 route = tb_route(sw); in add_switch() 642 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in add_switch() 782 route = tb_route(sw); in icm_fr_device_connected() 1236 if (tb_route(sw) == route && !!sw->authorized == authorized) { in __icm_tr_device_connected() 2012 if (tb_route(sw)) in icm_unplug_children() 2121 if (tb_route(sw)) in icm_runtime_suspend_switch() 2128 if (tb_route(sw)) { in icm_runtime_resume_switch() 2266 u64 route = tb_route(sw); in icm_usb4_switch_op() 2337 tb_route(sw), auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_authenticate_status()
|
| H A D | usb4.c | 170 if (tb_route(sw)) { in usb4_switch_check_wakes() 248 if (!tb_route(sw)) in usb4_switch_setup() 313 if (!tb_route(sw)) in usb4_switch_configuration_valid() 413 u64 route = tb_route(sw); in usb4_switch_set_wake() 799 if (!tb_route(sw) && max_dma < 0) { in usb4_switch_credits_init() 2134 if (tb_route(port->sw)) in usb4_usb3_port_cm_request()
|
| H A D | tunnel.c | 796 if (tb_route(out->sw) && tb_switch_is_titan_ridge(out->sw)) { in tb_dp_xchg_caps() 2148 if (!tb_route(down->sw)) { in tb_tunnel_discover_usb3() 2205 if (!tb_route(down->sw) && (max_up > 0 || max_down > 0)) { in tb_tunnel_alloc_usb3() 2244 if (!tb_route(down->sw)) { in tb_tunnel_alloc_usb3()
|
| H A D | eeprom.c | 719 if (!tb_route(sw)) in tb_drom_read()
|
| H A D | debugfs.c | 1796 u64 route = tb_route(sw); in margining_switch_init() 1813 u64 route = tb_route(sw); in margining_switch_remove()
|