Home
last modified time | relevance | path

Searched refs:nslot (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/drivers/nvdimm/
Dlabel.c48 static size_t __sizeof_namespace_index(u32 nslot) in __sizeof_namespace_index() argument
50 return ALIGN(sizeof(struct nd_namespace_index) + DIV_ROUND_UP(nslot, 8), in __sizeof_namespace_index()
73 u32 nslot, space, size; in sizeof_namespace_index() local
80 nslot = nvdimm_num_label_slots(ndd); in sizeof_namespace_index()
81 space = ndd->nsarea.config_size - nslot * sizeof_namespace_label(ndd); in sizeof_namespace_index()
82 size = __sizeof_namespace_index(nslot) * 2; in sizeof_namespace_index()
83 if (size <= space && nslot >= 2) in sizeof_namespace_index()
131 u32 nslot; in __nd_label_validate() local
194 nslot = __le32_to_cpu(nsindex[i]->nslot); in __nd_label_validate()
195 if (nslot * sizeof_namespace_label(ndd) in __nd_label_validate()
[all …]
Dlabel.h71 __le32 nslot; member
/Linux-v4.19/security/selinux/ss/
Davtab.c287 for (i = 0; i < h->nslot; i++) { in avtab_destroy()
300 h->nslot = 0; in avtab_destroy()
316 u32 nslot = 0; in avtab_alloc() local
327 nslot = 1 << shift; in avtab_alloc()
328 if (nslot > MAX_AVTAB_HASH_BUCKETS) in avtab_alloc()
329 nslot = MAX_AVTAB_HASH_BUCKETS; in avtab_alloc()
330 mask = nslot - 1; in avtab_alloc()
332 h->htable = flex_array_alloc(sizeof(struct avtab_node *), nslot, in avtab_alloc()
339 h->nslot = nslot; in avtab_alloc()
342 h->nslot, nrules); in avtab_alloc()
[all …]
Davtab.h89 u32 nslot; /* number of hash slots */ member
/Linux-v4.19/kernel/cgroup/
Dcpuset.c661 int nslot; /* next empty doms[] struct cpumask slot */ in generate_sched_domains() local
759 for (nslot = 0, i = 0; i < csn; i++) { in generate_sched_domains()
769 dp = doms[nslot]; in generate_sched_domains()
771 if (nslot == ndoms) { in generate_sched_domains()
775 nslot, ndoms, csn, i, apn); in generate_sched_domains()
783 *(dattr + nslot) = SD_ATTR_INIT; in generate_sched_domains()
791 update_domain_attr_tree(dattr + nslot, b); in generate_sched_domains()
797 nslot++; in generate_sched_domains()
799 BUG_ON(nslot != ndoms); in generate_sched_domains()
/Linux-v4.19/drivers/input/misc/
Duinput.c319 int error, nslot; in uinput_create_device() local
334 nslot = input_abs_get_max(dev, ABS_MT_SLOT) + 1; in uinput_create_device()
335 error = input_mt_init_slots(dev, nslot, 0); in uinput_create_device()
/Linux-v4.19/mm/
Dpercpu.c506 int nslot = pcpu_chunk_slot(chunk); in pcpu_chunk_relocate() local
508 if (chunk != pcpu_reserved_chunk && oslot != nslot) { in pcpu_chunk_relocate()
509 if (oslot < nslot) in pcpu_chunk_relocate()
510 list_move(&chunk->list, &pcpu_slot[nslot]); in pcpu_chunk_relocate()
512 list_move_tail(&chunk->list, &pcpu_slot[nslot]); in pcpu_chunk_relocate()
/Linux-v4.19/fs/jfs/
Djfs_dtree.c118 s16 nslot; member
873 split.nslot = n; in dtInsert()
985 if (n <= split->nslot) in dtSplitUp()
1026 if ((n + sp->header.freecnt) <= split->nslot) in dtSplitUp()
1237 split->nslot = n; in dtSplitUp()
1520 n = split->nslot; in dtSplitPage()