/openbmc/linux/tools/testing/nvdimm/test/ |
H A D | nfit.c | 2113 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2129 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2146 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2163 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2179 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2196 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2212 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2228 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2244 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() 2260 memdev->header.length = sizeof(*memdev); in nfit_test0_setup() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-pmem.c | 72 HostMemoryBackend *backend = MEMORY_BACKEND(pmem->memdev); in virtio_pmem_flush() 99 virtio_stq_p(vdev, &pmemcfg->size, memory_region_size(&pmem->memdev->mr)); in virtio_pmem_get_config() 113 if (!pmem->memdev) { in virtio_pmem_realize() 118 if (host_memory_backend_is_mapped(pmem->memdev)) { in virtio_pmem_realize() 124 host_memory_backend_set_mapped(pmem->memdev, true); in virtio_pmem_realize() 134 host_memory_backend_set_mapped(pmem->memdev, false); in virtio_pmem_unrealize() 143 vi->size = memory_region_size(&pmem->memdev->mr); in virtio_pmem_fill_device_info() 144 vi->memdev = object_get_canonical_path(OBJECT(pmem->memdev)); in virtio_pmem_fill_device_info() 150 if (!pmem->memdev) { in virtio_pmem_get_memory_region() 155 return &pmem->memdev->mr; in virtio_pmem_get_memory_region() [all …]
|
H A D | virtio-mem.c | 963 if (!vmem->memdev) { in virtio_mem_device_realize() 973 !vmem->memdev->mr.ram_block) { in virtio_mem_device_realize() 977 } else if (vmem->memdev->prealloc) { in virtio_mem_device_realize() 998 rb = vmem->memdev->mr.ram_block; in virtio_mem_device_realize() 1452 vi->memdev = object_get_canonical_path(OBJECT(vmem->memdev)); in virtio_mem_fill_device_info() 1457 if (!vmem->memdev) { in virtio_mem_get_memory_region() 1467 return &vmem->memdev->mr; in virtio_mem_get_memory_region() 1484 if (limit <= 1 || !vmem->memdev || !vmem->memdev->mr.ram_block) { in virtio_mem_decide_memslots() 1489 rb = vmem->memdev->mr.ram_block; in virtio_mem_decide_memslots() 1617 if (vmem->memdev && memory_region_is_ram(&vmem->memdev->mr)) { in virtio_mem_get_block_size() [all …]
|
/openbmc/linux/Documentation/driver-api/cxl/ |
H A D | memory-devices.rst | 59 "memdev":{ 71 "memdev":{ 89 "memdev":{ 101 "memdev":{ 125 "memdev":{ 137 "memdev":{ 155 "memdev":{ 167 "memdev":{ 239 "memdev":"mem3", 266 "memdev":"mem1", [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_fba.c | 317 struct dasd_device *memdev, in dasd_fba_build_cp_discard() argument 418 cqr->startdev = memdev; in dasd_fba_build_cp_discard() 419 cqr->memdev = memdev; in dasd_fba_build_cp_discard() 422 cqr->retries = memdev->default_retries; in dasd_fba_build_cp_discard() 430 struct dasd_device *memdev, in dasd_fba_build_cp_regular() argument 546 cqr->startdev = memdev; in dasd_fba_build_cp_regular() 547 cqr->memdev = memdev; in dasd_fba_build_cp_regular() 550 cqr->retries = memdev->default_retries; in dasd_fba_build_cp_regular() 561 return dasd_fba_build_cp_discard(memdev, block, req); in dasd_fba_build_cp() 563 return dasd_fba_build_cp_regular(memdev, block, req); in dasd_fba_build_cp() [all …]
|
H A D | dasd_diag.c | 507 static struct dasd_ccw_req *dasd_diag_build_cp(struct dasd_device *memdev, in dasd_diag_build_cp() argument 546 memdev, blk_mq_rq_to_pdu(req)); in dasd_diag_build_cp() 566 cqr->retries = memdev->default_retries; in dasd_diag_build_cp() 571 cqr->startdev = memdev; in dasd_diag_build_cp() 572 cqr->memdev = memdev; in dasd_diag_build_cp() 574 cqr->expires = memdev->default_expires * HZ; in dasd_diag_build_cp() 587 dasd_sfree_request(cqr, cqr->memdev); in dasd_diag_free_cp()
|
H A D | dasd_eckd.c | 840 cqr->memdev = device; in dasd_eckd_fill_rcd_cqr() 1536 cqr->memdev = device; in dasd_eckd_read_features() 1636 cqr->memdev = device; in dasd_eckd_read_vol_info() 1820 cqr->memdev = device; in dasd_eckd_read_ext_pool_info() 1916 cqr->memdev = device; in dasd_eckd_build_psf_ssc() 2286 cqr->memdev = device; in dasd_eckd_analysis_ccw() 3859 cqr->memdev = device; in dasd_eckd_dso_ras() 5077 cqr->memdev = device; in dasd_eckd_release() 5132 cqr->memdev = device; in dasd_eckd_reserve() 5186 cqr->memdev = device; in dasd_eckd_steal_lock() [all …]
|
/openbmc/linux/drivers/cxl/core/ |
H A D | trace.h | 55 __string(memdev, dev_name(&cxlmd->dev)) 63 __assign_str(memdev, dev_name(&cxlmd->dev)); 103 __string(memdev, dev_name(&cxlmd->dev)) 109 __assign_str(memdev, dev_name(&cxlmd->dev)); 135 __string(memdev, dev_name(&cxlmd->dev)) 145 __assign_str(memdev, dev_name(&cxlmd->dev)); 189 __string(memdev, dev_name(&cxlmd->dev)) \ 202 __assign_str(memdev, dev_name(&(cxlmd)->dev)); \ 663 __string(memdev, dev_name(&cxlmd->dev)) 678 __assign_str(memdev, dev_name(&cxlmd->dev)); [all …]
|
H A D | regs.c | 159 rmap = &map->memdev; in cxl_probe_device_regs() 248 { &map->device_map.memdev, ®s->memdev, }, in cxl_map_device_regs() 442 !dev_map->memdev.valid) { in cxl_probe_regs() 446 !dev_map->memdev.valid ? "memdev " : ""); in cxl_probe_regs()
|
H A D | Makefile | 11 cxl_core-y += memdev.o
|
/openbmc/linux/drivers/acpi/nfit/ |
H A D | core.c | 735 if (memdev->header.length != sizeof(*memdev)) in add_memdev() 739 if (memcmp(nfit_memdev->memdev, memdev, sizeof(*memdev)) == 0) { in add_memdev() 749 memcpy(nfit_memdev->memdev, memdev, sizeof(*memdev)); in add_memdev() 752 memdev->device_handle, memdev->range_index, in add_memdev() 753 memdev->region_index, memdev->flags); in add_memdev() 770 *flags = memdev->flags; in nfit_get_smbios_id() 1490 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in format1_show() local 2252 return nfit_memdev->memdev; in memdev_from_spa() 2560 memdev->device_handle); in acpi_nfit_init_mapping() 2655 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in acpi_nfit_register_region() local [all …]
|
/openbmc/qemu/hw/core/ |
H A D | machine-hmp-cmds.c | 278 monitor_printf(mon, " memdev: %s\n", di->memdev); in hmp_info_memory_devices() 291 monitor_printf(mon, " memdev: %s\n", vpi->memdev); in hmp_info_memory_devices() 306 monitor_printf(mon, " memdev: %s\n", vmi->memdev); in hmp_info_memory_devices() 316 monitor_printf(mon, " memdev: %s\n", se->memdev); in hmp_info_memory_devices() 328 if (hi->memdev) { in hmp_info_memory_devices() 329 monitor_printf(mon, " memdev: %s\n", hi->memdev); in hmp_info_memory_devices()
|
H A D | numa.c | 131 have_memdevs = have_memdevs || node->memdev; in parse_numa_node() 133 if ((node->has_mem && have_memdevs) || (node->memdev && have_mem)) { in parse_numa_node() 153 if (node->memdev) { in parse_numa_node() 155 o = object_resolve_path_type(node->memdev, TYPE_MEMORY_BACKEND, NULL); in parse_numa_node() 157 error_setg(errp, "memdev=%s is ambiguous", node->memdev); in parse_numa_node() 704 if (ms->memdev) { in numa_complete_configuration()
|
/openbmc/qemu/tests/qtest/ |
H A D | readconfig-test.c | 55 Memdev *memdev; in test_x86_memdev_resp() local 65 memdev = memdevs->value; in test_x86_memdev_resp() 66 g_assert_cmpstr(memdev->id, ==, mem_id); in test_x86_memdev_resp() 67 g_assert_cmpint(memdev->size, ==, size * MiB); in test_x86_memdev_resp()
|
/openbmc/qemu/docs/ |
H A D | memory-hotplug.txt | 45 (qemu) device_add pc-dimm,id=dimm1,memdev=mem1 59 (qemu) device_add pc-dimm,id=dimm1,memdev=mem1 72 -device pc-dimm,id=dimm1,memdev=mem1 \ 74 -device pc-dimm,id=dimm2,memdev=mem2
|
/openbmc/qemu/docs/system/devices/ |
H A D | cxl.rst | 311 -device cxl-type3,bus=root_port13,persistent-memdev=cxl-mem1,lsa=cxl-lsa1,id=cxl-pmem0 \ 321 -device cxl-type3,bus=root_port13,volatile-memdev=vmem0,id=cxl-vmem0 \ 332 -device cxl-type3,bus=root_port13,volatile-memdev=vmem0,lsa=cxl-lsa0,id=cxl-vmem0 \ 352 -device cxl-type3,bus=root_port13,persistent-memdev=cxl-mem1,lsa=cxl-lsa1,id=cxl-pmem0 \ 378 -device cxl-type3,bus=swport0,persistent-memdev=cxl-mem0,lsa=cxl-lsa0,id=cxl-pmem0 \ 380 -device cxl-type3,bus=swport1,persistent-memdev=cxl-mem1,lsa=cxl-lsa1,id=cxl-pmem1 \ 382 -device cxl-type3,bus=swport2,persistent-memdev=cxl-mem2,lsa=cxl-lsa2,id=cxl-pmem2 \ 384 -device cxl-type3,bus=swport3,persistent-memdev=cxl-mem3,lsa=cxl-lsa3,id=cxl-pmem3 \ 390 The Type 3 device [memdev] attribute has been deprecated in favor of the 391 [persistent-memdev] attributes. [memdev] will default to a persistent memory [all …]
|
H A D | virtio-pmem.rst | 32 -device virtio-pmem-pci,memdev=mem1,id=nv1 39 - "device virtio-pmem-pci,id=nvdimm1,memdev=mem1" creates a virtio pmem 56 (qemu) device_add virtio-pmem-pci,id=virtio_pmem2,memdev=mem2
|
H A D | ivshmem.rst | 9 |qemu_system_x86| -device ivshmem-plain,memdev=hostmem 59 -device ivshmem-plain,memdev=mb1
|
/openbmc/qemu/docs/system/i386/ |
H A D | sgx.rst | 48 -M sgx-epc.0.memdev=mem1,sgx-epc.1.memdev=mem2 144 -M sgx-epc.0.memdev=mem1,sgx-epc.0.node=0 165 -numa node,nodeid=0,cpus=0-1,memdev=node0 \\ 168 -numa node,nodeid=1,cpus=2-3,memdev=node1 \\ 169 -M sgx-epc.0.memdev=mem0,sgx-epc.0.node=0,sgx-epc.1.memdev=mem1,sgx-epc.1.node=1
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | debugfs-cxl | 7 attribute, the memdev driver sends an inject poison command to 28 attribute, the memdev driver sends a clear poison command to
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-pmem.h | 34 HostMemoryBackend *memdev; member
|
H A D | virtio-mem.h | 70 HostMemoryBackend *memdev; member
|
/openbmc/qemu/qapi/ |
H A D | machine.json | 551 '*memdev': 'str', 932 # @query-memdev: 1329 # @memdev: memory backend linked with device 1344 'memdev': 'str', 1361 # @memdev: memory backend linked with device 1369 'memdev': 'str' 1404 'memdev': 'str' 1419 # @memdev: memory backend linked with device 1430 'memdev': 'str' 1453 '*memdev': 'str' [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | hostmem.h | 91 size_t host_memory_backend_pagesize(HostMemoryBackend *memdev);
|
/openbmc/linux/drivers/cxl/ |
H A D | pci.c | 223 readq(cxlds->regs.memdev + CXLMDEV_STATUS_OFFSET); in __cxl_pci_mbox_send_cmd() 262 u64 md_status = readq(cxlds->regs.memdev + CXLMDEV_STATUS_OFFSET); in __cxl_pci_mbox_send_cmd() 393 md_status = readq(cxlds->regs.memdev + CXLMDEV_STATUS_OFFSET); in cxl_pci_setup_mailbox() 793 BUILD_BUG_ON(offsetof(struct cxl_regs, memdev) != in cxl_pci_probe() 794 offsetof(struct cxl_regs, device_regs.memdev)); in cxl_pci_probe()
|