Home
last modified time | relevance | path

Searched refs:num_regions (Results 1 – 25 of 46) sorted by relevance

12

/Linux-v6.1/drivers/s390/cio/
Dvfio_ccw_ops.c198 if (index >= VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_read()
250 if (index >= VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_write()
269 info->num_regions = VFIO_CCW_NUM_REGIONS + private->num_regions; in vfio_ccw_mdev_get_device_info()
297 VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_get_region_info()
302 private->num_regions); in vfio_ccw_mdev_get_region_info()
437 (private->num_regions + 1) * sizeof(*region), in vfio_ccw_register_dev_region()
443 private->region[private->num_regions].type = VFIO_REGION_TYPE_CCW; in vfio_ccw_register_dev_region()
444 private->region[private->num_regions].subtype = subtype; in vfio_ccw_register_dev_region()
445 private->region[private->num_regions].ops = ops; in vfio_ccw_register_dev_region()
446 private->region[private->num_regions].size = size; in vfio_ccw_register_dev_region()
[all …]
Dvfio_ccw_private.h105 int num_regions; member
/Linux-v6.1/drivers/md/
Ddm-io.c372 static void dispatch_io(blk_opf_t opf, unsigned int num_regions, in dispatch_io() argument
379 BUG_ON(num_regions > DM_IO_MAX_REGIONS); in dispatch_io()
388 for (i = 0; i < num_regions; i++) { in dispatch_io()
414 static int sync_io(struct dm_io_client *client, unsigned int num_regions, in sync_io() argument
421 if (num_regions > 1 && !op_is_write(opf)) { in sync_io()
438 dispatch_io(opf, num_regions, where, dp, io, 1); in sync_io()
448 static int async_io(struct dm_io_client *client, unsigned int num_regions, in async_io() argument
454 if (num_regions > 1 && !op_is_write(opf)) { in async_io()
470 dispatch_io(opf, num_regions, where, dp, io, 0); in async_io()
511 int dm_io(struct dm_io_request *io_req, unsigned num_regions, in dm_io() argument
[all …]
/Linux-v6.1/drivers/net/dsa/sja1105/
Dsja1105_devlink.c79 int i, num_regions = ARRAY_SIZE(sja1105_regions); in sja1105_setup_devlink_regions() local
85 priv->regions = kcalloc(num_regions, sizeof(struct devlink_region *), in sja1105_setup_devlink_regions()
90 for (i = 0; i < num_regions; i++) { in sja1105_setup_devlink_regions()
111 int i, num_regions = ARRAY_SIZE(sja1105_regions); in sja1105_teardown_devlink_regions() local
114 for (i = 0; i < num_regions; i++) in sja1105_teardown_devlink_regions()
/Linux-v6.1/drivers/soc/qcom/
Docmem.c48 uint8_t num_regions; member
120 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
132 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
170 for (i = 0; i < ocmem->config->num_regions; i++) { in update_range()
367 ocmem->num_ports, ocmem->config->num_regions, in ocmem_dev_probe()
370 ocmem->regions = devm_kcalloc(dev, ocmem->config->num_regions, in ocmem_dev_probe()
377 for (i = 0; i < ocmem->config->num_regions; i++) { in ocmem_dev_probe()
388 if (i == (ocmem->config->num_regions - 1) && in ocmem_dev_probe()
418 .num_regions = 3,
Dsmem.c286 unsigned num_regions; member
524 for (i = 0; i < smem->num_regions; i++) { in qcom_smem_get_global()
761 for (i = 0; i < __smem->num_regions; i++) { in qcom_smem_virt_to_phys()
1040 int num_regions; in qcom_smem_probe() local
1047 num_regions = 1; in qcom_smem_probe()
1049 num_regions++; in qcom_smem_probe()
1051 array_size = num_regions * sizeof(struct smem_region); in qcom_smem_probe()
1057 smem->num_regions = num_regions; in qcom_smem_probe()
1073 if (num_regions > 1) { in qcom_smem_probe()
1084 for (i = 1; i < num_regions; i++) { in qcom_smem_probe()
/Linux-v6.1/drivers/media/platform/ti/omap3isp/
Disphist.c86 if (c < conf->num_regions) { in hist_setup_regs()
295 return OMAP3ISP_HIST_MEM_SIZE_BINS(conf->hist_bins) * conf->num_regions; in hist_get_buf_size()
315 if ((user_cfg->num_regions < OMAP3ISP_HIST_MIN_REGIONS) || in hist_validate_params()
316 (user_cfg->num_regions > OMAP3ISP_HIST_MAX_REGIONS)) in hist_validate_params()
320 for (c = 0; c < user_cfg->num_regions; c++) { in hist_validate_params()
335 switch (user_cfg->num_regions) { in hist_validate_params()
382 if (cur_cfg->num_regions != user_cfg->num_regions) in hist_comp_params()
386 for (c = 0; c < user_cfg->num_regions; c++) { in hist_comp_params()
/Linux-v6.1/Documentation/admin-guide/device-mapper/
Ddm-io.rst30 int dm_io_sync(unsigned int num_regions, struct io_region *where, int rw,
33 int dm_io_async(unsigned int num_regions, struct io_region *where, int rw,
41 int dm_io_sync_bvec(unsigned int num_regions, struct io_region *where,
44 int dm_io_async_bvec(unsigned int num_regions, struct io_region *where,
53 int dm_io_sync_vm(unsigned int num_regions, struct io_region *where, int rw,
55 int dm_io_async_vm(unsigned int num_regions, struct io_region *where, int rw,
/Linux-v6.1/drivers/vfio/platform/
Dvfio_platform_common.c187 vdev->num_regions = cnt; in vfio_platform_regions_init()
199 for (i = 0; i < vdev->num_regions; i++) in vfio_platform_regions_cleanup()
202 vdev->num_regions = 0; in vfio_platform_regions_cleanup()
301 info.num_regions = vdev->num_regions; in vfio_platform_ioctl()
318 if (info.index >= vdev->num_regions) in vfio_platform_ioctl()
452 if (index >= vdev->num_regions) in vfio_platform_read()
530 if (index >= vdev->num_regions) in vfio_platform_write()
578 if (index >= vdev->num_regions) in vfio_platform_mmap()
Dvfio_platform_private.h48 u32 num_regions; member
/Linux-v6.1/drivers/gpu/drm/i915/gem/
Di915_gem_create.c285 if (!args->num_regions) { in set_placements()
292 if (args->num_regions > ARRAY_SIZE(i915->mm.regions)) { in set_placements()
301 for (i = 0; i < args->num_regions; i++) { in set_placements()
337 ext_data->n_placements = args->num_regions; in set_placements()
338 for (i = 0; i < args->num_regions; i++) in set_placements()
/Linux-v6.1/drivers/gpu/drm/i915/gvt/
Dkvmgt.c540 (vgpu->num_regions + 1) * sizeof(*region), in intel_vgpu_register_reg()
546 vgpu->region[vgpu->num_regions].type = type; in intel_vgpu_register_reg()
547 vgpu->region[vgpu->num_regions].subtype = subtype; in intel_vgpu_register_reg()
548 vgpu->region[vgpu->num_regions].ops = ops; in intel_vgpu_register_reg()
549 vgpu->region[vgpu->num_regions].size = size; in intel_vgpu_register_reg()
550 vgpu->region[vgpu->num_regions].flags = flags; in intel_vgpu_register_reg()
551 vgpu->region[vgpu->num_regions].data = data; in intel_vgpu_register_reg()
552 vgpu->num_regions++; in intel_vgpu_register_reg()
810 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) { in intel_vgpu_rw()
839 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) in intel_vgpu_rw()
[all …]
/Linux-v6.1/arch/powerpc/platforms/ps3/
Ddevice-init.c327 unsigned int num_regions, i; in ps3_setup_storage_dev() local
334 &num_regions); in ps3_setup_storage_dev()
344 num_regions); in ps3_setup_storage_dev()
346 p = kzalloc(struct_size(p, regions, num_regions), GFP_KERNEL); in ps3_setup_storage_dev()
358 p->num_regions = num_regions; in ps3_setup_storage_dev()
370 for (i = 0; i < num_regions; i++) { in ps3_setup_storage_dev()
Drepository.c591 unsigned int dev_index, unsigned int *num_regions) in ps3_repository_read_stor_dev_num_regions() argument
601 *num_regions = v1; in ps3_repository_read_stor_dev_num_regions()
646 u64 *num_blocks, unsigned int *num_regions) in ps3_repository_read_stor_dev_info() argument
665 num_regions); in ps3_repository_read_stor_dev_info()
1237 unsigned int num_regions, region_index; in dump_stor_dev_info() local
1244 repo->dev_index, &port, &blk_size, &num_blocks, &num_regions); in dump_stor_dev_info()
1255 port, blk_size, num_blocks, num_regions); in dump_stor_dev_info()
1257 for (region_index = 0; region_index < num_regions; region_index++) { in dump_stor_dev_info()
Dplatform.h155 unsigned int dev_index, unsigned int *num_regions);
165 u64 *num_blocks, unsigned int *num_regions);
/Linux-v6.1/drivers/vfio/pci/
Dvfio_pci_core.c603 for (i = 0; i < vdev->num_regions; i++) in vfio_pci_core_disable()
606 vdev->num_regions = 0; in vfio_pci_core_disable()
858 (vdev->num_regions + 1) * sizeof(*region), in vfio_pci_core_register_dev_region()
864 vdev->region[vdev->num_regions].type = type; in vfio_pci_core_register_dev_region()
865 vdev->region[vdev->num_regions].subtype = subtype; in vfio_pci_core_register_dev_region()
866 vdev->region[vdev->num_regions].ops = ops; in vfio_pci_core_register_dev_region()
867 vdev->region[vdev->num_regions].size = size; in vfio_pci_core_register_dev_region()
868 vdev->region[vdev->num_regions].flags = flags; in vfio_pci_core_register_dev_region()
869 vdev->region[vdev->num_regions].data = data; in vfio_pci_core_register_dev_region()
871 vdev->num_regions++; in vfio_pci_core_register_dev_region()
[all …]
/Linux-v6.1/include/linux/
Ddm-io.h81 int dm_io(struct dm_io_request *io_req, unsigned num_regions,
/Linux-v6.1/arch/powerpc/include/asm/
Dps3stor.h39 unsigned int num_regions; member
/Linux-v6.1/sound/soc/qcom/qdsp6/
Daudioreach.c1050 uint32_t num_regions, buf_sz, payload_size; in audioreach_map_memory_regions() local
1062 num_regions = 1; in audioreach_map_memory_regions()
1066 num_regions = periods; in audioreach_map_memory_regions()
1072 payload_size = sizeof(*cmd) + (sizeof(*mregions) * num_regions); in audioreach_map_memory_regions()
1082 cmd->num_regions = num_regions; in audioreach_map_memory_regions()
1090 for (i = 0; i < num_regions; i++) { in audioreach_map_memory_regions()
Dq6asm.c72 u16 num_regions; member
433 uint32_t num_regions, buf_sz; in __q6asm_memory_map_regions() local
437 num_regions = 1; in __q6asm_memory_map_regions()
441 num_regions = periods; in __q6asm_memory_map_regions()
448 (sizeof(*mregions) * num_regions); in __q6asm_memory_map_regions()
466 cmd->num_regions = num_regions; in __q6asm_memory_map_regions()
472 for (i = 0; i < num_regions; i++) { in __q6asm_memory_map_regions()
/Linux-v6.1/tools/testing/nvdimm/test/
Dndtest.h106 u8 num_regions; member
/Linux-v6.1/drivers/fpga/
Ddfl-afu.h74 int num_regions; member
Ddfl-afu-region.c81 afu->num_regions++; in afu_mmio_region_add()
/Linux-v6.1/include/uapi/linux/
Dfpga-dfl.h82 __u32 num_regions; /* The number of supported regions */ member
/Linux-v6.1/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_dmabuf.c145 unsigned int num_regions) in igt_dmabuf_import_same_driver() argument
158 regions, num_regions); in igt_dmabuf_import_same_driver()

12