Home
last modified time | relevance | path

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

12345678910>>...168

/OK3568_Linux_fs/kernel/drivers/fpga/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/u-boot/lib/
H A Dlmb.c26 (long long unsigned)lmb->memory.region[i].base); in lmb_dump_all()
28 (long long unsigned)lmb->memory.region[i].size); in lmb_dump_all()
37 (long long unsigned)lmb->reserved.region[i].base); in lmb_dump_all()
39 (long long unsigned)lmb->reserved.region[i].size); in lmb_dump_all()
64 phys_addr_t base1 = rgn->region[r1].base; in lmb_regions_adjacent()
65 phys_size_t size1 = rgn->region[r1].size; in lmb_regions_adjacent()
66 phys_addr_t base2 = rgn->region[r2].base; in lmb_regions_adjacent()
67 phys_size_t size2 = rgn->region[r2].size; in lmb_regions_adjacent()
77 rgn->region[i].base = rgn->region[i + 1].base; in lmb_remove_region()
78 rgn->region[i].size = rgn->region[i + 1].size; in lmb_remove_region()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A 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 …]
/OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/common/
H A Dvepu541_common.c351 MPP_RET vepu541_set_one_roi(void *buf, MppEncROIRegion *region, RK_S32 w, RK_S32 h) in vepu541_set_one_roi() argument
360 if (NULL == buf || NULL == region) { in vepu541_set_one_roi()
361 mpp_err_f("invalid buf %p roi %p\n", buf, region); in vepu541_set_one_roi()
365 RK_S32 roi_width = (region->w + 15) / 16; in vepu541_set_one_roi()
366 RK_S32 roi_height = (region->h + 15) / 16; in vepu541_set_one_roi()
367 RK_S32 pos_x_init = region->x / 16; in vepu541_set_one_roi()
368 RK_S32 pos_y_init = region->y / 16; in vepu541_set_one_roi()
381 cfg.force_intra = region->intra; in vepu541_set_one_roi()
383 cfg.qp_area_idx = region->qp_area_idx; in vepu541_set_one_roi()
385 cfg.qp_area_en = 1; // region->area_map_en; in vepu541_set_one_roi()
[all …]
H A Dvepu540c_common.c35 MppEncROIRegion *region = roi->regions; in vepu540c_set_roi() local
47 mpp_err_f("invalid region number %d\n", roi->number); in vepu540c_set_roi()
51 /* check region config */ in vepu540c_set_roi()
53 for (i = 0; i < (RK_S32) roi->number; i++, region++) { in vepu540c_set_roi()
54 if (region->x + region->w > w || region->y + region->h > h) in vepu540c_set_roi()
57 if (region->intra > 1 in vepu540c_set_roi()
58 || region->qp_area_idx >= VEPU541_MAX_ROI_NUM in vepu540c_set_roi()
59 || region->area_map_en > 1 || region->abs_qp_en > 1) in vepu540c_set_roi()
62 if ((region->abs_qp_en && region->quality > 51) || in vepu540c_set_roi()
63 (!region->abs_qp_en in vepu540c_set_roi()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/kvm/lib/
H A 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 …]
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor_largepixmap.c19 * Should translate the region to relative coords to the pixmap,
35 RegionPtr region, in __glamor_compute_clipped_regions() argument
53 extent = RegionExtents(region); in __glamor_compute_clipped_regions()
62 DEBUGRegionPrint(region); in __glamor_compute_clipped_regions()
126 RegionIntersect(current_region, &temp_region, region); in __glamor_compute_clipped_regions()
127 DEBUGF("i %d j %d region: \n", i, j); in __glamor_compute_clipped_regions()
130 clipped_regions[k].region = current_region; in __glamor_compute_clipped_regions()
146 * first is to clip the region regard to current pixmap's
147 * block array. Then for each clipped region, do a inner
150 * the final region also will not cross the pixmap's block
[all …]
H A Dglamor_compositerects.c50 _pixman_region_init_clipped_rectangles(pixman_region16_t * region, in _pixman_region_init_clipped_rectangles() argument
88 ret = pixman_region_init_rects(region, boxes, j); in _pixman_region_init_clipped_rectangles()
93 DEBUGF("%s: nrects=%d, region=(%d, %d), (%d, %d) x %d\n", in _pixman_region_init_clipped_rectangles()
95 region->extents.x1, region->extents.y1, in _pixman_region_init_clipped_rectangles()
96 region->extents.x2, region->extents.y2, j); in _pixman_region_init_clipped_rectangles()
108 pixman_region16_t region; in glamor_composite_rectangles() local
184 if (!_pixman_region_init_clipped_rectangles(&region, in glamor_composite_rectangles()
190 DEBUGF("%s: allocation failed for region\n", __FUNCTION__); in glamor_composite_rectangles()
208 RegionExtents(&region)->x1, RegionExtents(&region)->y1, in glamor_composite_rectangles()
209 RegionExtents(&region)->x2, RegionExtents(&region)->y2, in glamor_composite_rectangles()
[all …]
/OK3568_Linux_fs/kernel/drivers/acpi/acpica/
H A 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 …]
/OK3568_Linux_fs/kernel/Documentation/networking/devlink/
H A 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 …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/fpga/
H A 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 …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/lib/gcc/arm-none-linux-gnueabihf/10.3.1/plugin/include/
H A Dsese.h27 /* A Single Entry, Single Exit region is a part of the CFG delimited
78 /* The SESE region. */
79 sese_l region;
96 /* The condition region generated for this sese. */
111 /* The number of parameters in REGION. */
114 sese_nb_params (sese_info_p region) in sese_nb_params() argument
116 return region->params.length (); in sese_nb_params()
119 /* Checks whether BB is contained in the region delimited by ENTRY and
130 /* Checks whether BB is contained in the region delimited by ENTRY and
139 /* Returns true when STMT is defined in REGION. */
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/lib/gcc/aarch64-none-linux-gnu/10.3.1/plugin/include/
H A Dsese.h27 /* A Single Entry, Single Exit region is a part of the CFG delimited
78 /* The SESE region. */
79 sese_l region;
96 /* The condition region generated for this sese. */
111 /* The number of parameters in REGION. */
114 sese_nb_params (sese_info_p region) in sese_nb_params() argument
116 return region->params.length (); in sese_nb_params()
119 /* Checks whether BB is contained in the region delimited by ENTRY and
130 /* Checks whether BB is contained in the region delimited by ENTRY and
139 /* Returns true when STMT is defined in REGION. */
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mm/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/acpi/pmic/
H A 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/fpga/
H A 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 a 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 …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-armhf/include/opencv2/core/utils/
H A Dtrace.hpp27 //! mark completed of the current opened region and create new one
69 class CV_EXPORTS Region class
76 const char* name; //< region name (function name or other custom name)
82 Region(const LocationStaticStorage& location);
83 inline ~Region() in ~Region()
92 Impl* pImpl; // NULL if current region is not active
93 int implFlags; // see RegionFlag, 0 if region is ignored
99 Region(const Region&); // disabled
100 Region& operator= (const Region&); // disabled
103 //! Specify region flags
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/core/utils/
H A Dtrace.hpp27 //! mark completed of the current opened region and create new one
69 class CV_EXPORTS Region class
76 const char* name; //< region name (function name or other custom name)
82 Region(const LocationStaticStorage& location);
83 inline ~Region() in ~Region()
92 Impl* pImpl; // NULL if current region is not active
93 int implFlags; // see RegionFlag, 0 if region is ignored
99 Region(const Region&); // disabled
100 Region& operator= (const Region&); // disabled
103 //! Specify region flags
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/utils/
H A Dtrace.hpp27 //! mark completed of the current opened region and create new one
69 class CV_EXPORTS Region class
76 const char* name; //< region name (function name or other custom name)
82 Region(const LocationStaticStorage& location);
83 inline ~Region() in ~Region()
92 Impl* pImpl; // NULL if current region is not active
93 int implFlags; // see RegionFlag, 0 if region is ignored
99 Region(const Region&); // disabled
100 Region& operator= (const Region&); // disabled
103 //! Specify region flags
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/um/kernel/
H A 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 …]

12345678910>>...168