Lines Matching refs:pidx
234 unsigned int pidx = 0; in svc_pool_map_init_percpu() local
243 BUG_ON(pidx >= maxpools); in svc_pool_map_init_percpu()
244 m->to_pool[cpu] = pidx; in svc_pool_map_init_percpu()
245 m->pool_to[pidx] = cpu; in svc_pool_map_init_percpu()
246 pidx++; in svc_pool_map_init_percpu()
250 return pidx; in svc_pool_map_init_percpu()
262 unsigned int pidx = 0; in svc_pool_map_init_pernode() local
272 BUG_ON(pidx > maxpools); in svc_pool_map_init_pernode()
273 m->to_pool[node] = pidx; in svc_pool_map_init_pernode()
274 m->pool_to[pidx] = node; in svc_pool_map_init_pernode()
275 pidx++; in svc_pool_map_init_pernode()
279 return pidx; in svc_pool_map_init_pernode()
345 static int svc_pool_map_get_node(unsigned int pidx) in svc_pool_map_get_node() argument
351 return cpu_to_node(m->pool_to[pidx]); in svc_pool_map_get_node()
353 return m->pool_to[pidx]; in svc_pool_map_get_node()
362 svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx) in svc_pool_map_set_cpumask() argument
365 unsigned int node = m->pool_to[pidx]; in svc_pool_map_set_cpumask()
404 unsigned int pidx = 0; in svc_pool_for_cpu() local
411 pidx = m->to_pool[cpu]; in svc_pool_for_cpu()
414 pidx = m->to_pool[cpu_to_node(cpu)]; in svc_pool_for_cpu()
418 return &serv->sv_pools[pidx % serv->sv_nrpools]; in svc_pool_for_cpu()