Lines Matching refs:uuid

32 	kfree(nspm->uuid);  in namespace_pmem_release()
46 uuid2 = nspm->uuid; in is_uuid_busy()
50 uuid2 = nd_btt->uuid; in is_uuid_busy()
54 uuid2 = nd_pfn->uuid; in is_uuid_busy()
77 bool nd_is_uuid_unique(struct device *dev, uuid_t *uuid) in nd_is_uuid_unique() argument
84 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
179 return nspm->uuid; in nd_dev_to_uuid()
251 if (size == 0 && nspm->uuid) in nd_namespace_label_update()
253 else if (!nspm->uuid) in nd_namespace_label_update()
704 if (size && !nspm->uuid) { in nd_namespace_pmem_set_resource()
709 if (size && nspm->uuid) { in nd_namespace_pmem_set_resource()
720 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
739 static bool uuid_not_set(const uuid_t *uuid, struct device *dev, in uuid_not_set() argument
742 if (!uuid) { in uuid_not_set()
759 uuid_t *uuid = NULL; in __size_store() local
767 uuid = nspm->uuid; in __size_store()
775 if (uuid_not_set(uuid, dev, __func__)) in __size_store()
789 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
863 kfree(nspm->uuid); in size_store()
864 nspm->uuid = NULL; in size_store()
937 return nspm->uuid; in namespace_to_uuid()
945 uuid_t *uuid = namespace_to_uuid(dev); in uuid_show() local
947 if (IS_ERR(uuid)) in uuid_show()
948 return PTR_ERR(uuid); in uuid_show()
949 if (uuid) in uuid_show()
950 return sprintf(buf, "%pUb\n", uuid); in uuid_show()
1014 uuid_t uuid; in namespace_update_uuid() local
1018 nsl_get_uuid(ndd, nd_label, &uuid); in namespace_update_uuid()
1019 nd_label_gen_id(&label_id, &uuid, in namespace_update_uuid()
1036 uuid_t *uuid = NULL; in uuid_store() local
1043 ns_uuid = &nspm->uuid; in uuid_store()
1053 rc = nd_uuid_store(dev, &uuid, buf, len); in uuid_store()
1055 rc = namespace_update_uuid(nd_region, dev, uuid, ns_uuid); in uuid_store()
1059 kfree(uuid); in uuid_store()
1067 static DEVICE_ATTR_RW(uuid);
1144 uuid_t *uuid = NULL; in dpa_extents_show() local
1152 uuid = nspm->uuid; in dpa_extents_show()
1156 if (!uuid) in dpa_extents_show()
1159 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1512 if (uuid_not_set(nspm->uuid, &ndns->dev, __func__)) in nvdimm_namespace_common_probe()
1562 static bool has_uuid_at_pos(struct nd_region *nd_region, const uuid_t *uuid, in has_uuid_at_pos() argument
1586 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in has_uuid_at_pos()
1683 uuid_t uuid; in create_namespace_pmem() local
1715 nsl_get_uuid(ndd, nd_label, &uuid); in create_namespace_pmem()
1716 if (has_uuid_at_pos(nd_region, &uuid, cookie, i)) in create_namespace_pmem()
1718 if (has_uuid_at_pos(nd_region, &uuid, altcookie, i)) in create_namespace_pmem()
1742 nsl_get_uuid(ndd, nd_label, &uuid); in create_namespace_pmem()
1743 rc = select_pmem_id(nd_region, &uuid); in create_namespace_pmem()
1766 WARN_ON(nspm->alt_name || nspm->uuid); in create_namespace_pmem()
1769 nsl_get_uuid(ndd, label0, &uuid); in create_namespace_pmem()
1770 nspm->uuid = kmemdup(&uuid, sizeof(uuid_t), GFP_KERNEL); in create_namespace_pmem()
1776 if (!nspm->alt_name || !nspm->uuid) { in create_namespace_pmem()
1898 uuid_t *uuid = namespace_to_uuid(devs[i]); in add_namespace_resource() local
1900 if (IS_ERR(uuid)) { in add_namespace_resource()
1905 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in add_namespace_resource()
1908 "error: conflicting extents for uuid: %pUb\n", uuid); in add_namespace_resource()