Lines Matching full:other

412  * other has its reference count increased.
416 struct perf_cpu_map *other) in perf_cpu_map__merge() argument
423 if (perf_cpu_map__is_subset(orig, other)) in perf_cpu_map__merge()
425 if (perf_cpu_map__is_subset(other, orig)) { in perf_cpu_map__merge()
427 return perf_cpu_map__get(other); in perf_cpu_map__merge()
430 tmp_len = __perf_cpu_map__nr(orig) + __perf_cpu_map__nr(other); in perf_cpu_map__merge()
437 while (i < __perf_cpu_map__nr(orig) && j < __perf_cpu_map__nr(other)) { in perf_cpu_map__merge()
438 if (__perf_cpu_map__cpu(orig, i).cpu <= __perf_cpu_map__cpu(other, j).cpu) { in perf_cpu_map__merge()
439 if (__perf_cpu_map__cpu(orig, i).cpu == __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__merge()
443 tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++); in perf_cpu_map__merge()
449 while (j < __perf_cpu_map__nr(other)) in perf_cpu_map__merge()
450 tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++); in perf_cpu_map__merge()
460 struct perf_cpu_map *other) in perf_cpu_map__intersect() argument
467 if (perf_cpu_map__is_subset(other, orig)) in perf_cpu_map__intersect()
469 if (perf_cpu_map__is_subset(orig, other)) in perf_cpu_map__intersect()
470 return perf_cpu_map__get(other); in perf_cpu_map__intersect()
472 tmp_len = max(__perf_cpu_map__nr(orig), __perf_cpu_map__nr(other)); in perf_cpu_map__intersect()
478 while (i < __perf_cpu_map__nr(orig) && j < __perf_cpu_map__nr(other)) { in perf_cpu_map__intersect()
479 if (__perf_cpu_map__cpu(orig, i).cpu < __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__intersect()
481 else if (__perf_cpu_map__cpu(orig, i).cpu > __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__intersect()