Lines Matching defs:label

12 #include "label.h"
72 * block size is 256 bytes. The label size is 128 for namespaces
81 dev_err(ndd->dev, "label area (%d) too small to host (%d byte) labels\n",
89 * On media label format consists of two index blocks followed
137 /* label sizes larger than 128 arrived with v1.2 */
238 * Resolve this dependency loop by probing for known label
276 unsigned long label, base;
278 label = (unsigned long) nd_label;
281 return (label - base) / sizeof_namespace_label(ndd);
286 unsigned long label, base;
289 label = base + sizeof_namespace_label(ndd) * slot;
291 return (struct nd_namespace_label *) label;
301 * @ndd: dimm container for the relevant label set
304 * @free: on return set to the free label bitmap in the index
305 * @nslot: on return set to the number of slots in the label space
381 return 0; /* no label, nothing to reserve */
437 * Start at a label size of 128 as this should result in the largest
489 /* Determine starting offset for label data */
520 /* Read the label data */
752 u32 slot = to_slot(ndd, victim->label);
756 victim->label = NULL;
791 /* allocate and write the label to the staging (next) index */
825 /* update label */
832 /* Garbage collect the previous label */
835 if (!label_ent->label)
838 || memcmp(nspm->uuid, label_ent->label->uuid,
848 if (!label_ent->label) {
849 label_ent->label = nd_label;
854 "failed to track label: %d\n",
894 * 2/ Allocate and write the label to the staging (next) index
926 * bit inefficient, but we need to know that we have the label
941 /* convert old local-label-map to dimm-slot victim-map */
962 /* don't allow updates that consume the last label */
964 dev_info(&nsblk->common.dev, "insufficient label space\n");
993 * Find the resource associated with the first label in the set
1065 /* update label */
1092 nd_label = label_ent->label;
1101 label_ent->label = NULL;
1132 dev_vdbg(&nsblk->common.dev, "assign label slot: %d\n", slot);
1134 if (label_ent->label)
1136 label_ent->label = nd_label;
1142 "failed to track label slot%d\n", slot);
1153 * 1/ repair the allocated label bitmap in the index
1228 struct nd_namespace_label *nd_label = label_ent->label;
1241 label_ent->label = NULL;