Home
last modified time | relevance | path

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

12345678910>>...166

/kernel/linux/linux-5.10/drivers/fpga/
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 a 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 a 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-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 …]
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 * Returns 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()
34 struct fpga_region *region; in fme_region_probe() local
42 region = devm_fpga_region_create(dev, mgr, fme_region_get_bridges); in fme_region_probe()
43 if (!region) { in fme_region_probe()
48 region->priv = pdata; in fme_region_probe()
49 region->compat_id = mgr->compat_id; in fme_region_probe()
[all …]
/kernel/linux/linux-4.19/drivers/fpga/
Dfpga-region.c3 * FPGA Region - Device Tree support for FPGA programming under Linux
10 #include <linux/fpga/fpga-region.h>
36 * fpga_region_get - get an exclusive reference to a 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 a 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-dma-region.c3 * Driver for FPGA Accelerated Function Unit (AFU) DMA Region Management
81 * afu_dma_pin_pages - pin pages of given dma memory region
83 * @region: dma memory region to be pinned
89 struct dfl_afu_dma_region *region) in afu_dma_pin_pages() argument
91 int npages = region->length >> PAGE_SHIFT; in afu_dma_pin_pages()
99 region->pages = kcalloc(npages, sizeof(struct page *), GFP_KERNEL); in afu_dma_pin_pages()
100 if (!region->pages) { in afu_dma_pin_pages()
105 pinned = get_user_pages_fast(region->user_addr, npages, 1, in afu_dma_pin_pages()
106 region->pages); in afu_dma_pin_pages()
120 put_all_pages(region->pages, pinned); in afu_dma_pin_pages()
[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", },
31 * of_fpga_region_find - find FPGA region
32 * @np: device node of FPGA Region
34 * Caller will need to put_device(&region->dev) when done.
36 * Returns FPGA Region struct or NULL
45 * @np: device node of FPGA region
47 * Get FPGA Manager from "fpga-mgr" property or from ancestor region.
60 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()
34 struct fpga_region *region; in fme_region_probe() local
42 region = fpga_region_create(dev, mgr, fme_region_get_bridges); in fme_region_probe()
43 if (!region) { in fme_region_probe()
48 region->priv = pdata; in fme_region_probe()
49 region->compat_id = mgr->compat_id; in fme_region_probe()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c40 /* Use 1:1 mapping between ACL region and TCAM region */ in mlxsw_sp_acl_tcam_init()
167 struct list_head list; /* Member of a TCAM region */
169 unsigned int priority; /* Priority within the region and group */
171 struct mlxsw_sp_acl_tcam_region *region; member
193 struct mlxsw_sp_acl_tcam_region *region; in mlxsw_sp_acl_tcam_group_update() local
198 list_for_each_entry(region, &group->region_list, list) in mlxsw_sp_acl_tcam_group_update()
199 mlxsw_reg_pagt_acl_id_pack(pagt_pl, acl_index++, region->id); in mlxsw_sp_acl_tcam_group_update()
286 mlxsw_sp_acl_tcam_region_prio(struct mlxsw_sp_acl_tcam_region *region) in mlxsw_sp_acl_tcam_region_prio() argument
290 if (list_empty(&region->chunk_list)) in mlxsw_sp_acl_tcam_region_prio()
292 /* As a priority of a region, return priority of the first chunk */ in mlxsw_sp_acl_tcam_region_prio()
[all …]
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 …]
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_fault.c58 STATIC STATUS_T OsVmRegionPermissionCheck(LosVmMapRegion *region, UINT32 flags) in OsVmRegionPermissionCheck() argument
60 if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_READ) != VM_MAP_REGION_FLAG_PERM_READ) { in OsVmRegionPermissionCheck()
61 …VM_ERR("read permission check failed operation flags %x, region flags %x", flags, region->regionFl… in OsVmRegionPermissionCheck()
66 … if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_WRITE) != VM_MAP_REGION_FLAG_PERM_WRITE) { in OsVmRegionPermissionCheck()
67 …VM_ERR("write permission check failed operation flags %x, region flags %x", flags, region->regionF… in OsVmRegionPermissionCheck()
73 … if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_EXECUTE) != VM_MAP_REGION_FLAG_PERM_EXECUTE) { in OsVmRegionPermissionCheck()
74 …VM_ERR("exec permission check failed operation flags %x, region flags %x", flags, region->regionFl… in OsVmRegionPermissionCheck()
100 STATIC STATUS_T OsDoReadFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) in OsDoReadFault() argument
106 LosVmSpace *space = region->space; in OsDoReadFault()
112 if (region->unTypeData.rf.vmFOps == NULL || region->unTypeData.rf.vmFOps->fault == NULL) { in OsDoReadFault()
[all …]
Dlos_vm_map.c101 LosVmMapRegion *region = (LosVmMapRegion *)LOS_DL_LIST_ENTRY(pstNode, LosVmMapRegion, rbNode); in OsRegionRbGetKeyFn() local
102 return (VOID *)&region->range; in OsRegionRbGetKeyFn()
267 /* search the region list */ in LOS_VmSpaceClone()
276 VM_ERR("dup new region failed"); in LOS_VmSpaceClone()
342 LosVmMapRegion *region = NULL; in LOS_RegionFind() local
345 region = OsFindRegion(&vmSpace->regionRbTree, addr, 1); in LOS_RegionFind()
348 return region; in LOS_RegionFind()
353 LosVmMapRegion *region = NULL; in LOS_RegionRangeFind() local
356 region = OsFindRegion(&vmSpace->regionRbTree, addr, len); in LOS_RegionRangeFind()
359 return region; in LOS_RegionRangeFind()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/tools/testing/selftests/kvm/lib/
Dkvm_util.c114 * When phy_pages is non-zero, a memory region of phy_pages physical pages
176 struct userspace_mem_region *region; in kvm_vm_restart() local
182 for (region = vmp->userspace_mem_region_head; region; in kvm_vm_restart()
183 region = region->next) { in kvm_vm_restart()
184 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, &region->region); in kvm_vm_restart()
189 ret, errno, region->region.slot, region->region.flags, in kvm_vm_restart()
190 region->region.guest_phys_addr, in kvm_vm_restart()
191 region->region.memory_size); in kvm_vm_restart()
205 /* Userspace Memory Region Find
215 * Pointer to overlapping region, NULL if no such region.
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Dkvm_util.c178 * When phy_pages is non-zero, a memory region of phy_pages physical pages
289 struct userspace_mem_region *region; in kvm_vm_restart() local
295 list_for_each_entry(region, &vmp->userspace_mem_regions, list) { in kvm_vm_restart()
296 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, &region->region); in kvm_vm_restart()
301 ret, errno, region->region.slot, in kvm_vm_restart()
302 region->region.flags, in kvm_vm_restart()
303 region->region.guest_phys_addr, in kvm_vm_restart()
304 region->region.memory_size); in kvm_vm_restart()
332 * Userspace Memory Region Find
342 * Pointer to overlapping region, NULL if no such region.
[all …]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Devregion.c4 * Module Name: evregion - Operation Region support
39 * an installed default region handler.
80 * PARAMETERS: region_obj - Internal region object
83 * region_offset - Where in the region to read or write
90 * DESCRIPTION: Dispatch an address space or operation region access to
93 * NOTE: During early initialization, we always install the default region
95 * region address spaces are always available as per the ACPI specification.
125 /* Ensure that there is a handler associated with this region */ in acpi_ev_address_space_dispatch()
127 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch()
130 "No handler for Region [%4.4s] (%p) [%s]", in acpi_ev_address_space_dispatch()
[all …]
/kernel/linux/linux-4.19/drivers/acpi/acpica/
Devregion.c4 * Module Name: evregion - Operation Region support
39 * an installed default region handler.
80 * PARAMETERS: region_obj - Internal region object
83 * region_offset - Where in the region to read or write
90 * DESCRIPTION: Dispatch an address space or operation region access to
93 * NOTE: During early initialization, we always install the default region
95 * region address spaces are always available as per the ACPI specification.
123 /* Ensure that there is a handler associated with this region */ in acpi_ev_address_space_dispatch()
125 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch()
128 "No handler for Region [%4.4s] (%p) [%s]", in acpi_ev_address_space_dispatch()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...166