Lines Matching refs:label_id

274 	struct nd_label_id label_id;  in nd_namespace_blk_size()  local
280 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL); in nd_namespace_blk_size()
282 if (strcmp(res->name, label_id.id) == 0) in nd_namespace_blk_size()
292 struct nd_label_id label_id; in __nd_namespace_blk_validate() local
300 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL); in __nd_namespace_blk_validate()
302 if (strcmp(res->name, label_id.id) != 0) in __nd_namespace_blk_validate()
422 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_free() argument
425 bool is_blk = strncmp(label_id->id, "blk", 3) == 0; in scan_free()
435 if (strcmp(res->name, label_id->id) == 0) in scan_free()
480 struct nd_label_id *label_id, resource_size_t n) in shrink_dpa_allocation() argument
488 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
496 static resource_size_t init_dpa_allocation(struct nd_label_id *label_id, in init_dpa_allocation() argument
500 bool is_blk = strncmp(label_id->id, "blk", 3) == 0; in init_dpa_allocation()
513 res = nvdimm_allocate_dpa(ndd, label_id, first_dpa, n); in init_dpa_allocation()
539 struct nd_label_id *label_id, struct resource *prev, in space_valid() argument
543 bool is_reserve = strcmp(label_id->id, "pmem-reserve") == 0; in space_valid()
544 bool is_pmem = strncmp(label_id->id, "pmem", 4) == 0; in space_valid()
595 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument
599 bool is_pmem = strncmp(label_id->id, "pmem", 4) == 0; in scan_allocate()
606 if (strcmp(label_id->id, res->name) == 0) in scan_allocate()
631 space_valid(nd_region, ndd, label_id, NULL, next, exist, in scan_allocate()
642 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
653 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
665 if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
674 if (strcmp(next->name, label_id->id) == 0) { in scan_allocate()
681 } else if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
687 if (strcmp(res->name, label_id->id) == 0) in scan_allocate()
701 new_res = nvdimm_allocate_dpa(ndd, label_id, in scan_allocate()
742 return init_dpa_allocation(label_id, nd_region, nd_mapping, n); in scan_allocate()
747 struct nd_mapping *nd_mapping, struct nd_label_id *label_id) in merge_dpa() argument
752 if (strncmp("pmem", label_id->id, 4) == 0) in merge_dpa()
760 if (!next || strcmp(res->name, label_id->id) != 0 in merge_dpa()
761 || strcmp(next->name, label_id->id) != 0 in merge_dpa()
781 struct nd_label_id label_id; in __reserve_free_pmem() local
791 memset(&label_id, 0, sizeof(label_id)); in __reserve_free_pmem()
792 strcat(label_id.id, "pmem-reserve"); in __reserve_free_pmem()
803 rem = scan_allocate(nd_region, nd_mapping, &label_id, n); in __reserve_free_pmem()
852 struct nd_label_id *label_id, resource_size_t n) in grow_dpa_allocation() argument
855 bool is_pmem = strncmp(label_id->id, "pmem", 4) == 0; in grow_dpa_allocation()
876 label_id, rem); in grow_dpa_allocation()
892 rc = merge_dpa(nd_region, nd_mapping, label_id); in grow_dpa_allocation()
914 struct nd_label_id label_id; in nd_namespace_pmem_set_resource() local
922 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
926 if (strcmp(res->name, label_id.id) == 0) { in nd_namespace_pmem_set_resource()
957 struct nd_label_id label_id; in __size_store() local
996 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
1008 allocated += nvdimm_allocated_dpa(ndd, &label_id); in __size_store()
1021 rc = shrink_dpa_allocation(nd_region, &label_id, in __size_store()
1024 rc = grow_dpa_allocation(nd_region, &label_id, val - allocated); in __size_store()
1233 struct nd_label_id label_id; in namespace_update_uuid() local
1237 nd_label_gen_id(&label_id, nd_label->uuid, in namespace_update_uuid()
1239 if (strcmp(old_label_id.id, label_id.id) == 0) in namespace_update_uuid()
1380 struct nd_label_id label_id; in dpa_extents_show() local
1401 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1408 if (strcmp(res->name, label_id.id) == 0) in dpa_extents_show()
2084 struct nd_label_id label_id; in nsblk_add_resource() local
2087 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL); in nsblk_add_resource()
2095 if (strcmp(res->name, label_id.id) == 0 in nsblk_add_resource()