Searched refs:nsindex (Results 1 – 4 of 4) sorted by relevance
123 struct nd_namespace_index *nsindex[] = { in __nd_label_validate() local127 const int num_index = ARRAY_SIZE(nsindex); in __nd_label_validate()139 memcpy(sig, nsindex[i]->sig, NSINDEX_SIG_LEN); in __nd_label_validate()146 version = __le16_to_cpu(nsindex[i]->major) * 100 in __nd_label_validate()147 + __le16_to_cpu(nsindex[i]->minor); in __nd_label_validate()149 labelsize = 1 << (7 + nsindex[i]->labelsize); in __nd_label_validate()155 i, nsindex[i]->labelsize); in __nd_label_validate()159 sum_save = __le64_to_cpu(nsindex[i]->checksum); in __nd_label_validate()160 nsindex[i]->checksum = __cpu_to_le64(0); in __nd_label_validate()161 sum = nd_fletcher64(nsindex[i], sizeof_namespace_index(ndd), 1); in __nd_label_validate()[all …]
291 struct nd_namespace_index *nsindex; in set_cookie_show() local293 nsindex = to_namespace_index(ndd, ndd->ns_current); in set_cookie_show()296 nsindex)); in set_cookie_show()807 struct nd_namespace_index *nsindex) in nd_region_interleave_set_cookie() argument814 if (nsindex && __le16_to_cpu(nsindex->major) == 1 in nd_region_interleave_set_cookie()815 && __le16_to_cpu(nsindex->minor) == 1) in nd_region_interleave_set_cookie()
1175 struct nd_namespace_index *nsindex; in btt_claim_class() local1186 nsindex = to_namespace_index(ndd, ndd->ns_current); in btt_claim_class()1187 if (nsindex == NULL) in btt_claim_class()1191 if (__le16_to_cpu(nsindex->major) == 1 in btt_claim_class()1192 && __le16_to_cpu(nsindex->minor) == 1) in btt_claim_class()1666 struct nd_namespace_index *nsindex = in create_namespace_pmem() local1668 u64 cookie = nd_region_interleave_set_cookie(nd_region, nsindex); in create_namespace_pmem()
625 struct nd_namespace_index *nsindex);