Home
last modified time | relevance | path

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

12345678910>>...41

/Linux-v6.1/drivers/fpga/
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 …]
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-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 of_fpga_region_parse_ov(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()
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()
66 struct fpga_region *region = platform_get_drvdata(pdev); in fme_region_remove() local
67 struct fpga_manager *mgr = region->mgr; in fme_region_remove()
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/lib/
Dkvm_util.c414 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()
471 struct userspace_mem_region *region = in userspace_mem_region_find() local
473 uint64_t existing_start = region->region.guest_phys_addr; in userspace_mem_region_find()
474 uint64_t existing_end = region->region.guest_phys_addr in userspace_mem_region_find()
[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 …]
Dspectrum_acl_tcam.c205 struct mlxsw_sp_acl_tcam_region *region; member
225 struct mlxsw_sp_acl_tcam_region *region; member
266 struct mlxsw_sp_acl_tcam_region *region; in mlxsw_sp_acl_tcam_group_update() local
271 list_for_each_entry(region, &group->region_list, list) { in mlxsw_sp_acl_tcam_group_update()
275 if (region->list.next != &group->region_list && in mlxsw_sp_acl_tcam_group_update()
276 list_next_entry(region, list)->vregion == region->vregion) in mlxsw_sp_acl_tcam_group_update()
279 region->id, multi); in mlxsw_sp_acl_tcam_group_update()
441 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_tcam_group_region_attach() argument
469 list_add_tail(&region->list, pos); in mlxsw_sp_acl_tcam_group_region_attach()
470 region->group = group; in mlxsw_sp_acl_tcam_group_region_attach()
[all …]
Dspectrum2_acl_tcam.c18 struct mlxsw_sp_acl_tcam_region *region; member
155 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_init() local
158 region->region = _region; in mlxsw_sp2_acl_tcam_region_init()
161 &region->aregion, in mlxsw_sp2_acl_tcam_region_init()
169 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_fini() local
171 mlxsw_sp_acl_atcam_region_fini(&region->aregion); in mlxsw_sp2_acl_tcam_region_fini()
176 struct mlxsw_sp_acl_tcam_region *region) in mlxsw_sp2_acl_tcam_region_associate() argument
178 return mlxsw_sp_acl_atcam_region_associate(mlxsw_sp, region->id); in mlxsw_sp2_acl_tcam_region_associate()
183 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_rehash_hints_get() local
185 return mlxsw_sp_acl_atcam_rehash_hints_get(&region->aregion); in mlxsw_sp2_acl_tcam_region_rehash_hints_get()
[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()
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-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.c20 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()
67 struct vfio_ccw_region *region) in vfio_ccw_async_region_release() argument
Dvfio_ccw_ops.c173 struct ccw_io_region *region; in vfio_ccw_mdev_read_io_region() local
176 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_read_io_region()
180 region = private->io_region; in vfio_ccw_mdev_read_io_region()
181 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_mdev_read_io_region()
206 return private->region[index].ops->read(private, buf, count, in vfio_ccw_mdev_read()
218 struct ccw_io_region *region; in vfio_ccw_mdev_write_io_region() local
221 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_write_io_region()
227 region = private->io_region; in vfio_ccw_mdev_write_io_region()
228 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_mdev_write_io_region()
234 ret = (region->ret_code != 0) ? region->ret_code : count; in vfio_ccw_mdev_write_io_region()
[all …]
/Linux-v6.1/arch/x86/boot/compressed/
Dkaslr.c492 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument
499 slot_area.addr = region->start; in store_slot_info()
500 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info()
511 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument
518 store_slot_info(region, image_size); in process_gb_huge_pages()
523 pud_start = ALIGN(region->start, PUD_SIZE); in process_gb_huge_pages()
524 pud_end = ALIGN_DOWN(region->start + region->size, PUD_SIZE); in process_gb_huge_pages()
528 store_slot_info(region, image_size); in process_gb_huge_pages()
533 if (pud_start >= region->start + image_size) { in process_gb_huge_pages()
534 tmp.start = region->start; in process_gb_huge_pages()
[all …]
/Linux-v6.1/mm/
Dnommu.c425 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()
456 static void add_nommu_region(struct vm_region *region) in add_nommu_region() argument
468 if (region->vm_start < pregion->vm_start) in add_nommu_region()
470 else if (region->vm_start > pregion->vm_start) in add_nommu_region()
472 else if (pregion == region) in add_nommu_region()
478 rb_link_node(&region->vm_rb, parent, p); in add_nommu_region()
[all …]
/Linux-v6.1/drivers/acpi/acpica/
Devregion.c128 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch()
132 acpi_ut_get_node_name(region_obj->region.node), in acpi_ev_address_space_dispatch()
134 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch()
148 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch()
160 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch()
165 if (region_obj->region.space_id == ACPI_ADR_SPACE_PLATFORM_COMM) { in acpi_ev_address_space_dispatch()
171 ctx->length = (u16)region_obj->region.length; in acpi_ev_address_space_dispatch()
172 ctx->subspace_id = (u8)region_obj->region.address; in acpi_ev_address_space_dispatch()
195 region. in acpi_ev_address_space_dispatch()
202 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch()
[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/gpu/drm/amd/display/dmub/src/
Ddmub_dcn30.c104 REG_WRITE(DMCUB_REGION3_CW0_BASE_ADDRESS, cw0->region.base); in dmub_dcn30_backdoor_load()
106 DMCUB_REGION3_CW0_TOP_ADDRESS, cw0->region.top, in dmub_dcn30_backdoor_load()
113 REG_WRITE(DMCUB_REGION3_CW1_BASE_ADDRESS, cw1->region.base); in dmub_dcn30_backdoor_load()
115 DMCUB_REGION3_CW1_TOP_ADDRESS, cw1->region.top, in dmub_dcn30_backdoor_load()
135 if (cw2->region.base != cw2->region.top) { in dmub_dcn30_setup_windows()
138 REG_WRITE(DMCUB_REGION3_CW2_BASE_ADDRESS, cw2->region.base); in dmub_dcn30_setup_windows()
140 DMCUB_REGION3_CW2_TOP_ADDRESS, cw2->region.top, in dmub_dcn30_setup_windows()
153 REG_WRITE(DMCUB_REGION3_CW3_BASE_ADDRESS, cw3->region.base); in dmub_dcn30_setup_windows()
155 DMCUB_REGION3_CW3_TOP_ADDRESS, cw3->region.top, in dmub_dcn30_setup_windows()
164 REG_WRITE(DMCUB_REGION3_CW4_BASE_ADDRESS, cw4->region.base); in dmub_dcn30_setup_windows()
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/Documentation/networking/devlink/
Diosm.rst61 data required for flashing. The data like region count and address of each region
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.
126 $ devlink region show
128 $ devlink region new pci/0000:02:00.0/report.json
130 $ devlink region dump pci/0000:02:00.0/report.json snapshot 0
[all …]
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-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()
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()
63 region->service_vm_pa = service_gpa; in acrn_mm_region_add()
64 region->size = size; in acrn_mm_region_add()
65 region->attr = ((mem_type & ACRN_MEM_TYPE_MASK) | in acrn_mm_region_add()
[all …]
/Linux-v6.1/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
781 region = reg_itr; in knav_pool_create()
785 if (!region) { in knav_pool_create()
806 if (num_desc > (region->num_desc - region->used_desc)) { in knav_pool_create()
[all …]

12345678910>>...41