Lines Matching refs:depth

92 	int (*get_route)(struct tb *tb, u8 link, u8 depth, u64 *route);
172 static inline u8 phy_port_from_route(u64 route, u8 depth)
176 link = depth ? route >> ((depth - 1) * 8) : route;
192 int depth = tb_route_length(route);
193 return depth ? route & ~(0xffULL << (depth - 1) * TB_ROUTE_SHIFT) : 0;
382 static int icm_fr_get_route(struct tb *tb, u8 link, u8 depth, u64 *route)
409 for (i = 1; i < depth; i++) {
552 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link;
629 u8 link, u8 depth, bool boot)
642 sw->depth = depth;
663 u8 link, u8 depth)
674 xd->depth = depth;
712 u8 link, depth;
719 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
730 link, depth);
750 if (sw->depth == depth && sw_phy_port == phy_port &&
757 ret = icm->get_route(tb, link, depth, &route);
760 link, depth);
769 pkg->connection_key, link, depth, boot);
786 * account) and depth. If we found one it is definitely a stale
789 sw = tb_switch_find_by_link_depth(tb, link, depth);
795 sw = tb_switch_find_by_link_depth(tb, dual_link, depth);
803 xd = tb_xdomain_find_by_link_depth(tb, link, depth);
809 parent_sw = tb_switch_find_by_link_depth(tb, link, depth - 1);
812 link, depth);
816 ret = icm->get_route(tb, link, depth, &route);
819 link, depth);
831 sw->depth = depth;
855 u8 link, depth;
858 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
861 if (link > ICM_MAX_LINK || depth > TB_SWITCH_MAX_DEPTH) {
862 tb_warn(tb, "invalid topology %u.%u, ignoring\n", link, depth);
866 sw = tb_switch_find_by_link_depth(tb, link, depth);
869 depth);
884 u8 link, depth;
888 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
891 if (link > ICM_MAX_LINK || depth > TB_SWITCH_MAX_DEPTH) {
892 tb_warn(tb, "invalid topology %u.%u, ignoring\n", link, depth);
902 xd_phy_port = phy_port_from_route(xd->route, xd->depth);
903 phy_port = phy_port_from_route(route, depth);
905 if (xd->depth == depth && xd_phy_port == phy_port) {
926 xd = tb_xdomain_find_by_link_depth(tb, link, depth);
933 depth);
951 sw = tb_switch_find_by_link_depth(tb, link, depth);
954 depth);
959 depth);
1478 static int icm_ar_get_route(struct tb *tb, u8 link, u8 depth, u64 *route)
1483 .link_info = depth << ICM_LINK_INFO_DEPTH_SHIFT | link,