Home
last modified time | relevance | path

Searched refs:region (Results 1 – 25 of 969) sorted by relevance

12345678910>>...39

/Linux-v5.10/drivers/fpga/
Dfpga-region.c45 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 static void fpga_region_put(struct fpga_region *region) in fpga_region_put() argument
73 struct device *dev = &region->dev; in fpga_region_put()
79 mutex_unlock(&region->mutex); in fpga_region_put()
96 int fpga_region_program_fpga(struct fpga_region *region) in fpga_region_program_fpga() argument
98 struct device *dev = &region->dev; in fpga_region_program_fpga()
[all …]
Ddfl-afu-dma-region.c35 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()
68 kfree(region->pages); in afu_dma_pin_pages()
83 struct dfl_afu_dma_region *region) in afu_dma_unpin_pages() argument
85 long npages = region->length >> PAGE_SHIFT; in afu_dma_unpin_pages()
[all …]
Ddfl-afu-region.c24 #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()
52 struct dfl_afu_mmio_region *region; in afu_mmio_region_add() local
56 region = devm_kzalloc(&pdata->dev->dev, sizeof(*region), GFP_KERNEL); in afu_mmio_region_add()
57 if (!region) in afu_mmio_region_add()
60 region->index = region_index; in afu_mmio_region_add()
[all …]
Dof-fpga-region.c86 static int of_fpga_region_get_bridges(struct fpga_region *region) in of_fpga_region_get_bridges() argument
88 struct device *dev = &region->dev; in of_fpga_region_get_bridges()
90 struct fpga_image_info *info = region->info; in of_fpga_region_get_bridges()
96 &region->bridge_list); in of_fpga_region_get_bridges()
128 &region->bridge_list); in of_fpga_region_get_bridges()
133 fpga_bridges_put(&region->bridge_list); in of_fpga_region_get_bridges()
193 struct fpga_region *region, in of_fpga_region_parse_ov() argument
196 struct device *dev = &region->dev; in of_fpga_region_parse_ov()
201 if (region->info) { in of_fpga_region_parse_ov()
284 static int of_fpga_region_notify_pre_apply(struct fpga_region *region, in of_fpga_region_notify_pre_apply() argument
[all …]
Ddfl-fme-region.c22 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()
50 platform_set_drvdata(pdev, region); in fme_region_probe()
52 ret = fpga_region_register(region); in fme_region_probe()
[all …]
/Linux-v5.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 …]
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 …]
Dspectrum_acl_tcam.c208 struct mlxsw_sp_acl_tcam_region *region; member
228 struct mlxsw_sp_acl_tcam_region *region; member
269 struct mlxsw_sp_acl_tcam_region *region; in mlxsw_sp_acl_tcam_group_update() local
274 list_for_each_entry(region, &group->region_list, list) { in mlxsw_sp_acl_tcam_group_update()
278 if (region->list.next != &group->region_list && in mlxsw_sp_acl_tcam_group_update()
279 list_next_entry(region, list)->vregion == region->vregion) in mlxsw_sp_acl_tcam_group_update()
282 region->id, multi); in mlxsw_sp_acl_tcam_group_update()
444 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_tcam_group_region_attach() argument
472 list_add_tail(&region->list, pos); in mlxsw_sp_acl_tcam_group_region_attach()
473 region->group = group; in mlxsw_sp_acl_tcam_group_region_attach()
[all …]
Dspectrum2_acl_tcam.c18 struct mlxsw_sp_acl_tcam_region *region; member
145 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_init() local
148 region->region = _region; in mlxsw_sp2_acl_tcam_region_init()
151 &region->aregion, in mlxsw_sp2_acl_tcam_region_init()
159 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_fini() local
161 mlxsw_sp_acl_atcam_region_fini(&region->aregion); in mlxsw_sp2_acl_tcam_region_fini()
166 struct mlxsw_sp_acl_tcam_region *region) in mlxsw_sp2_acl_tcam_region_associate() argument
168 return mlxsw_sp_acl_atcam_region_associate(mlxsw_sp, region->id); in mlxsw_sp2_acl_tcam_region_associate()
173 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_rehash_hints_get() local
175 return mlxsw_sp_acl_atcam_rehash_hints_get(&region->aregion); in mlxsw_sp2_acl_tcam_region_rehash_hints_get()
[all …]
/Linux-v5.10/tools/testing/selftests/kvm/lib/
Dkvm_util.c289 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()
353 struct userspace_mem_region *region; in userspace_mem_region_find() local
355 list_for_each_entry(region, &vm->userspace_mem_regions, list) { in userspace_mem_region_find()
356 uint64_t existing_start = region->region.guest_phys_addr; in userspace_mem_region_find()
[all …]
/Linux-v5.10/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()
183 struct iomem_region *region = iomem_regions; in find_iomem() local
185 while (region != NULL) { in find_iomem()
186 if (!strcmp(region->driver, driver)) { in find_iomem()
[all …]
/Linux-v5.10/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.c21 struct ccw_cmd_region *region; in vfio_ccw_async_region_read() local
24 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_read()
28 region = private->region[i].data; in vfio_ccw_async_region_read()
29 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_async_region_read()
43 struct ccw_cmd_region *region; in vfio_ccw_async_region_write() local
46 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_write()
52 region = private->region[i].data; in vfio_ccw_async_region_write()
53 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_async_region_write()
60 ret = region->ret_code ? region->ret_code : count; in vfio_ccw_async_region_write()
68 struct vfio_ccw_region *region) in vfio_ccw_async_region_release() argument
Dvfio_ccw_ops.c217 struct ccw_io_region *region; in vfio_ccw_mdev_read_io_region() local
220 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_read_io_region()
224 region = private->io_region; in vfio_ccw_mdev_read_io_region()
225 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_mdev_read_io_region()
251 return private->region[index].ops->read(private, buf, count, in vfio_ccw_mdev_read()
263 struct ccw_io_region *region; in vfio_ccw_mdev_write_io_region() local
266 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_write_io_region()
272 region = private->io_region; in vfio_ccw_mdev_write_io_region()
273 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_mdev_write_io_region()
279 if (region->ret_code != 0) in vfio_ccw_mdev_write_io_region()
[all …]
/Linux-v5.10/arch/x86/boot/compressed/
Dkaslr.c496 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument
503 slot_area.addr = region->start; in store_slot_info()
504 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info()
515 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument
522 store_slot_info(region, image_size); in process_gb_huge_pages()
527 pud_start = ALIGN(region->start, PUD_SIZE); in process_gb_huge_pages()
528 pud_end = ALIGN_DOWN(region->start + region->size, PUD_SIZE); in process_gb_huge_pages()
532 store_slot_info(region, image_size); in process_gb_huge_pages()
537 if (pud_start >= region->start + image_size) { in process_gb_huge_pages()
538 tmp.start = region->start; in process_gb_huge_pages()
[all …]
/Linux-v5.10/mm/
Dnommu.c435 struct vm_region *region, *last; in validate_nommu_regions() local
447 region = rb_entry(p, struct vm_region, vm_rb); in validate_nommu_regions()
450 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions()
451 BUG_ON(region->vm_top < region->vm_end); in validate_nommu_regions()
452 BUG_ON(region->vm_start < last->vm_top); in validate_nommu_regions()
466 static void add_nommu_region(struct vm_region *region) in add_nommu_region() argument
478 if (region->vm_start < pregion->vm_start) in add_nommu_region()
480 else if (region->vm_start > pregion->vm_start) in add_nommu_region()
482 else if (pregion == region) in add_nommu_region()
488 rb_link_node(&region->vm_rb, parent, p); in add_nommu_region()
[all …]
/Linux-v5.10/drivers/acpi/acpica/
Devregion.c125 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch()
129 acpi_ut_get_node_name(region_obj->region.node), in acpi_ev_address_space_dispatch()
131 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch()
143 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch()
155 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch()
180 region. in acpi_ev_address_space_dispatch()
187 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch()
188 region_obj->region.flags |= AOPOBJ_SETUP_COMPLETE; in acpi_ev_address_space_dispatch()
204 address = (region_obj->region.address + region_offset); in acpi_ev_address_space_dispatch()
220 if ((region_obj->region.space_id == ACPI_ADR_SPACE_GSBUS) && in acpi_ev_address_space_dispatch()
[all …]
/Linux-v5.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 …]
/Linux-v5.10/drivers/mtd/maps/
Dpismo.c89 struct pismo_mem *region, const char *name, in pismo_add_device() argument
94 phys_addr_t base = region->base; in pismo_add_device()
101 res.end = base + region->size - 1; in pismo_add_device()
131 struct pismo_mem *region) in pismo_add_nor() argument
134 .width = region->width, in pismo_add_nor()
140 return pismo_add_device(pismo, i, region, "physmap-flash", in pismo_add_nor()
145 struct pismo_mem *region) in pismo_add_sram() argument
148 .bankwidth = region->width, in pismo_add_sram()
151 return pismo_add_device(pismo, i, region, "mtd-ram", in pismo_add_sram()
159 struct pismo_mem region; in pismo_add_one() local
[all …]
/Linux-v5.10/Documentation/driver-api/fpga/
Dfpga-region.rst7 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:
37 How to add a new FPGA region
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_dcn30.c100 REG_WRITE(DMCUB_REGION3_CW0_BASE_ADDRESS, cw0->region.base); in dmub_dcn30_backdoor_load()
102 DMCUB_REGION3_CW0_TOP_ADDRESS, cw0->region.top, in dmub_dcn30_backdoor_load()
109 REG_WRITE(DMCUB_REGION3_CW1_BASE_ADDRESS, cw1->region.base); in dmub_dcn30_backdoor_load()
111 DMCUB_REGION3_CW1_TOP_ADDRESS, cw1->region.top, in dmub_dcn30_backdoor_load()
131 if (cw2->region.base != cw2->region.top) { in dmub_dcn30_setup_windows()
134 REG_WRITE(DMCUB_REGION3_CW2_BASE_ADDRESS, cw2->region.base); in dmub_dcn30_setup_windows()
136 DMCUB_REGION3_CW2_TOP_ADDRESS, cw2->region.top, in dmub_dcn30_setup_windows()
149 REG_WRITE(DMCUB_REGION3_CW3_BASE_ADDRESS, cw3->region.base); in dmub_dcn30_setup_windows()
151 DMCUB_REGION3_CW3_TOP_ADDRESS, cw3->region.top, in dmub_dcn30_setup_windows()
160 REG_WRITE(DMCUB_REGION3_CW4_BASE_ADDRESS, cw4->region.base); in dmub_dcn30_setup_windows()
[all …]
/Linux-v5.10/drivers/soc/ti/
Dknav_qmss_queue.c688 struct knav_region *region; in kdesc_fill_pool() local
691 region = pool->region; in kdesc_fill_pool()
692 pool->desc_size = region->desc_size; in kdesc_fill_pool()
697 dma_addr = region->dma_start + (region->desc_size * index); in kdesc_fill_pool()
736 return pool->region->dma_start + (virt - pool->region->virt_start); in knav_pool_desc_virt_to_dma()
743 return pool->region->virt_start + (dma - pool->region->dma_start); in knav_pool_desc_dma_to_virt()
760 struct knav_region *reg_itr, *region = NULL; in knav_pool_create() local
782 region = reg_itr; in knav_pool_create()
786 if (!region) { in knav_pool_create()
807 if (num_desc > (region->num_desc - region->used_desc)) { in knav_pool_create()
[all …]
/Linux-v5.10/Documentation/networking/devlink/
Ddevlink-region.rst11 region can then be accessed via the devlink region interface.
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 ]
43 $ devlink region read DEV/REGION [ snapshot SNAPSHOT_ID ] address ADDRESS length length
45 # Show all of the exposed regions with region sizes:
[all …]
/Linux-v5.10/drivers/mtd/nand/spi/
Dgigadevice.c48 struct mtd_oob_region *region) in gd5fxgq4xa_ooblayout_ecc() argument
53 region->offset = (16 * section) + 8; in gd5fxgq4xa_ooblayout_ecc()
54 region->length = 8; in gd5fxgq4xa_ooblayout_ecc()
60 struct mtd_oob_region *region) in gd5fxgq4xa_ooblayout_free() argument
66 region->offset = 16 * section; in gd5fxgq4xa_ooblayout_free()
67 region->length = 8; in gd5fxgq4xa_ooblayout_free()
70 region->offset = 1; in gd5fxgq4xa_ooblayout_free()
71 region->length = 7; in gd5fxgq4xa_ooblayout_free()
106 struct mtd_oob_region *region) in gd5fxgq4_variant2_ooblayout_ecc() argument
111 region->offset = 64; in gd5fxgq4_variant2_ooblayout_ecc()
[all …]
/Linux-v5.10/drivers/video/fbdev/savage/
Dsavagefb_accel.c31 void savagefb_copyarea(struct fb_info *info, const struct fb_copyarea *region) in savagefb_copyarea() argument
34 int sx = region->sx, dx = region->dx; in savagefb_copyarea()
35 int sy = region->sy, dy = region->dy; in savagefb_copyarea()
38 if (!region->width || !region->height) in savagefb_copyarea()
47 sx += region->width - 1; in savagefb_copyarea()
48 dx += region->width - 1; in savagefb_copyarea()
54 sy += region->height - 1; in savagefb_copyarea()
55 dy += region->height - 1; in savagefb_copyarea()
62 BCI_SEND(BCI_W_H(region->width, region->height)); in savagefb_copyarea()

12345678910>>...39