Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/s390/cio/
Dvfio_ccw_ops.c197 for (i = 0; i < private->num_regions; i++) in vfio_ccw_mdev_release()
200 private->num_regions = 0; in vfio_ccw_mdev_release()
236 if (index >= VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_read()
291 if (index >= VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_write()
313 info->num_regions = VFIO_CCW_NUM_REGIONS + private->num_regions; in vfio_ccw_mdev_get_device_info()
343 VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_get_region_info()
348 private->num_regions); in vfio_ccw_mdev_get_region_info()
467 (private->num_regions + 1) * sizeof(*region), in vfio_ccw_register_dev_region()
473 private->region[private->num_regions].type = VFIO_REGION_TYPE_CCW; in vfio_ccw_register_dev_region()
474 private->region[private->num_regions].subtype = subtype; in vfio_ccw_register_dev_region()
[all …]
Dvfio_ccw_private.h89 int num_regions; member
/Linux-v5.4/drivers/md/
Ddm-io.c390 static void dispatch_io(int op, int op_flags, unsigned int num_regions, in dispatch_io() argument
397 BUG_ON(num_regions > DM_IO_MAX_REGIONS); in dispatch_io()
406 for (i = 0; i < num_regions; i++) { in dispatch_io()
432 static int sync_io(struct dm_io_client *client, unsigned int num_regions, in sync_io() argument
439 if (num_regions > 1 && !op_is_write(op)) { in sync_io()
456 dispatch_io(op, op_flags, num_regions, where, dp, io, 1); in sync_io()
466 static int async_io(struct dm_io_client *client, unsigned int num_regions, in async_io() argument
472 if (num_regions > 1 && !op_is_write(op)) { in async_io()
488 dispatch_io(op, op_flags, num_regions, where, dp, io, 0); in async_io()
537 int dm_io(struct dm_io_request *io_req, unsigned num_regions, in dm_io() argument
[all …]
/Linux-v5.4/drivers/media/platform/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-v5.4/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-v5.4/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()
317 info.num_regions = vdev->num_regions; in vfio_platform_ioctl()
334 if (info.index >= vdev->num_regions) in vfio_platform_ioctl()
466 if (index >= vdev->num_regions) in vfio_platform_read()
542 if (index >= vdev->num_regions) in vfio_platform_write()
588 if (index >= vdev->num_regions) in vfio_platform_mmap()
Dvfio_platform_private.h46 u32 num_regions; member
/Linux-v5.4/drivers/soc/qcom/
Dsmem.c273 unsigned num_regions; member
498 for (i = 0; i < smem->num_regions; i++) { in qcom_smem_get_global()
658 for (i = 0; i < __smem->num_regions; i++) { in qcom_smem_virt_to_phys()
901 int num_regions; in qcom_smem_probe() local
906 num_regions = 1; in qcom_smem_probe()
908 num_regions++; in qcom_smem_probe()
910 array_size = num_regions * sizeof(struct smem_region); in qcom_smem_probe()
916 smem->num_regions = num_regions; in qcom_smem_probe()
922 if (num_regions > 1 && (ret = qcom_smem_map_memory(smem, &pdev->dev, in qcom_smem_probe()
/Linux-v5.4/drivers/vfio/pci/
Dvfio_pci.c393 for (i = 0; i < vdev->num_regions; i++) in vfio_pci_disable()
396 vdev->num_regions = 0; in vfio_pci_disable()
673 (vdev->num_regions + 1) * sizeof(*region), in vfio_pci_register_dev_region()
679 vdev->region[vdev->num_regions].type = type; in vfio_pci_register_dev_region()
680 vdev->region[vdev->num_regions].subtype = subtype; in vfio_pci_register_dev_region()
681 vdev->region[vdev->num_regions].ops = ops; in vfio_pci_register_dev_region()
682 vdev->region[vdev->num_regions].size = size; in vfio_pci_register_dev_region()
683 vdev->region[vdev->num_regions].flags = flags; in vfio_pci_register_dev_region()
684 vdev->region[vdev->num_regions].data = data; in vfio_pci_register_dev_region()
686 vdev->num_regions++; in vfio_pci_register_dev_region()
[all …]
Dvfio_pci_private.h99 int num_regions; member
/Linux-v5.4/arch/powerpc/platforms/ps3/
Ddevice-init.c326 unsigned int num_regions, i; in ps3_setup_storage_dev() local
333 &num_regions); in ps3_setup_storage_dev()
343 num_regions); in ps3_setup_storage_dev()
345 p = kzalloc(struct_size(p, regions, num_regions), GFP_KERNEL); in ps3_setup_storage_dev()
357 p->num_regions = num_regions; in ps3_setup_storage_dev()
369 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-v5.4/drivers/gpu/drm/i915/gvt/
Dkvmgt.c550 (vgpu->vdev.num_regions + 1) * sizeof(*region), in intel_vgpu_register_reg()
556 vgpu->vdev.region[vgpu->vdev.num_regions].type = type; in intel_vgpu_register_reg()
557 vgpu->vdev.region[vgpu->vdev.num_regions].subtype = subtype; in intel_vgpu_register_reg()
558 vgpu->vdev.region[vgpu->vdev.num_regions].ops = ops; in intel_vgpu_register_reg()
559 vgpu->vdev.region[vgpu->vdev.num_regions].size = size; in intel_vgpu_register_reg()
560 vgpu->vdev.region[vgpu->vdev.num_regions].flags = flags; in intel_vgpu_register_reg()
561 vgpu->vdev.region[vgpu->vdev.num_regions].data = data; in intel_vgpu_register_reg()
562 vgpu->vdev.num_regions++; in intel_vgpu_register_reg()
941 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->vdev.num_regions) { in intel_vgpu_rw()
970 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->vdev.num_regions) in intel_vgpu_rw()
[all …]
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/api/
Ddbg-tlv.h231 __le32 num_regions; member
265 __le32 num_regions; member
/Linux-v5.4/include/linux/
Ddm-io.h81 int dm_io(struct dm_io_request *io_req, unsigned num_regions,
/Linux-v5.4/arch/powerpc/include/asm/
Dps3stor.h39 unsigned int num_regions; member
/Linux-v5.4/sound/soc/qcom/qdsp6/
Dq6asm.c64 u16 num_regions; member
355 uint32_t num_regions, buf_sz; in __q6asm_memory_map_regions() local
359 num_regions = 1; in __q6asm_memory_map_regions()
363 num_regions = periods; in __q6asm_memory_map_regions()
370 (sizeof(*mregions) * num_regions); in __q6asm_memory_map_regions()
388 cmd->num_regions = num_regions; in __q6asm_memory_map_regions()
394 for (i = 0; i < num_regions; i++) { in __q6asm_memory_map_regions()
/Linux-v5.4/include/uapi/linux/
Dfpga-dfl.h82 __u32 num_regions; /* The number of supported regions */ member
Domap3isp.h249 __u8 num_regions; /* number of regions to be configured */ member
/Linux-v5.4/drivers/fpga/
Ddfl-afu.h74 int num_regions; member
Ddfl-afu-region.c81 afu->num_regions++; in afu_mmio_region_add()
/Linux-v5.4/include/uapi/sound/
Dcompress_params.h288 __u32 num_regions; member
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_mob.c139 } else if (vsgt->num_regions == 1) { in vmw_setup_otable_base()
667 } else if (vsgt->num_regions == 1) { in vmw_mob_bind()
Dvmwgfx_ttm_buffer.c471 vmw_tt->vsgt.num_regions = 0; in vmw_ttm_map_dma()
476 vmw_tt->vsgt.num_regions++; in vmw_ttm_map_dma()

12