Lines Matching refs:label_id

294 		struct nd_mapping *nd_mapping, struct nd_label_id *label_id,  in scan_free()  argument
305 if (strcmp(res->name, label_id->id) == 0) in scan_free()
341 struct nd_label_id *label_id, resource_size_t n) in shrink_dpa_allocation() argument
349 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
357 static resource_size_t init_dpa_allocation(struct nd_label_id *label_id, in init_dpa_allocation() argument
366 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation()
392 struct nd_label_id *label_id, struct resource *prev, in space_valid() argument
396 bool is_reserve = strcmp(label_id->id, "pmem-reserve") == 0; in space_valid()
432 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument
442 if (strcmp(label_id->id, res->name) == 0) in scan_allocate()
467 space_valid(nd_region, ndd, label_id, NULL, next, exist, in scan_allocate()
478 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
489 space_valid(nd_region, ndd, label_id, res, next, exist, in scan_allocate()
501 if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
510 if (strcmp(next->name, label_id->id) == 0) { in scan_allocate()
517 } else if (strcmp(res->name, label_id->id) == 0) { in scan_allocate()
523 if (strcmp(res->name, label_id->id) == 0) in scan_allocate()
533 new_res = nvdimm_allocate_dpa(ndd, label_id, in scan_allocate()
569 return init_dpa_allocation(label_id, nd_region, nd_mapping, n); in scan_allocate()
574 struct nd_mapping *nd_mapping, struct nd_label_id *label_id) in merge_dpa() argument
579 if (strncmp("pmem", label_id->id, 4) == 0) in merge_dpa()
587 if (!next || strcmp(res->name, label_id->id) != 0 in merge_dpa()
588 || strcmp(next->name, label_id->id) != 0 in merge_dpa()
608 struct nd_label_id label_id; in __reserve_free_pmem() local
618 memset(&label_id, 0, sizeof(label_id)); in __reserve_free_pmem()
619 strcat(label_id.id, "pmem-reserve"); in __reserve_free_pmem()
630 rem = scan_allocate(nd_region, nd_mapping, &label_id, n); in __reserve_free_pmem()
666 struct nd_label_id *label_id, resource_size_t n) in grow_dpa_allocation() argument
675 rem = scan_allocate(nd_region, nd_mapping, label_id, rem); in grow_dpa_allocation()
683 rc = merge_dpa(nd_region, nd_mapping, label_id); in grow_dpa_allocation()
705 struct nd_label_id label_id; in nd_namespace_pmem_set_resource() local
713 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
717 if (strcmp(res->name, label_id.id) == 0) { in nd_namespace_pmem_set_resource()
749 struct nd_label_id label_id; in __size_store() local
782 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
794 allocated += nvdimm_allocated_dpa(ndd, &label_id); in __size_store()
807 rc = shrink_dpa_allocation(nd_region, &label_id, in __size_store()
810 rc = grow_dpa_allocation(nd_region, &label_id, val - allocated); in __size_store()
1004 struct nd_label_id label_id; in namespace_update_uuid() local
1010 nd_label_gen_id(&label_id, &uuid, in namespace_update_uuid()
1012 if (strcmp(old_label_id.id, label_id.id) == 0) in namespace_update_uuid()
1134 struct nd_label_id label_id; in dpa_extents_show() local
1150 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1157 if (strcmp(res->name, label_id.id) == 0) in dpa_extents_show()