Searched refs:nsindex (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/nvdimm/ |
D | label.c | 115 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 …]
|
D | region_devs.c | 316 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() 858 struct nd_namespace_index *nsindex) in nd_region_interleave_set_cookie() argument 865 if (nsindex && __le16_to_cpu(nsindex->major) == 1 in nd_region_interleave_set_cookie() 866 && __le16_to_cpu(nsindex->minor) == 1) in nd_region_interleave_set_cookie()
|
D | namespace_devs.c | 1426 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() 1950 struct nd_namespace_index *nsindex, in create_namespace_pmem() argument 1953 u64 cookie = nd_region_interleave_set_cookie(nd_region, nsindex); in create_namespace_pmem() 2386 struct nd_namespace_index *nsindex; in scan_labels() local 2388 nsindex = to_namespace_index(ndd, ndd->ns_current); in scan_labels() 2389 dev = create_namespace_pmem(nd_region, nsindex, nd_label); in scan_labels()
|
D | nd.h | 359 struct nd_namespace_index *nsindex);
|