Searched refs:parent_sw (Results 1 – 5 of 5) sorted by relevance
/drivers/thunderbolt/ |
D | icm.c | 589 static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route, in alloc_switch() argument 592 struct tb *tb = parent_sw->tb; in alloc_switch() 595 sw = tb_switch_alloc(tb, &parent_sw->dev, route); in alloc_switch() 611 static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) in add_switch() argument 617 tb_port_at(route, parent_sw)->remote = tb_upstream_port(sw); in add_switch() 618 tb_upstream_port(sw)->remote = tb_port_at(route, parent_sw); in add_switch() 622 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in add_switch() 627 static void update_switch(struct tb_switch *parent_sw, struct tb_switch *sw, in update_switch() argument 632 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in update_switch() 634 tb_port_at(route, parent_sw)->remote = tb_upstream_port(sw); in update_switch() [all …]
|
D | domain.c | 615 struct tb_switch *parent_sw; in tb_domain_approve_switch() local 621 parent_sw = tb_to_switch(sw->dev.parent); in tb_domain_approve_switch() 622 if (!parent_sw || !parent_sw->authorized) in tb_domain_approve_switch() 641 struct tb_switch *parent_sw; in tb_domain_approve_switch_key() local 648 parent_sw = tb_to_switch(sw->dev.parent); in tb_domain_approve_switch_key() 649 if (!parent_sw || !parent_sw->authorized) in tb_domain_approve_switch_key() 676 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key() local 685 parent_sw = tb_to_switch(sw->dev.parent); in tb_domain_challenge_switch_key() 686 if (!parent_sw || !parent_sw->authorized) in tb_domain_challenge_switch_key()
|
D | tb.c | 1013 struct tb_switch *parent_sw; in tb_tunnel_pci() local 1024 parent_sw = tb_to_switch(sw->dev.parent); in tb_tunnel_pci() 1025 port = tb_port_at(tb_route(sw), parent_sw); in tb_tunnel_pci() 1026 down = tb_find_pcie_down(parent_sw, port); in tb_tunnel_pci()
|
D | xdomain.c | 1275 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc() local 1280 down = tb_port_at(route, parent_sw); in tb_xdomain_alloc()
|
D | switch.c | 1890 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_switch_alloc() local 1893 down = tb_port_at(route, parent_sw); in tb_switch_alloc()
|