Home
last modified time | relevance | path

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

/drivers/s390/cio/
Dvfio_ccw_ops.c243 if (index >= VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_read()
296 if (index >= VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_write()
318 info->num_regions = VFIO_CCW_NUM_REGIONS + private->num_regions; in vfio_ccw_mdev_get_device_info()
348 VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_get_region_info()
353 private->num_regions); in vfio_ccw_mdev_get_region_info()
487 (private->num_regions + 1) * sizeof(*region), in vfio_ccw_register_dev_region()
493 private->region[private->num_regions].type = VFIO_REGION_TYPE_CCW; in vfio_ccw_register_dev_region()
494 private->region[private->num_regions].subtype = subtype; in vfio_ccw_register_dev_region()
495 private->region[private->num_regions].ops = ops; in vfio_ccw_register_dev_region()
496 private->region[private->num_regions].size = size; in vfio_ccw_register_dev_region()
[all …]
Dvfio_ccw_private.h102 int num_regions; member
/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 …]
/drivers/soc/qcom/
Docmem.c48 uint8_t num_regions; member
124 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
136 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
174 for (i = 0; i < ocmem->config->num_regions; i++) { in update_range()
379 ocmem->num_ports, ocmem->config->num_regions, in ocmem_dev_probe()
382 ocmem->regions = devm_kcalloc(dev, ocmem->config->num_regions, in ocmem_dev_probe()
389 for (i = 0; i < ocmem->config->num_regions; i++) { in ocmem_dev_probe()
400 if (i == (ocmem->config->num_regions - 1) && in ocmem_dev_probe()
430 .num_regions = 3,
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()
/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()
/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()
/drivers/vfio/platform/
Dvfio_platform_common.c186 vdev->num_regions = cnt; in vfio_platform_regions_init()
198 for (i = 0; i < vdev->num_regions; i++) in vfio_platform_regions_cleanup()
201 vdev->num_regions = 0; in vfio_platform_regions_cleanup()
315 info.num_regions = vdev->num_regions; in vfio_platform_ioctl()
332 if (info.index >= vdev->num_regions) in vfio_platform_ioctl()
464 if (index >= vdev->num_regions) in vfio_platform_read()
540 if (index >= vdev->num_regions) in vfio_platform_write()
586 if (index >= vdev->num_regions) in vfio_platform_mmap()
Dvfio_platform_private.h46 u32 num_regions; member
/drivers/gpu/drm/i915/gvt/
Dkvmgt.c115 int num_regions; member
593 (vdev->num_regions + 1) * sizeof(*region), in intel_vgpu_register_reg()
599 vdev->region[vdev->num_regions].type = type; in intel_vgpu_register_reg()
600 vdev->region[vdev->num_regions].subtype = subtype; in intel_vgpu_register_reg()
601 vdev->region[vdev->num_regions].ops = ops; in intel_vgpu_register_reg()
602 vdev->region[vdev->num_regions].size = size; in intel_vgpu_register_reg()
603 vdev->region[vdev->num_regions].flags = flags; in intel_vgpu_register_reg()
604 vdev->region[vdev->num_regions].data = data; in intel_vgpu_register_reg()
605 vdev->num_regions++; in intel_vgpu_register_reg()
1011 if (index >= VFIO_PCI_NUM_REGIONS + vdev->num_regions) { in intel_vgpu_rw()
[all …]
/drivers/vfio/pci/
Dvfio_pci.c444 for (i = 0; i < vdev->num_regions; i++) in vfio_pci_disable()
447 vdev->num_regions = 0; in vfio_pci_disable()
776 (vdev->num_regions + 1) * sizeof(*region), in vfio_pci_register_dev_region()
782 vdev->region[vdev->num_regions].type = type; in vfio_pci_register_dev_region()
783 vdev->region[vdev->num_regions].subtype = subtype; in vfio_pci_register_dev_region()
784 vdev->region[vdev->num_regions].ops = ops; in vfio_pci_register_dev_region()
785 vdev->region[vdev->num_regions].size = size; in vfio_pci_register_dev_region()
786 vdev->region[vdev->num_regions].flags = flags; in vfio_pci_register_dev_region()
787 vdev->region[vdev->num_regions].data = data; in vfio_pci_register_dev_region()
789 vdev->num_regions++; in vfio_pci_register_dev_region()
[all …]
Dvfio_pci_private.h114 int num_regions; member
/drivers/fpga/
Ddfl-afu.h74 int num_regions; member
Ddfl-afu-region.c81 afu->num_regions++; in afu_mmio_region_add()
Ddfl-afu-main.c655 info.num_regions = afu->num_regions; in afu_ioctl_get_info()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_mob.c139 } else if (vsgt->num_regions == 1) { in vmw_setup_otable_base()
613 } else if (vsgt->num_regions == 1) { in vmw_mob_bind()
Dvmwgfx_ttm_buffer.c487 vmw_tt->vsgt.num_regions = 0; in vmw_ttm_map_dma()
492 vmw_tt->vsgt.num_regions++; in vmw_ttm_map_dma()
Dvmwgfx_drv.h343 unsigned long num_regions; member
/drivers/gpu/drm/amd/display/dmub/
Ddmub_srv.h176 uint8_t num_regions; member
/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_srv.c259 out->num_regions = DMUB_NUM_WINDOWS; in dmub_srv_calc_region_info()
335 if (params->region_info->num_regions != DMUB_NUM_WINDOWS) in dmub_srv_calc_mem_info()
/drivers/ps3/
Dps3stor_lib.c88 for (i = 0; i < dev->num_regions; i++) { in ps3stor_probe_access()
/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c225 info.num_regions = mc_dev->obj_desc.region_count; in vfio_fsl_mc_ioctl()
/drivers/s390/crypto/
Dvfio_ap_ops.c1279 info.num_regions = 0; in vfio_ap_mdev_get_device_info()