Lines Matching defs:npossible
98 u32 npossible = num_possible_cpus();
105 tbls->cid_to_cpu = kvzalloc_objs(*tbls->cid_to_cpu, npossible);
107 tbls->cid_to_shard = kvzalloc_objs(*tbls->cid_to_shard, npossible);
108 tbls->shard_node = kvzalloc_objs(*tbls->shard_node, npossible);
109 tbls->shard_ranges = kvzalloc_objs(*tbls->shard_ranges, npossible);
110 tbls->topo = kvzalloc_objs(*tbls->topo, npossible);
475 u32 npossible = num_possible_cpus();
497 if (nr_shards && nr_shards <= npossible)
517 if (!nr_shards || nr_shards > npossible) {
540 if (shard_start[si] >= npossible) {
542 si, shard_start[si], npossible);
552 if (npossible - shard_start[nr_shards - 1] > SCX_CID_SHARD_MAX_CPUS) {
554 nr_shards - 1, npossible - shard_start[nr_shards - 1],
583 u32 end = (si + 1 < nr_shards) ? shard_start[si + 1] : npossible;
600 for (cid = 0; cid < npossible; cid++) {
610 memset(tbls->shard_ranges, 0, npossible * sizeof(*tbls->shard_ranges));
612 u32 end = (si + 1 < nr_shards) ? shard_start[si + 1] : npossible;
985 u32 base, nr_cids, alloc_words, npossible = num_possible_cpus();
992 if (unlikely(base >= npossible || nr_cids > npossible - base ||