Searched refs:tb_route (Results 1 - 15 of 15) sorted by relevance

/linux-master/drivers/thunderbolt/
H A Ddma_port.c181 ret = dma_port_read(sw->tb->ctl, &type, tb_route(sw), ports[i],
249 ret = dma_port_read(sw->tb->ctl, &in, tb_route(sw), dma->port,
285 ret = dma_port_write(sw->tb->ctl, &in, tb_route(sw), dma->port,
294 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port,
320 return dma_port_read(sw->tb->ctl, buf, tb_route(sw), dma->port,
333 ret = dma_port_write(sw->tb->ctl, buf, tb_route(sw), dma->port,
426 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port,
H A Dtunnel.h154 tb_route(__tunnel->src_port->sw), \
156 tb_route(__tunnel->dst_port->sw), \
H A Dclx.c216 if (!tb_route(sw))
242 if (!tb_route(sw))
264 if (!tb_route(sw))
H A Dswitch.c275 if (!tb_route(sw)) {
836 return (tb_route(parent) & mask) == (tb_route(sw) & mask);
869 next = tb_port_at(tb_route(end->sw), prev->sw);
1593 res = tb_cfg_reset(sw->tb->ctl, tb_route(sw));
1653 if (tb_route(sw))
1794 if (tb_route(sw)) {
2205 if (tb_route(sw) &&
2214 if (tb_route(sw))
2226 if (tb_route(s
[all...]
H A Dpath.c170 path->name, tb_route(src->sw), src->port);
485 path->name, tb_route(path->hops[0].in_port->sw),
487 tb_route(path->hops[path->path_length - 1].out_port->sw),
514 path->name, tb_route(path->hops[0].in_port->sw),
516 tb_route(path->hops[path->path_length - 1].out_port->sw),
H A Dtb.h572 static inline u64 tb_route(const struct tb_switch *sw) function
668 tb_route(sw),
682 tb_route(sw),
696 tb_route(port->sw),
710 tb_route(port->sw),
727 tb_route(__sw), ## arg); \
738 tb_route(__port->sw), __port->port, ## arg); \
891 if (WARN_ON(!tb_route(sw)))
893 return tb_port_at(tb_route(sw), tb_switch_parent(sw));
1220 return tb_route(por
[all...]
H A Dtb.c117 if (tb_route(sw))
482 port = tb_port_at(tb_route(sw), tb->root_switch);
881 if (tb_route(parent)) {
921 if (tb_route(parent))
929 if (tb_route(parent))
943 if (tb_route(sw)) {
1196 host_port = tb_port_at(tb_route(sw), tb->root_switch);
1238 tb_queue_hotplug(port->sw->tb, tb_route(port->sw), port->port,
1749 } else if (!tb_route(sw)) {
1792 host_port = tb_route(i
[all...]
H A Dtest.c511 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
523 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
570 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
582 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
633 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
645 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
717 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
729 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
820 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
832 KUNIT_EXPECT_EQ(test, tb_route(
[all...]
H A Dlc.c222 if (!tb_route(sw))
420 if (!tb_route(sw))
H A Dtmu.c377 if (tb_route(sw)) {
452 if (!tb_route(sw))
565 if (tb_route(sw)) {
961 if (tb_route(sw)) {
H A Dicm.c633 u64 route = tb_route(sw);
642 tb_port_at(tb_route(sw), parent_sw)->remote = NULL;
782 route = tb_route(sw);
1236 if (tb_route(sw) == route && !!sw->authorized == authorized) {
2012 if (tb_route(sw))
2121 if (tb_route(sw))
2128 if (tb_route(sw)) {
2266 u64 route = tb_route(sw);
2337 tb_route(sw), auth->reply.hdr.flags, auth->reply.status);
H A Dusb4.c172 if (tb_route(sw)) {
250 if (!tb_route(sw))
315 if (!tb_route(sw))
415 u64 route = tb_route(sw);
801 if (!tb_route(sw) && max_dma < 0) {
2102 if (tb_route(port->sw))
H A Dtunnel.c743 if (tb_route(out->sw) && tb_switch_is_titan_ridge(out->sw)) {
2012 if (!tb_route(down->sw)) {
2117 if (!tb_route(down->sw)) {
H A Deeprom.c709 if (!tb_route(sw))
H A Ddebugfs.c972 u64 route = tb_route(sw);
989 u64 route = tb_route(sw);

Completed in 228 milliseconds