Home
last modified time | relevance | path

Searched refs:region (Results 1 - 25 of 1859) sorted by relevance

12345678910>>...75

/kernel/linux/linux-5.10/drivers/fpga/
H A Dfpga-region.c10 #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.
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()
57 mutex_unlock(&region->mutex); in fpga_region_get()
63 return region; in fpga_region_get()
71 fpga_region_put(struct fpga_region *region) fpga_region_put() argument
96 fpga_region_program_fpga(struct fpga_region *region) fpga_region_program_fpga() argument
164 struct fpga_region *region = to_fpga_region(dev); compat_id_show() local
199 struct fpga_region *region; fpga_region_create() local
240 fpga_region_free(struct fpga_region *region) fpga_region_free() argument
249 struct fpga_region *region = *(struct fpga_region **)res; devm_fpga_region_release() local
275 struct fpga_region **ptr, *region; devm_fpga_region_create() local
299 fpga_region_register(struct fpga_region *region) fpga_region_register() argument
311 fpga_region_unregister(struct fpga_region *region) fpga_region_unregister() argument
[all...]
H A Ddfl-afu-dma-region.c27 * 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()
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 in afu_dma_pin_pages()
34 afu_dma_pin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_pin_pages() argument
82 afu_dma_unpin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_unpin_pages() argument
102 afu_dma_check_continuous_pages(struct dfl_afu_dma_region *region) afu_dma_check_continuous_pages() argument
124 dma_region_check_iova(struct dfl_afu_dma_region *region, u64 iova, u64 size) dma_region_check_iova() argument
143 afu_dma_region_add(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_add() argument
185 afu_dma_region_remove(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_remove() argument
207 struct dfl_afu_dma_region *region; afu_dma_region_destroy() local
252 struct dfl_afu_dma_region *region; afu_dma_region_find() local
304 struct dfl_afu_dma_region *region; afu_dma_map_region() local
382 struct dfl_afu_dma_region *region; afu_dma_unmap_region() local
[all...]
H A Ddfl-afu-region.c14 * afu_mmio_region_init - init function for afu mmio region support
24 #define for_each_region(region, afu) \
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.
43 * @region_size: region siz
52 struct dfl_afu_mmio_region *region; afu_mmio_region_add() local
98 struct dfl_afu_mmio_region *tmp, *region; afu_mmio_region_destroy() local
116 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_index() local
150 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_offset() local
[all...]
H A Dof-fpga-region.c10 #include <linux/fpga/fpga-region.h>
20 { .compatible = "fpga-region", },
26 * of_fpga_region_find - find FPGA region
29 * Caller will need to put_device(&region->dev) when done.
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()
73 * @region: FPGA region
80 * Caller should call fpga_bridges_put(&region
86 of_fpga_region_get_bridges(struct fpga_region *region) of_fpga_region_get_bridges() argument
192 of_fpga_region_parse_ov( struct fpga_region *region, struct device_node *overlay) of_fpga_region_parse_ov() argument
284 of_fpga_region_notify_pre_apply(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_pre_apply() argument
324 of_fpga_region_notify_post_remove(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_post_remove() argument
348 struct fpga_region *region; of_fpga_region_notify() local
399 struct fpga_region *region; of_fpga_region_probe() local
432 struct fpga_region *region = platform_get_drvdata(pdev); of_fpga_region_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/fpga/
H A Ddfl-afu-dma-region.c27 * 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()
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 in afu_dma_pin_pages()
34 afu_dma_pin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_pin_pages() argument
82 afu_dma_unpin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_unpin_pages() argument
102 afu_dma_check_continuous_pages(struct dfl_afu_dma_region *region) afu_dma_check_continuous_pages() argument
124 dma_region_check_iova(struct dfl_afu_dma_region *region, u64 iova, u64 size) dma_region_check_iova() argument
143 afu_dma_region_add(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_add() argument
185 afu_dma_region_remove(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_remove() argument
207 struct dfl_afu_dma_region *region; afu_dma_region_destroy() local
252 struct dfl_afu_dma_region *region; afu_dma_region_find() local
304 struct dfl_afu_dma_region *region; afu_dma_map_region() local
382 struct dfl_afu_dma_region *region; afu_dma_unmap_region() local
[all...]
H A Dfpga-region.c10 #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 = &region->dev; in fpga_region_get()
50 if (!mutex_trylock(&region->mutex)) { in fpga_region_get()
58 mutex_unlock(&region->mutex); in fpga_region_get()
64 return region; in fpga_region_get()
72 fpga_region_put(struct fpga_region *region) fpga_region_put() argument
97 fpga_region_program_fpga(struct fpga_region *region) fpga_region_program_fpga() argument
165 struct fpga_region *region = to_fpga_region(dev); compat_id_show() local
193 struct fpga_region *region; fpga_region_register_full() local
277 fpga_region_unregister(struct fpga_region *region) fpga_region_unregister() argument
285 struct fpga_region *region = to_fpga_region(dev); fpga_region_dev_release() local
[all...]
H A Ddfl-afu-region.c14 * afu_mmio_region_init - init function for afu mmio region support
24 #define for_each_region(region, afu) \
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.
44 * @region_size: region siz
53 struct dfl_afu_mmio_region *region; afu_mmio_region_add() local
99 struct dfl_afu_mmio_region *tmp, *region; afu_mmio_region_destroy() local
117 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_index() local
151 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_offset() local
[all...]
H A Dof-fpga-region.c10 #include <linux/fpga/fpga-region.h>
22 { .compatible = "fpga-region", },
28 * of_fpga_region_find - find FPGA region
31 * Caller will need to put_device(&region->dev) when done.
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()
75 * @region: FPGA region
82 * Caller should call fpga_bridges_put(&region
88 of_fpga_region_get_bridges(struct fpga_region *region) of_fpga_region_get_bridges() argument
195 of_fpga_region_parse_ov(struct fpga_region *region, struct device_node *overlay) of_fpga_region_parse_ov() argument
286 of_fpga_region_notify_pre_apply(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_pre_apply() argument
326 of_fpga_region_notify_post_remove(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_post_remove() argument
350 struct fpga_region *region; of_fpga_region_notify() local
401 struct fpga_region *region; of_fpga_region_probe() local
430 struct fpga_region *region = platform_get_drvdata(pdev); of_fpga_region_remove() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/
H A Dregion_test.cpp18 #include "utils/region.h"
47 std::unique_ptr<Region> region = std::make_unique<Region>(); in HWTEST_F() local
48 ASSERT_TRUE(region != nullptr); in HWTEST_F()
59 std::unique_ptr<Region> region = std::make_unique<Region>(); in HWTEST_F() local
60 ASSERT_TRUE(region != nullptr); in HWTEST_F()
62 EXPECT_FALSE(region->SetRect(rectI)); in HWTEST_F()
73 std::unique_ptr<Region> region = std::make_unique<Region>(); in HWTEST_F() local
74 ASSERT_TRUE(region != nullptr); in HWTEST_F()
76 EXPECT_TRUE(region->SetRect(rectI)); in HWTEST_F()
87 std::unique_ptr<Region> region in HWTEST_F() local
102 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
118 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
132 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
149 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
163 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
181 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
199 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
217 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
235 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
253 std::unique_ptr<Region> region = std::make_unique<Region>(); HWTEST_F() local
271 Region region; HWTEST_F() local
[all...]
/third_party/node/deps/v8/src/base/
H A Dregion-allocator.cc5 #include "src/base/region-allocator.h"
15 // to randomize region allocation.
35 // Initial region. in RegionAllocator()
36 Region* region = new Region(whole_region_); in RegionAllocator() local
38 all_regions_.insert(region); in RegionAllocator()
40 FreeListAddRegion(region); in RegionAllocator()
45 // been freed again (and thus merged into a single region) or do that now. in ~RegionAllocator()
46 for (Region* region : all_regions_) { in ~RegionAllocator()
47 delete region; in ~RegionAllocator()
59 // find the region whos in FindRegion()
65 FreeListAddRegion(Region* region) FreeListAddRegion() argument
76 FreeListRemoveRegion(Region* region) FreeListRemoveRegion() argument
86 Split(Region* region, size_t new_size) Split() argument
135 Region* region = FreeListFindRegion(size); AllocateRegion() local
179 Region* region; AllocateRegionAt() local
217 Region* region = FreeListFindRegion(padded_size); AllocateAlignedRegion() local
269 Region* region = *region_iter; TrimRegion() local
319 Region* region = *region_iter; CheckRegion() local
332 Region* region = *region_iter; IsFree() local
[all...]
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dnine_memory_helper.c77 * One allocation is given one page-aligned region inside a memfd file.
150 struct nine_memfd_file_region *region; /* Corresponding file memory region. Max 1 allocation per region */ member
227 struct nine_memfd_file_region *region; in debug_dump_memfd_state() local
232 LIST_FOR_EACH_ENTRY(region, &memfd_file->free_regions, list) { in debug_dump_memfd_state()
234 region->offset, region->size, region->map, in debug_dump_memfd_state()
235 region in debug_dump_memfd_state()
341 move_region(struct list_head *tail, struct nine_memfd_file_region *region) move_region() argument
368 move_region_ordered_merge(struct nine_allocator *allocator, struct list_head *tail, struct nine_memfd_file_region *region) move_region_ordered_merge() argument
407 struct nine_memfd_file_region *region = slab_alloc_st(&allocator->allocation_pool); allocate_region() local
427 struct nine_memfd_file_region *region, *best_region, *new_region; insert_new_allocation() local
482 struct nine_memfd_file_region *region = nine_get_memfd_region_backing(allocation); nine_flush_pending_releases() local
513 struct nine_memfd_file_region *region = nine_get_memfd_region_backing(allocation); nine_flush_pending_frees() local
534 nine_memfd_unmap_region(struct nine_allocator *allocator, struct nine_memfd_file *memfd_file, struct nine_memfd_file_region *region) nine_memfd_unmap_region() argument
554 remove_allocation(struct nine_allocator *allocator, struct nine_memfd_file *memfd_file, struct nine_memfd_file_region *region) remove_allocation() argument
583 struct nine_memfd_file_region *region, *ptr; nine_memfd_try_unmap_file() local
659 nine_memfd_region_map(struct nine_allocator *allocator, struct nine_memfd_file *memfd_file, struct nine_memfd_file_region *region) nine_memfd_region_map() argument
693 struct nine_memfd_file_region *region; nine_memfd_allocator() local
772 struct nine_memfd_file_region *region = new_allocation->memory.memfd.region; nine_allocate() local
826 struct nine_memfd_file_region *region = nine_get_memfd_region_backing(allocation); nine_free_internal() local
864 struct nine_memfd_file_region *region; nine_get_pointer() local
905 struct nine_memfd_file_region *region; nine_pointer_weakrelease() local
925 struct nine_memfd_file_region *region; nine_pointer_strongrelease() local
[all...]
/kernel/linux/linux-6.6/net/devlink/
H A Dregion.c29 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, u3 argument
94 devlink_nl_region_snapshots_id_put(struct sk_buff *msg, struct devlink *devlink, struct devlink_region *region) devlink_nl_region_snapshots_id_put() argument
121 devlink_nl_region_fill(struct sk_buff *msg, struct devlink *devlink, enum devlink_command cmd, u32 portid, u32 seq, int flags, struct devlink_region *region) devlink_nl_region_fill() argument
172 devlink_nl_region_notify_build(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd, u32 portid, u32 seq) devlink_nl_region_notify_build() argument
229 devlink_nl_region_notify(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd) devlink_nl_region_notify() argument
250 struct devlink_region *region; devlink_regions_notify_register() local
258 struct devlink_region *region; devlink_regions_notify_unregister() local
417 __devlink_region_snapshot_create(struct devlink_region *region, u8 *data, u32 snapshot_id) __devlink_region_snapshot_create() argument
457 devlink_region_snapshot_del(struct devlink_region *region, struct devlink_snapshot *snapshot) devlink_region_snapshot_del() argument
476 struct devlink_region *region; devlink_nl_region_get_doit() local
522 struct devlink_region *region; devlink_nl_cmd_region_get_port_dumpit() local
550 struct devlink_region *region; devlink_nl_region_get_dump_one() local
596 struct devlink_region *region; devlink_nl_cmd_region_del() local
642 struct devlink_region *region; devlink_nl_cmd_region_new() local
850 struct devlink_region *region = cb_priv; devlink_region_port_direct_fill() local
860 struct devlink_region *region = cb_priv; devlink_region_direct_fill() local
876 struct devlink_region *region; devlink_nl_cmd_region_read_dumpit() local
1050 struct devlink_region *region; devl_region_create() local
1092 struct devlink_region *region; devlink_region_create() local
1118 struct devlink_region *region; devlink_port_region_create() local
1163 devl_region_destroy(struct devlink_region *region) devl_region_destroy() argument
1191 devlink_region_destroy(struct devlink_region *region) devlink_region_destroy() argument
1250 devlink_region_snapshot_create(struct devlink_region *region, u8 *data, u32 snapshot_id) devlink_region_snapshot_create() argument
[all...]
/kernel/liteos_a/kernel/base/vm/
H A 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->regionFlags); 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->regionFlags); 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 in OsVmRegionPermissionCheck()
100 OsDoReadFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) OsDoReadFault() argument
144 OsCowUnmapOrg(LosArchMmu *archMmu, LosVmMapRegion *region, LosVmPgFault *vmf) OsCowUnmapOrg() argument
172 OsDoCowFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) OsDoCowFault() argument
256 OsDoSharedFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) OsDoSharedFault() argument
323 OsDoFileFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault, UINT32 flags) OsDoFileFault() argument
342 LosVmMapRegion *region = NULL; OsVmPageFaultHandler() local
[all...]
/kernel/linux/linux-5.10/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()
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()
61 mlxsw_sp1_acl_ctcam_region_catchall_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_add() argument
100 mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_del() argument
118 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_init() local
140 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_fini() local
147 mlxsw_sp1_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp1_acl_tcam_region_associate() argument
156 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_chunk_init() local
175 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_add() local
188 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_del() local
227 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_activity_get() local
[all...]
/kernel/linux/linux-6.6/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()
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()
61 mlxsw_sp1_acl_ctcam_region_catchall_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_add() argument
100 mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_del() argument
118 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_init() local
140 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_fini() local
147 mlxsw_sp1_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp1_acl_tcam_region_associate() argument
156 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_chunk_init() local
175 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_add() local
188 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_del() local
227 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_activity_get() local
[all...]
/kernel/linux/linux-5.10/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 in kvm_vm_restart()
353 struct userspace_mem_region *region; userspace_mem_region_find() local
386 struct userspace_mem_region *region; kvm_userspace_memory_region_find() local
467 __vm_mem_region_delete(struct kvm_vm *vm, struct userspace_mem_region *region) __vm_mem_region_delete() argument
491 struct userspace_mem_region *region, *tmp; kvm_vm_free() local
608 struct userspace_mem_region *region; vm_userspace_mem_region_add() local
746 struct userspace_mem_region *region; memslot2region() local
778 struct userspace_mem_region *region; vm_mem_region_set_flags() local
807 struct userspace_mem_region *region; vm_mem_region_move() local
1106 struct userspace_mem_region *region; addr_gpa2hva() local
1139 struct userspace_mem_region *region; addr_hva2gpa() local
1602 struct userspace_mem_region *region; vm_dump() local
1711 struct userspace_mem_region *region; vm_phy_pages_alloc() local
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
H A DLSR.java21 public final String region; field in LSR
22 /** Index for region, negative if ill-formed. @see indexForRegion */
26 public LSR(String language, String script, String region, int flags) { in LSR() argument
29 this.region = region; in LSR()
30 regionIndex = indexForRegion(region); in LSR()
35 * Returns a positive index (>0) for a well-formed region code.
36 * Do not rely on a particular region->index mapping; it may change.
39 public static final int indexForRegion(String region) { in indexForRegion() argument
40 if (region in indexForRegion()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
H A DLSR.java25 public final String region; field in LSR
26 /** Index for region, negative if ill-formed. @see indexForRegion */
30 public LSR(String language, String script, String region, int flags) { in LSR() argument
33 this.region = region; in LSR()
34 regionIndex = indexForRegion(region); in LSR()
39 * Returns a positive index (>0) for a well-formed region code.
40 * Do not rely on a particular region->index mapping; it may change.
43 public static final int indexForRegion(String region) { in indexForRegion() argument
44 if (region in indexForRegion()
[all...]
/kernel/linux/linux-5.10/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 name
183 struct iomem_region *region = iomem_regions; find_iomem() local
200 struct iomem_region *region = iomem_regions; setup_iomem() local
[all...]
/kernel/linux/linux-6.6/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 name
183 struct iomem_region *region = iomem_regions; find_iomem() local
200 struct iomem_region *region = iomem_regions; setup_iomem() local
[all...]
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_blit.c71 VkImageResolve region = {0}; in blit_resolve() local
73 region.srcSubresource.aspectMask = src->aspect; in blit_resolve()
74 region.srcSubresource.mipLevel = info->src.level; in blit_resolve()
75 region.srcOffset.x = info->src.box.x; in blit_resolve()
76 region.srcOffset.y = info->src.box.y; in blit_resolve()
79 region.srcOffset.z = 0; in blit_resolve()
80 region.srcSubresource.baseArrayLayer = info->src.box.z; in blit_resolve()
81 region.srcSubresource.layerCount = info->src.box.depth; in blit_resolve()
84 region.srcOffset.z = info->src.box.z; in blit_resolve()
85 region in blit_resolve()
181 VkImageBlit region = {0}; blit_native() local
430 zink_blit_region_fills(struct u_rect region, unsigned width, unsigned height) zink_blit_region_fills() argument
453 zink_blit_region_covers(struct u_rect region, struct u_rect covers) zink_blit_region_covers() argument
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_meta_copy.c90 const VkBufferImageCopy2 *region) in copy_buffer_to_image()
121 const VkOffset3D img_offset_el = vk_image_offset_to_elements(&image->vk, region->imageOffset); in copy_buffer_to_image()
124 const VkExtent3D img_extent_el = vk_image_extent_to_elements(&image->vk, region->imageExtent); in copy_buffer_to_image()
132 image, layout, &region->imageSubresource, region->imageSubresource.aspectMask); in copy_buffer_to_image()
138 radv_layout_dcc_compressed(cmd_buffer->device, image, region->imageSubresource.mipLevel, in copy_buffer_to_image()
143 .aspectMask = region->imageSubresource.aspectMask, in copy_buffer_to_image()
144 .baseMipLevel = region->imageSubresource.mipLevel, in copy_buffer_to_image()
146 .baseArrayLayer = region->imageSubresource.baseArrayLayer, in copy_buffer_to_image()
147 .layerCount = region in copy_buffer_to_image()
88 copy_buffer_to_image(struct radv_cmd_buffer *cmd_buffer, struct radv_buffer *buffer, struct radv_image *image, VkImageLayout layout, const VkBufferImageCopy2 *region) copy_buffer_to_image() argument
229 copy_image_to_buffer(struct radv_cmd_buffer *cmd_buffer, struct radv_buffer *buffer, struct radv_image *image, VkImageLayout layout, const VkBufferImageCopy2 *region) copy_image_to_buffer() argument
353 copy_image(struct radv_cmd_buffer *cmd_buffer, struct radv_image *src_image, VkImageLayout src_image_layout, struct radv_image *dst_image, VkImageLayout dst_image_layout, const VkImageCopy2 *region) copy_image() argument
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_region_test.cpp50 OH_Drawing_Region* region = OH_Drawing_RegionCreate(); in HWTEST_F() local
51 EXPECT_NE(region, nullptr); in HWTEST_F()
52 OH_Drawing_RegionDestroy(region); in HWTEST_F()
63 OH_Drawing_Region* region = OH_Drawing_RegionCreate(); in HWTEST_F() local
65 EXPECT_TRUE(OH_Drawing_RegionSetRect(region, rect)); in HWTEST_F()
68 OH_Drawing_RegionSetRect(region, nullptr); in HWTEST_F()
70 OH_Drawing_RegionDestroy(region); in HWTEST_F()
76 * @tc.desc: test for determines whether the region contains the specified coordinates.
82 OH_Drawing_Region* region = OH_Drawing_RegionCreate(); in HWTEST_F() local
85 OH_Drawing_RegionSetRect(region, rec in HWTEST_F()
100 OH_Drawing_Region* region = OH_Drawing_RegionCreate(); HWTEST_F() local
131 OH_Drawing_Region* region = OH_Drawing_RegionCreate(); HWTEST_F() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c199 * 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, &region in kvm_vm_restart()
576 struct userspace_mem_region *region = userspace_mem_region_find() local
613 struct userspace_mem_region *region; kvm_userspace_memory_region_find() local
676 __vm_mem_region_delete(struct kvm_vm *vm, struct userspace_mem_region *region, bool unlink) __vm_mem_region_delete() argument
711 struct userspace_mem_region *region; kvm_vm_free() local
826 vm_userspace_mem_region_gpa_insert(struct rb_root *gpa_tree, struct userspace_mem_region *region) vm_userspace_mem_region_gpa_insert() argument
852 vm_userspace_mem_region_hva_insert(struct rb_root *hva_tree, struct userspace_mem_region *region) vm_userspace_mem_region_hva_insert() argument
881 struct kvm_userspace_memory_region region = { __vm_set_user_memory_region() local
929 struct userspace_mem_region *region; vm_userspace_mem_region_add() local
1091 struct userspace_mem_region *region; memslot2region() local
1123 struct userspace_mem_region *region; vm_mem_region_set_flags() local
1152 struct userspace_mem_region *region; vm_mem_region_move() local
1480 struct userspace_mem_region *region; addr_gpa2hva() local
1514 struct userspace_mem_region *region = addr_hva2gpa() local
1554 struct userspace_mem_region *region; addr_gpa2alias() local
1813 struct userspace_mem_region *region; vm_dump() local
1943 struct userspace_mem_region *region; vm_phy_pages_alloc() local
[all...]
/test/xts/acts/graphic/acts_drawing_native/
H A DDrawingNativeRegionTest.cpp42 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); in HWTEST_F() local
43 EXPECT_NE(region, nullptr); in HWTEST_F()
44 OH_Drawing_RegionDestroy(region); in HWTEST_F()
57 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); in HWTEST_F() local
58 EXPECT_NE(region, nullptr); in HWTEST_F()
60 // 2. Create another region object using OH_Drawing_RegionCreate in HWTEST_F()
64 OH_Drawing_RegionDestroy(region); in HWTEST_F()
254 // 2. OH_Drawing_RegionOp takes nullptr as input for region, dst as input, and op: REGION_OP_MODE_DIFFERENCE, in HWTEST_F()
272 // 1. OH_Drawing_RegionCreate returns a pointer value region in HWTEST_F()
273 OH_Drawing_Region *region in HWTEST_F() local
294 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
331 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
347 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
369 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
394 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
419 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
444 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
469 OH_Drawing_Region *region = OH_Drawing_RegionCreate(); HWTEST_F() local
[all...]

Completed in 17 milliseconds

12345678910>>...75