Home
last modified time | relevance | path

Searched refs:nd_label (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/nvdimm/
Dlabel.c211 struct nd_namespace_label *nd_label) in to_slot() argument
213 return nd_label - nd_label_base(ndd); in to_slot()
271 static bool slot_valid(struct nd_namespace_label *nd_label, u32 slot) in slot_valid() argument
274 if (slot != __le32_to_cpu(nd_label->slot)) in slot_valid()
278 if ((__le64_to_cpu(nd_label->dpa) in slot_valid()
279 | __le64_to_cpu(nd_label->rawsize)) % SZ_4K) in slot_valid()
295 struct nd_namespace_label *nd_label; in nd_label_reserve_dpa() local
302 nd_label = nd_label_base(ndd) + slot; in nd_label_reserve_dpa()
304 if (!slot_valid(nd_label, slot)) in nd_label_reserve_dpa()
307 memcpy(label_uuid, nd_label->uuid, NSLABEL_UUID_LEN); in nd_label_reserve_dpa()
[all …]
Dnamespace_devs.c1452 struct nd_namespace_label *nd_label; in has_uuid_at_pos() local
1456 for_each_label(l, nd_label, nd_mapping->labels) { in has_uuid_at_pos()
1457 u64 isetcookie = __le64_to_cpu(nd_label->isetcookie); in has_uuid_at_pos()
1458 u16 position = __le16_to_cpu(nd_label->position); in has_uuid_at_pos()
1459 u16 nlabel = __le16_to_cpu(nd_label->nlabel); in has_uuid_at_pos()
1464 if (memcmp(nd_label->uuid, uuid, NSLABEL_UUID_LEN) != 0) in has_uuid_at_pos()
1478 found = nd_label; in has_uuid_at_pos()
1497 struct nd_namespace_label *nd_label; in select_pmem_id() local
1501 for_each_label(l, nd_label, nd_mapping->labels) in select_pmem_id()
1502 if (memcmp(nd_label->uuid, pmem_id, NSLABEL_UUID_LEN) == 0) in select_pmem_id()
[all …]