Searched refs:tb_route (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.4/drivers/thunderbolt/ |
D | lc.c | 97 if (!sw->config.enabled || !tb_route(sw)) in tb_lc_configure_link() 101 down = tb_port_at(tb_route(sw), tb_to_switch(sw->dev.parent)); in tb_lc_configure_link() 127 if (sw->is_unplugged || !sw->config.enabled || !tb_route(sw)) in tb_lc_unconfigure_link() 131 down = tb_port_at(tb_route(sw), tb_to_switch(sw->dev.parent)); in tb_lc_unconfigure_link()
|
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() 322 return dma_port_read(sw->tb->ctl, buf, tb_route(sw), dma->port, in dma_port_flash_read_block() 336 ret = dma_port_write(sw->tb->ctl, buf, tb_route(sw), dma->port, in dma_port_flash_write_block() 487 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port, in dma_port_flash_update_auth_status()
|
D | tb.h | 330 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() function 395 tb_route(sw), in tb_sw_read() 409 tb_route(sw), in tb_sw_write() 423 tb_route(port->sw), in tb_port_read() 437 tb_route(port->sw), in tb_port_write() 454 tb_route(__sw), ## arg); \ 465 tb_route(__port->sw), __port->port, ## arg); \ 652 return tb_route(port->sw) in tb_downstream_route()
|
D | path.c | 245 num_hops = abs(tb_route_length(tb_route(src->sw)) - in tb_path_alloc() 246 tb_route_length(tb_route(dst->sw))) + 1; in tb_path_alloc() 418 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_deactivate() 420 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate() 446 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_activate() 448 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
|
D | switch.c | 758 next = tb_port_at(tb_route(end->sw), prev->sw); in tb_next_port_on_path() 1242 if (!tb_route(sw)) { in nvm_authenticate_store() 1350 if (tb_route(sw) && in switch_attr_is_visible() 1364 if (tb_route(sw)) in switch_attr_is_visible() 1567 dev_set_name(&sw->dev, "%u-%llx", tb->index, tb_route(sw)); in tb_switch_alloc() 1612 dev_set_name(&sw->dev, "%u-%llx", tb->index, tb_route(sw)); in tb_switch_alloc_safe_mode() 1633 route = tb_route(sw); in tb_switch_configure() 1698 if (tb_route(sw)) in tb_switch_add_dma_port() 1713 if (!tb_route(sw) && sw->config.enabled) in tb_switch_add_dma_port() 1733 if (!tb_route(sw)) in tb_switch_add_dma_port() [all …]
|
D | tb.c | 153 tb_queue_hotplug(port->sw->tb, tb_route(port->sw), port->port, in tb_scan_port() 331 if (!tb_route(sw)) { in tb_find_pcie_down() 415 port = tb_port_at(tb_route(sw), parent_sw); in tb_tunnel_pci()
|
D | icm.c | 607 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in add_switch() 624 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in update_switch() 649 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in remove_switch() 755 route = tb_route(sw); in icm_fr_device_connected() 1176 if (tb_route(sw) == route && !!sw->authorized == authorized) { in __icm_tr_device_connected() 1898 if (tb_route(sw)) in icm_unplug_children() 2007 if (tb_route(sw)) in icm_runtime_suspend_switch() 2014 if (tb_route(sw)) { in icm_runtime_resume_switch()
|
D | tunnel.c | 39 tb_route(__tunnel->src_port->sw), \ 41 tb_route(__tunnel->dst_port->sw), \
|
D | eeprom.c | 500 if (tb_route(sw) == 0) { in tb_drom_read()
|