Lines Matching refs:nslot

42 static size_t __sizeof_namespace_index(u32 nslot)
44 return ALIGN(sizeof(struct nd_namespace_index) + DIV_ROUND_UP(nslot, 8),
67 u32 nslot, space, size;
75 nslot = nvdimm_num_label_slots(ndd);
76 space = ndd->nsarea.config_size - nslot * sizeof_namespace_label(ndd);
77 size = __sizeof_namespace_index(nslot) * 2;
78 if (size <= space && nslot >= 2)
109 * ....nslot...
126 u32 nslot;
196 nslot = __le32_to_cpu(nsindex[i]->nslot);
197 if (nslot * sizeof_namespace_label(ndd)
200 dev_dbg(dev, "nsindex%d nslot: %u invalid, config_size: %#x\n",
201 i, nslot, ndd->nsarea.config_size);
305 * @nslot: on return set to the number of slots in the label space
309 unsigned long **free, u32 *nslot)
318 *nslot = __le32_to_cpu(nsindex->nslot);
335 unsigned long **free, u32 *nslot)
338 free, nslot);
343 unsigned long **free, u32 *nslot)
346 free, nslot);
378 u32 nslot, slot;
380 if (!preamble_current(ndd, &nsindex, &free, &nslot))
383 for_each_clear_bit_le(slot, free, nslot) {
419 u32 nslot;
491 nslot = __le32_to_cpu(nsindex->nslot);
494 for (i = 0; i < nslot; i++, offset += ndd->nslabel_size) {
539 u32 nslot, slot;
542 if (!preamble_current(ndd, &nsindex, &free, &nslot))
545 for_each_clear_bit_le(slot, free, nslot) {
569 u32 nslot, slot;
571 if (!preamble_current(ndd, &nsindex, &free, &nslot))
574 for_each_clear_bit_le(slot, free, nslot) {
592 u32 nslot, slot;
594 if (!preamble_next(ndd, &nsindex, &free, &nslot))
599 slot = find_next_bit_le(free, nslot, 0);
600 if (slot == nslot)
612 u32 nslot;
614 if (!preamble_next(ndd, &nsindex, &free, &nslot))
619 if (slot < nslot)
628 u32 nslot;
632 if (!preamble_next(ndd, &nsindex, &free, &nslot))
635 return bitmap_weight(free, nslot);
644 u32 nslot;
649 nslot = nvdimm_num_label_slots(ndd);
651 nslot = __le32_to_cpu(nsindex->nslot);
668 nsindex->nslot = __cpu_to_le32(nslot);
677 u32 nfree = ALIGN(nslot, BITS_PER_LONG);
681 for (i = 0, last_bits = nfree - nslot; i < last_bits; i++)
682 clear_bit_le(nslot + i, free);
772 u32 nslot, slot;
777 if (!preamble_next(ndd, &nsindex, &free, &nslot))
914 u32 nslot, slot;
916 if (!preamble_next(ndd, &nsindex, &free, &nslot))
942 victim_map = bitmap_zalloc(nslot, GFP_KERNEL);
947 for_each_clear_bit_le(slot, free, nslot) {
1074 for_each_set_bit(slot, victim_map, victim_map ? nslot : 0) {
1125 for_each_clear_bit_le(slot, free, nslot) {
1216 u32 nslot, slot;
1223 if (!preamble_next(ndd, &nsindex, &free, &nslot))