/Linux-v5.15/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() 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()
|
D | switch.c | 323 if (!tb_route(sw)) { in nvm_authenticate() 864 return (tb_route(parent) & mask) == (tb_route(sw) & mask); in tb_switch_is_reachable() 897 next = tb_port_at(tb_route(end->sw), prev->sw); in tb_next_port_on_path() 1446 res = tb_cfg_reset(sw->tb->ctl, tb_route(sw)); in tb_switch_reset() 1542 if (tb_route(sw)) { in tb_switch_set_authorized() 1911 if (tb_route(sw) && in switch_attr_is_visible() 1920 if (tb_route(sw)) in switch_attr_is_visible() 1932 if (tb_route(sw)) in switch_attr_is_visible() 1985 if (!tb_route(sw)) { in tb_switch_uevent() 2202 dev_set_name(&sw->dev, "%u-%llx", tb->index, tb_route(sw)); in tb_switch_alloc() [all …]
|
D | tb.c | 298 port = tb_port_at(tb_route(sw), tb->root_switch); in tb_find_first_usb3_tunnel() 463 port = tb_port_at(tb_route(sw), parent); in tb_tunnel_usb3() 468 if (tb_route(parent)) { in tb_tunnel_usb3() 508 if (tb_route(parent)) in tb_tunnel_usb3() 516 if (tb_route(parent)) in tb_tunnel_usb3() 530 if (tb_route(sw)) { in tb_create_usb3_tunnels() 580 tb_queue_hotplug(port->sw->tb, tb_route(port->sw), port->port, in tb_scan_port() 777 } else if (!tb_route(sw)) { in tb_find_pcie_down() 820 host_port = tb_route(in->sw) ? in tb_find_dp_out() 821 tb_port_at(tb_route(in->sw), tb->root_switch) : NULL; in tb_find_dp_out() [all …]
|
D | tb.h | 504 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() function 584 tb_route(sw), in tb_sw_read() 598 tb_route(sw), in tb_sw_write() 612 tb_route(port->sw), in tb_port_read() 626 tb_route(port->sw), in tb_port_write() 643 tb_route(__sw), ## arg); \ 654 tb_route(__port->sw), __port->port, ## arg); \ 1013 return tb_route(port->sw) in tb_downstream_route()
|
D | path.c | 458 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_deactivate() 460 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate() 487 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_activate() 489 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
|
D | test.c | 453 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 465 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 512 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk() 524 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk() 575 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk() 587 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk() 659 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk() 671 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk() 762 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk() 774 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk() [all …]
|
D | lc.c | 177 if (!tb_route(sw)) in tb_lc_start_lane_initialization() 241 if (!tb_route(sw)) in tb_lc_set_wake()
|
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() 652 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in update_switch() 677 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in remove_switch() 785 route = tb_route(sw); in icm_fr_device_connected() 1238 if (tb_route(sw) == route && !!sw->authorized == authorized) { in __icm_tr_device_connected() 2009 if (tb_route(sw)) in icm_unplug_children() 2118 if (tb_route(sw)) in icm_runtime_suspend_switch() 2125 if (tb_route(sw)) { in icm_runtime_resume_switch() 2263 u64 route = tb_route(sw); in icm_usb4_switch_op() [all …]
|
D | usb4.c | 187 if (tb_route(sw)) { in usb4_switch_check_wakes() 253 if (!tb_route(sw)) in usb4_switch_setup() 261 downstream_port = tb_port_at(tb_route(sw), parent); in usb4_switch_setup() 392 u64 route = tb_route(sw); in usb4_switch_set_wake() 775 if (!tb_route(sw) && max_dma < 0) { in usb4_switch_credits_init() 1772 if (tb_route(port->sw)) in usb4_usb3_port_cm_request()
|
D | tunnel.c | 53 tb_route(__tunnel->src_port->sw), \ 55 tb_route(__tunnel->dst_port->sw), \ 1406 if (!tb_route(down->sw)) { in tb_tunnel_discover_usb3() 1511 if (!tb_route(down->sw)) { in tb_tunnel_alloc_usb3()
|
D | acpi.c | 318 struct tb_port *port = tb_port_at(tb_route(sw), parent_sw); in tb_acpi_switch_find_companion()
|
D | eeprom.c | 611 if (tb_route(sw) == 0) { in tb_drom_read()
|