/kernel/linux/linux-6.6/drivers/cxl/core/ |
H A D | memdev.c | 256 u64 dpa; member 263 u64 dpa = ctx->dpa; in __cxl_dpa_to_region() local 272 if (dpa > cxled->dpa_res->end || dpa < cxled->dpa_res->start) in __cxl_dpa_to_region() 275 dev_dbg(dev, "dpa:0x%llx mapped in region:%s\n", dpa, in __cxl_dpa_to_region() 283 static struct cxl_region *cxl_dpa_to_region(struct cxl_memdev *cxlmd, u64 dpa) in cxl_dpa_to_region() argument 289 .dpa = dpa, in cxl_dpa_to_region() 298 cxl_validate_poison_dpa(struct cxl_memdev *cxlmd, u64 dpa) cxl_validate_poison_dpa() argument 322 cxl_inject_poison(struct cxl_memdev *cxlmd, u64 dpa) cxl_inject_poison() argument 377 cxl_clear_poison(struct cxl_memdev *cxlmd, u64 dpa) cxl_clear_poison() argument [all...] |
H A D | trace.c | 36 static u64 cxl_dpa_to_hpa(u64 dpa, struct cxl_region *cxlr, in cxl_dpa_to_hpa() argument 58 /* Remove the dpa base */ in cxl_dpa_to_hpa() 59 dpa_offset = dpa - cxl_dpa_resource_start(cxled); in cxl_dpa_to_hpa() 85 u64 dpa) in cxl_trace_hpa() 98 return cxl_dpa_to_hpa(dpa, cxlr, cxled); in cxl_trace_hpa() 84 cxl_trace_hpa(struct cxl_region *cxlr, struct cxl_memdev *cxlmd, u64 dpa) cxl_trace_hpa() argument
|
H A D | trace.h | 325 __field(u64, dpa) 342 __entry->dpa = le64_to_cpu(rec->phys_addr); 343 __entry->dpa_flags = __entry->dpa & CXL_DPA_FLAGS_MASK; 345 __entry->dpa &= CXL_DPA_MASK; 357 CXL_EVT_TP_printk("dpa=%llx dpa_flags='%s' " \ 360 __entry->dpa, show_dpa_flags(__entry->dpa_flags), 408 __field(u64, dpa) 428 __entry->dpa = le64_to_cpu(rec->phys_addr); 429 __entry->dpa_flags = __entry->dpa & CXL_DPA_FLAGS_MASK; 430 __entry->dpa [all...] |
/kernel/linux/linux-6.6/tools/testing/cxl/test/ |
H A D | mem.c | 1000 u64 dpa; member 1008 u64 dpa; in cxl_get_injected_po() local 1017 if (mock_poison_list[i].dpa < offset || in cxl_get_injected_po() 1018 mock_poison_list[i].dpa > offset + length - 1) in cxl_get_injected_po() 1021 dpa = mock_poison_list[i].dpa + CXL_POISON_SOURCE_INJECTED; in cxl_get_injected_po() 1022 po->record[nr_records].address = cpu_to_le64(dpa); in cxl_get_injected_po() 1066 static bool mock_poison_add(struct cxl_dev_state *cxlds, u64 dpa) in mock_poison_add() argument 1078 mock_poison_list[i].dpa = dpa; in mock_poison_add() 1089 mock_poison_found(struct cxl_dev_state *cxlds, u64 dpa) mock_poison_found() argument 1103 u64 dpa = le64_to_cpu(pi->address); mock_inject_poison() local 1116 mock_poison_del(struct cxl_dev_state *cxlds, u64 dpa) mock_poison_del() argument 1132 u64 dpa = le64_to_cpu(pi->address); mock_clear_poison() local [all...] |
/kernel/linux/linux-6.6/drivers/nvdimm/ |
H A D | nd.h | 35 struct resource dpa; member 121 return __le64_to_cpu(nd_label->cxl.dpa); in nsl_get_dpa() 122 return __le64_to_cpu(nd_label->efi.dpa); in nsl_get_dpa() 126 struct nd_namespace_label *nd_label, u64 dpa) in nsl_set_dpa() 129 nd_label->cxl.dpa = __cpu_to_le64(dpa); in nsl_set_dpa() 131 nd_label->efi.dpa = __cpu_to_le64(dpa); in nsl_set_dpa() 362 for (res = (ndd)->dpa.child; res; res = res->sibling) 365 for (res = (ndd)->dpa 125 nsl_set_dpa(struct nvdimm_drvdata *ndd, struct nd_namespace_label *nd_label, u64 dpa) nsl_set_dpa() argument [all...] |
H A D | label.h | 76 * @dpa: start address in device-local capacity for this label 91 __le64 dpa; member 110 * @dpa: DPA of NVM range on this DIMM 128 __le64 dpa; member 151 * @dpa: start address in device-local capacity for this label 168 __le64 dpa; member 195 * struct nd_label_id - identifier string for dpa allocation
|
H A D | dimm.c | 47 ndd->dpa.name = dev_name(dev); in nvdimm_probe() 50 ndd->dpa.start = 0; in nvdimm_probe() 51 ndd->dpa.end = -1; in nvdimm_probe()
|
H A D | region_devs.c | 558 unsigned long val, dpa; in align_store() local 574 dpa = div_u64_rem(val, mappings, &remainder); in align_store() 575 if (!is_power_of_2(dpa) || dpa < PAGE_SIZE in align_store()
|
H A D | dimm_devs.c | 722 * contiguous unallocated dpa range. 724 * @nd_mapping: container of dpa-resource-root + labels 764 * nd_pmem_available_dpa - for the given dimm+region account unallocated dpa 765 * @nd_mapping: container of dpa-resource-root + labels 817 __release_region(&ndd->dpa, res->start, resource_size(res)); in nvdimm_free_dpa() 831 res = __request_region(&ndd->dpa, start, n, name, 0); in nvdimm_allocate_dpa() 838 * nvdimm_allocated_dpa - sum up the dpa currently allocated to this label_id 839 * @nvdimm: container of dpa-resource-root + labels 840 * @label_id: dpa resource name of the form pmem-<human readable uuid>
|
/kernel/linux/linux-5.10/drivers/nvdimm/ |
H A D | dimm.c | 47 ndd->dpa.name = dev_name(dev); in nvdimm_probe() 50 ndd->dpa.start = 0; in nvdimm_probe() 51 ndd->dpa.end = -1; in nvdimm_probe()
|
H A D | nd.h | 34 struct resource dpa; member 97 for (res = (ndd)->dpa.child; res; res = res->sibling) 100 for (res = (ndd)->dpa.child, next = res ? res->sibling : NULL; \ 165 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
|
H A D | label.c | 403 __le64_to_cpu(nd_label->dpa), in nd_label_reserve_dpa() 553 u64 dpa = __le64_to_cpu(nd_label->dpa); in nd_label_active_count() local 556 "slot%d invalid slot: %d dpa: %llx size: %llx\n", in nd_label_active_count() 557 slot, label_slot, dpa, size); in nd_label_active_count() 808 nd_label->dpa = __cpu_to_le64(res->start); in __pmem_label_update() 882 if (res->start != __le64_to_cpu(nd_label->dpa)) in to_resource() 1045 nd_label->dpa = __cpu_to_le64(res->start); in __blk_label_update()
|
H A D | label.h | 77 * @dpa: DPA of NVM range on this DIMM 90 __le64 dpa; member 111 * struct nd_label_id - identifier string for dpa allocation
|
H A D | region_devs.c | 548 unsigned long val, dpa; in align_store() local 566 dpa = div_u64_rem(val, nd_region->ndr_mappings, &remainder); in align_store() 567 if (!is_power_of_2(dpa) || dpa < PAGE_SIZE in align_store()
|
H A D | namespace_devs.c | 471 * @label_id: unique identifier for the namespace consuming this dpa range 506 /* allocate blk from highest dpa first */ in init_dpa_allocation() 523 * space_valid() - validate free dpa space against constraints 741 if ((is_pmem || !ndd->dpa.child) && n == to_allocate) in scan_allocate() 841 * @label_id: unique identifier for the namespace consuming this dpa range 924 /* calculate a spa offset from the dpa allocation offset */ in nd_namespace_pmem_set_resource() 1211 * FIXME: can we delete uuid with zero dpa allocated? in namespace_update_uuid() 1921 * Check that this label is compliant with the dpa in select_pmem_id() 1926 pmem_start = __le64_to_cpu(nd_label->dpa); in select_pmem_id() 2240 __le64_to_cpu(nd_label->dpa)); in add_namespace_resource() [all...] |
H A D | dimm_devs.c | 754 * Find the free dpa from the end of the last pmem allocation to in alias_dpa_busy() 793 * nd_blk_available_dpa - account the unused dpa of BLK region 794 * @nd_mapping: container of dpa-resource-root + labels 797 * we arrange for them to never start at an lower dpa than the last 818 /* now account for busy blk allocations in unaliased dpa */ in nd_blk_available_dpa() 840 * contiguous unallocated dpa range. 842 * @nd_mapping: container of dpa-resource-root + labels 882 * nd_pmem_available_dpa - for the given dimm+region account unallocated dpa 883 * @nd_mapping: container of dpa-resource-root + labels 961 __release_region(&ndd->dpa, re in nvdimm_free_dpa() [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/via/ |
H A D | vt1636.c | 179 struct VT1636_DPA_SETTING dpa = {0x00, 0x00}, dpa_16x12 = {0x0B, 0x03}, in viafb_vt1636_patch_skew_on_vt3324() local 195 pdpa = &dpa; in viafb_vt1636_patch_skew_on_vt3324() 204 struct VT1636_DPA_SETTING dpa = {0x00, 0x00}; in viafb_vt1636_patch_skew_on_vt3327() local 215 set_dpa_vt1636(plvds_setting_info, plvds_chip_info, &dpa); in viafb_vt1636_patch_skew_on_vt3327()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/via/ |
H A D | vt1636.c | 179 struct VT1636_DPA_SETTING dpa = {0x00, 0x00}, dpa_16x12 = {0x0B, 0x03}, in viafb_vt1636_patch_skew_on_vt3324() local 195 pdpa = &dpa; in viafb_vt1636_patch_skew_on_vt3324() 204 struct VT1636_DPA_SETTING dpa = {0x00, 0x00}; in viafb_vt1636_patch_skew_on_vt3327() local 215 set_dpa_vt1636(plvds_setting_info, plvds_chip_info, &dpa); in viafb_vt1636_patch_skew_on_vt3327()
|
/kernel/linux/linux-6.6/drivers/cxl/ |
H A D | mem.c | 87 static int cxl_debugfs_poison_inject(void *data, u64 dpa) in cxl_debugfs_poison_inject() argument 91 return cxl_inject_poison(cxlmd, dpa); in cxl_debugfs_poison_inject() 97 static int cxl_debugfs_poison_clear(void *data, u64 dpa) in cxl_debugfs_poison_clear() argument 101 return cxl_clear_poison(cxlmd, dpa); in cxl_debugfs_poison_clear()
|
H A D | cxlmem.h | 874 int cxl_inject_poison(struct cxl_memdev *cxlmd, u64 dpa); 875 int cxl_clear_poison(struct cxl_memdev *cxlmd, u64 dpa);
|
/kernel/linux/linux-5.10/tools/testing/nvdimm/test/ |
H A D | nfit_test.h | 53 __u64 dpa; member
|
H A D | nfit.c | 676 u64 dpa; in nfit_test_search_spa() local 686 dpa = ctx.addr - nd_region->ndr_start; in nfit_test_search_spa() 696 spa->devices[0].dpa = dpa; in nfit_test_search_spa() 2838 static int nfit_test_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, in nfit_test_blk_do_io() argument 2848 memcpy(mmio->addr.base + dpa, iobuf, len); in nfit_test_blk_do_io() 2850 memcpy(iobuf, mmio->addr.base + dpa, len); in nfit_test_blk_do_io() 2853 arch_invalidate_pmem(mmio->addr.base + dpa, len); in nfit_test_blk_do_io()
|
/kernel/linux/linux-6.6/tools/testing/nvdimm/test/ |
H A D | nfit_test.h | 53 __u64 dpa; member
|
/kernel/linux/linux-5.10/drivers/acpi/nfit/ |
H A D | nfit.h | 269 int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | libnvdimm.h | 148 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
|