nd_label 274 drivers/nvdimm/label.c struct nd_namespace_label *nd_label) nd_label 278 drivers/nvdimm/label.c label = (unsigned long) nd_label; nd_label 350 drivers/nvdimm/label.c struct nd_namespace_label *nd_label, u32 slot) nd_label 353 drivers/nvdimm/label.c if (slot != __le32_to_cpu(nd_label->slot)) nd_label 360 drivers/nvdimm/label.c sum_save = __le64_to_cpu(nd_label->checksum); nd_label 361 drivers/nvdimm/label.c nd_label->checksum = __cpu_to_le64(0); nd_label 362 drivers/nvdimm/label.c sum = nd_fletcher64(nd_label, sizeof_namespace_label(ndd), 1); nd_label 363 drivers/nvdimm/label.c nd_label->checksum = __cpu_to_le64(sum_save); nd_label 385 drivers/nvdimm/label.c struct nd_namespace_label *nd_label; nd_label 392 drivers/nvdimm/label.c nd_label = to_label(ndd, slot); nd_label 394 drivers/nvdimm/label.c if (!slot_valid(ndd, nd_label, slot)) nd_label 397 drivers/nvdimm/label.c memcpy(label_uuid, nd_label->uuid, NSLABEL_UUID_LEN); nd_label 398 drivers/nvdimm/label.c flags = __le32_to_cpu(nd_label->flags); nd_label 403 drivers/nvdimm/label.c __le64_to_cpu(nd_label->dpa), nd_label 404 drivers/nvdimm/label.c __le64_to_cpu(nd_label->rawsize)); nd_label 546 drivers/nvdimm/label.c struct nd_namespace_label *nd_label; nd_label 548 drivers/nvdimm/label.c nd_label = to_label(ndd, slot); nd_label 550 drivers/nvdimm/label.c if (!slot_valid(ndd, nd_label, slot)) { nd_label 551 drivers/nvdimm/label.c u32 label_slot = __le32_to_cpu(nd_label->slot); nd_label 552 drivers/nvdimm/label.c u64 size = __le64_to_cpu(nd_label->rawsize); nd_label 553 drivers/nvdimm/label.c u64 dpa = __le64_to_cpu(nd_label->dpa); nd_label 575 drivers/nvdimm/label.c struct nd_namespace_label *nd_label; nd_label 577 drivers/nvdimm/label.c nd_label = to_label(ndd, slot); nd_label 578 drivers/nvdimm/label.c if (!slot_valid(ndd, nd_label, slot)) nd_label 705 drivers/nvdimm/label.c struct nd_namespace_label *nd_label) nd_label 707 drivers/nvdimm/label.c return (unsigned long) nd_label nd_label 766 drivers/nvdimm/label.c struct nd_namespace_label *nd_label; nd_label 797 drivers/nvdimm/label.c nd_label = to_label(ndd, slot); nd_label 798 drivers/nvdimm/label.c memset(nd_label, 0, sizeof_namespace_label(ndd)); nd_label 799 drivers/nvdimm/label.c memcpy(nd_label->uuid, nspm->uuid, NSLABEL_UUID_LEN); nd_label 801 drivers/nvdimm/label.c memcpy(nd_label->name, nspm->alt_name, NSLABEL_NAME_LEN); nd_label 802 drivers/nvdimm/label.c nd_label->flags = __cpu_to_le32(flags); nd_label 803 drivers/nvdimm/label.c nd_label->nlabel = __cpu_to_le16(nd_region->ndr_mappings); nd_label 804 drivers/nvdimm/label.c nd_label->position = __cpu_to_le16(pos); nd_label 805 drivers/nvdimm/label.c nd_label->isetcookie = __cpu_to_le64(cookie); nd_label 806 drivers/nvdimm/label.c nd_label->rawsize = __cpu_to_le64(resource_size(res)); nd_label 807 drivers/nvdimm/label.c nd_label->lbasize = __cpu_to_le64(nspm->lbasize); nd_label 808 drivers/nvdimm/label.c nd_label->dpa = __cpu_to_le64(res->start); nd_label 809 drivers/nvdimm/label.c nd_label->slot = __cpu_to_le32(slot); nd_label 811 drivers/nvdimm/label.c guid_copy(&nd_label->type_guid, &nd_set->type_guid); nd_label 813 drivers/nvdimm/label.c guid_copy(&nd_label->abstraction_guid, nd_label 815 drivers/nvdimm/label.c &nd_label->abstraction_guid)); nd_label 819 drivers/nvdimm/label.c nd_label->checksum = __cpu_to_le64(0); nd_label 820 drivers/nvdimm/label.c sum = nd_fletcher64(nd_label, sizeof_namespace_label(ndd), 1); nd_label 821 drivers/nvdimm/label.c nd_label->checksum = __cpu_to_le64(sum); nd_label 826 drivers/nvdimm/label.c offset = nd_label_offset(ndd, nd_label); nd_label 827 drivers/nvdimm/label.c rc = nvdimm_set_config_data(ndd, offset, nd_label, nd_label 849 drivers/nvdimm/label.c label_ent->label = nd_label; nd_label 850 drivers/nvdimm/label.c nd_label = NULL; nd_label 853 drivers/nvdimm/label.c dev_WARN_ONCE(&nspm->nsio.common.dev, nd_label, nd_label 855 drivers/nvdimm/label.c to_slot(ndd, nd_label)); nd_label 856 drivers/nvdimm/label.c if (nd_label) nd_label 877 drivers/nvdimm/label.c struct nd_namespace_label *nd_label) nd_label 882 drivers/nvdimm/label.c if (res->start != __le64_to_cpu(nd_label->dpa)) nd_label 884 drivers/nvdimm/label.c if (resource_size(res) != __le64_to_cpu(nd_label->rawsize)) nd_label 905 drivers/nvdimm/label.c struct nd_namespace_label *nd_label; nd_label 948 drivers/nvdimm/label.c nd_label = to_label(ndd, slot); nd_label 949 drivers/nvdimm/label.c memcpy(uuid, nd_label->uuid, NSLABEL_UUID_LEN); nd_label 952 drivers/nvdimm/label.c res = to_resource(ndd, nd_label); nd_label 956 drivers/nvdimm/label.c slot = to_slot(ndd, nd_label); nd_label 1006 drivers/nvdimm/label.c nd_label = to_label(ndd, slot); nd_label 1007 drivers/nvdimm/label.c memset(nd_label, 0, sizeof_namespace_label(ndd)); nd_label 1008 drivers/nvdimm/label.c memcpy(nd_label->uuid, nsblk->uuid, NSLABEL_UUID_LEN); nd_label 1010 drivers/nvdimm/label.c memcpy(nd_label->name, nsblk->alt_name, nd_label 1012 drivers/nvdimm/label.c nd_label->flags = __cpu_to_le32(NSLABEL_FLAG_LOCAL); nd_label 1021 drivers/nvdimm/label.c nd_label->nlabel = __cpu_to_le16(nsblk->num_resources); nd_label 1022 drivers/nvdimm/label.c nd_label->position = __cpu_to_le16(0); nd_label 1024 drivers/nvdimm/label.c nd_label->nlabel = __cpu_to_le16(0xffff); nd_label 1025 drivers/nvdimm/label.c nd_label->position = __cpu_to_le16(0xffff); nd_label 1027 drivers/nvdimm/label.c nd_label->isetcookie = __cpu_to_le64(nd_set->cookie2); nd_label 1029 drivers/nvdimm/label.c nd_label->nlabel = __cpu_to_le16(0); /* N/A */ nd_label 1030 drivers/nvdimm/label.c nd_label->position = __cpu_to_le16(0); /* N/A */ nd_label 1031 drivers/nvdimm/label.c nd_label->isetcookie = __cpu_to_le64(0); /* N/A */ nd_label 1034 drivers/nvdimm/label.c nd_label->dpa = __cpu_to_le64(res->start); nd_label 1035 drivers/nvdimm/label.c nd_label->rawsize = __cpu_to_le64(resource_size(res)); nd_label 1036 drivers/nvdimm/label.c nd_label->lbasize = __cpu_to_le64(nsblk->lbasize); nd_label 1037 drivers/nvdimm/label.c nd_label->slot = __cpu_to_le32(slot); nd_label 1039 drivers/nvdimm/label.c guid_copy(&nd_label->type_guid, &nd_set->type_guid); nd_label 1041 drivers/nvdimm/label.c guid_copy(&nd_label->abstraction_guid, nd_label 1043 drivers/nvdimm/label.c &nd_label->abstraction_guid)); nd_label 1048 drivers/nvdimm/label.c nd_label->checksum = __cpu_to_le64(0); nd_label 1049 drivers/nvdimm/label.c sum = nd_fletcher64(nd_label, nd_label 1051 drivers/nvdimm/label.c nd_label->checksum = __cpu_to_le64(sum); nd_label 1055 drivers/nvdimm/label.c offset = nd_label_offset(ndd, nd_label); nd_label 1056 drivers/nvdimm/label.c rc = nvdimm_set_config_data(ndd, offset, nd_label, nd_label 1081 drivers/nvdimm/label.c nd_label = label_ent->label; nd_label 1082 drivers/nvdimm/label.c if (!nd_label) nd_label 1085 drivers/nvdimm/label.c memcpy(uuid, nd_label->uuid, NSLABEL_UUID_LEN); nd_label 1115 drivers/nvdimm/label.c nd_label = to_label(ndd, slot); nd_label 1116 drivers/nvdimm/label.c memcpy(uuid, nd_label->uuid, NSLABEL_UUID_LEN); nd_label 1119 drivers/nvdimm/label.c res = to_resource(ndd, nd_label); nd_label 1125 drivers/nvdimm/label.c label_ent->label = nd_label; nd_label 1126 drivers/nvdimm/label.c nd_label = NULL; nd_label 1129 drivers/nvdimm/label.c if (nd_label) nd_label 1217 drivers/nvdimm/label.c struct nd_namespace_label *nd_label = label_ent->label; nd_label 1219 drivers/nvdimm/label.c if (!nd_label) nd_label 1222 drivers/nvdimm/label.c memcpy(label_uuid, nd_label->uuid, NSLABEL_UUID_LEN); nd_label 1226 drivers/nvdimm/label.c slot = to_slot(ndd, nd_label); nd_label 1252 drivers/nvdimm/namespace_devs.c struct nd_namespace_label *nd_label = label_ent->label; nd_label 1255 drivers/nvdimm/namespace_devs.c if (!nd_label) nd_label 1257 drivers/nvdimm/namespace_devs.c nd_label_gen_id(&label_id, nd_label->uuid, nd_label 1258 drivers/nvdimm/namespace_devs.c __le32_to_cpu(nd_label->flags)); nd_label 1805 drivers/nvdimm/namespace_devs.c struct nd_namespace_label *nd_label = label_ent->label; nd_label 1809 drivers/nvdimm/namespace_devs.c if (!nd_label) nd_label 1811 drivers/nvdimm/namespace_devs.c isetcookie = __le64_to_cpu(nd_label->isetcookie); nd_label 1812 drivers/nvdimm/namespace_devs.c position = __le16_to_cpu(nd_label->position); nd_label 1813 drivers/nvdimm/namespace_devs.c nlabel = __le16_to_cpu(nd_label->nlabel); nd_label 1818 drivers/nvdimm/namespace_devs.c if (memcmp(nd_label->uuid, uuid, NSLABEL_UUID_LEN) != 0) nd_label 1823 drivers/nvdimm/namespace_devs.c &nd_label->type_guid)) { nd_label 1826 drivers/nvdimm/namespace_devs.c &nd_label->type_guid); nd_label 1839 drivers/nvdimm/namespace_devs.c found = nd_label; nd_label 1858 drivers/nvdimm/namespace_devs.c struct nd_namespace_label *nd_label = NULL; nd_label 1864 drivers/nvdimm/namespace_devs.c nd_label = label_ent->label; nd_label 1865 drivers/nvdimm/namespace_devs.c if (!nd_label) nd_label 1867 drivers/nvdimm/namespace_devs.c if (memcmp(nd_label->uuid, pmem_id, NSLABEL_UUID_LEN) == 0) nd_label 1869 drivers/nvdimm/namespace_devs.c nd_label = NULL; nd_label 1872 drivers/nvdimm/namespace_devs.c if (!nd_label) { nd_label 1883 drivers/nvdimm/namespace_devs.c pmem_start = __le64_to_cpu(nd_label->dpa); nd_label 1884 drivers/nvdimm/namespace_devs.c pmem_end = pmem_start + __le64_to_cpu(nd_label->rawsize); nd_label 1890 drivers/nvdimm/namespace_devs.c dev_name(ndd->dev), nd_label->uuid); nd_label 1908 drivers/nvdimm/namespace_devs.c struct nd_namespace_label *nd_label) nd_label 1926 drivers/nvdimm/namespace_devs.c if (__le64_to_cpu(nd_label->isetcookie) != cookie) { nd_label 1928 drivers/nvdimm/namespace_devs.c nd_label->uuid); nd_label 1929 drivers/nvdimm/namespace_devs.c if (__le64_to_cpu(nd_label->isetcookie) != altcookie) nd_label 1933 drivers/nvdimm/namespace_devs.c nd_label->uuid); nd_label 1949 drivers/nvdimm/namespace_devs.c if (has_uuid_at_pos(nd_region, nd_label->uuid, cookie, i)) nd_label 1951 drivers/nvdimm/namespace_devs.c if (has_uuid_at_pos(nd_region, nd_label->uuid, altcookie, i)) nd_label 1965 drivers/nvdimm/namespace_devs.c nvdimm_name(nvdimm), nd_label->uuid); nd_label 1978 drivers/nvdimm/namespace_devs.c rc = select_pmem_id(nd_region, nd_label->uuid); nd_label 2178 drivers/nvdimm/namespace_devs.c struct nd_namespace_label *nd_label, struct device **devs, nd_label 2194 drivers/nvdimm/namespace_devs.c if (memcmp(uuid, nd_label->uuid, NSLABEL_UUID_LEN) != 0) nd_label 2199 drivers/nvdimm/namespace_devs.c __le64_to_cpu(nd_label->dpa)); nd_label 2206 drivers/nvdimm/namespace_devs.c nd_label->uuid); nd_label 2216 drivers/nvdimm/namespace_devs.c struct nd_namespace_label *nd_label, int count) nd_label 2228 drivers/nvdimm/namespace_devs.c if (!guid_equal(&nd_set->type_guid, &nd_label->type_guid)) { nd_label 2231 drivers/nvdimm/namespace_devs.c &nd_label->type_guid); nd_label 2235 drivers/nvdimm/namespace_devs.c if (nd_label->isetcookie != __cpu_to_le64(nd_set->cookie2)) { nd_label 2238 drivers/nvdimm/namespace_devs.c __le64_to_cpu(nd_label->isetcookie)); nd_label 2250 drivers/nvdimm/namespace_devs.c nsblk->lbasize = __le64_to_cpu(nd_label->lbasize); nd_label 2251 drivers/nvdimm/namespace_devs.c nsblk->uuid = kmemdup(nd_label->uuid, NSLABEL_UUID_LEN, nd_label 2255 drivers/nvdimm/namespace_devs.c = to_nvdimm_cclass(&nd_label->abstraction_guid); nd_label 2258 drivers/nvdimm/namespace_devs.c memcpy(name, nd_label->name, NSLABEL_NAME_LEN); nd_label 2266 drivers/nvdimm/namespace_devs.c __le64_to_cpu(nd_label->dpa)); nd_label 2311 drivers/nvdimm/namespace_devs.c struct nd_namespace_label *nd_label = label_ent->label; nd_label 2315 drivers/nvdimm/namespace_devs.c if (!nd_label) nd_label 2317 drivers/nvdimm/namespace_devs.c flags = __le32_to_cpu(nd_label->flags); nd_label 2325 drivers/nvdimm/namespace_devs.c if (__le64_to_cpu(nd_label->dpa) < nd_mapping->start || nd_label 2326 drivers/nvdimm/namespace_devs.c __le64_to_cpu(nd_label->dpa) > map_end) nd_label 2329 drivers/nvdimm/namespace_devs.c i = add_namespace_resource(nd_region, nd_label, devs, count); nd_label 2342 drivers/nvdimm/namespace_devs.c dev = create_namespace_blk(nd_region, nd_label, count); nd_label 2348 drivers/nvdimm/namespace_devs.c dev = create_namespace_pmem(nd_region, nsindex, nd_label);