Lines Matching refs:cpu
132 unsigned int cpu, best_cpu, maxavl = 0; in matrix_find_best_cpu() local
137 for_each_cpu(cpu, msk) { in matrix_find_best_cpu()
138 cm = per_cpu_ptr(m->maps, cpu); in matrix_find_best_cpu()
143 best_cpu = cpu; in matrix_find_best_cpu()
153 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local
158 for_each_cpu(cpu, msk) { in matrix_find_best_cpu_managed()
159 cm = per_cpu_ptr(m->maps, cpu); in matrix_find_best_cpu_managed()
164 best_cpu = cpu; in matrix_find_best_cpu_managed()
212 unsigned int cpu, failed_cpu; in irq_matrix_reserve_managed() local
214 for_each_cpu(cpu, msk) { in irq_matrix_reserve_managed()
215 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_reserve_managed()
226 trace_irq_matrix_reserve_managed(bit, cpu, m, cm); in irq_matrix_reserve_managed()
230 failed_cpu = cpu; in irq_matrix_reserve_managed()
231 for_each_cpu(cpu, msk) { in irq_matrix_reserve_managed()
232 if (cpu == failed_cpu) in irq_matrix_reserve_managed()
234 irq_matrix_remove_managed(m, cpumask_of(cpu)); in irq_matrix_reserve_managed()
253 unsigned int cpu; in irq_matrix_remove_managed() local
255 for_each_cpu(cpu, msk) { in irq_matrix_remove_managed()
256 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_remove_managed()
276 trace_irq_matrix_remove_managed(bit, cpu, m, cm); in irq_matrix_remove_managed()
289 unsigned int bit, cpu, end; in irq_matrix_alloc_managed() local
295 cpu = matrix_find_best_cpu_managed(m, msk); in irq_matrix_alloc_managed()
296 if (cpu == UINT_MAX) in irq_matrix_alloc_managed()
299 cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_alloc_managed()
310 *mapped_cpu = cpu; in irq_matrix_alloc_managed()
311 trace_irq_matrix_alloc_managed(bit, cpu, m, cm); in irq_matrix_alloc_managed()
380 unsigned int cpu, bit; in irq_matrix_alloc() local
390 cpu = matrix_find_best_cpu(m, msk); in irq_matrix_alloc()
391 if (cpu == UINT_MAX) in irq_matrix_alloc()
394 cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_alloc()
404 *mapped_cpu = cpu; in irq_matrix_alloc()
405 trace_irq_matrix_alloc(bit, cpu, m, cm); in irq_matrix_alloc()
418 void irq_matrix_free(struct irq_matrix *m, unsigned int cpu, in irq_matrix_free() argument
421 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_free()
441 trace_irq_matrix_free(bit, cpu, m, cm); in irq_matrix_free()
493 int cpu; in irq_matrix_debug_show() local
503 for_each_online_cpu(cpu) { in irq_matrix_debug_show()
504 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); in irq_matrix_debug_show()
507 cpu, cm->available, cm->managed, in irq_matrix_debug_show()