/openbmc/qemu/hw/vfio/ |
H A D | region.c | 24 #include "hw/vfio/vfio-region.h" 40 VFIORegion *region = opaque; in vfio_region_write() local 41 VFIODevice *vbasedev = region->vbasedev; in vfio_region_write() 68 ret = vbasedev->io_ops->region_write(vbasedev, region->nr, in vfio_region_write() 69 addr, size, &buf, region->post_wr); in vfio_region_write() 71 error_report("%s(%s:region%d+0x%"HWADDR_PRIx", 0x%"PRIx64 in vfio_region_write() 73 __func__, vbasedev->name, region->nr, in vfio_region_write() 77 trace_vfio_region_write(vbasedev->name, region->nr, addr, data, size); in vfio_region_write() 93 VFIORegion *region = opaque; in vfio_region_read() local 94 VFIODevice *vbasedev = region->vbasedev; in vfio_region_read() [all …]
|
H A D | ccw.c | 72 struct ccw_io_region *region = vcdev->io_region; in vfio_ccw_handle_request() local 81 QEMU_BUILD_BUG_ON(sizeof(region->orb_area) != sizeof(ORB)); in vfio_ccw_handle_request() 82 QEMU_BUILD_BUG_ON(sizeof(region->scsw_area) != sizeof(SCSW)); in vfio_ccw_handle_request() 83 QEMU_BUILD_BUG_ON(sizeof(region->irb_area) != sizeof(IRB)); in vfio_ccw_handle_request() 85 memset(region, 0, sizeof(*region)); in vfio_ccw_handle_request() 87 memcpy(region->orb_area, &sch->orb, sizeof(ORB)); in vfio_ccw_handle_request() 88 memcpy(region->scsw_area, &sch->curr_status.scsw, sizeof(SCSW)); in vfio_ccw_handle_request() 91 ret = pwrite(vcdev->vdev.fd, region, in vfio_ccw_handle_request() 97 error_report("vfio-ccw: write I/O region failed with errno=%d", errno); in vfio_ccw_handle_request() 122 struct ccw_schib_region *region = vcdev->schib_region; in vfio_ccw_handle_store() local [all …]
|
H A D | display.c | 422 dpy->region.surface = NULL; in vfio_display_region_update() 431 if (dpy->region.buffer.size && in vfio_display_region_update() 432 dpy->region.buffer.nr != plane.region_index) { in vfio_display_region_update() 433 /* region changed */ in vfio_display_region_update() 434 vfio_region_exit(&dpy->region.buffer); in vfio_display_region_update() 435 vfio_region_finalize(&dpy->region.buffer); in vfio_display_region_update() 436 dpy->region.surface = NULL; in vfio_display_region_update() 439 if (dpy->region.surface && in vfio_display_region_update() 440 (surface_width(dpy->region.surface) != plane.width || in vfio_display_region_update() 441 surface_height(dpy->region.surface) != plane.height || in vfio_display_region_update() [all …]
|
/openbmc/u-boot/lib/ |
H A D | lmb.c | 25 (unsigned long long)lmb->memory.region[i].base); in lmb_dump_all() 27 (unsigned long long)lmb->memory.region[i].size); in lmb_dump_all() 36 (unsigned long long)lmb->reserved.region[i].base); in lmb_dump_all() 38 (unsigned long long)lmb->reserved.region[i].size); in lmb_dump_all() 66 phys_addr_t base1 = rgn->region[r1].base; in lmb_regions_adjacent() 67 phys_size_t size1 = rgn->region[r1].size; in lmb_regions_adjacent() 68 phys_addr_t base2 = rgn->region[r2].base; in lmb_regions_adjacent() 69 phys_size_t size2 = rgn->region[r2].size; in lmb_regions_adjacent() 79 rgn->region[i].base = rgn->region[i + 1].base; in lmb_remove_region() 80 rgn->region[i].size = rgn->region[i + 1].size; in lmb_remove_region() [all …]
|
/openbmc/qemu/tcg/ |
H A D | region.c | 2 * Memory region management for Tiny Code Generator for QEMU 57 * dynamically allocate from as demand dictates. Given appropriate region 68 size_t size; /* size of one region */ 73 size_t current; /* current region index */ 77 static struct tcg_region_state region; variable 94 return (size_t)(p - region.start_aligned) <= region.total_size; in in_code_gen_buffer() 125 /* Assert that we end with a pointer in the rw region. */ in tcg_splitwx_to_rw() 185 region_trees = qemu_memalign(qemu_dcache_linesize, region.n * tree_size); in tcg_region_trees_init() 186 for (i = 0; i < region.n; i++) { in tcg_region_trees_init() 209 if (p < region.start_aligned) { in tc_ptr_to_region_tree() [all …]
|
/openbmc/qemu/docs/devel/ |
H A D | memory.rst | 33 - RAM: a RAM region is simply a range of host memory that can be made available 44 - ROM: a ROM memory region works like RAM for reads (directly accessing 45 a region of host memory), and forbids writes. You initialize these with 48 - ROM device: a ROM device memory region works like RAM for reads 49 (directly accessing a region of host memory), but like MMIO for 53 - IOMMU region: an IOMMU region translates addresses of accesses made to it 54 and forwards them to some other target memory region. As the name suggests, 60 into one unit. For example, a PCI BAR may be composed of a RAM region 61 and an MMIO region. 70 - alias: a subsection of another region. Aliases allow a region to be [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | MemoryRegion.v1_0_3.json | 36 "description": "Definition of memory chunk providing capacity for memory region.", 37 …: "This type shall contain the definition of a memory chunk providing capacity for memory region.", 55 … "description": "The link to the memory chunk providing capacity to the memory region.", 56 … contain a link to a resource of type `MemoryChunks` that provides capacity to the memory region.", 60 … "description": "Offset of the memory chunk within the memory region in mebibytes (MiB).", 61 … this property shall be the offset of the memory chunk within the memory region in mebibytes (MiB)… 71 …ption": "Definition of memory extent identifying an available address range in the memory region.", 72 … of a memory extent identifying an available address range in the dynamic capacity memory region.", 89 … "description": "Offset of the memory extent within the memory region in mebibytes (MiB).", 90 …this property shall be the offset of the memory extent within the memory region in mebibytes (MiB)… [all …]
|
/openbmc/qemu/include/hw/vfio/ |
H A D | vfio-region.h | 2 * VFIO region 25 off_t fd_offset; /* offset of region within device fd */ 28 uint32_t flags; /* VFIO region flags (rd/wr/mmap) */ 31 uint8_t nr; /* cache the region number for debug */ 40 int vfio_region_setup(Object *obj, VFIODevice *vbasedev, VFIORegion *region, 42 int vfio_region_mmap(VFIORegion *region); 43 void vfio_region_mmaps_set_enabled(VFIORegion *region, bool enabled); 44 void vfio_region_unmap(VFIORegion *region); 45 void vfio_region_exit(VFIORegion *region); 46 void vfio_region_finalize(VFIORegion *region);
|
/openbmc/qemu/include/system/ |
H A D | memory.h | 35 #define TYPE_MEMORY_REGION "memory-region" 39 #define TYPE_IOMMU_MEMORY_REGION "iommu-memory-region" 88 * @mr: the region, or %NULL if empty 89 * @fv: the flat view of the address space the region is mapped in 93 * relative to the region's address space 291 * Memory region callbacks 294 /* Read from the memory region. @addr is relative to @mr; @size is 299 /* Write to the memory region. @addr is relative to @mr; @size is 370 * to handle requests to the memory region. Other methods are optional. 423 * @hwaddr: address to be translated within the memory region [all …]
|
/openbmc/phosphor-ipmi-flash/tools/test/ |
H A D | tools_pci_unittest.cpp | 178 /* Offset to the config region */ 264 std::vector<std::uint8_t> region(mockRegionSize); in TEST_P() local 279 .WillOnce(DoAll(SetArgPointee<4>(region.data()), Return(0))); in TEST_P() 282 EXPECT_CALL(pciMock, pci_device_unmap_range(Eq(&dev), Eq(region.data()), in TEST_P() 291 /* Create expectations on pciMock for finding device and mapping memory region 294 std::uint8_t* region, bool deviceExpectations = true) in expectSetup() argument 309 .WillOnce(DoAll(SetArgPointee<4>(region), Return(0))); in expectSetup() 313 pci_device_unmap_range(Eq(&dev), Eq(region), mockRegionSize)) in expectSetup() 322 /* Test finding device and mapping memory region */ 327 std::vector<std::uint8_t> region(mockRegionSize); in TEST_P() local [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | libfdt.h | 21 * Add a region for the string table (always the last region) 37 /* Add a region for the mem_rsvmap table (always the first region) */ 80 struct fdt_region *region; /* Contains list of regions found */ member 84 int can_merge; /* 1 if we can merge with previous region */ 85 int start; /* Start position of current region */ 98 * same region contents regardless of any change to "data" properties. 103 * Nodes which are given in 'inc' are included in the region list, as 122 * already added). This function can optionally include a region for 132 * @region: Returns list of regions 133 * @max_region: Maximum length of region list [all …]
|
/openbmc/u-boot/include/dm/ |
H A D | of_extra.h | 27 uint32_t used; /* Number of bytes used in region */ 45 * ofnode_decode_region() - Decode a memory region from a node 47 * Look up a property in a node which contains a memory region address and 55 * @param basep Returns base address of region 56 * @param size Returns size of region 63 * ofnode_decode_memory_region()- Decode a named region within a memory bank 65 * This function handles selection of a memory region. The region is 74 * that the region is entirely within the memory bank.5 81 * @param basep Returns base of region 82 * @param sizep Returns size of region
|
/openbmc/qemu/hw/remote/ |
H A D | memory.c | 37 int region; in remote_sysmem_reconfig() local 43 for (region = 0; region < msg->num_fds; region++, suffix++) { in remote_sysmem_reconfig() 47 name, sysmem_info->sizes[region], in remote_sysmem_reconfig() 48 RAM_SHARED, msg->fds[region], in remote_sysmem_reconfig() 49 sysmem_info->offsets[region], in remote_sysmem_reconfig() 58 memory_region_add_subregion(sysmem, sysmem_info->gpas[region], in remote_sysmem_reconfig()
|
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | MemoryRegion_v1.xml | 41 …n" String="The `MemoryRegion` schema contains the definition of a memory region and its configurat… 42 …m="OData.LongDescription" String="This resource shall represent a memory region in a Redfish imple… 74 <Annotation Term="OData.Description" String="The type of memory region."/> 75 …tion Term="OData.LongDescription" String="This property shall contain the type of memory region."/> 80 <Annotation Term="OData.Description" String="The memory region number."/> 81 …ation Term="OData.LongDescription" String="This property shall contain the memory region number."/> 85 … <Annotation Term="OData.Description" String="The memory region block size in mebibytes (MiB)."/> 86 …ion" String="This property shall contain the memory region block size in mebibytes (MiB). The reg… 91 … <Annotation Term="OData.Description" String="The size of the memory region in mebibytes (MiB)."/> 92 …gDescription" String="This property shall contain the size of the memory region in mebibytes (MiB)… [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Inventory/Item/PersistentMemory/ |
H A D | Partition.interface.yaml | 7 Unique region ID representing a specific region within the Memory. 11 Size of this memory region in kibibytes (KiB). 15 Classification of memory occupied by the given memory region. 20 memory region in KiB. 24 An indication of whether the state of the passphrase for this region
|
/openbmc/u-boot/lib/libfdt/ |
H A D | fdt_region.c | 32 struct fdt_region region[], int max_regions, in fdt_find_regions() argument 117 offset == region[count - 1].offset + in fdt_find_regions() 118 region[count - 1].size - base) in fdt_find_regions() 119 start = region[--count].offset - base; in fdt_find_regions() 126 region[count].offset = base + start; in fdt_find_regions() 127 region[count].size = stop_at - start; in fdt_find_regions() 137 /* Add a region for the END tag and the string table */ in fdt_find_regions() 139 region[count].offset = base + start; in fdt_find_regions() 140 region[count].size = nextoffset - start; in fdt_find_regions() 142 region[count].size += fdt_size_dt_strings(fdt); in fdt_find_regions() [all …]
|
/openbmc/qemu/include/hw/mem/ |
H A D | memory-device.h | 35 * A memory device is a device that owns a memory region which is 40 * Some memory device might not own a memory region in certain device 44 * Conceptually, memory devices only span one memory region. If multiple 45 * successive memory regions are used, a covering memory region has to 49 * The device memory region returned via @get_memory_region may either be a 50 * single RAM memory region or a memory region container with subregions 54 * If the device memory region returned via @get_memory_region is a 55 * memory region container, it's supported to dynamically (un)map subregions 91 * memory accessible by the guest via the reserved memory region. For 92 * most devices, this corresponds to the size of the memory region. [all …]
|
/openbmc/u-boot/tools/ |
H A D | ifdtool.c | 70 * get_region() - Get information about the selected region 72 * @frba: Flash region list 73 * @region_type: Type of region (0..MAX_REGIONS-1) 74 * @region: Region information is written here 78 struct region_t *region) in get_region() argument 81 fprintf(stderr, "Invalid region type.\n"); in get_region() 85 region->base = FLREG_BASE(frba->flreg[region_type]); in get_region() 86 region->limit = FLREG_LIMIT(frba->flreg[region_type]); in get_region() 87 region->size = region->limit - region->base + 1; in get_region() 124 struct region_t region; in dump_region() local [all …]
|
/openbmc/bios-bmc-smm-error-logger/ |
H A D | meson.options | 13 'memory-region-size', 20 'memory-region-offset', 23 description: 'Where the memory region is located', 34 'queue-region-size', 37 description: 'Normal error queue region size', 40 'ue-region-size', 43 description: 'Uncorrectable error region size',
|
/openbmc/u-boot/cmd/ |
H A D | cros_ec.c | 20 * Decode a flash region parameter 24 * @return flash region (EC_FLASH_REGION_...) or -1 on error 34 debug("%s: Invalid region '%s'\n", __func__, *argv); in cros_ec_decode_region() 36 debug("%s: Missing region parameter\n", __func__); in cros_ec_decode_region() 48 * @param argv Arguments (2 is region, 3 is address) 58 int region; in do_read_write() local 61 region = cros_ec_decode_region(argc - 2, argv + 2); in do_read_write() 62 if (region == -1) in do_read_write() 75 ret = cros_ec_flash_offset(dev, region, &offset, ®ion_size); in do_read_write() 77 debug("%s: Could not read region info\n", __func__); in do_read_write() [all …]
|
H A D | otp_info.h | 285 { 0, 3, 1, 0, "User region ECC disable" }, 286 { 0, 3, 1, 1, "User region ECC enable" }, 287 { 0, 4, 1, 0, "Secure Region ECC disable" }, 288 { 0, 4, 1, 1, "Secure Region ECC enable" }, 307 { 0, 16, 6, OTP_REG_VALUE, "Secure Region size (DW): 0x%x" }, 308 { 0, 22, 1, 0, "Secure Region : Writable" }, 309 { 0, 22, 1, 1, "Secure Region : Write Protect" }, 310 { 0, 23, 1, 0, "User Region : Writable" }, 311 { 0, 23, 1, 1, "User Region : Write Protect" }, 312 { 0, 24, 1, 0, "Configure Region : Writable" }, [all …]
|
/openbmc/u-boot/arch/arm/mach-omap2/ |
H A D | Kconfig | 145 hex "Reserved EMIF region start address" 149 Reserved EMIF region start address. Set to "0" to auto-select 150 to be at the end of the external memory region. 153 hex "Reserved EMIF region size" 157 Total reserved EMIF region size. Default is 0, which means no reserved EMIF 158 region on secure devices. 161 hex "Size of protected region within reserved EMIF region" 166 reserved EMIF region set aside for secure OS needs that will be protected
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_auto_common.c | 69 static void pciauto_show_region(const char *name, struct pci_region *region) in pciauto_show_region() argument 71 pciauto_region_init(region); in pciauto_show_region() 72 debug("PCI Autoconfig: Bus %s region: [%llx-%llx],\n" in pciauto_show_region() 74 (unsigned long long)region->bus_start, in pciauto_show_region() 75 (unsigned long long)(region->bus_start + region->size - 1), in pciauto_show_region() 76 (unsigned long long)region->phys_start, in pciauto_show_region() 77 (unsigned long long)(region->phys_start + region->size - 1)); in pciauto_show_region()
|
/openbmc/qemu/hw/pci/ |
H A D | pci-qmp-cmds.c | 40 PciMemoryRegion *region; in qmp_query_pci_regions() local 46 region = g_malloc0(sizeof(*region)); in qmp_query_pci_regions() 49 region->type = g_strdup("io"); in qmp_query_pci_regions() 51 region->type = g_strdup("memory"); in qmp_query_pci_regions() 52 region->has_prefetch = true; in qmp_query_pci_regions() 53 region->prefetch = !!(r->type & PCI_BASE_ADDRESS_MEM_PREFETCH); in qmp_query_pci_regions() 54 region->has_mem_type_64 = true; in qmp_query_pci_regions() 55 region->mem_type_64 = !!(r->type & PCI_BASE_ADDRESS_MEM_TYPE_64); in qmp_query_pci_regions() 58 region->bar = i; in qmp_query_pci_regions() 59 region->address = r->addr; in qmp_query_pci_regions() [all …]
|
/openbmc/u-boot/lib/rsa/ |
H A D | rsa-checksum.c | 19 const struct image_region region[], in hash_calculate() argument 37 ret = algo->hash_update(algo, ctx, region[i].data, in hash_calculate() 38 region[i].size, 0); in hash_calculate() 43 ret = algo->hash_update(algo, ctx, region[i].data, region[i].size, 1); in hash_calculate()
|