/linux-6.6.21/drivers/s390/cio/ |
D | vfio_ccw_ops.c | 239 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() 310 info->num_regions = VFIO_CCW_NUM_REGIONS + private->num_regions; in vfio_ccw_mdev_get_device_info() 338 VFIO_CCW_NUM_REGIONS + private->num_regions) in vfio_ccw_mdev_get_region_info() 343 private->num_regions); in vfio_ccw_mdev_get_region_info() 478 (private->num_regions + 1) * sizeof(*region), in vfio_ccw_register_dev_region() 484 private->region[private->num_regions].type = VFIO_REGION_TYPE_CCW; in vfio_ccw_register_dev_region() 485 private->region[private->num_regions].subtype = subtype; in vfio_ccw_register_dev_region() 486 private->region[private->num_regions].ops = ops; in vfio_ccw_register_dev_region() 487 private->region[private->num_regions].size = size; in vfio_ccw_register_dev_region() [all …]
|
/linux-6.6.21/drivers/md/ |
D | dm-io.c | 384 static void dispatch_io(blk_opf_t opf, unsigned int num_regions, in dispatch_io() argument 391 BUG_ON(num_regions > DM_IO_MAX_REGIONS); in dispatch_io() 400 for (i = 0; i < num_regions; i++) { in dispatch_io() 426 static int sync_io(struct dm_io_client *client, unsigned int num_regions, in sync_io() argument 433 if (num_regions > 1 && !op_is_write(opf)) { in sync_io() 450 dispatch_io(opf, num_regions, where, dp, io, 1); in sync_io() 460 static int async_io(struct dm_io_client *client, unsigned int num_regions, in async_io() argument 466 if (num_regions > 1 && !op_is_write(opf)) { in async_io() 482 dispatch_io(opf, num_regions, where, dp, io, 0); in async_io() 523 int dm_io(struct dm_io_request *io_req, unsigned int num_regions, in dm_io() argument [all …]
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_devlink.c | 79 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-6.6.21/drivers/soc/qcom/ |
D | ocmem.c | 49 uint8_t num_regions; member 117 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem() 129 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem() 167 for (i = 0; i < ocmem->config->num_regions; i++) { in update_range() 375 ocmem->num_ports, ocmem->config->num_regions, in ocmem_dev_probe() 378 ocmem->regions = devm_kcalloc(dev, ocmem->config->num_regions, in ocmem_dev_probe() 385 for (i = 0; i < ocmem->config->num_regions; i++) { in ocmem_dev_probe() 396 if (i == (ocmem->config->num_regions - 1) && in ocmem_dev_probe() 430 .num_regions = 1, 435 .num_regions = 3,
|
D | smem.c | 287 unsigned num_regions; member 536 for (i = 0; i < smem->num_regions; i++) { in qcom_smem_get_global() 773 for (i = 0; i < __smem->num_regions; i++) { in qcom_smem_virt_to_phys() 1073 int num_regions; in qcom_smem_probe() local 1080 num_regions = 1; in qcom_smem_probe() 1082 num_regions++; in qcom_smem_probe() 1084 smem = devm_kzalloc(&pdev->dev, struct_size(smem, regions, num_regions), in qcom_smem_probe() 1090 smem->num_regions = num_regions; in qcom_smem_probe() 1106 if (num_regions > 1) { in qcom_smem_probe() 1117 for (i = 1; i < num_regions; i++) { in qcom_smem_probe()
|
/linux-6.6.21/drivers/media/platform/ti/omap3isp/ |
D | isphist.c | 86 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-6.6.21/drivers/vfio/pci/pds/ |
D | cmds.c | 388 u64 regions_dma, u8 *max_regions, u8 *num_regions) in pds_vfio_dirty_status_cmd() argument 418 *num_regions = comp.lm_dirty_status.num_regions; in pds_vfio_dirty_status_cmd() 423 *max_regions, *num_regions, "PDS_LM_DIRTY_BMP_TYPE_SEQ_ACK"); in pds_vfio_dirty_status_cmd() 429 u64 regions_dma, u8 num_regions) in pds_vfio_dirty_enable_cmd() argument 437 .num_regions = num_regions, in pds_vfio_dirty_enable_cmd() 467 if (err || comp.lm_dirty_status.num_regions != 0) { in pds_vfio_dirty_disable_cmd() 472 ERR_PTR(err), comp.lm_dirty_status.num_regions); in pds_vfio_dirty_disable_cmd()
|
D | cmds.h | 18 u8 *num_regions); 20 u64 regions_dma, u8 num_regions);
|
D | dirty.c | 42 u8 num_regions; in pds_vfio_print_guest_region_info() local 57 &num_regions); in pds_vfio_print_guest_region_info() 62 for (unsigned int i = 0; i < num_regions; i++) in pds_vfio_print_guest_region_info() 188 u8 max_regions = 0, num_regions; in pds_vfio_dirty_enable() local 203 &num_regions); in pds_vfio_dirty_enable() 208 } else if (num_regions) { in pds_vfio_dirty_enable() 211 num_regions); in pds_vfio_dirty_enable()
|
/linux-6.6.21/Documentation/admin-guide/device-mapper/ |
D | dm-io.rst | 30 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-6.6.21/drivers/vfio/platform/ |
D | vfio_platform_common.c | 183 vdev->num_regions = cnt; in vfio_platform_regions_init() 195 for (i = 0; i < vdev->num_regions; i++) in vfio_platform_regions_cleanup() 198 vdev->num_regions = 0; in vfio_platform_regions_cleanup() 297 info.num_regions = vdev->num_regions; in vfio_platform_ioctl() 314 if (info.index >= vdev->num_regions) in vfio_platform_ioctl() 448 if (index >= vdev->num_regions) in vfio_platform_read() 526 if (index >= vdev->num_regions) in vfio_platform_write() 574 if (index >= vdev->num_regions) in vfio_platform_mmap()
|
D | vfio_platform_private.h | 48 u32 num_regions; member
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/ |
D | i915_gem_create.c | 288 if (!args->num_regions) { in set_placements() 295 if (args->num_regions > ARRAY_SIZE(i915->mm.regions)) { in set_placements() 304 for (i = 0; i < args->num_regions; i++) { in set_placements() 340 ext_data->n_placements = args->num_regions; in set_placements() 341 for (i = 0; i < args->num_regions; i++) in set_placements()
|
/linux-6.6.21/drivers/gpu/drm/i915/gvt/ |
D | kvmgt.c | 540 (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() 799 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) { in intel_vgpu_rw() 828 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) in intel_vgpu_rw() [all …]
|
/linux-6.6.21/arch/powerpc/platforms/ps3/ |
D | device-init.c | 327 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()
|
D | repository.c | 591 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()
|
D | platform.h | 155 unsigned int dev_index, unsigned int *num_regions); 165 u64 *num_blocks, unsigned int *num_regions);
|
/linux-6.6.21/drivers/vfio/pci/ |
D | vfio_pci_core.c | 612 for (i = 0; i < vdev->num_regions; i++) in vfio_pci_core_disable() 615 vdev->num_regions = 0; in vfio_pci_core_disable() 907 (vdev->num_regions + 1) * sizeof(*region), in vfio_pci_core_register_dev_region() 913 vdev->region[vdev->num_regions].type = type; in vfio_pci_core_register_dev_region() 914 vdev->region[vdev->num_regions].subtype = subtype; in vfio_pci_core_register_dev_region() 915 vdev->region[vdev->num_regions].ops = ops; in vfio_pci_core_register_dev_region() 916 vdev->region[vdev->num_regions].size = size; in vfio_pci_core_register_dev_region() 917 vdev->region[vdev->num_regions].flags = flags; in vfio_pci_core_register_dev_region() 918 vdev->region[vdev->num_regions].data = data; in vfio_pci_core_register_dev_region() 920 vdev->num_regions++; in vfio_pci_core_register_dev_region() [all …]
|
/linux-6.6.21/include/linux/ |
D | dm-io.h | 82 int dm_io(struct dm_io_request *io_req, unsigned int num_regions,
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | ps3stor.h | 39 unsigned int num_regions; member
|
/linux-6.6.21/tools/testing/nvdimm/test/ |
D | ndtest.h | 106 u8 num_regions; member
|
/linux-6.6.21/drivers/fpga/ |
D | dfl-afu.h | 74 int num_regions; member
|
/linux-6.6.21/include/uapi/linux/ |
D | fpga-dfl.h | 82 __u32 num_regions; /* The number of supported regions */ member
|
/linux-6.6.21/sound/soc/qcom/qdsp6/ |
D | q6asm.c | 72 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()
|
D | audioreach.c | 1315 uint32_t num_regions, buf_sz, payload_size; in audioreach_map_memory_regions() local 1327 num_regions = 1; in audioreach_map_memory_regions() 1331 num_regions = periods; in audioreach_map_memory_regions() 1337 payload_size = sizeof(*cmd) + (sizeof(*mregions) * num_regions); in audioreach_map_memory_regions() 1347 cmd->num_regions = num_regions; in audioreach_map_memory_regions() 1355 for (i = 0; i < num_regions; i++) { in audioreach_map_memory_regions()
|