Home
last modified time | relevance | path

Searched refs:nsindex (Results 1 – 4 of 4) sorted by relevance

/drivers/nvdimm/
Dlabel.c115 struct nd_namespace_index *nsindex[] = { in __nd_label_validate() local
119 const int num_index = ARRAY_SIZE(nsindex); in __nd_label_validate()
131 memcpy(sig, nsindex[i]->sig, NSINDEX_SIG_LEN); in __nd_label_validate()
138 version = __le16_to_cpu(nsindex[i]->major) * 100 in __nd_label_validate()
139 + __le16_to_cpu(nsindex[i]->minor); in __nd_label_validate()
141 labelsize = 1 << (7 + nsindex[i]->labelsize); in __nd_label_validate()
147 i, nsindex[i]->labelsize); in __nd_label_validate()
151 sum_save = __le64_to_cpu(nsindex[i]->checksum); in __nd_label_validate()
152 nsindex[i]->checksum = __cpu_to_le64(0); in __nd_label_validate()
153 sum = nd_fletcher64(nsindex[i], sizeof_namespace_index(ndd), 1); in __nd_label_validate()
[all …]
Dregion_devs.c316 struct nd_namespace_index *nsindex; in set_cookie_show() local
318 nsindex = to_namespace_index(ndd, ndd->ns_current); in set_cookie_show()
321 nsindex)); in set_cookie_show()
865 struct nd_namespace_index *nsindex) in nd_region_interleave_set_cookie() argument
872 if (nsindex && __le16_to_cpu(nsindex->major) == 1 in nd_region_interleave_set_cookie()
873 && __le16_to_cpu(nsindex->minor) == 1) in nd_region_interleave_set_cookie()
Dnamespace_devs.c1426 struct nd_namespace_index *nsindex; in btt_claim_class() local
1437 nsindex = to_namespace_index(ndd, ndd->ns_current); in btt_claim_class()
1438 if (nsindex == NULL) in btt_claim_class()
1442 if (__le16_to_cpu(nsindex->major) == 1 in btt_claim_class()
1443 && __le16_to_cpu(nsindex->minor) == 1) in btt_claim_class()
1947 struct nd_namespace_index *nsindex = in create_namespace_pmem() local
1949 u64 cookie = nd_region_interleave_set_cookie(nd_region, nsindex); in create_namespace_pmem()
Dnd.h509 struct nd_namespace_index *nsindex);