Lines Matching refs:remote
64 struct percpu_ida_cpu *remote; in steal_tags() local
77 remote = per_cpu_ptr(pool->tag_cpu, cpu); in steal_tags()
81 if (remote == tags) in steal_tags()
84 spin_lock(&remote->lock); in steal_tags()
86 if (remote->nr_free) { in steal_tags()
88 remote->freelist, in steal_tags()
89 sizeof(unsigned) * remote->nr_free); in steal_tags()
91 tags->nr_free = remote->nr_free; in steal_tags()
92 remote->nr_free = 0; in steal_tags()
95 spin_unlock(&remote->lock); in steal_tags()
345 struct percpu_ida_cpu *remote; in percpu_ida_for_each_free() local
350 remote = per_cpu_ptr(pool->tag_cpu, cpu); in percpu_ida_for_each_free()
351 spin_lock(&remote->lock); in percpu_ida_for_each_free()
352 for (i = 0; i < remote->nr_free; i++) { in percpu_ida_for_each_free()
353 err = fn(remote->freelist[i], data); in percpu_ida_for_each_free()
357 spin_unlock(&remote->lock); in percpu_ida_for_each_free()
384 struct percpu_ida_cpu *remote; in percpu_ida_free_tags() local
387 remote = per_cpu_ptr(pool->tag_cpu, cpu); in percpu_ida_free_tags()
388 return remote->nr_free; in percpu_ida_free_tags()