Lines Matching refs:count

95 module_param_named(count, max_mbytes, int, 0444);
309 char *buf, u32 count) in handle_pci_cfg_write() argument
337 char *buf, u32 count) in handle_mmio_write() argument
347 if (count != 2) in handle_mmio_write()
361 __func__, offset, count); in handle_mmio_write()
367 char *buf, u32 count) in handle_mmio_read() argument
379 memset(buf, 0, count); in handle_mmio_read()
382 memcpy(buf, mdev_state->edid_blob + offset, count); in handle_mmio_read()
385 if (count != 2) in handle_mmio_read()
397 __func__, offset, count); in handle_mmio_read()
398 memset(buf, 0, count); in handle_mmio_read()
404 char *buf, u32 count, bool is_write) in handle_edid_regs() argument
408 if (offset + count > sizeof(mdev_state->edid_regs)) in handle_edid_regs()
410 if (count != 4) in handle_edid_regs()
419 memcpy(regs + offset, buf, count); in handle_edid_regs()
426 memcpy(buf, regs + offset, count); in handle_edid_regs()
431 char *buf, u32 count, bool is_write) in handle_edid_blob() argument
433 if (offset + count > mdev_state->edid_regs.edid_max_size) in handle_edid_blob()
436 memcpy(mdev_state->edid_blob + offset, buf, count); in handle_edid_blob()
438 memcpy(buf, mdev_state->edid_blob + offset, count); in handle_edid_blob()
442 size_t count, loff_t pos, bool is_write) in mdev_access() argument
453 handle_pci_cfg_write(mdev_state, pos, buf, count); in mdev_access()
455 memcpy(buf, (mdev_state->vconfig + pos), count); in mdev_access()
458 pos + count <= (MBOCHS_MMIO_BAR_OFFSET + in mdev_access()
462 handle_mmio_write(mdev_state, pos, buf, count); in mdev_access()
464 handle_mmio_read(mdev_state, pos, buf, count); in mdev_access()
467 pos + count <= (MBOCHS_EDID_OFFSET + in mdev_access()
471 handle_edid_regs(mdev_state, pos, buf, count, is_write); in mdev_access()
474 handle_edid_blob(mdev_state, pos, buf, count, is_write); in mdev_access()
478 pos + count <= in mdev_access()
485 memcpy(map + poff, buf, count); in mdev_access()
487 memcpy(buf, map + poff, count); in mdev_access()
498 ret = count; in mdev_access()
611 size_t count, loff_t *ppos) in mbochs_read() argument
618 while (count) { in mbochs_read()
621 if (count >= 4 && !(*ppos % 4)) { in mbochs_read()
633 } else if (count >= 2 && !(*ppos % 2)) { in mbochs_read()
659 count -= filled; in mbochs_read()
672 size_t count, loff_t *ppos) in mbochs_write() argument
679 while (count) { in mbochs_write()
682 if (count >= 4 && !(*ppos % 4)) { in mbochs_write()
694 } else if (count >= 2 && !(*ppos % 2)) { in mbochs_write()
719 count -= filled; in mbochs_write()
764 int i, count = 0; in mbochs_put_pages() local
773 count++; in mbochs_put_pages()
775 dev_dbg(dev, "%s: %d pages released\n", __func__, count); in mbochs_put_pages()
1089 irq_info->count = 0; in mbochs_get_irq_info()
1247 minsz = offsetofend(struct vfio_irq_info, count); in mbochs_ioctl()