Home
last modified time | relevance | path

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

/linux/drivers/thunderbolt/
A Dtmu.c16 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()
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.c323 if (!tb_route(sw)) { in nvm_authenticate()
864 return (tb_route(parent) & mask) == (tb_route(sw) & mask); in tb_switch_is_reachable()
1920 if (tb_route(sw)) in switch_attr_is_visible()
1932 if (tb_route(sw)) in switch_attr_is_visible()
2366 if (tb_route(sw)) in tb_switch_add_dma_port()
2419 if (!tb_route(sw)) in tb_switch_add_dma_port()
2434 if (!tb_route(sw)) in tb_switch_add_dma_port()
2593 if (!tb_route(sw)) in tb_switch_lane_bonding_disable()
2769 if (tb_route(sw)) { in tb_switch_add()
2855 if (tb_route(sw)) in tb_switch_remove()
[all …]
A Dtb.c298 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()
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()
838 if (host_port && tb_route(port->sw)) { in tb_find_dp_out()
[all …]
A Dtb.h504 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()
A Dtest.c453 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 …]
A Dpath.c458 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()
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()
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 …]
A Dlc.c177 if (!tb_route(sw)) in tb_lc_start_lane_initialization()
241 if (!tb_route(sw)) in tb_lc_set_wake()
A Dusb4.c187 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()
A Dtunnel.c53 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()
A Dacpi.c318 struct tb_port *port = tb_port_at(tb_route(sw), parent_sw); in tb_acpi_switch_find_companion()
A Deeprom.c611 if (tb_route(sw) == 0) { in tb_drom_read()

Completed in 36 milliseconds