Home | History | Annotate | Download | only in p2p

Lines Matching refs:intersection

40 	struct p2p_channels intersection;
78 p2p_channels_intersect(own, &dev->channels, &intersection);
80 "peer reg_classes %d intersection reg_classes %d",
83 (int) intersection.reg_classes);
84 if (intersection.reg_classes == 0) {
337 * @intersection: Support channel list intersection from local and peer
346 struct p2p_channels *intersection)
356 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
359 "intersection", op_reg_class, op_channel);
368 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
370 "channel (reg_class %u channel %u) from intersection",
381 !p2p_channels_includes(intersection, p2p->op_reg_class,
385 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
387 "channel (reg_class %u channel %u) from intersection",
395 !p2p_channels_includes(intersection, p2p->op_reg_class,
399 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
401 "channel (reg_class %u channel %u) from intersection",
410 if (p2p_channels_includes(intersection,
417 "channel %u) from intersection",
424 for (i = 0; i < intersection->reg_classes; i++) {
425 struct p2p_reg_class *c = &intersection->reg_class[i];
430 "%u channel %u) from intersection",
439 * Try to see if the original channel is in the intersection. If
443 if (p2p_channels_includes(intersection, p2p->op_reg_class,
447 "(op_class %u channel %u) from intersection",
453 * Fall back to whatever is included in the channel intersection since
456 cl = &intersection->reg_class[0];
458 "(reg_class %u channel %u) from intersection",
468 struct p2p_channels intersection;
471 p2p_channels_intersect(&p2p->channels, &dev->channels, &intersection);
472 if (intersection.reg_classes == 0 ||
473 intersection.reg_class[0].channels == 0) {
480 for (i = 0; i < intersection.reg_classes; i++) {
482 c = &intersection.reg_class[i];
488 if (!p2p_channels_includes(&intersection, p2p->op_reg_class,
500 p2p_reselect_channel(p2p, &intersection);
507 p2p_reselect_channel(p2p, &intersection);