Lines Matching refs:uuid
31 kfree(nspm->uuid); in namespace_pmem_release()
45 uuid2 = nspm->uuid; in is_uuid_busy()
49 uuid2 = nd_btt->uuid; in is_uuid_busy()
53 uuid2 = nd_pfn->uuid; in is_uuid_busy()
74 bool nd_is_uuid_unique(struct device *dev, uuid_t *uuid) in nd_is_uuid_unique() argument
81 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
176 return nspm->uuid; in nd_dev_to_uuid()
248 if (size == 0 && nspm->uuid) in nd_namespace_label_update()
250 else if (!nspm->uuid) in nd_namespace_label_update()
697 if (size && !nspm->uuid) { in nd_namespace_pmem_set_resource()
702 if (size && nspm->uuid) { in nd_namespace_pmem_set_resource()
713 nd_label_gen_id(&label_id, nspm->uuid, 0); in nd_namespace_pmem_set_resource()
732 static bool uuid_not_set(const uuid_t *uuid, struct device *dev, in uuid_not_set() argument
735 if (!uuid) { in uuid_not_set()
752 uuid_t *uuid = NULL; in __size_store() local
760 uuid = nspm->uuid; in __size_store()
768 if (uuid_not_set(uuid, dev, __func__)) in __size_store()
782 nd_label_gen_id(&label_id, uuid, flags); in __size_store()
856 kfree(nspm->uuid); in size_store()
857 nspm->uuid = NULL; in size_store()
930 return nspm->uuid; in namespace_to_uuid()
938 uuid_t *uuid = namespace_to_uuid(dev); in uuid_show() local
940 if (IS_ERR(uuid)) in uuid_show()
941 return PTR_ERR(uuid); in uuid_show()
942 if (uuid) in uuid_show()
943 return sprintf(buf, "%pUb\n", uuid); in uuid_show()
1005 uuid_t uuid; in namespace_update_uuid() local
1009 nsl_get_uuid(ndd, nd_label, &uuid); in namespace_update_uuid()
1010 nd_label_gen_id(&label_id, &uuid, in namespace_update_uuid()
1027 uuid_t *uuid = NULL; in uuid_store() local
1034 ns_uuid = &nspm->uuid; in uuid_store()
1044 rc = nd_uuid_store(dev, &uuid, buf, len); in uuid_store()
1046 rc = namespace_update_uuid(nd_region, dev, uuid, ns_uuid); in uuid_store()
1050 kfree(uuid); in uuid_store()
1058 static DEVICE_ATTR_RW(uuid);
1135 uuid_t *uuid = NULL; in dpa_extents_show() local
1143 uuid = nspm->uuid; in dpa_extents_show()
1147 if (!uuid) in dpa_extents_show()
1150 nd_label_gen_id(&label_id, uuid, flags); in dpa_extents_show()
1503 if (uuid_not_set(nspm->uuid, &ndns->dev, __func__)) in nvdimm_namespace_common_probe()
1553 static bool has_uuid_at_pos(struct nd_region *nd_region, const uuid_t *uuid, in has_uuid_at_pos() argument
1577 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in has_uuid_at_pos()
1675 uuid_t uuid; in create_namespace_pmem() local
1707 nsl_get_uuid(ndd, nd_label, &uuid); in create_namespace_pmem()
1708 if (has_uuid_at_pos(nd_region, &uuid, cookie, i)) in create_namespace_pmem()
1710 if (has_uuid_at_pos(nd_region, &uuid, altcookie, i)) in create_namespace_pmem()
1734 nsl_get_uuid(ndd, nd_label, &uuid); in create_namespace_pmem()
1735 rc = select_pmem_id(nd_region, &uuid); in create_namespace_pmem()
1758 WARN_ON(nspm->alt_name || nspm->uuid); in create_namespace_pmem()
1761 nsl_get_uuid(ndd, label0, &uuid); in create_namespace_pmem()
1762 nspm->uuid = kmemdup(&uuid, sizeof(uuid_t), GFP_KERNEL); in create_namespace_pmem()
1768 if (!nspm->alt_name || !nspm->uuid) { in create_namespace_pmem()
1893 uuid_t *uuid = namespace_to_uuid(devs[i]); in add_namespace_resource() local
1895 if (IS_ERR(uuid)) { in add_namespace_resource()
1900 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in add_namespace_resource()
1903 "error: conflicting extents for uuid: %pUb\n", uuid); in add_namespace_resource()