Lines Matching refs:lookup
1997 const struct tb_sw_lookup *lookup = data; in tb_switch_match() local
2001 if (sw->tb != lookup->tb) in tb_switch_match()
2004 if (lookup->uuid) in tb_switch_match()
2005 return !memcmp(sw->uuid, lookup->uuid, sizeof(*lookup->uuid)); in tb_switch_match()
2007 if (lookup->route) { in tb_switch_match()
2008 return sw->config.route_lo == lower_32_bits(lookup->route) && in tb_switch_match()
2009 sw->config.route_hi == upper_32_bits(lookup->route); in tb_switch_match()
2013 if (!lookup->depth) in tb_switch_match()
2016 return sw->link == lookup->link && sw->depth == lookup->depth; in tb_switch_match()
2030 struct tb_sw_lookup lookup; in tb_switch_find_by_link_depth() local
2033 memset(&lookup, 0, sizeof(lookup)); in tb_switch_find_by_link_depth()
2034 lookup.tb = tb; in tb_switch_find_by_link_depth()
2035 lookup.link = link; in tb_switch_find_by_link_depth()
2036 lookup.depth = depth; in tb_switch_find_by_link_depth()
2038 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match); in tb_switch_find_by_link_depth()
2055 struct tb_sw_lookup lookup; in tb_switch_find_by_uuid() local
2058 memset(&lookup, 0, sizeof(lookup)); in tb_switch_find_by_uuid()
2059 lookup.tb = tb; in tb_switch_find_by_uuid()
2060 lookup.uuid = uuid; in tb_switch_find_by_uuid()
2062 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match); in tb_switch_find_by_uuid()
2079 struct tb_sw_lookup lookup; in tb_switch_find_by_route() local
2085 memset(&lookup, 0, sizeof(lookup)); in tb_switch_find_by_route()
2086 lookup.tb = tb; in tb_switch_find_by_route()
2087 lookup.route = route; in tb_switch_find_by_route()
2089 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match); in tb_switch_find_by_route()