Lines Matching refs:nd_label
1452 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()
1505 if (!nd_label) { in select_pmem_id()
1510 select = nd_label; in select_pmem_id()
1538 struct nd_namespace_label *nd_label; in find_pmem_label_set() local
1552 for_each_label(l, nd_label, nd_region->mapping[0].labels) { in find_pmem_label_set()
1553 u64 isetcookie = __le64_to_cpu(nd_label->isetcookie); in find_pmem_label_set()
1559 if (!has_uuid_at_pos(nd_region, nd_label->uuid, in find_pmem_label_set()
1579 memcpy(select_id, nd_label->uuid, NSLABEL_UUID_LEN); in find_pmem_label_set()
1760 struct nd_namespace_label *nd_label; in create_namespace_blk() local
1771 for_each_label(l, nd_label, nd_mapping->labels) { in create_namespace_blk()
1772 u32 flags = __le32_to_cpu(nd_label->flags); in create_namespace_blk()
1783 if (memcmp(nsblk->uuid, nd_label->uuid, in create_namespace_blk()
1786 __le64_to_cpu(nd_label->dpa)); in create_namespace_blk()
1812 nsblk->lbasize = __le64_to_cpu(nd_label->lbasize); in create_namespace_blk()
1813 nsblk->uuid = kmemdup(nd_label->uuid, NSLABEL_UUID_LEN, in create_namespace_blk()
1817 memcpy(name, nd_label->name, NSLABEL_NAME_LEN); in create_namespace_blk()
1822 __le64_to_cpu(nd_label->dpa)); in create_namespace_blk()