Home
last modified time | relevance | path

Searched refs:parent_sw (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dicm.c589 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) in update_switch()
654 struct tb_switch *parent_sw; remove_switch() local
707 struct tb_switch *sw, *parent_sw; icm_fr_device_connected() local
1174 struct tb_switch *sw, *parent_sw; __icm_tr_device_connected() local
[all...]
H A Ddomain.c615 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 in tb_domain_challenge_switch_key()
[all...]
H A Dtb.c1013 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()
H A Dxdomain.c1275 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()
H A Dswitch.c1890 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()
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Ddomain.c644 struct tb_switch *parent_sw; in tb_domain_approve_switch() local
650 parent_sw = tb_to_switch(sw->dev.parent); in tb_domain_approve_switch()
651 if (!parent_sw || !parent_sw->authorized) in tb_domain_approve_switch()
670 struct tb_switch *parent_sw; in tb_domain_approve_switch_key() local
677 parent_sw = tb_to_switch(sw->dev.parent); in tb_domain_approve_switch_key()
678 if (!parent_sw || !parent_sw->authorized) in tb_domain_approve_switch_key()
705 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key() local
714 parent_sw in tb_domain_challenge_switch_key()
[all...]
H A Dclx.c321 struct tb_switch *parent_sw; in tb_switch_clx_enable() local
331 parent_sw = tb_switch_parent(sw); in tb_switch_clx_enable()
332 if (!parent_sw) in tb_switch_clx_enable()
335 if (!tb_switch_clx_is_supported(parent_sw) || in tb_switch_clx_enable()
341 (usb4_switch_version(parent_sw) < 2 || in tb_switch_clx_enable()
H A Dicm.c609 static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route, in alloc_switch() argument
612 struct tb *tb = parent_sw->tb; in alloc_switch()
615 sw = tb_switch_alloc(tb, &parent_sw->dev, route); in alloc_switch()
631 static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) in add_switch() argument
637 tb_port_at(route, parent_sw)->remote = tb_upstream_port(sw); in add_switch()
638 tb_upstream_port(sw)->remote = tb_port_at(route, parent_sw); in add_switch()
642 tb_port_at(tb_route(sw), parent_sw)->remote = NULL; in add_switch()
650 struct tb_switch *parent_sw = tb_switch_parent(sw); in update_switch() local
655 tb_port_at(route, parent_sw)->remote = tb_upstream_port(sw); in update_switch()
725 struct tb_switch *sw, *parent_sw; in icm_fr_device_connected() local
1205 struct tb_switch *sw, *parent_sw; __icm_tr_device_connected() local
[all...]
H A Dacpi.c307 struct tb_switch *parent_sw = tb_switch_parent(sw); in tb_acpi_switch_find_companion() local
314 if (parent_sw) { in tb_acpi_switch_find_companion()
318 port_adev = acpi_find_child_by_adr(ACPI_COMPANION(&parent_sw->dev), in tb_acpi_switch_find_companion()
H A Ddebugfs.c971 struct tb_switch *parent_sw; in margining_switch_init() local
978 parent_sw = tb_switch_parent(sw); in margining_switch_init()
979 downstream = tb_port_at(route, parent_sw); in margining_switch_init()
988 struct tb_switch *parent_sw; in margining_switch_remove() local
995 parent_sw = tb_switch_parent(sw); in margining_switch_remove()
996 downstream = tb_port_at(route, parent_sw); in margining_switch_remove()
1004 struct tb_switch *parent_sw; in margining_xdomain_init() local
1007 parent_sw = tb_xdomain_parent(xd); in margining_xdomain_init()
1008 downstream = tb_port_at(xd->route, parent_sw); in margining_xdomain_init()
1015 struct tb_switch *parent_sw; in margining_xdomain_remove() local
[all...]
H A Dtmu.c1040 const struct tb_switch *parent_sw = tb_switch_parent(sw); in tb_switch_tmu_configure() local
1042 if (!parent_sw || !tb_switch_tmu_enhanced_is_supported(parent_sw)) in tb_switch_tmu_configure()
H A Dxdomain.c1914 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc() local
1919 down = tb_port_at(route, parent_sw); in tb_xdomain_alloc()
H A Dswitch.c2270 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_switch_alloc() local
2273 down = tb_port_at(route, parent_sw); in tb_switch_alloc()

Completed in 24 milliseconds