Lines Matching defs:nslot

50 static size_t __sizeof_namespace_index(u32 nslot)
52 return ALIGN(sizeof(struct nd_namespace_index) + DIV_ROUND_UP(nslot, 8),
75 u32 nslot, space, size;
83 nslot = nvdimm_num_label_slots(ndd);
84 space = ndd->nsarea.config_size - nslot * sizeof_namespace_label(ndd);
85 size = __sizeof_namespace_index(nslot) * 2;
86 if (size <= space && nslot >= 2)
117 * ....nslot...
134 u32 nslot;
204 nslot = __le32_to_cpu(nsindex[i]->nslot);
205 if (nslot * sizeof_namespace_label(ndd)
208 dev_dbg(dev, "nsindex%d nslot: %u invalid, config_size: %#x\n",
209 i, nslot, ndd->nsarea.config_size);
313 * @nslot: on return set to the number of slots in the label space
317 unsigned long **free, u32 *nslot)
326 *nslot = __le32_to_cpu(nsindex->nslot);
343 unsigned long **free, u32 *nslot)
346 free, nslot);
351 unsigned long **free, u32 *nslot)
354 free, nslot);
402 u32 nslot, slot;
404 if (!preamble_current(ndd, &nsindex, &free, &nslot))
407 for_each_clear_bit_le(slot, free, nslot) {
440 u32 nslot;
512 nslot = __le32_to_cpu(nsindex->nslot);
515 for (i = 0; i < nslot; i++, offset += ndd->nslabel_size) {
560 u32 nslot, slot;
563 if (!preamble_current(ndd, &nsindex, &free, &nslot))
566 for_each_clear_bit_le(slot, free, nslot) {
590 u32 nslot, slot;
592 if (!preamble_current(ndd, &nsindex, &free, &nslot))
595 for_each_clear_bit_le(slot, free, nslot) {
613 u32 nslot, slot;
615 if (!preamble_next(ndd, &nsindex, &free, &nslot))
620 slot = find_next_bit_le(free, nslot, 0);
621 if (slot == nslot)
633 u32 nslot;
635 if (!preamble_next(ndd, &nsindex, &free, &nslot))
640 if (slot < nslot)
649 u32 nslot;
653 if (!preamble_next(ndd, &nsindex, &free, &nslot))
656 return bitmap_weight(free, nslot);
665 u32 nslot;
670 nslot = nvdimm_num_label_slots(ndd);
672 nslot = __le32_to_cpu(nsindex->nslot);
689 nsindex->nslot = __cpu_to_le32(nslot);
698 u32 nfree = ALIGN(nslot, BITS_PER_LONG);
702 for (i = 0, last_bits = nfree - nslot; i < last_bits; i++)
703 clear_bit_le(nslot + i, free);
886 u32 nslot, slot;
891 if (!preamble_next(ndd, &nsindex, &free, &nslot))
1018 u32 nslot, slot;
1025 if (!preamble_next(ndd, &nsindex, &free, &nslot))