Home
last modified time | relevance | path

Searched full:region (Results 1 – 25 of 2639) sorted by relevance

12345678910>>...106

/Linux-v6.1/drivers/fpga/
Ddfl-afu-dma-region.c3 * 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 …]
Dfpga-region.c3 * 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.
42 * Return -EBUSY if someone already has a reference to the region.
43 * Return -ENODEV if @np is not an FPGA Region.
45 static struct fpga_region *fpga_region_get(struct fpga_region *region) in fpga_region_get() argument
47 struct device *dev = &region->dev; in fpga_region_get()
49 if (!mutex_trylock(&region->mutex)) { in fpga_region_get()
[all …]
Ddfl-afu-region.c3 * 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.
42 * @region_index: region index.
[all …]
Dof-fpga-region.c3 * FPGA Region - Device Tree support for FPGA programming under Linux
10 #include <linux/fpga/fpga-region.h>
20 { .compatible = "fpga-region", },
26 * of_fpga_region_find - find FPGA region
27 * @np: device node of FPGA Region
29 * Caller will need to put_device(&region->dev) when done.
31 * Return: FPGA Region struct or NULL
40 * @np: device node of FPGA region
42 * Get FPGA Manager from "fpga-mgr" property or from ancestor region.
55 if (of_device_is_compatible(np, "fpga-region")) { in of_fpga_region_get_mgr()
[all …]
Ddfl-fme-region.c3 * 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, &region->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 …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_acl_tcam.c14 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(&region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add()
68 &region->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add()
81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, &region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add()
82 &region->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add()
83 &region->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(&region->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 …]
Dspectrum_acl_ctcam.c15 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 …]
/Linux-v6.1/tools/testing/selftests/kvm/lib/
Dkvm_util.c321 * maximum page table size for a memory region will be when the in vm_nr_pages_required()
414 struct userspace_mem_region *region; in kvm_vm_restart() local
420 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) { in kvm_vm_restart()
421 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, &region->region); in kvm_vm_restart()
426 ret, errno, region->region.slot, in kvm_vm_restart()
427 region->region.flags, in kvm_vm_restart()
428 region->region.guest_phys_addr, in kvm_vm_restart()
429 region->region.memory_size); in kvm_vm_restart()
447 * Userspace Memory Region Find
457 * Pointer to overlapping region, NULL if no such region.
[all …]
/Linux-v6.1/Documentation/networking/devlink/
Ddevlink-region.rst4 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
39 $ devlink region help
40 $ devlink region show [ DEV/REGION ]
41 $ devlink region del DEV/REGION snapshot SNAPSHOT_ID
42 $ devlink region dump DEV/REGION [ snapshot SNAPSHOT_ID ]
[all …]
Diosm.rst59 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 …]
/Linux-v6.1/Documentation/driver-api/fpga/
Dfpga-region.rst1 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 …]
/Linux-v6.1/drivers/acpi/pmic/
DKconfig4 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 …]
/Linux-v6.1/drivers/acpi/acpica/
Devregion.c4 * Module Name: evregion - Operation Region support
40 * an installed default region handler.
81 * PARAMETERS: region_obj - Internal region object
84 * region_offset - Where in the region to read or write
91 * DESCRIPTION: Dispatch an address space or operation region access to
94 * NOTE: During early initialization, we always install the default region
96 * region address spaces are always available as per the ACPI specification.
126 /* Ensure that there is a handler associated with this region */ in acpi_ev_address_space_dispatch()
128 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch()
131 "No handler for Region [%4.4s] (%p) [%s]", in acpi_ev_address_space_dispatch()
[all …]
/Linux-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/
Dia_css_eed1_8_types.h48 …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 …]
/Linux-v6.1/arch/arm/mm/
Dpmsa-v7.c19 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 …]
/Linux-v6.1/arch/arm64/mm/
Dcache.S20 * 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
63 * Ensure that the I and D caches are coherent within specified region.
64 * This is typically used when code has been written to a memory region,
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/fpga/
Dfpga-region.txt1 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 …]
/Linux-v6.1/arch/um/kernel/
Dphysmem.c127 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 …]
/Linux-v6.1/drivers/virt/acrn/
Dmm.c18 static int modify_region(struct acrn_vm *vm, struct vm_memory_region_op *region) in modify_region() argument
29 regions->regions_gpa = virt_to_phys(region); in modify_region()
34 "Failed to set memory region for VM[%u]!\n", vm->vmid); in modify_region()
41 * acrn_mm_region_add() - Set up the EPT mapping of a memory region.
45 * @size: Size of the region.
54 struct vm_memory_region_op *region; in acrn_mm_region_add() local
57 region = kzalloc(sizeof(*region), GFP_KERNEL); in acrn_mm_region_add()
58 if (!region) in acrn_mm_region_add()
61 region->type = ACRN_MEM_REGION_ADD; in acrn_mm_region_add()
62 region->user_vm_pa = user_gpa; in acrn_mm_region_add()
[all …]
/Linux-v6.1/drivers/mtd/spi-nor/
Dotp.c28 * 256). Thus one "security register" maps to one OTP region.
155 static int spi_nor_otp_lock_bit_cr(unsigned int region) in spi_nor_otp_lock_bit_cr() argument
159 if (region >= ARRAY_SIZE(lock_bits)) in spi_nor_otp_lock_bit_cr()
162 return lock_bits[region]; in spi_nor_otp_lock_bit_cr()
166 * spi_nor_otp_lock_sr2() - lock the OTP region
168 * @region: OTP region
170 * Lock the OTP region by writing the status register-2. This method is used on
175 int spi_nor_otp_lock_sr2(struct spi_nor *nor, unsigned int region) in spi_nor_otp_lock_sr2() argument
180 lock_bit = spi_nor_otp_lock_bit_cr(region); in spi_nor_otp_lock_sr2()
188 /* no need to write the register if region is already locked */ in spi_nor_otp_lock_sr2()
[all …]
/Linux-v6.1/drivers/s390/cio/
Dvfio_ccw_chp.c21 struct ccw_schib_region *region; in vfio_ccw_schib_region_read() local
24 if (pos + count > sizeof(*region)) in vfio_ccw_schib_region_read()
28 region = private->region[i].data; in vfio_ccw_schib_region_read()
35 memcpy(region, &private->sch->schib, sizeof(*region)); in vfio_ccw_schib_region_read()
37 if (copy_to_user(buf, (void *)region + pos, count)) { in vfio_ccw_schib_region_read()
58 struct vfio_ccw_region *region) in vfio_ccw_schib_region_release() argument
85 struct ccw_crw_region *region; in vfio_ccw_crw_region_read() local
89 if (pos + count > sizeof(*region)) in vfio_ccw_crw_region_read()
99 region = private->region[i].data; in vfio_ccw_crw_region_read()
102 memcpy(&region->crw, &crw->crw, sizeof(region->crw)); in vfio_ccw_crw_region_read()
[all …]
Dvfio_ccw_async.c3 * Async I/O region for vfio_ccw
20 struct ccw_cmd_region *region; in vfio_ccw_async_region_read() local
23 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_read()
27 region = private->region[i].data; in vfio_ccw_async_region_read()
28 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_async_region_read()
42 struct ccw_cmd_region *region; in vfio_ccw_async_region_write() local
45 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_write()
51 region = private->region[i].data; in vfio_ccw_async_region_write()
52 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_async_region_write()
59 ret = region->ret_code ? region->ret_code : count; in vfio_ccw_async_region_write()
[all …]
/Linux-v6.1/mm/
Dnommu.c93 * region. This test is intentionally done in reverse order, in kobjsize()
407 * initialise the percpu counter for VM and region record slabs
419 * validate the region tree
420 * - the caller must hold the region lock
425 struct vm_region *region, *last; in validate_nommu_regions() local
437 region = rb_entry(p, struct vm_region, vm_rb); in validate_nommu_regions()
440 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions()
441 BUG_ON(region->vm_top < region->vm_end); in validate_nommu_regions()
442 BUG_ON(region->vm_start < last->vm_top); in validate_nommu_regions()
454 * add a region into the global tree
[all …]
/Linux-v6.1/include/linux/fpga/
Dfpga-region.h13 * struct fpga_region_info - collection of parameters an FPGA Region
14 * @mgr: fpga region manager
15 * @compat_id: FPGA region id for compatibility check.
16 * @priv: fpga region private data
28 int (*get_bridges)(struct fpga_region *region);
32 * struct fpga_region - FPGA Region structure
33 * @dev: FPGA Region device
34 * @mutex: enforces exclusive reference to region
35 * @bridge_list: list of FPGA bridges specified in region
38 * @compat_id: FPGA region id for compatibility check.
[all …]
/Linux-v6.1/tools/testing/memblock/tests/
Dbasic_api.c38 * Expect to create a new entry. The region counter and total memory get
47 struct region r = { in memblock_add_simple_check()
71 * Expect to create a new entry. The region counter and total memory get
80 struct region r = { in memblock_add_node_simple_check()
115 * region counter fields get updated.
124 struct region r1 = { in memblock_add_disjoint_check()
128 struct region r2 = { in memblock_add_disjoint_check()
166 * Expect to merge the two entries into one region that starts at r2.base
168 * the available memory is updated, and the region counter stays the same.
177 struct region r1 = { in memblock_add_overlap_top_check()
[all …]

12345678910>>...106