Home
last modified time | relevance | path

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

12

/linux/drivers/s390/cio/
H A Dvfio_ccw_ops.c239 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 …]
H A Dvfio_ccw_private.h116 int num_regions; member
/linux/drivers/net/dsa/sja1105/
H A 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/drivers/md/
H A Ddm-io.c385 static void dispatch_io(blk_opf_t opf, unsigned int num_regions, in dispatch_io() argument
392 BUG_ON(num_regions > DM_IO_MAX_REGIONS); in dispatch_io()
398 for (i = 0; i < num_regions; i++) { in dispatch_io()
411 static void async_io(struct dm_io_client *client, unsigned int num_regions, in async_io() argument
428 dispatch_io(opf, num_regions, where, dp, io, ioprio); in async_io()
444 static int sync_io(struct dm_io_client *client, unsigned int num_regions, in sync_io() argument
452 async_io(client, num_regions, where, opf | REQ_SYNC, dp, in sync_io()
500 int dm_io(struct dm_io_request *io_req, unsigned int num_regions, in dm_io() argument
507 if (num_regions > 1 && !op_is_write(io_req->bi_opf)) { in dm_io()
517 return sync_io(io_req->client, num_regions, where, in dm_io()
[all …]
/linux/drivers/soc/qcom/
H A Docmem.c50 uint8_t num_regions; member
118 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
130 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
168 for (i = 0; i < ocmem->config->num_regions; i++) { in update_range()
370 ocmem->num_ports, ocmem->config->num_regions, in ocmem_dev_probe()
373 ocmem->regions = devm_kcalloc(dev, ocmem->config->num_regions, in ocmem_dev_probe()
380 for (i = 0; i < ocmem->config->num_regions; i++) { in ocmem_dev_probe()
391 if (i == (ocmem->config->num_regions - 1) && in ocmem_dev_probe()
423 .num_regions = 1,
428 .num_regions = 3,
/linux/drivers/vfio/pci/pds/
H A Dcmds.c388 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()
H A Dcmds.h18 u8 *num_regions);
20 u64 regions_dma, u8 num_regions);
H A Ddirty.h22 u8 num_regions; member
/linux/drivers/media/platform/ti/omap3isp/
H A 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/Documentation/admin-guide/device-mapper/
H A 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/drivers/vfio/platform/
H A Dvfio_platform_common.c183 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()
H A Dvfio_platform_private.h48 u32 num_regions; member
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_create.c288 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/drivers/gpu/drm/i915/gvt/
H A Dkvmgt.c548 (vgpu->num_regions + 1) * sizeof(*region), in intel_vgpu_register_reg()
554 vgpu->region[vgpu->num_regions].type = type; in intel_vgpu_register_reg()
555 vgpu->region[vgpu->num_regions].subtype = subtype; in intel_vgpu_register_reg()
556 vgpu->region[vgpu->num_regions].ops = ops; in intel_vgpu_register_reg()
557 vgpu->region[vgpu->num_regions].size = size; in intel_vgpu_register_reg()
558 vgpu->region[vgpu->num_regions].flags = flags; in intel_vgpu_register_reg()
559 vgpu->region[vgpu->num_regions].data = data; in intel_vgpu_register_reg()
560 vgpu->num_regions++; in intel_vgpu_register_reg()
807 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) { in intel_vgpu_rw()
836 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) in intel_vgpu_rw()
[all …]
/linux/drivers/vfio/pci/
H A Dvfio_pci_core.c608 for (i = 0; i < vdev->num_regions; i++) in vfio_pci_core_disable()
611 vdev->num_regions = 0; in vfio_pci_core_disable()
901 (vdev->num_regions + 1) * sizeof(*region), in vfio_pci_core_register_dev_region()
907 vdev->region[vdev->num_regions].type = type; in vfio_pci_core_register_dev_region()
908 vdev->region[vdev->num_regions].subtype = subtype; in vfio_pci_core_register_dev_region()
909 vdev->region[vdev->num_regions].ops = ops; in vfio_pci_core_register_dev_region()
910 vdev->region[vdev->num_regions].size = size; in vfio_pci_core_register_dev_region()
911 vdev->region[vdev->num_regions].flags = flags; in vfio_pci_core_register_dev_region()
912 vdev->region[vdev->num_regions].data = data; in vfio_pci_core_register_dev_region()
914 vdev->num_regions++; in vfio_pci_core_register_dev_region()
[all …]
/linux/arch/powerpc/platforms/ps3/
H A Dplatform.h155 unsigned int dev_index, unsigned int *num_regions);
165 u64 *num_blocks, unsigned int *num_regions);
/linux/include/linux/
H A Ddm-io.h82 int dm_io(struct dm_io_request *io_req, unsigned int num_regions,
/linux/arch/powerpc/include/asm/
H A Dps3stor.h39 unsigned int num_regions; member
/linux/tools/testing/nvdimm/test/
H A Dndtest.h75 u8 num_regions; member
/linux/sound/soc/qcom/qdsp6/
H A Dq6asm.c73 u16 num_regions; member
434 uint32_t num_regions, buf_sz; in __q6asm_memory_map_regions() local
438 num_regions = 1; in __q6asm_memory_map_regions()
442 num_regions = periods; in __q6asm_memory_map_regions()
449 (sizeof(*mregions) * num_regions); in __q6asm_memory_map_regions()
467 cmd->num_regions = num_regions; in __q6asm_memory_map_regions()
473 for (i = 0; i < num_regions; i++) { in __q6asm_memory_map_regions()
H A Daudioreach.c1306 uint32_t num_regions, buf_sz, payload_size; in audioreach_map_memory_regions() local
1318 num_regions = 1; in audioreach_map_memory_regions()
1322 num_regions = periods; in audioreach_map_memory_regions()
1328 payload_size = sizeof(*cmd) + (sizeof(*mregions) * num_regions); in audioreach_map_memory_regions()
1338 cmd->num_regions = num_regions; in audioreach_map_memory_regions()
1346 for (i = 0; i < num_regions; i++) { in audioreach_map_memory_regions()
/linux/include/uapi/linux/
H A Dfpga-dfl.h82 __u32 num_regions; /* The number of supported regions */ member
/linux/sound/soc/codecs/
H A Dwm_adsp.c237 int num_regions; member
250 .num_regions = ARRAY_SIZE(default_regions),
268 .num_regions = ARRAY_SIZE(default_regions),
1433 buf->regions = kcalloc(caps->num_regions, sizeof(*buf->regions), in wm_adsp_buffer_populate()
1438 for (i = 0; i < caps->num_regions; ++i) { in wm_adsp_buffer_populate()
1751 int last_region = wm_adsp_fw[buf->dsp->fw].caps->num_regions - 1; in wm_adsp_buffer_size()
1931 for (i = 0; i < wm_adsp_fw[buf->dsp->fw].caps->num_regions; ++i) in wm_adsp_buffer_capture_block()
1935 if (i == wm_adsp_fw[buf->dsp->fw].caps->num_regions) in wm_adsp_buffer_capture_block()
/linux/drivers/fpga/
H A Ddfl-afu-region.c82 afu->num_regions++; in afu_mmio_region_add()
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_dmabuf.c221 unsigned int num_regions) in igt_dmabuf_import_same_driver() argument
234 regions, num_regions); in igt_dmabuf_import_same_driver()

12