Lines Matching refs:label_id

295 		struct nd_mapping *nd_mapping, struct nd_label_id *label_id,
306 if (strcmp(res->name, label_id->id) == 0)
331 * shrink_dpa_allocation - for each dimm in region free n bytes for label_id
333 * @label_id: unique identifier for the namespace consuming this dpa range
342 struct nd_label_id *label_id, resource_size_t n)
350 rc = scan_free(nd_region, nd_mapping, label_id, n);
358 static resource_size_t init_dpa_allocation(struct nd_label_id *label_id,
367 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n);
380 * @label_id: namespace id to allocate space
393 struct nd_label_id *label_id, struct resource *prev,
397 bool is_reserve = strcmp(label_id->id, "pmem-reserve") == 0;
433 struct nd_mapping *nd_mapping, struct nd_label_id *label_id,
443 if (strcmp(label_id->id, res->name) == 0)
468 space_valid(nd_region, ndd, label_id, NULL, next, exist,
479 space_valid(nd_region, ndd, label_id, res, next, exist,
490 space_valid(nd_region, ndd, label_id, res, next, exist,
502 if (strcmp(res->name, label_id->id) == 0) {
511 if (strcmp(next->name, label_id->id) == 0) {
518 } else if (strcmp(res->name, label_id->id) == 0) {
524 if (strcmp(res->name, label_id->id) == 0)
534 new_res = nvdimm_allocate_dpa(ndd, label_id,
570 return init_dpa_allocation(label_id, nd_region, nd_mapping, n);
575 struct nd_mapping *nd_mapping, struct nd_label_id *label_id)
580 if (strncmp("pmem", label_id->id, 4) == 0)
588 if (!next || strcmp(res->name, label_id->id) != 0
589 || strcmp(next->name, label_id->id) != 0
609 struct nd_label_id label_id;
619 memset(&label_id, 0, sizeof(label_id));
620 strcat(label_id.id, "pmem-reserve");
631 rem = scan_allocate(nd_region, nd_mapping, &label_id, n);
654 * grow_dpa_allocation - for each dimm allocate n bytes for @label_id
656 * @label_id: unique identifier for the namespace consuming this dpa range
667 struct nd_label_id *label_id, resource_size_t n)
676 rem = scan_allocate(nd_region, nd_mapping, label_id, rem);
684 rc = merge_dpa(nd_region, nd_mapping, label_id);
706 struct nd_label_id label_id;
714 nd_label_gen_id(&label_id, nspm->uuid, 0);
718 if (strcmp(res->name, label_id.id) == 0) {
750 struct nd_label_id label_id;
783 nd_label_gen_id(&label_id, uuid, flags);
795 allocated += nvdimm_allocated_dpa(ndd, &label_id);
808 rc = shrink_dpa_allocation(nd_region, &label_id,
811 rc = grow_dpa_allocation(nd_region, &label_id, val - allocated);
951 * @dev: namespace type for generating label_id
1005 struct nd_label_id label_id;
1011 nd_label_gen_id(&label_id, &uuid,
1013 if (strcmp(old_label_id.id, label_id.id) == 0)
1135 struct nd_label_id label_id;
1151 nd_label_gen_id(&label_id, uuid, flags);
1158 if (strcmp(res->name, label_id.id) == 0)