Lines Matching refs:lookup
3691 const struct tb_sw_lookup *lookup = data; in tb_switch_match() local
3695 if (sw->tb != lookup->tb) in tb_switch_match()
3698 if (lookup->uuid) in tb_switch_match()
3699 return !memcmp(sw->uuid, lookup->uuid, sizeof(*lookup->uuid)); in tb_switch_match()
3701 if (lookup->route) { in tb_switch_match()
3702 return sw->config.route_lo == lower_32_bits(lookup->route) && in tb_switch_match()
3703 sw->config.route_hi == upper_32_bits(lookup->route); in tb_switch_match()
3707 if (!lookup->depth) in tb_switch_match()
3710 return sw->link == lookup->link && sw->depth == lookup->depth; in tb_switch_match()
3724 struct tb_sw_lookup lookup; in tb_switch_find_by_link_depth() local
3727 memset(&lookup, 0, sizeof(lookup)); in tb_switch_find_by_link_depth()
3728 lookup.tb = tb; in tb_switch_find_by_link_depth()
3729 lookup.link = link; in tb_switch_find_by_link_depth()
3730 lookup.depth = depth; in tb_switch_find_by_link_depth()
3732 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match); in tb_switch_find_by_link_depth()
3749 struct tb_sw_lookup lookup; in tb_switch_find_by_uuid() local
3752 memset(&lookup, 0, sizeof(lookup)); in tb_switch_find_by_uuid()
3753 lookup.tb = tb; in tb_switch_find_by_uuid()
3754 lookup.uuid = uuid; in tb_switch_find_by_uuid()
3756 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match); in tb_switch_find_by_uuid()
3773 struct tb_sw_lookup lookup; in tb_switch_find_by_route() local
3779 memset(&lookup, 0, sizeof(lookup)); in tb_switch_find_by_route()
3780 lookup.tb = tb; in tb_switch_find_by_route()
3781 lookup.route = route; in tb_switch_find_by_route()
3783 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match); in tb_switch_find_by_route()