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

1234567891011>>

/linux-master/drivers/fpga/
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; local
32 for_each_region(region, afu)
33 if (region->index == region_index)
34 return region;
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; local
99 struct dfl_afu_mmio_region *tmp, *region; local
117 struct dfl_afu_mmio_region *region; local
151 struct dfl_afu_mmio_region *region; local
[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)
37 int npages = region->length >> PAGE_SHIFT;
45 region->pages = kcalloc(npages, sizeof(struct page *), GFP_KERNEL);
46 if (!region->pages) {
51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE,
52 region->pages);
66 unpin_user_pages(region
34 afu_dma_pin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) argument
82 afu_dma_unpin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) argument
102 afu_dma_check_continuous_pages(struct dfl_afu_dma_region *region) argument
124 dma_region_check_iova(struct dfl_afu_dma_region *region, u64 iova, u64 size) argument
143 afu_dma_region_add(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) argument
185 afu_dma_region_remove(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) argument
207 struct dfl_afu_dma_region *region; local
252 struct dfl_afu_dma_region *region; local
304 struct dfl_afu_dma_region *region; local
382 struct dfl_afu_dma_region *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) argument
48 struct device *dev = &region->dev;
50 if (!mutex_trylock(&region->mutex)) {
58 mutex_unlock(&region->mutex);
64 return region;
72 fpga_region_put(struct fpga_region *region) argument
97 fpga_region_program_fpga(struct fpga_region *region) argument
165 struct fpga_region *region = to_fpga_region(dev); local
193 struct fpga_region *region; local
277 fpga_region_unregister(struct fpga_region *region) argument
285 struct fpga_region *region = to_fpga_region(dev); local
[all...]
H A Ddfl-fme-region.c18 #include <linux/fpga/fpga-region.h>
22 static int fme_region_get_bridges(struct fpga_region *region) argument
24 struct dfl_fme_region_pdata *pdata = region->priv;
27 return fpga_bridge_get_to_list(dev, region->info, &region->bridge_list);
35 struct fpga_region *region; local
47 region = fpga_region_register_full(dev, &info);
48 if (IS_ERR(region)) {
49 ret = PTR_ERR(region);
53 platform_set_drvdata(pdev, region);
66 struct fpga_region *region = platform_get_drvdata(pdev); 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")) {
75 * @region: FPGA region
82 * Caller should call fpga_bridges_put(&region
88 of_fpga_region_get_bridges(struct fpga_region *region) argument
195 of_fpga_region_parse_ov(struct fpga_region *region, struct device_node *overlay) argument
286 of_fpga_region_notify_pre_apply(struct fpga_region *region, struct of_overlay_notify_data *nd) argument
326 of_fpga_region_notify_post_remove(struct fpga_region *region, struct of_overlay_notify_data *nd) argument
350 struct fpga_region *region; local
401 struct fpga_region *region; local
430 struct fpga_region *region = platform_get_drvdata(pdev); local
[all...]
/linux-master/arch/um/kernel/
H A Dphysmem.c127 struct iomem_region *region = iomem_regions; local
129 while (region != NULL) {
130 if ((phys >= region->phys) &&
131 (phys < region->phys + region->size)) {
132 fd = region->fd;
133 *offset_out = phys - region->phys;
136 region = region->next;
168 " Configure <file> as an IO memory region name
183 struct iomem_region *region = iomem_regions; local
200 struct iomem_region *region = iomem_regions; local
[all...]
/linux-master/drivers/s390/cio/
H A Dvfio_ccw_async.c3 * Async I/O region for vfio_ccw
20 struct ccw_cmd_region *region; local
23 if (pos + count > sizeof(*region))
27 region = private->region[i].data;
28 if (copy_to_user(buf, (void *)region + pos, count))
42 struct ccw_cmd_region *region; local
45 if (pos + count > sizeof(*region))
51 region = private->region[
66 vfio_ccw_async_region_release(struct vfio_ccw_private *private, struct vfio_ccw_region *region) argument
[all...]
H A Dvfio_ccw_chp.c22 struct ccw_schib_region *region; local
25 if (pos + count > sizeof(*region))
29 region = private->region[i].data;
36 memcpy(region, &sch->schib, sizeof(*region));
38 if (copy_to_user(buf, (void *)region + pos, count)) {
59 struct vfio_ccw_region *region)
86 struct ccw_crw_region *region; local
90 if (pos + count > sizeof(*region))
58 vfio_ccw_schib_region_release(struct vfio_ccw_private *private, struct vfio_ccw_region *region) argument
130 vfio_ccw_crw_region_release(struct vfio_ccw_private *private, struct vfio_ccw_region *region) argument
[all...]
/linux-master/net/devlink/
H A Dregion.c29 struct devlink_region *region; member in struct:devlink_snapshot
37 struct devlink_region *region; local
39 list_for_each_entry(region, &devlink->region_list, list)
40 if (!strcmp(region->ops->name, region_name))
41 return region;
50 struct devlink_region *region; local
52 list_for_each_entry(region, &port->region_list, list)
53 if (!strcmp(region->ops->name, region_name))
54 return region;
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) 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) argument
172 devlink_nl_region_notify_build(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd, u32 portid, u32 seq) argument
229 devlink_nl_region_notify(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd) argument
250 struct devlink_region *region; local
258 struct devlink_region *region; local
417 __devlink_region_snapshot_create(struct devlink_region *region, u8 *data, u32 snapshot_id) argument
457 devlink_region_snapshot_del(struct devlink_region *region, struct devlink_snapshot *snapshot) argument
476 struct devlink_region *region; local
522 struct devlink_region *region; local
550 struct devlink_region *region; local
596 struct devlink_region *region; local
642 struct devlink_region *region; local
850 struct devlink_region *region = cb_priv; local
860 struct devlink_region *region = cb_priv; local
876 struct devlink_region *region; local
1051 struct devlink_region *region; local
1093 struct devlink_region *region; local
1119 struct devlink_region *region; local
1164 devl_region_destroy(struct devlink_region *region) argument
1192 devlink_region_destroy(struct devlink_region *region) argument
1251 devlink_region_snapshot_create(struct devlink_region *region, u8 *data, u32 snapshot_id) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum1_acl_tcam.c14 struct mlxsw_sp_acl_tcam_region *region; member in struct:mlxsw_sp1_acl_tcam_region
62 struct mlxsw_sp1_acl_tcam_region *region)
67 mlxsw_sp_acl_ctcam_chunk_init(&region->cregion,
68 &region->catchall.cchunk,
81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, &region->cregion,
82 &region->catchall.cchunk,
83 &region->catchall.centry,
87 region->catchall.rulei = rulei;
95 mlxsw_sp_acl_ctcam_chunk_fini(&region->catchall.cchunk);
101 struct mlxsw_sp1_acl_tcam_region *region)
61 mlxsw_sp1_acl_ctcam_region_catchall_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) argument
100 mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) argument
118 struct mlxsw_sp1_acl_tcam_region *region = region_priv; local
140 struct mlxsw_sp1_acl_tcam_region *region = region_priv; local
147 mlxsw_sp1_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) argument
156 struct mlxsw_sp1_acl_tcam_region *region = region_priv; local
175 struct mlxsw_sp1_acl_tcam_region *region = region_priv; local
188 struct mlxsw_sp1_acl_tcam_region *region = region_priv; local
227 struct mlxsw_sp1_acl_tcam_region *region = region_priv; local
[all...]
H A Dspectrum_acl_ctcam.c15 struct mlxsw_sp_acl_tcam_region *region,
21 region->key_type, new_size, region->id,
22 region->tcam_region_info);
28 struct mlxsw_sp_acl_tcam_region *region,
34 region->tcam_region_info, src_offset,
35 region->tcam_region_info, dst_offset, size);
46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; local
61 region
14 mlxsw_sp_acl_ctcam_region_resize(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, u16 new_size) argument
27 mlxsw_sp_acl_ctcam_region_move(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, u16 src_offset, u16 dst_offset, u16 size) argument
125 struct mlxsw_sp_acl_tcam_region *region = cregion->region; local
141 struct mlxsw_sp_acl_tcam_region *region = cregion->region; local
157 mlxsw_sp_acl_ctcam_region_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_tcam_region *region, const struct mlxsw_sp_acl_ctcam_region_ops *ops) argument
[all...]
/linux-master/arch/powerpc/boot/dts/fsl/
H A Dqoriq-bman1.dtsi40 memory-region = <&bman_fbpr>;
H A Dqoriq-qman1.dtsi40 memory-region = <&qman_fqd &qman_pfdr>;
H A Dqoriq-qman3.dtsi40 memory-region = <&qman_fqd &qman_pfdr>;
/linux-master/drivers/mtd/nand/spi/
H A Dato.c31 struct mtd_oob_region *region)
36 region->offset = (16 * section) + 8;
37 region->length = 8;
42 struct mtd_oob_region *region)
48 region->offset = (16 * section);
49 region->length = 8;
52 region->offset = 1;
53 region->length = 7;
30 ato25d1ga_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region) argument
41 ato25d1ga_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *region) argument
H A Dparagon.c42 struct mtd_oob_region *region)
47 region->offset = 6 + (15 * section); /* 4 BBM + 2 user bytes */
48 region->length = 13;
54 struct mtd_oob_region *region)
60 region->offset = 64;
61 region->length = 64;
63 region->offset = 4 + (15 * section);
64 region->length = 2;
41 pn26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region) argument
53 pn26g0xa_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *region) argument
/linux-master/drivers/fpga/tests/
H A DMakefile6 obj-$(CONFIG_FPGA_KUNIT_TESTS) += fpga-mgr-test.o fpga-bridge-test.o fpga-region-test.o
/linux-master/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c252 * range addressed by a single page table into a low and high region
254 * the VA region spans [0, 2^(va_bits - 1)), [-(2^(va_bits - 1), -1].
393 * maximum page table size for a memory region will be when the
431 * MMIO region would prevent silently clobbering the MMIO region.
434 ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size);
506 struct userspace_mem_region *region; local
512 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) {
513 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION2, &region
634 struct userspace_mem_region *region = local
705 __vm_mem_region_delete(struct kvm_vm *vm, struct userspace_mem_region *region, bool unlink) argument
743 struct userspace_mem_region *region; local
858 vm_userspace_mem_region_gpa_insert(struct rb_root *gpa_tree, struct userspace_mem_region *region) argument
884 vm_userspace_mem_region_hva_insert(struct rb_root *hva_tree, struct userspace_mem_region *region) argument
913 struct kvm_userspace_memory_region region = { local
937 struct kvm_userspace_memory_region2 region = { local
968 struct userspace_mem_region *region; local
1166 struct userspace_mem_region *region; local
1198 struct userspace_mem_region *region; local
1227 struct userspace_mem_region *region; local
1263 struct userspace_mem_region *region; local
1599 struct userspace_mem_region *region; local
1635 struct userspace_mem_region *region = local
1675 struct userspace_mem_region *region; local
1934 struct userspace_mem_region *region; local
2070 struct userspace_mem_region *region; local
2315 struct userspace_mem_region *region; local
[all...]
/linux-master/include/linux/
H A Ddm-dirty-log.h6 * Device-Mapper dirty region log.
49 * Retrieves the smallest size of region that the log can
55 * A predicate to say whether a region is clean or not.
58 int (*is_clean)(struct dm_dirty_log *log, region_t region);
66 * If -EWOULDBLOCK is returned the state of the region is
71 int (*in_sync)(struct dm_dirty_log *log, region_t region,
86 void (*mark_region)(struct dm_dirty_log *log, region_t region);
87 void (*clear_region)(struct dm_dirty_log *log, region_t region);
90 * Returns: <0 (error), 0 (no region), 1 (region)
[all...]
/linux-master/drivers/vfio/pci/pds/
H A Ddirty.c73 static int pds_vfio_dirty_alloc_bitmaps(struct pds_vfio_region *region, argument
88 region->host_seq = host_seq_bmp;
89 region->host_ack = host_ack_bmp;
90 region->bmp_bytes = bytes;
101 struct pds_vfio_region *region = &dirty->regions[i]; local
103 vfree(region->host_seq);
104 vfree(region->host_ack);
105 region->host_seq = NULL;
106 region->host_ack = NULL;
107 region
111 __pds_vfio_dirty_free_sgl(struct pds_vfio_pci_device *pds_vfio, struct pds_vfio_region *region) argument
135 struct pds_vfio_region *region = &dirty->regions[i]; local
142 pds_vfio_dirty_alloc_sgl(struct pds_vfio_pci_device *pds_vfio, struct pds_vfio_region *region, u32 page_count) argument
196 struct pds_vfio_region *region = &dirty->regions[i]; local
367 pds_vfio_dirty_seq_ack(struct pds_vfio_pci_device *pds_vfio, struct pds_vfio_region *region, unsigned long *seq_ack_bmp, u32 offset, u32 bmp_bytes, bool read_seq) argument
451 pds_vfio_dirty_write_ack(struct pds_vfio_pci_device *pds_vfio, struct pds_vfio_region *region, u32 offset, u32 len) argument
460 pds_vfio_dirty_read_seq(struct pds_vfio_pci_device *pds_vfio, struct pds_vfio_region *region, u32 offset, u32 len) argument
468 pds_vfio_dirty_process_bitmaps(struct pds_vfio_pci_device *pds_vfio, struct pds_vfio_region *region, struct iova_bitmap *dirty_bitmap, u32 bmp_offset, u32 len_bytes) argument
510 struct pds_vfio_region *region = &dirty->regions[i]; local
525 struct pds_vfio_region *region; local
[all...]
/linux-master/drivers/gpu/drm/i915/selftests/
H A Di915_perf_selftests.h21 selftest(region, intel_memory_region_perf_selftests)
/linux-master/include/linux/fpga/
H A Dfpga-region.h14 * @mgr: fpga region manager
15 * @compat_id: FPGA region id for compatibility check.
16 * @priv: fpga region private data
28 int (*get_bridges)(struct fpga_region *region);
34 * @mutex: enforces exclusive reference to region
35 * @bridge_list: list of FPGA bridges specified in region
38 * @compat_id: FPGA region id for compatibility check.
44 struct mutex mutex; /* for exclusive reference to region */
50 int (*get_bridges)(struct fpga_region *region);
59 int fpga_region_program_fpga(struct fpga_region *region);
[all...]
/linux-master/drivers/acpi/acpica/
H A Devregion.c40 * an installed default region handler.
81 * PARAMETERS: region_obj - Internal region object
84 * region_offset - Where in the region to read or write
91 * DESCRIPTION: Dispatch an address space or operation region access to
94 * NOTE: During early initialization, we always install the default region
96 * region address spaces are always available as per the ACPI specification.
126 /* Ensure that there is a handler associated with this region */
128 handler_desc = region_obj->region.handler;
132 acpi_ut_get_node_name(region_obj->region.node),
134 acpi_ut_get_region_name(region_obj->region
[all...]
/linux-master/drivers/mtd/maps/
H A Dpismo.c89 struct pismo_mem *region, const char *name,
94 phys_addr_t base = region->base;
101 res.end = base + region->size - 1;
131 struct pismo_mem *region)
134 .width = region->width,
140 return pismo_add_device(pismo, i, region, "physmap-flash",
145 struct pismo_mem *region)
148 .bankwidth = region->width,
151 return pismo_add_device(pismo, i, region, "mtd-ram",
159 struct pismo_mem region; local
88 pismo_add_device(struct pismo_data *pismo, int i, struct pismo_mem *region, const char *name, void *pdata, size_t psize) argument
130 pismo_add_nor(struct pismo_data *pismo, int i, struct pismo_mem *region) argument
144 pismo_add_sram(struct pismo_data *pismo, int i, struct pismo_mem *region) argument
[all...]
/linux-master/drivers/video/fbdev/savage/
H A Dsavagefb_accel.c31 void savagefb_copyarea(struct fb_info *info, const struct fb_copyarea *region) argument
34 int sx = region->sx, dx = region->dx;
35 int sy = region->sy, dy = region->dy;
38 if (!region->width || !region->height)
47 sx += region->width - 1;
48 dx += region->width - 1;
54 sy += region
[all...]

Completed in 273 milliseconds

1234567891011>>