Lines Matching defs:size
67 u32 nslot, space, size;
70 * Per UEFI 2.7, the minimum size of the Label Storage Area is large
72 * block size is 256 bytes. The label size is 128 for namespaces
77 size = __sizeof_namespace_index(nslot) * 2;
78 if (size <= space && nslot >= 2)
79 return size / 2;
128 u64 sum_save, sum, size;
189 size = __le64_to_cpu(nsindex[i]->mysize);
190 if (size > sizeof_namespace_index(ndd)
191 || size < sizeof(struct nd_namespace_index)) {
192 dev_dbg(dev, "nsindex%d mysize: %#llx invalid\n", i, size);
236 * need to know the size of the labels, and we can't trust the
237 * size of the labels until we validate the index blocks.
294 #define for_each_clear_bit_le(bit, addr, size) \
295 for ((bit) = find_next_zero_bit_le((addr), (size), 0); \
296 (bit) < (size); \
297 (bit) = find_next_zero_bit_le((addr), (size), (bit) + 1))
437 * Start at a label size of 128 as this should result in the largest
438 * possible namespace index size.
455 * going to take given our maximum transfer size, and then reduce our
456 * maximum transfer size based on that result.
468 /* Make our initial read size a multiple of max_xfer size */
552 u64 size = __le64_to_cpu(nd_label->rawsize);
556 "slot%d invalid slot: %d dpa: %llx size: %llx\n",
557 slot, label_slot, dpa, size);
1256 struct nd_namespace_pmem *nspm, resource_size_t size)
1266 if (size == 0) {
1288 if (size == 0)
1304 struct nd_namespace_blk *nsblk, resource_size_t size)
1310 if (size == 0)