Lines Matching refs:label_id

297 		struct nd_mapping *nd_mapping, struct nd_label_id *label_id,  in scan_free()  argument
308 if (strcmp(res->name, label_id->id) == 0) in scan_free()
346 struct nd_label_id *label_id, resource_size_t n) in shrink_dpa_allocation() argument
354 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
362 static resource_size_t init_dpa_allocation(struct nd_label_id *label_id, in init_dpa_allocation() argument
371 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation()
397 struct nd_label_id *label_id, struct resource *prev, in space_valid() argument
401 bool is_reserve = strcmp(label_id->id, "pmem-reserve") == 0; in space_valid()
437 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument
447 if (strcmp(label_id->id, res->name) == 0) in scan_allocate()
472 space_valid(nd_region, ndd, label_id, NULL, next, exist, in scan_allocate()
483 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
494 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
506 if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
515 if (strcmp(next->name, label_id->id) == 0) { in scan_allocate()
522 } else if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
528 if (strcmp(res->name, label_id->id) == 0) in scan_allocate()
538 new_res = nvdimm_allocate_dpa(ndd, label_id, in scan_allocate()
574 return init_dpa_allocation(label_id, nd_region, nd_mapping, n); in scan_allocate()
579 struct nd_mapping *nd_mapping, struct nd_label_id *label_id) in merge_dpa() argument
584 if (strncmp("pmem", label_id->id, 4) == 0) in merge_dpa()
592 if (!next || strcmp(res->name, label_id->id) != 0 in merge_dpa()
593 || strcmp(next->name, label_id->id) != 0 in merge_dpa()
613 struct nd_label_id label_id; in __reserve_free_pmem() local
623 memset(&label_id, 0, sizeof(label_id)); in __reserve_free_pmem()
624 strcat(label_id.id, "pmem-reserve"); in __reserve_free_pmem()
635 rem = scan_allocate(nd_region, nd_mapping, &label_id, n); in __reserve_free_pmem()
673 struct nd_label_id *label_id, resource_size_t n) in grow_dpa_allocation() argument
682 rem = scan_allocate(nd_region, nd_mapping, label_id, rem); in grow_dpa_allocation()
690 rc = merge_dpa(nd_region, nd_mapping, label_id); in grow_dpa_allocation()
712 struct nd_label_id label_id; in nd_namespace_pmem_set_resource() local
720 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
724 if (strcmp(res->name, label_id.id) == 0) { in nd_namespace_pmem_set_resource()
756 struct nd_label_id label_id; in __size_store() local
789 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
801 allocated += nvdimm_allocated_dpa(ndd, &label_id); in __size_store()
814 rc = shrink_dpa_allocation(nd_region, &label_id, in __size_store()
817 rc = grow_dpa_allocation(nd_region, &label_id, val - allocated); in __size_store()
1013 struct nd_label_id label_id; in namespace_update_uuid() local
1019 nd_label_gen_id(&label_id, &uuid, in namespace_update_uuid()
1021 if (strcmp(old_label_id.id, label_id.id) == 0) in namespace_update_uuid()
1143 struct nd_label_id label_id; in dpa_extents_show() local
1159 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1166 if (strcmp(res->name, label_id.id) == 0) in dpa_extents_show()