Lines Matching refs:label_id

274 	struct nd_label_id label_id;
280 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL);
282 if (strcmp(res->name, label_id.id) == 0)
292 struct nd_label_id label_id;
300 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL);
302 if (strcmp(res->name, label_id.id) != 0)
422 struct nd_mapping *nd_mapping, struct nd_label_id *label_id,
425 bool is_blk = strncmp(label_id->id, "blk", 3) == 0;
435 if (strcmp(res->name, label_id->id) == 0)
469 * shrink_dpa_allocation - for each dimm in region free n bytes for label_id
471 * @label_id: unique identifier for the namespace consuming this dpa range
480 struct nd_label_id *label_id, resource_size_t n)
488 rc = scan_free(nd_region, nd_mapping, label_id, n);
496 static resource_size_t init_dpa_allocation(struct nd_label_id *label_id,
500 bool is_blk = strncmp(label_id->id, "blk", 3) == 0;
513 res = nvdimm_allocate_dpa(ndd, label_id, first_dpa, n);
526 * @label_id: namespace id to allocate space
539 struct nd_label_id *label_id, struct resource *prev,
543 bool is_reserve = strcmp(label_id->id, "pmem-reserve") == 0;
544 bool is_pmem = strncmp(label_id->id, "pmem", 4) == 0;
595 struct nd_mapping *nd_mapping, struct nd_label_id *label_id,
599 bool is_pmem = strncmp(label_id->id, "pmem", 4) == 0;
606 if (strcmp(label_id->id, res->name) == 0)
631 space_valid(nd_region, ndd, label_id, NULL, next, exist,
642 space_valid(nd_region, ndd, label_id, res, next, exist,
653 space_valid(nd_region, ndd, label_id, res, next, exist,
665 if (strcmp(res->name, label_id->id) == 0) {
674 if (strcmp(next->name, label_id->id) == 0) {
681 } else if (strcmp(res->name, label_id->id) == 0) {
687 if (strcmp(res->name, label_id->id) == 0)
701 new_res = nvdimm_allocate_dpa(ndd, label_id,
742 return init_dpa_allocation(label_id, nd_region, nd_mapping, n);
747 struct nd_mapping *nd_mapping, struct nd_label_id *label_id)
752 if (strncmp("pmem", label_id->id, 4) == 0)
760 if (!next || strcmp(res->name, label_id->id) != 0
761 || strcmp(next->name, label_id->id) != 0
781 struct nd_label_id label_id;
791 memset(&label_id, 0, sizeof(label_id));
792 strcat(label_id.id, "pmem-reserve");
803 rem = scan_allocate(nd_region, nd_mapping, &label_id, n);
839 * grow_dpa_allocation - for each dimm allocate n bytes for @label_id
841 * @label_id: unique identifier for the namespace consuming this dpa range
852 struct nd_label_id *label_id, resource_size_t n)
855 bool is_pmem = strncmp(label_id->id, "pmem", 4) == 0;
876 label_id, rem);
892 rc = merge_dpa(nd_region, nd_mapping, label_id);
914 struct nd_label_id label_id;
922 nd_label_gen_id(&label_id, nspm->uuid, 0);
926 if (strcmp(res->name, label_id.id) == 0) {
957 struct nd_label_id label_id;
996 nd_label_gen_id(&label_id, uuid, flags);
1008 allocated += nvdimm_allocated_dpa(ndd, &label_id);
1021 rc = shrink_dpa_allocation(nd_region, &label_id,
1024 rc = grow_dpa_allocation(nd_region, &label_id, val - allocated);
1179 * @dev: namespace type for generating label_id
1233 struct nd_label_id label_id;
1237 nd_label_gen_id(&label_id, nd_label->uuid,
1239 if (strcmp(old_label_id.id, label_id.id) == 0)
1380 struct nd_label_id label_id;
1401 nd_label_gen_id(&label_id, uuid, flags);
1408 if (strcmp(res->name, label_id.id) == 0)
2084 struct nd_label_id label_id;
2087 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL);
2095 if (strcmp(res->name, label_id.id) == 0