nsindex 115 drivers/nvdimm/label.c struct nd_namespace_index *nsindex[] = { nsindex 119 drivers/nvdimm/label.c const int num_index = ARRAY_SIZE(nsindex); nsindex 131 drivers/nvdimm/label.c memcpy(sig, nsindex[i]->sig, NSINDEX_SIG_LEN); nsindex 138 drivers/nvdimm/label.c version = __le16_to_cpu(nsindex[i]->major) * 100 nsindex 139 drivers/nvdimm/label.c + __le16_to_cpu(nsindex[i]->minor); nsindex 141 drivers/nvdimm/label.c labelsize = 1 << (7 + nsindex[i]->labelsize); nsindex 147 drivers/nvdimm/label.c i, nsindex[i]->labelsize); nsindex 151 drivers/nvdimm/label.c sum_save = __le64_to_cpu(nsindex[i]->checksum); nsindex 152 drivers/nvdimm/label.c nsindex[i]->checksum = __cpu_to_le64(0); nsindex 153 drivers/nvdimm/label.c sum = nd_fletcher64(nsindex[i], sizeof_namespace_index(ndd), 1); nsindex 154 drivers/nvdimm/label.c nsindex[i]->checksum = __cpu_to_le64(sum_save); nsindex 160 drivers/nvdimm/label.c seq = __le32_to_cpu(nsindex[i]->seq); nsindex 167 drivers/nvdimm/label.c if (__le64_to_cpu(nsindex[i]->myoff) nsindex 171 drivers/nvdimm/label.c __le64_to_cpu(nsindex[i]->myoff)); nsindex 174 drivers/nvdimm/label.c if (__le64_to_cpu(nsindex[i]->otheroff) nsindex 178 drivers/nvdimm/label.c __le64_to_cpu(nsindex[i]->otheroff)); nsindex 181 drivers/nvdimm/label.c if (__le64_to_cpu(nsindex[i]->labeloff) nsindex 185 drivers/nvdimm/label.c __le64_to_cpu(nsindex[i]->labeloff)); nsindex 189 drivers/nvdimm/label.c size = __le64_to_cpu(nsindex[i]->mysize); nsindex 196 drivers/nvdimm/label.c nslot = __le32_to_cpu(nsindex[i]->nslot); nsindex 220 drivers/nvdimm/label.c seq = best_seq(__le32_to_cpu(nsindex[0]->seq), nsindex 221 drivers/nvdimm/label.c __le32_to_cpu(nsindex[1]->seq)); nsindex 222 drivers/nvdimm/label.c if (seq == (__le32_to_cpu(nsindex[1]->seq) & NSINDEX_SEQ_MASK)) nsindex 311 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 313 drivers/nvdimm/label.c nsindex = to_namespace_index(ndd, idx); nsindex 314 drivers/nvdimm/label.c if (nsindex == NULL) nsindex 317 drivers/nvdimm/label.c *free = (unsigned long *) nsindex->free; nsindex 318 drivers/nvdimm/label.c *nslot = __le32_to_cpu(nsindex->nslot); nsindex 319 drivers/nvdimm/label.c *nsindex_out = nsindex; nsindex 334 drivers/nvdimm/label.c struct nd_namespace_index **nsindex, nsindex 337 drivers/nvdimm/label.c return preamble_index(ndd, ndd->ns_current, nsindex, nsindex 342 drivers/nvdimm/label.c struct nd_namespace_index **nsindex, nsindex 345 drivers/nvdimm/label.c return preamble_index(ndd, ndd->ns_next, nsindex, nsindex 376 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 380 drivers/nvdimm/label.c if (!preamble_current(ndd, &nsindex, &free, &nslot)) nsindex 416 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 486 drivers/nvdimm/label.c nsindex = to_current_namespace_index(ndd); nsindex 487 drivers/nvdimm/label.c nd_label_copy(ndd, to_next_namespace_index(ndd), nsindex); nsindex 490 drivers/nvdimm/label.c offset = __le64_to_cpu(nsindex->labeloff); nsindex 491 drivers/nvdimm/label.c nslot = __le32_to_cpu(nsindex->nslot); nsindex 498 drivers/nvdimm/label.c if (test_bit_le(i, nsindex->free)) { nsindex 537 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 542 drivers/nvdimm/label.c if (!preamble_current(ndd, &nsindex, &free, &nslot)) nsindex 567 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 571 drivers/nvdimm/label.c if (!preamble_current(ndd, &nsindex, &free, &nslot)) nsindex 590 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 594 drivers/nvdimm/label.c if (!preamble_next(ndd, &nsindex, &free, &nslot)) nsindex 610 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 614 drivers/nvdimm/label.c if (!preamble_next(ndd, &nsindex, &free, &nslot)) nsindex 626 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 632 drivers/nvdimm/label.c if (!preamble_next(ndd, &nsindex, &free, &nslot)) nsindex 641 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 647 drivers/nvdimm/label.c nsindex = to_namespace_index(ndd, index); nsindex 651 drivers/nvdimm/label.c nslot = __le32_to_cpu(nsindex->nslot); nsindex 653 drivers/nvdimm/label.c memcpy(nsindex->sig, NSINDEX_SIGNATURE, NSINDEX_SIG_LEN); nsindex 654 drivers/nvdimm/label.c memset(&nsindex->flags, 0, 3); nsindex 655 drivers/nvdimm/label.c nsindex->labelsize = sizeof_namespace_label(ndd) >> 8; nsindex 656 drivers/nvdimm/label.c nsindex->seq = __cpu_to_le32(seq); nsindex 657 drivers/nvdimm/label.c offset = (unsigned long) nsindex nsindex 659 drivers/nvdimm/label.c nsindex->myoff = __cpu_to_le64(offset); nsindex 660 drivers/nvdimm/label.c nsindex->mysize = __cpu_to_le64(sizeof_namespace_index(ndd)); nsindex 664 drivers/nvdimm/label.c nsindex->otheroff = __cpu_to_le64(offset); nsindex 667 drivers/nvdimm/label.c nsindex->labeloff = __cpu_to_le64(offset); nsindex 668 drivers/nvdimm/label.c nsindex->nslot = __cpu_to_le32(nslot); nsindex 669 drivers/nvdimm/label.c nsindex->major = __cpu_to_le16(1); nsindex 671 drivers/nvdimm/label.c nsindex->minor = __cpu_to_le16(1); nsindex 673 drivers/nvdimm/label.c nsindex->minor = __cpu_to_le16(2); nsindex 674 drivers/nvdimm/label.c nsindex->checksum = __cpu_to_le64(0); nsindex 676 drivers/nvdimm/label.c unsigned long *free = (unsigned long *) nsindex->free; nsindex 680 drivers/nvdimm/label.c memset(nsindex->free, 0xff, nfree / 8); nsindex 684 drivers/nvdimm/label.c checksum = nd_fletcher64(nsindex, sizeof_namespace_index(ndd), 1); nsindex 685 drivers/nvdimm/label.c nsindex->checksum = __cpu_to_le64(checksum); nsindex 686 drivers/nvdimm/label.c rc = nvdimm_set_config_data(ndd, __le64_to_cpu(nsindex->myoff), nsindex 687 drivers/nvdimm/label.c nsindex, sizeof_namespace_index(ndd)); nsindex 696 drivers/nvdimm/label.c nd_label_copy(ndd, to_current_namespace_index(ndd), nsindex); nsindex 767 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 777 drivers/nvdimm/label.c if (!preamble_next(ndd, &nsindex, &free, &nslot)) nsindex 780 drivers/nvdimm/label.c cookie = nd_region_interleave_set_cookie(nd_region, nsindex); nsindex 845 drivers/nvdimm/label.c nd_inc_seq(__le32_to_cpu(nsindex->seq)), 0); nsindex 907 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 916 drivers/nvdimm/label.c if (!preamble_next(ndd, &nsindex, &free, &nslot)) nsindex 1070 drivers/nvdimm/label.c nd_inc_seq(__le32_to_cpu(nsindex->seq)), 0); nsindex 1145 drivers/nvdimm/label.c nd_label_copy(ndd, nsindex, to_current_namespace_index(ndd)); nsindex 1157 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 1183 drivers/nvdimm/label.c nsindex = to_namespace_index(ndd, 0); nsindex 1184 drivers/nvdimm/label.c memset(nsindex, 0, ndd->nsarea.config_size); nsindex 1201 drivers/nvdimm/label.c struct nd_namespace_index *nsindex; nsindex 1212 drivers/nvdimm/label.c if (!preamble_next(ndd, &nsindex, &free, &nslot)) nsindex 1241 drivers/nvdimm/label.c nd_inc_seq(__le32_to_cpu(nsindex->seq)), 0); nsindex 1446 drivers/nvdimm/namespace_devs.c struct nd_namespace_index *nsindex; nsindex 1457 drivers/nvdimm/namespace_devs.c nsindex = to_namespace_index(ndd, ndd->ns_current); nsindex 1458 drivers/nvdimm/namespace_devs.c if (nsindex == NULL) nsindex 1462 drivers/nvdimm/namespace_devs.c if (__le16_to_cpu(nsindex->major) == 1 nsindex 1463 drivers/nvdimm/namespace_devs.c && __le16_to_cpu(nsindex->minor) == 1) nsindex 1907 drivers/nvdimm/namespace_devs.c struct nd_namespace_index *nsindex, nsindex 1910 drivers/nvdimm/namespace_devs.c u64 cookie = nd_region_interleave_set_cookie(nd_region, nsindex); nsindex 2345 drivers/nvdimm/namespace_devs.c struct nd_namespace_index *nsindex; nsindex 2347 drivers/nvdimm/namespace_devs.c nsindex = to_namespace_index(ndd, ndd->ns_current); nsindex 2348 drivers/nvdimm/namespace_devs.c dev = create_namespace_pmem(nd_region, nsindex, nd_label); nsindex 350 drivers/nvdimm/nd.h struct nd_namespace_index *nsindex); nsindex 342 drivers/nvdimm/region_devs.c struct nd_namespace_index *nsindex; nsindex 344 drivers/nvdimm/region_devs.c nsindex = to_namespace_index(ndd, ndd->ns_current); nsindex 347 drivers/nvdimm/region_devs.c nsindex)); nsindex 684 drivers/nvdimm/region_devs.c struct nd_namespace_index *nsindex) nsindex 691 drivers/nvdimm/region_devs.c if (nsindex && __le16_to_cpu(nsindex->major) == 1 nsindex 692 drivers/nvdimm/region_devs.c && __le16_to_cpu(nsindex->minor) == 1)