Lines Matching defs:label
12 #include "label.h"
80 * block size is 256 bytes. The label size is 128 for namespaces
89 dev_err(ndd->dev, "label area (%d) too small to host (%d byte) labels\n",
97 * On media label format consists of two index blocks followed
145 /* label sizes larger than 128 arrived with v1.2 */
246 * Resolve this dependency loop by probing for known label
284 unsigned long label, base;
286 label = (unsigned long) nd_label;
289 return (label - base) / sizeof_namespace_label(ndd);
294 unsigned long label, base;
297 label = base + sizeof_namespace_label(ndd) * slot;
299 return (struct nd_namespace_label *) label;
309 * @ndd: dimm container for the relevant label set
312 * @free: on return set to the free label bitmap in the index
313 * @nslot: on return set to the number of slots in the label space
405 return 0; /* no label, nothing to reserve */
458 * Start at a label size of 128 as this should result in the largest
510 /* Determine starting offset for label data */
541 /* Read the label data */
812 u32 slot = to_slot(ndd, victim->label);
816 victim->label = NULL;
905 /* allocate and write the label to the staging (next) index */
929 /* update label */
936 /* Garbage collect the previous label */
939 if (!label_ent->label)
942 nsl_uuid_equal(ndd, label_ent->label, nspm->uuid))
951 if (!label_ent->label) {
952 label_ent->label = nd_label;
957 "failed to track label: %d\n",
1030 struct nd_namespace_label *nd_label = label_ent->label;
1042 label_ent->label = NULL;