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