Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/thunderbolt/
A 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 …]
A 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()
A Dswitch.c279 if (!tb_route(sw)) { in nvm_authenticate()
832 return (tb_route(parent) & mask) == (tb_route(sw) & mask); in tb_switch_is_reachable()
2132 if (tb_route(sw)) in switch_attr_is_visible()
2144 if (tb_route(sw)) in switch_attr_is_visible()
2587 if (tb_route(sw)) in tb_switch_add_dma_port()
2655 if (!tb_route(sw)) in tb_switch_add_dma_port()
2814 if (!tb_route(sw)) in tb_switch_lane_bonding_disable()
3098 if (tb_route(sw)) in tb_switch_remove()
3483 if (!tb_route(sw)) in tb_switch_pm_secondary_resolve()
3509 if (!tb_route(sw)) in __tb_switch_enable_clx()
[all …]
A Dtb.c450 port = tb_port_at(tb_route(sw), tb->root_switch); in tb_find_first_usb3_tunnel()
468 tb_route(src_port->sw), src_port->port, tb_route(dst_port->sw), in tb_available_bandwidth()
631 port = tb_port_at(tb_route(sw), parent); in tb_tunnel_usb3()
636 if (tb_route(parent)) { in tb_tunnel_usb3()
676 if (tb_route(parent)) in tb_tunnel_usb3()
684 if (tb_route(parent)) in tb_tunnel_usb3()
698 if (tb_route(sw)) { in tb_create_usb3_tunnels()
975 } else if (!tb_route(sw)) { in tb_find_pcie_down()
1111 host_port = tb_route(in->sw) ? in tb_find_dp_out()
1129 if (host_port && tb_route(port->sw)) { in tb_find_dp_out()
[all …]
A 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()
A Dtb.h559 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() function
639 tb_route(sw), in tb_sw_read()
653 tb_route(sw), in tb_sw_write()
667 tb_route(port->sw), in tb_port_read()
681 tb_route(port->sw), in tb_port_write()
698 tb_route(__sw), ## arg); \
709 tb_route(__port->sw), __port->port, ## arg); \
1155 return tb_route(port->sw) in tb_downstream_route()
A 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 …]
A 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 …]
A Dlc.c177 if (!tb_route(sw)) in tb_lc_start_lane_initialization()
375 if (!tb_route(sw)) in tb_lc_set_wake()
A Dusb4.c167 if (tb_route(sw)) { in usb4_switch_check_wakes()
244 if (!tb_route(sw)) in usb4_switch_setup()
252 downstream_port = tb_port_at(tb_route(sw), parent); in usb4_switch_setup()
384 u64 route = tb_route(sw); in usb4_switch_set_wake()
770 if (!tb_route(sw) && max_dma < 0) { in usb4_switch_credits_init()
1929 if (tb_route(port->sw)) in usb4_usb3_port_cm_request()
A Dacpi.c308 struct tb_port *port = tb_port_at(tb_route(sw), parent_sw); in tb_acpi_switch_find_companion()
A Dtunnel.c59 tb_route(__tunnel->src_port->sw), \
61 tb_route(__tunnel->dst_port->sw), \
598 if (tb_route(out->sw) && tb_switch_is_titan_ridge(out->sw)) { in tb_dp_xchg_caps()
1795 if (!tb_route(down->sw)) { in tb_tunnel_discover_usb3()
1900 if (!tb_route(down->sw)) { in tb_tunnel_alloc_usb3()
A Deeprom.c611 if (tb_route(sw) == 0) { in tb_drom_read()
A Ddebugfs.c955 u64 route = tb_route(sw); in margining_switch_init()
972 u64 route = tb_route(sw); in margining_switch_remove()

Completed in 47 milliseconds