Lines Matching refs:label_id

295 		struct nd_mapping *nd_mapping, struct nd_label_id *label_id,  in scan_free()  argument
306 if (strcmp(res->name, label_id->id) == 0) in scan_free()
342 struct nd_label_id *label_id, resource_size_t n) in shrink_dpa_allocation() argument
350 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
358 static resource_size_t init_dpa_allocation(struct nd_label_id *label_id, in init_dpa_allocation() argument
367 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation()
393 struct nd_label_id *label_id, struct resource *prev, in space_valid() argument
397 bool is_reserve = strcmp(label_id->id, "pmem-reserve") == 0; in space_valid()
433 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument
443 if (strcmp(label_id->id, res->name) == 0) in scan_allocate()
468 space_valid(nd_region, ndd, label_id, NULL, next, exist, in scan_allocate()
479 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
490 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
502 if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
511 if (strcmp(next->name, label_id->id) == 0) { in scan_allocate()
518 } else if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
524 if (strcmp(res->name, label_id->id) == 0) in scan_allocate()
534 new_res = nvdimm_allocate_dpa(ndd, label_id, in scan_allocate()
570 return init_dpa_allocation(label_id, nd_region, nd_mapping, n); in scan_allocate()
575 struct nd_mapping *nd_mapping, struct nd_label_id *label_id) in merge_dpa() argument
580 if (strncmp("pmem", label_id->id, 4) == 0) in merge_dpa()
588 if (!next || strcmp(res->name, label_id->id) != 0 in merge_dpa()
589 || strcmp(next->name, label_id->id) != 0 in merge_dpa()
609 struct nd_label_id label_id; in __reserve_free_pmem() local
619 memset(&label_id, 0, sizeof(label_id)); in __reserve_free_pmem()
620 strcat(label_id.id, "pmem-reserve"); in __reserve_free_pmem()
631 rem = scan_allocate(nd_region, nd_mapping, &label_id, n); in __reserve_free_pmem()
667 struct nd_label_id *label_id, resource_size_t n) in grow_dpa_allocation() argument
676 rem = scan_allocate(nd_region, nd_mapping, label_id, rem); in grow_dpa_allocation()
684 rc = merge_dpa(nd_region, nd_mapping, label_id); in grow_dpa_allocation()
706 struct nd_label_id label_id; in nd_namespace_pmem_set_resource() local
714 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
718 if (strcmp(res->name, label_id.id) == 0) { in nd_namespace_pmem_set_resource()
750 struct nd_label_id label_id; in __size_store() local
783 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
795 allocated += nvdimm_allocated_dpa(ndd, &label_id); in __size_store()
808 rc = shrink_dpa_allocation(nd_region, &label_id, in __size_store()
811 rc = grow_dpa_allocation(nd_region, &label_id, val - allocated); in __size_store()
1005 struct nd_label_id label_id; in namespace_update_uuid() local
1011 nd_label_gen_id(&label_id, &uuid, in namespace_update_uuid()
1013 if (strcmp(old_label_id.id, label_id.id) == 0) in namespace_update_uuid()
1135 struct nd_label_id label_id; in dpa_extents_show() local
1151 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1158 if (strcmp(res->name, label_id.id) == 0) in dpa_extents_show()