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()
75 bool nd_is_uuid_unique(struct device *dev, uuid_t *uuid) in nd_is_uuid_unique() argument
82 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
177 return nspm->uuid; in nd_dev_to_uuid()
249 if (size == 0 && nspm->uuid) in nd_namespace_label_update()
251 else if (!nspm->uuid) in nd_namespace_label_update()
698 if (size && !nspm->uuid) { in nd_namespace_pmem_set_resource()
703 if (size && nspm->uuid) { in nd_namespace_pmem_set_resource()
714 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
733 static bool uuid_not_set(const uuid_t *uuid, struct device *dev, in uuid_not_set() argument
736 if (!uuid) { in uuid_not_set()
753 uuid_t *uuid = NULL; in __size_store() local
761 uuid = nspm->uuid; in __size_store()
769 if (uuid_not_set(uuid, dev, __func__)) in __size_store()
783 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
857 kfree(nspm->uuid); in size_store()
858 nspm->uuid = NULL; in size_store()
931 return nspm->uuid; in namespace_to_uuid()
939 uuid_t *uuid = namespace_to_uuid(dev); in uuid_show() local
941 if (IS_ERR(uuid)) in uuid_show()
942 return PTR_ERR(uuid); in uuid_show()
943 if (uuid) in uuid_show()
944 return sprintf(buf, "%pUb\n", uuid); in uuid_show()
1006 uuid_t uuid; in namespace_update_uuid() local
1010 nsl_get_uuid(ndd, nd_label, &uuid); in namespace_update_uuid()
1011 nd_label_gen_id(&label_id, &uuid, in namespace_update_uuid()
1028 uuid_t *uuid = NULL; in uuid_store() local
1035 ns_uuid = &nspm->uuid; in uuid_store()
1045 rc = nd_uuid_store(dev, &uuid, buf, len); in uuid_store()
1047 rc = namespace_update_uuid(nd_region, dev, uuid, ns_uuid); in uuid_store()
1051 kfree(uuid); in uuid_store()
1059 static DEVICE_ATTR_RW(uuid);
1136 uuid_t *uuid = NULL; in dpa_extents_show() local
1144 uuid = nspm->uuid; in dpa_extents_show()
1148 if (!uuid) in dpa_extents_show()
1151 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1504 if (uuid_not_set(nspm->uuid, &ndns->dev, __func__)) in nvdimm_namespace_common_probe()
1554 static bool has_uuid_at_pos(struct nd_region *nd_region, const uuid_t *uuid, in has_uuid_at_pos() argument
1578 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in has_uuid_at_pos()
1676 uuid_t uuid; in create_namespace_pmem() local
1708 nsl_get_uuid(ndd, nd_label, &uuid); in create_namespace_pmem()
1709 if (has_uuid_at_pos(nd_region, &uuid, cookie, i)) in create_namespace_pmem()
1711 if (has_uuid_at_pos(nd_region, &uuid, altcookie, i)) in create_namespace_pmem()
1735 nsl_get_uuid(ndd, nd_label, &uuid); in create_namespace_pmem()
1736 rc = select_pmem_id(nd_region, &uuid); in create_namespace_pmem()
1759 WARN_ON(nspm->alt_name || nspm->uuid); in create_namespace_pmem()
1762 nsl_get_uuid(ndd, label0, &uuid); in create_namespace_pmem()
1763 nspm->uuid = kmemdup(&uuid, sizeof(uuid_t), GFP_KERNEL); in create_namespace_pmem()
1769 if (!nspm->alt_name || !nspm->uuid) { in create_namespace_pmem()
1894 uuid_t *uuid = namespace_to_uuid(devs[i]); in add_namespace_resource() local
1896 if (IS_ERR(uuid)) { in add_namespace_resource()
1901 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in add_namespace_resource()
1904 "error: conflicting extents for uuid: %pUb\n", uuid); in add_namespace_resource()