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()
344 struct nd_label_id *label_id, resource_size_t n) in shrink_dpa_allocation() argument
352 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
360 static resource_size_t init_dpa_allocation(struct nd_label_id *label_id, in init_dpa_allocation() argument
369 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation()
395 struct nd_label_id *label_id, struct resource *prev, in space_valid() argument
399 bool is_reserve = strcmp(label_id->id, "pmem-reserve") == 0; in space_valid()
435 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument
445 if (strcmp(label_id->id, res->name) == 0) in scan_allocate()
470 space_valid(nd_region, ndd, label_id, NULL, next, exist, in scan_allocate()
481 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
492 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
504 if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
513 if (strcmp(next->name, label_id->id) == 0) { in scan_allocate()
520 } else if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
526 if (strcmp(res->name, label_id->id) == 0) in scan_allocate()
536 new_res = nvdimm_allocate_dpa(ndd, label_id, in scan_allocate()
572 return init_dpa_allocation(label_id, nd_region, nd_mapping, n); in scan_allocate()
577 struct nd_mapping *nd_mapping, struct nd_label_id *label_id) in merge_dpa() argument
582 if (strncmp("pmem", label_id->id, 4) == 0) in merge_dpa()
590 if (!next || strcmp(res->name, label_id->id) != 0 in merge_dpa()
591 || strcmp(next->name, label_id->id) != 0 in merge_dpa()
611 struct nd_label_id label_id; in __reserve_free_pmem() local
621 memset(&label_id, 0, sizeof(label_id)); in __reserve_free_pmem()
622 strcat(label_id.id, "pmem-reserve"); in __reserve_free_pmem()
633 rem = scan_allocate(nd_region, nd_mapping, &label_id, n); in __reserve_free_pmem()
671 struct nd_label_id *label_id, resource_size_t n) in grow_dpa_allocation() argument
680 rem = scan_allocate(nd_region, nd_mapping, label_id, rem); in grow_dpa_allocation()
688 rc = merge_dpa(nd_region, nd_mapping, label_id); in grow_dpa_allocation()
710 struct nd_label_id label_id; in nd_namespace_pmem_set_resource() local
718 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
722 if (strcmp(res->name, label_id.id) == 0) { in nd_namespace_pmem_set_resource()
754 struct nd_label_id label_id; in __size_store() local
787 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
799 allocated += nvdimm_allocated_dpa(ndd, &label_id); in __size_store()
812 rc = shrink_dpa_allocation(nd_region, &label_id, in __size_store()
815 rc = grow_dpa_allocation(nd_region, &label_id, val - allocated); in __size_store()
1003 struct nd_label_id label_id; in namespace_update_uuid() local
1009 nd_label_gen_id(&label_id, &uuid, in namespace_update_uuid()
1011 if (strcmp(old_label_id.id, label_id.id) == 0) in namespace_update_uuid()
1141 struct nd_label_id label_id; in dpa_extents_show() local
1157 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1164 if (strcmp(res->name, label_id.id) == 0) in dpa_extents_show()