| /Linux-v5.10/drivers/thunderbolt/ |
| D | tmu.c | 16 bool root_switch = !tb_route(sw); in tb_switch_tmu_mode_name() 188 if (tb_route(sw)) { in tb_switch_tmu_init() 216 if (!tb_route(sw)) in tb_switch_tmu_post_time() 314 down = tb_port_at(tb_route(sw), parent); in tb_switch_tmu_disable() 354 if (tb_route(sw) && sw->tmu.unidirectional) { in tb_switch_tmu_enable() 359 down = tb_port_at(tb_route(sw), parent); in tb_switch_tmu_enable()
|
| 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() 322 return dma_port_read(sw->tb->ctl, buf, tb_route(sw), dma->port, in dma_port_flash_read_block() 336 ret = dma_port_write(sw->tb->ctl, buf, tb_route(sw), dma->port, in dma_port_flash_write_block() 487 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port, in dma_port_flash_update_auth_status()
|
| D | switch.c | 318 if (!tb_route(sw)) { in nvm_authenticate() 854 return (tb_route(parent) & mask) == (tb_route(sw) & mask); in tb_switch_is_reachable() 887 next = tb_port_at(tb_route(end->sw), prev->sw); in tb_next_port_on_path() 1298 res = tb_cfg_reset(sw->tb->ctl, tb_route(sw), TB_CFG_DEFAULT_TIMEOUT); in tb_switch_reset() 1716 if (tb_route(sw) && in switch_attr_is_visible() 1725 if (tb_route(sw)) in switch_attr_is_visible() 1737 if (tb_route(sw)) in switch_attr_is_visible() 1969 dev_set_name(&sw->dev, "%u-%llx", tb->index, tb_route(sw)); in tb_switch_alloc() 2014 dev_set_name(&sw->dev, "%u-%llx", tb->index, tb_route(sw)); in tb_switch_alloc_safe_mode() 2036 route = tb_route(sw); in tb_switch_configure() [all …]
|
| D | test.c | 384 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 396 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 443 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk() 455 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk() 506 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk() 518 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk() 590 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk() 602 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk() 693 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk() 705 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk() [all …]
|
| D | tb.c | 288 port = tb_port_at(tb_route(sw), tb->root_switch); in tb_find_first_usb3_tunnel() 448 port = tb_port_at(tb_route(sw), parent); in tb_tunnel_usb3() 453 if (tb_route(parent)) { in tb_tunnel_usb3() 493 if (tb_route(parent)) in tb_tunnel_usb3() 501 if (tb_route(parent)) in tb_tunnel_usb3() 512 if (tb_route(sw)) { in tb_create_usb3_tunnels() 562 tb_queue_hotplug(port->sw->tb, tb_route(port->sw), port->port, in tb_scan_port() 759 } else if (!tb_route(sw)) { in tb_find_pcie_down() 802 host_port = tb_route(in->sw) ? in tb_find_dp_out() 803 tb_port_at(tb_route(in->sw), tb->root_switch) : NULL; in tb_find_dp_out() [all …]
|
| D | tb.h | 435 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() function 515 tb_route(sw), in tb_sw_read() 529 tb_route(sw), in tb_sw_write() 543 tb_route(port->sw), in tb_port_read() 557 tb_route(port->sw), in tb_port_write() 574 tb_route(__sw), ## arg); \ 585 tb_route(__port->sw), __port->port, ## arg); \ 931 return tb_route(port->sw) in tb_downstream_route()
|
| D | path.c | 451 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_deactivate() 453 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate() 479 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_activate() 481 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
|
| D | icm.c | 613 u64 route = tb_route(sw); in add_switch() 622 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in add_switch() 632 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in update_switch() 657 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in remove_switch() 765 route = tb_route(sw); in icm_fr_device_connected() 1205 if (tb_route(sw) == route && !!sw->authorized == authorized) { in __icm_tr_device_connected() 1957 if (tb_route(sw)) in icm_unplug_children() 2066 if (tb_route(sw)) in icm_runtime_suspend_switch() 2073 if (tb_route(sw)) { in icm_runtime_resume_switch()
|
| D | usb4.c | 208 if (tb_route(sw)) { in usb4_switch_check_wakes() 274 if (!tb_route(sw)) in usb4_switch_setup() 282 downstream_port = tb_port_at(tb_route(sw), parent); in usb4_switch_setup() 414 u64 route = tb_route(sw); in usb4_switch_set_wake() 1477 if (tb_route(port->sw)) in usb4_usb3_port_cm_request()
|
| D | tunnel.c | 46 tb_route(__tunnel->src_port->sw), \ 48 tb_route(__tunnel->dst_port->sw), \ 1088 if (!tb_route(down->sw)) { in tb_tunnel_discover_usb3() 1193 if (!tb_route(down->sw)) { in tb_tunnel_alloc_usb3()
|
| D | lc.c | 204 if (!tb_route(sw)) in tb_lc_set_wake()
|
| D | eeprom.c | 535 if (tb_route(sw) == 0) { in tb_drom_read()
|