/openbmc/linux/drivers/fpga/ |
H A D | dfl-afu-dma-region.c | 3 * Driver for FPGA Accelerated Function Unit (AFU) DMA Region Management 27 * afu_dma_pin_pages - pin pages of given dma memory region 29 * @region: dma memory region to be pinned 35 struct dfl_afu_dma_region *region) in afu_dma_pin_pages() argument 37 int npages = region->length >> PAGE_SHIFT; in afu_dma_pin_pages() 45 region->pages = kcalloc(npages, sizeof(struct page *), GFP_KERNEL); in afu_dma_pin_pages() 46 if (!region->pages) { in afu_dma_pin_pages() 51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE, in afu_dma_pin_pages() 52 region->pages); in afu_dma_pin_pages() 66 unpin_user_pages(region->pages, pinned); in afu_dma_pin_pages() [all …]
|
H A D | fpga-region.c | 3 * FPGA Region - Support for FPGA programming under Linux 10 #include <linux/fpga/fpga-region.h> 36 * fpga_region_get - get an exclusive reference to an fpga region 37 * @region: FPGA Region struct 39 * Caller should call fpga_region_put() when done with region. 43 * * -EBUSY if someone already has a reference to the region. 46 static struct fpga_region *fpga_region_get(struct fpga_region *region) in fpga_region_get() argument 48 struct device *dev = ®ion->dev; in fpga_region_get() 50 if (!mutex_trylock(®ion->mutex)) { in fpga_region_get() 51 dev_dbg(dev, "%s: FPGA Region already in use\n", __func__); in fpga_region_get() [all …]
|
H A D | dfl-afu-region.c | 3 * Driver for FPGA Accelerated Function Unit (AFU) MMIO Region Management 14 * afu_mmio_region_init - init function for afu mmio region support 24 #define for_each_region(region, afu) \ argument 25 list_for_each_entry((region), &(afu)->regions, node) 30 struct dfl_afu_mmio_region *region; in get_region_by_index() local 32 for_each_region(region, afu) in get_region_by_index() 33 if (region->index == region_index) in get_region_by_index() 34 return region; in get_region_by_index() 40 * afu_mmio_region_add - add a mmio region to given feature dev. 43 * @region_index: region index. [all …]
|
H A D | of-fpga-region.c | 3 * FPGA Region - Device Tree support for FPGA programming under Linux 10 #include <linux/fpga/fpga-region.h> 22 { .compatible = "fpga-region", }, 28 * of_fpga_region_find - find FPGA region 29 * @np: device node of FPGA Region 31 * Caller will need to put_device(®ion->dev) when done. 33 * Return: FPGA Region struct or NULL 42 * @np: device node of FPGA region 44 * Get FPGA Manager from "fpga-mgr" property or from ancestor region. 57 if (of_device_is_compatible(np, "fpga-region")) { in of_fpga_region_get_mgr() [all …]
|
H A D | dfl-fme-region.c | 3 * FPGA Region Driver for FPGA Management Engine (FME) 18 #include <linux/fpga/fpga-region.h> 22 static int fme_region_get_bridges(struct fpga_region *region) in fme_region_get_bridges() argument 24 struct dfl_fme_region_pdata *pdata = region->priv; in fme_region_get_bridges() 27 return fpga_bridge_get_to_list(dev, region->info, ®ion->bridge_list); in fme_region_get_bridges() 35 struct fpga_region *region; in fme_region_probe() local 47 region = fpga_region_register_full(dev, &info); in fme_region_probe() 48 if (IS_ERR(region)) { in fme_region_probe() 49 ret = PTR_ERR(region); in fme_region_probe() 53 platform_set_drvdata(pdev, region); in fme_region_probe() [all …]
|
/openbmc/linux/net/devlink/ |
H A D | region.c | 29 struct devlink_region *region; member 37 struct devlink_region *region; in devlink_region_get_by_name() local 39 list_for_each_entry(region, &devlink->region_list, list) in devlink_region_get_by_name() 40 if (!strcmp(region->ops->name, region_name)) in devlink_region_get_by_name() 41 return region; in devlink_region_get_by_name() 50 struct devlink_region *region; in devlink_port_region_get_by_name() local 52 list_for_each_entry(region, &port->region_list, list) in devlink_port_region_get_by_name() 53 if (!strcmp(region->ops->name, region_name)) in devlink_port_region_get_by_name() 54 return region; in devlink_port_region_get_by_name() 60 devlink_region_snapshot_get_by_id(struct devlink_region *region, u32 id) in devlink_region_snapshot_get_by_id() argument [all …]
|
/openbmc/qemu/hw/vfio/ |
H A D | helpers.c | 155 VFIORegion *region = opaque; in vfio_region_write() local 156 VFIODevice *vbasedev = region->vbasedev; in vfio_region_write() 182 if (pwrite(vbasedev->fd, &buf, size, region->fd_offset + addr) != size) { in vfio_region_write() 183 error_report("%s(%s:region%d+0x%"HWADDR_PRIx", 0x%"PRIx64 in vfio_region_write() 185 __func__, vbasedev->name, region->nr, in vfio_region_write() 189 trace_vfio_region_write(vbasedev->name, region->nr, addr, data, size); in vfio_region_write() 205 VFIORegion *region = opaque; in vfio_region_read() local 206 VFIODevice *vbasedev = region->vbasedev; in vfio_region_read() 215 if (pread(vbasedev->fd, &buf, size, region->fd_offset + addr) != size) { in vfio_region_read() 216 error_report("%s(%s:region%d+0x%"HWADDR_PRIx", %d) failed: %m", in vfio_region_read() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_acl_tcam.c | 14 struct mlxsw_sp_acl_tcam_region *region; member 62 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_add() argument 67 mlxsw_sp_acl_ctcam_chunk_init(®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 68 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 82 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 83 ®ion->catchall.centry, in mlxsw_sp1_acl_ctcam_region_catchall_add() 87 region->catchall.rulei = rulei; in mlxsw_sp1_acl_ctcam_region_catchall_add() 95 mlxsw_sp_acl_ctcam_chunk_fini(®ion->catchall.cchunk); in mlxsw_sp1_acl_ctcam_region_catchall_add() 101 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_del() argument [all …]
|
H A D | spectrum_acl_ctcam.c | 15 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_resize() argument 21 region->key_type, new_size, region->id, in mlxsw_sp_acl_ctcam_region_resize() 22 region->tcam_region_info); in mlxsw_sp_acl_ctcam_region_resize() 28 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_move() argument 34 region->tcam_region_info, src_offset, in mlxsw_sp_acl_ctcam_region_move() 35 region->tcam_region_info, dst_offset, size); in mlxsw_sp_acl_ctcam_region_move() 46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_entry_insert() local 61 region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_insert() 65 mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); in mlxsw_sp_acl_ctcam_region_entry_insert() 94 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_remove() [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/linux/Documentation/networking/devlink/ |
H A D | devlink-region.rst | 4 Devlink Region 11 region can then be accessed via the devlink region interface. 13 Region snapshots are collected by the driver, and can be accessed via read 17 Snapshot identifiers are scoped to the devlink instance, not a region. 21 The major benefit to creating a region is to provide access to internal 29 requested snapshots must implement the ``.snapshot`` callback for the region 38 region should implement the ``.read`` callback in the ``devlink_region_ops`` 48 $ devlink region help 49 $ devlink region show [ DEV/REGION ] 50 $ devlink region del DEV/REGION snapshot SNAPSHOT_ID [all …]
|
H A D | iosm.rst | 59 each having one secure bin file and at least one Loadmap/Region file. For flashing 61 data required for flashing. The data like region count and address of each region 91 b) Flashing the Loadmap/Region file 109 - The summary of exception details logged as part of this region. 111 - This region contains the details related to the exception occurred in the 114 - This region contains the logs related to the modem CDD driver. 116 - This region contains the eeprom logs. 118 - This region contains the current instance of bootloader logs. 120 - This region contains the previous instance of bootloader logs. 123 Region commands [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/linux/drivers/acpi/pmic/ |
H A D | Kconfig | 4 bool "PMIC (Power Management Integrated Circuit) operation region support" 7 region of the PMIC chip. The operation region can be used 14 bool "ACPI operation region support for Bay Trail Crystal Cove PMIC" 17 This config adds ACPI operation region support for the Bay Trail 21 bool "ACPI operation region support for Cherry Trail Crystal Cove PMIC" 24 This config adds ACPI operation region support for the Cherry Trail 28 bool "ACPI operation region support for XPower AXP288 PMIC" 31 This config adds ACPI operation region support for XPower AXP288 PMIC. 34 bool "ACPI operation region support for BXT WhiskeyCove PMIC" 37 This config adds ACPI operation region support for BXT WhiskeyCove PMIC. [all …]
|
/openbmc/linux/Documentation/driver-api/fpga/ |
H A D | fpga-region.rst | 1 FPGA Region 7 This document is meant to be a brief overview of the FPGA region API usage. A 11 For the purposes of this API document, let's just say that a region associates 12 an FPGA Manager and a bridge (or bridges) with a reprogrammable region of an 13 FPGA or the whole FPGA. The API provides a way to register a region and to 14 program a region. 16 Currently the only layer above fpga-region.c in the kernel is the Device Tree 17 support (of-fpga-region.c) described in [#f1]_. The DT support layer uses regions 18 to program the FPGA and then DT to handle enumeration. The common region code 22 An fpga-region can be set up to know the following things: [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 199 * range addressed by a single page table into a low and high region 201 * the VA region spans [0, 2^(va_bits - 1)), [-(2^(va_bits - 1), -1]. 336 * maximum page table size for a memory region will be when the in vm_nr_pages_required() 374 * MMIO region would prevent silently clobbering the MMIO region. in __vm_create() 377 ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size); in __vm_create() 449 struct userspace_mem_region *region; in kvm_vm_restart() local 455 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) { in kvm_vm_restart() 456 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, ®ion->region); in kvm_vm_restart() 461 ret, errno, region->region.slot, in kvm_vm_restart() 462 region->region.flags, in kvm_vm_restart() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | evregion.c | 4 * Module Name: evregion - Operation Region support 40 * an installed default region handler. 82 * PARAMETERS: region_obj - Internal region object 85 * region_offset - Where in the region to read or write 92 * DESCRIPTION: Dispatch an address space or operation region access to 95 * NOTE: During early initialization, we always install the default region 97 * region address spaces are always available as per the ACPI specification. 127 /* Ensure that there is a handler associated with this region */ in acpi_ev_address_space_dispatch() 129 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch() 132 "No handler for Region [%4.4s] (%p) [%s]", in acpi_ev_address_space_dispatch() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
H A D | ia_css_eed1_8_types.h | 48 …cthres_0; /** Threshold to prevent chroma coring due to noise or green disparity in dark region. */ 49 …hres_1; /** Threshold to prevent chroma coring due to noise or green disparity in bright region. */ 50 s32 fc_sat_coef; /** How much color saturation to maintain in high color saturation region. */ 53 s32 aerel_thres0; /** Threshold for Non-Directional Reliability at dark region. */ 54 s32 aerel_gain0; /** Gain for Non-Directional Reliability at dark region. */ 55 s32 aerel_thres1; /** Threshold for Non-Directional Reliability at bright region. */ 56 s32 aerel_gain1; /** Gain for Non-Directional Reliability at bright region. */ 58 s32 derel_thres0; /** Threshold for Directional Reliability at dark region. */ 59 s32 derel_gain0; /** Gain for Directional Reliability at dark region. */ 60 s32 derel_thres1; /** Threshold for Directional Reliability at bright region. */ [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/linux/arch/arm64/mm/ |
H A D | cache.S | 20 * Ensure that the I and D caches are coherent within specified region. 21 * This is typically used when code has been written to a memory region, 24 * - start - virtual start address of region 25 * - end - virtual end address of region 48 * Ensure that the I and D caches are coherent within specified region. 49 * This is typically used when code has been written to a memory region, 52 * - start - virtual start address of region 53 * - end - virtual end address of region 64 * Ensure that the I and D caches are coherent within specified region. 65 * This is typically used when code has been written to a memory region, [all …]
|
/openbmc/linux/arch/arm/mm/ |
H A D | pmsa-v7.c | 19 struct region { struct 25 static struct region __initdata mem[MPU_MAX_REGIONS]; argument 27 static struct region __initdata xip[MPU_MAX_REGIONS]; 46 /* Region number */ 52 /* Data-side / unified region attributes */ 54 /* Region access control register */ 60 /* Region size register */ 66 /* Region base address register */ 76 /* Optional instruction-side region attributes */ 78 /* I-side Region access control register */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/fpga/ |
H A D | fpga-region.txt | 1 FPGA Region Device Tree Binding 9 - FPGA Region 39 Partial Reconfiguration Region (PRR) 46 into a PRR must fit and must use a subset of the region's connections. 47 * The busses within the FPGA are split such that each region gets its own 64 * During Partial Reconfiguration of a specific region, that region's bridge 100 region (PRR0-2) gets its own split of the busses that is independently gated by 108 When a DT overlay that targets an FPGA Region is applied, the FPGA Region will 117 When the overlay is removed, the child nodes will be removed and the FPGA Region 121 FPGA Region [all …]
|
/openbmc/linux/arch/um/kernel/ |
H A D | physmem.c | 127 struct iomem_region *region = iomem_regions; in phys_mapping() local 129 while (region != NULL) { in phys_mapping() 130 if ((phys >= region->phys) && in phys_mapping() 131 (phys < region->phys + region->size)) { in phys_mapping() 132 fd = region->fd; in phys_mapping() 133 *offset_out = phys - region->phys; in phys_mapping() 136 region = region->next; in phys_mapping() 168 " Configure <file> as an IO memory region named <name>.\n\n" 183 struct iomem_region *region = iomem_regions; in find_iomem() local 185 while (region != NULL) { in find_iomem() [all …]
|
/openbmc/qemu/include/exec/ |
H A D | memory.h | 37 #define TYPE_MEMORY_REGION "memory-region" 41 #define TYPE_IOMMU_MEMORY_REGION "iommu-memory-region" 90 * @mr: the region, or %NULL if empty 91 * @fv: the flat view of the address space the region is mapped in 95 * relative to the region's address space 262 * Memory region callbacks 265 /* Read from the memory region. @addr is relative to @mr; @size is 270 /* Write to the memory region. @addr is relative to @mr; @size is 341 * to handle requests to the memory region. Other methods are optional. 394 * @hwaddr: address to be translated within the memory region [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 …]
|