parent_sw 586 drivers/thunderbolt/domain.c struct tb_switch *parent_sw; parent_sw 592 drivers/thunderbolt/domain.c parent_sw = tb_to_switch(sw->dev.parent); parent_sw 593 drivers/thunderbolt/domain.c if (!parent_sw || !parent_sw->authorized) parent_sw 612 drivers/thunderbolt/domain.c struct tb_switch *parent_sw; parent_sw 619 drivers/thunderbolt/domain.c parent_sw = tb_to_switch(sw->dev.parent); parent_sw 620 drivers/thunderbolt/domain.c if (!parent_sw || !parent_sw->authorized) parent_sw 647 drivers/thunderbolt/domain.c struct tb_switch *parent_sw; parent_sw 656 drivers/thunderbolt/domain.c parent_sw = tb_to_switch(sw->dev.parent); parent_sw 657 drivers/thunderbolt/domain.c if (!parent_sw || !parent_sw->authorized) parent_sw 565 drivers/thunderbolt/icm.c static struct tb_switch *add_switch(struct tb_switch *parent_sw, u64 route, parent_sw 576 drivers/thunderbolt/icm.c pm_runtime_get_sync(&parent_sw->dev); parent_sw 578 drivers/thunderbolt/icm.c sw = tb_switch_alloc(parent_sw->tb, &parent_sw->dev, route); parent_sw 602 drivers/thunderbolt/icm.c tb_port_at(route, parent_sw)->remote = tb_upstream_port(sw); parent_sw 603 drivers/thunderbolt/icm.c tb_upstream_port(sw)->remote = tb_port_at(route, parent_sw); parent_sw 607 drivers/thunderbolt/icm.c tb_port_at(tb_route(sw), parent_sw)->remote = NULL; parent_sw 613 drivers/thunderbolt/icm.c pm_runtime_mark_last_busy(&parent_sw->dev); parent_sw 614 drivers/thunderbolt/icm.c pm_runtime_put_autosuspend(&parent_sw->dev); parent_sw 619 drivers/thunderbolt/icm.c static void update_switch(struct tb_switch *parent_sw, struct tb_switch *sw, parent_sw 624 drivers/thunderbolt/icm.c tb_port_at(tb_route(sw), parent_sw)->remote = NULL; parent_sw 626 drivers/thunderbolt/icm.c tb_port_at(route, parent_sw)->remote = tb_upstream_port(sw); parent_sw 646 drivers/thunderbolt/icm.c struct tb_switch *parent_sw; parent_sw 648 drivers/thunderbolt/icm.c parent_sw = tb_to_switch(sw->dev.parent); parent_sw 649 drivers/thunderbolt/icm.c tb_port_at(tb_route(sw), parent_sw)->remote = NULL; parent_sw 699 drivers/thunderbolt/icm.c struct tb_switch *sw, *parent_sw; parent_sw 728 drivers/thunderbolt/icm.c parent_sw = tb_to_switch(sw->dev.parent); parent_sw 758 drivers/thunderbolt/icm.c update_switch(parent_sw, sw, route, pkg->connection_id, parent_sw 799 drivers/thunderbolt/icm.c parent_sw = tb_switch_find_by_link_depth(tb, link, depth - 1); parent_sw 800 drivers/thunderbolt/icm.c if (!parent_sw) { parent_sw 810 drivers/thunderbolt/icm.c tb_switch_put(parent_sw); parent_sw 814 drivers/thunderbolt/icm.c add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name, parent_sw 819 drivers/thunderbolt/icm.c tb_switch_put(parent_sw); parent_sw 1146 drivers/thunderbolt/icm.c struct tb_switch *sw, *parent_sw; parent_sw 1177 drivers/thunderbolt/icm.c parent_sw = tb_to_switch(sw->dev.parent); parent_sw 1178 drivers/thunderbolt/icm.c update_switch(parent_sw, sw, route, pkg->connection_id, parent_sw 1202 drivers/thunderbolt/icm.c parent_sw = tb_switch_find_by_route(tb, get_parent_route(route)); parent_sw 1203 drivers/thunderbolt/icm.c if (!parent_sw) { parent_sw 1208 drivers/thunderbolt/icm.c sw = add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name, parent_sw 1214 drivers/thunderbolt/icm.c tb_switch_put(parent_sw); parent_sw 403 drivers/thunderbolt/tb.c struct tb_switch *parent_sw; parent_sw 414 drivers/thunderbolt/tb.c parent_sw = tb_to_switch(sw->dev.parent); parent_sw 415 drivers/thunderbolt/tb.c port = tb_port_at(tb_route(sw), parent_sw); parent_sw 416 drivers/thunderbolt/tb.c down = tb_find_pcie_down(parent_sw, port);