Lines Matching defs:lookup
3689 const struct tb_sw_lookup *lookup = data;
3693 if (sw->tb != lookup->tb)
3696 if (lookup->uuid)
3697 return !memcmp(sw->uuid, lookup->uuid, sizeof(*lookup->uuid));
3699 if (lookup->route) {
3700 return sw->config.route_lo == lower_32_bits(lookup->route) &&
3701 sw->config.route_hi == upper_32_bits(lookup->route);
3705 if (!lookup->depth)
3708 return sw->link == lookup->link && sw->depth == lookup->depth;
3722 struct tb_sw_lookup lookup;
3725 memset(&lookup, 0, sizeof(lookup));
3726 lookup.tb = tb;
3727 lookup.link = link;
3728 lookup.depth = depth;
3730 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match);
3747 struct tb_sw_lookup lookup;
3750 memset(&lookup, 0, sizeof(lookup));
3751 lookup.tb = tb;
3752 lookup.uuid = uuid;
3754 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match);
3771 struct tb_sw_lookup lookup;
3777 memset(&lookup, 0, sizeof(lookup));
3778 lookup.tb = tb;
3779 lookup.route = route;
3781 dev = bus_find_device(&tb_bus_type, NULL, &lookup, tb_switch_match);