Lines Matching full:other

390  * If 'other' is subset of '*orig', '*orig' keeps itself with no reference count
393 * If '*orig' is subset of 'other', '*orig' reuses 'other' with its reference
398 int perf_cpu_map__merge(struct perf_cpu_map **orig, struct perf_cpu_map *other) in perf_cpu_map__merge() argument
405 if (perf_cpu_map__is_subset(*orig, other)) in perf_cpu_map__merge()
407 if (perf_cpu_map__is_subset(other, *orig)) { in perf_cpu_map__merge()
409 *orig = perf_cpu_map__get(other); in perf_cpu_map__merge()
413 tmp_len = __perf_cpu_map__nr(*orig) + __perf_cpu_map__nr(other); in perf_cpu_map__merge()
420 while (i < __perf_cpu_map__nr(*orig) && j < __perf_cpu_map__nr(other)) { in perf_cpu_map__merge()
421 if (__perf_cpu_map__cpu(*orig, i).cpu <= __perf_cpu_map__cpu(other, j).cpu) { in perf_cpu_map__merge()
422 if (__perf_cpu_map__cpu(*orig, i).cpu == __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__merge()
426 tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++); in perf_cpu_map__merge()
432 while (j < __perf_cpu_map__nr(other)) in perf_cpu_map__merge()
433 tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++); in perf_cpu_map__merge()
444 struct perf_cpu_map *other) in perf_cpu_map__intersect() argument
451 if (perf_cpu_map__is_subset(other, orig)) in perf_cpu_map__intersect()
453 if (perf_cpu_map__is_subset(orig, other)) in perf_cpu_map__intersect()
454 return perf_cpu_map__get(other); in perf_cpu_map__intersect()
456 tmp_len = max(__perf_cpu_map__nr(orig), __perf_cpu_map__nr(other)); in perf_cpu_map__intersect()
462 while (i < __perf_cpu_map__nr(orig) && j < __perf_cpu_map__nr(other)) { in perf_cpu_map__intersect()
463 if (__perf_cpu_map__cpu(orig, i).cpu < __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__intersect()
465 else if (__perf_cpu_map__cpu(orig, i).cpu > __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__intersect()