Home
last modified time | relevance | path

Searched refs:tb_route (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.1/drivers/thunderbolt/
Dtmu.c65 bool root_switch = !tb_route(sw); in tb_switch_tmu_mode_name()
265 if (tb_route(sw)) { in tb_switch_tmu_init()
294 if (!tb_route(sw)) in tb_switch_tmu_post_time()
399 if (tb_route(sw)) { in tb_switch_tmu_disable()
405 down = tb_port_at(tb_route(sw), parent); in tb_switch_tmu_disable()
448 down = tb_port_at(tb_route(sw), parent); in __tb_switch_tmu_off()
480 down = tb_port_at(tb_route(sw), parent); in __tb_switch_tmu_enable_bidirectional()
545 down = tb_port_at(tb_route(sw), parent); in __tb_switch_tmu_enable_unidirectional()
582 down = tb_port_at(tb_route(sw), parent); in __tb_switch_tmu_change_mode_prev()
607 down = tb_port_at(tb_route(sw), parent); in __tb_switch_tmu_change_mode()
[all …]
Ddma_port.c181 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()
Dswitch.c278 if (!tb_route(sw)) { in nvm_authenticate()
823 return (tb_route(parent) & mask) == (tb_route(sw) & mask); in tb_switch_is_reachable()
856 next = tb_port_at(tb_route(end->sw), prev->sw); in tb_next_port_on_path()
1604 res = tb_cfg_reset(sw->tb->ctl, tb_route(sw)); in tb_switch_reset()
1740 if (tb_route(sw)) { in tb_switch_set_authorized()
2114 if (tb_route(sw) && in switch_attr_is_visible()
2123 if (tb_route(sw)) in switch_attr_is_visible()
2135 if (tb_route(sw)) in switch_attr_is_visible()
2188 if (!tb_route(sw)) { in tb_switch_uevent()
2413 dev_set_name(&sw->dev, "%u-%llx", tb->index, tb_route(sw)); in tb_switch_alloc()
[all …]
Dtb.c336 port = tb_port_at(tb_route(sw), tb->root_switch); in tb_find_first_usb3_tunnel()
501 port = tb_port_at(tb_route(sw), parent); in tb_tunnel_usb3()
506 if (tb_route(parent)) { in tb_tunnel_usb3()
546 if (tb_route(parent)) in tb_tunnel_usb3()
554 if (tb_route(parent)) in tb_tunnel_usb3()
568 if (tb_route(sw)) { in tb_create_usb3_tunnels()
619 tb_queue_hotplug(port->sw->tb, tb_route(port->sw), port->port, in tb_scan_port()
834 } else if (!tb_route(sw)) { in tb_find_pcie_down()
877 host_port = tb_route(in->sw) ? in tb_find_dp_out()
878 tb_port_at(tb_route(in->sw), tb->root_switch) : NULL; in tb_find_dp_out()
[all …]
Dpath.c170 path->name, tb_route(src->sw), src->port); in tb_path_discover()
472 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_deactivate()
474 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate()
501 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_activate()
503 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
Dtb.h537 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() function
617 tb_route(sw), in tb_sw_read()
631 tb_route(sw), in tb_sw_write()
645 tb_route(port->sw), in tb_port_read()
659 tb_route(port->sw), in tb_port_write()
676 tb_route(__sw), ## arg); \
687 tb_route(__port->sw), __port->port, ## arg); \
1133 return tb_route(port->sw) in tb_downstream_route()
Dtest.c494 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
506 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
553 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
565 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
616 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
628 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
700 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
712 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
803 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
815 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
[all …]
Dicm.c633 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()
2014 if (tb_route(sw)) in icm_unplug_children()
2123 if (tb_route(sw)) in icm_runtime_suspend_switch()
2130 if (tb_route(sw)) { in icm_runtime_resume_switch()
2268 u64 route = tb_route(sw); in icm_usb4_switch_op()
[all …]
Dusb4.c165 if (tb_route(sw)) { in usb4_switch_check_wakes()
231 if (!tb_route(sw)) in usb4_switch_setup()
239 downstream_port = tb_port_at(tb_route(sw), parent); in usb4_switch_setup()
370 u64 route = tb_route(sw); in usb4_switch_set_wake()
753 if (!tb_route(sw) && max_dma < 0) { in usb4_switch_credits_init()
1912 if (tb_route(port->sw)) in usb4_usb3_port_cm_request()
Dlc.c177 if (!tb_route(sw)) in tb_lc_start_lane_initialization()
375 if (!tb_route(sw)) in tb_lc_set_wake()
Dtunnel.c53 tb_route(__tunnel->src_port->sw), \
55 tb_route(__tunnel->dst_port->sw), \
591 if (tb_route(out->sw) && tb_switch_is_titan_ridge(out->sw)) { in tb_dp_xchg_caps()
1427 if (!tb_route(down->sw)) { in tb_tunnel_discover_usb3()
1532 if (!tb_route(down->sw)) { in tb_tunnel_alloc_usb3()
Dacpi.c315 struct tb_port *port = tb_port_at(tb_route(sw), parent_sw); in tb_acpi_switch_find_companion()
Deeprom.c611 if (tb_route(sw) == 0) { in tb_drom_read()
Ddebugfs.c955 u64 route = tb_route(sw); in margining_switch_init()
972 u64 route = tb_route(sw); in margining_switch_remove()