• Home
  • Raw
  • Download

Lines Matching refs:count

95 module_param_named(count, max_mbytes, int, 0444);
306 char *buf, u32 count) in handle_pci_cfg_write() argument
334 char *buf, u32 count) in handle_mmio_write() argument
344 if (count != 2) in handle_mmio_write()
358 __func__, offset, count); in handle_mmio_write()
364 char *buf, u32 count) in handle_mmio_read() argument
376 memset(buf, 0, count); in handle_mmio_read()
379 memcpy(buf, mdev_state->edid_blob + offset, count); in handle_mmio_read()
382 if (count != 2) in handle_mmio_read()
394 __func__, offset, count); in handle_mmio_read()
395 memset(buf, 0, count); in handle_mmio_read()
401 char *buf, u32 count, bool is_write) in handle_edid_regs() argument
405 if (offset + count > sizeof(mdev_state->edid_regs)) in handle_edid_regs()
407 if (count != 4) in handle_edid_regs()
416 memcpy(regs + offset, buf, count); in handle_edid_regs()
423 memcpy(buf, regs + offset, count); in handle_edid_regs()
428 char *buf, u32 count, bool is_write) in handle_edid_blob() argument
430 if (offset + count > mdev_state->edid_regs.edid_max_size) in handle_edid_blob()
433 memcpy(mdev_state->edid_blob + offset, buf, count); in handle_edid_blob()
435 memcpy(buf, mdev_state->edid_blob + offset, count); in handle_edid_blob()
438 static ssize_t mdev_access(struct mdev_device *mdev, char *buf, size_t count, in mdev_access() argument
452 handle_pci_cfg_write(mdev_state, pos, buf, count); in mdev_access()
454 memcpy(buf, (mdev_state->vconfig + pos), count); in mdev_access()
457 pos + count <= (MBOCHS_MMIO_BAR_OFFSET + in mdev_access()
461 handle_mmio_write(mdev_state, pos, buf, count); in mdev_access()
463 handle_mmio_read(mdev_state, pos, buf, count); in mdev_access()
466 pos + count <= (MBOCHS_EDID_OFFSET + in mdev_access()
470 handle_edid_regs(mdev_state, pos, buf, count, is_write); in mdev_access()
473 handle_edid_blob(mdev_state, pos, buf, count, is_write); in mdev_access()
477 pos + count <= in mdev_access()
484 memcpy(map + poff, buf, count); in mdev_access()
486 memcpy(buf, map + poff, count); in mdev_access()
497 ret = count; in mdev_access()
585 size_t count, loff_t *ppos) in mbochs_read() argument
590 while (count) { in mbochs_read()
593 if (count >= 4 && !(*ppos % 4)) { in mbochs_read()
605 } else if (count >= 2 && !(*ppos % 2)) { in mbochs_read()
631 count -= filled; in mbochs_read()
644 size_t count, loff_t *ppos) in mbochs_write() argument
649 while (count) { in mbochs_write()
652 if (count >= 4 && !(*ppos % 4)) { in mbochs_write()
664 } else if (count >= 2 && !(*ppos % 2)) { in mbochs_write()
689 count -= filled; in mbochs_write()
734 int i, count = 0; in mbochs_put_pages() local
743 count++; in mbochs_put_pages()
745 dev_dbg(dev, "%s: %d pages released\n", __func__, count); in mbochs_put_pages()
1079 irq_info->count = 0; in mbochs_get_irq_info()
1240 minsz = offsetofend(struct vfio_irq_info, count); in mbochs_ioctl()
1378 int count = (max_mbytes - mbochs_used_mbytes) / type->mbytes; in available_instances_show() local
1380 return sprintf(buf, "%d\n", count); in available_instances_show()