• Home
  • Raw
  • Download

Lines Matching refs:count

115 	u8 count;  member
202 static void dump_buffer(u8 *buf, uint32_t count) in dump_buffer() argument
208 for (i = 0; i < count; i++) { in dump_buffer()
311 u8 *buf, u32 count) in handle_pci_cfg_write() argument
359 offset, count); in handle_pci_cfg_write()
365 u16 offset, u8 *buf, u32 count) in handle_bar_write() argument
381 if (mdev_state->s[index].rxtx.count < in handle_bar_write()
385 mdev_state->s[index].rxtx.count++; in handle_bar_write()
395 (mdev_state->s[index].rxtx.count == in handle_bar_write()
449 mdev_state->s[index].rxtx.count = 0; in handle_bar_write()
533 u16 offset, u8 *buf, u32 count) in handle_bar_read() argument
550 mdev_state->s[index].rxtx.count--; in handle_bar_read()
591 (mdev_state->s[index].rxtx.count >= in handle_bar_read()
652 if (mdev_state->s[index].rxtx.count < in handle_bar_read()
707 static ssize_t mdev_access(struct mdev_state *mdev_state, u8 *buf, size_t count, in mdev_access() argument
729 dump_buffer(buf, count); in mdev_access()
730 handle_pci_cfg_write(mdev_state, offset, buf, count); in mdev_access()
732 memcpy(buf, (mdev_state->vconfig + offset), count); in mdev_access()
733 dump_buffer(buf, count); in mdev_access()
743 dump_buffer(buf, count); in mdev_access()
750 handle_bar_write(index, mdev_state, offset, buf, count); in mdev_access()
752 handle_bar_read(index, mdev_state, offset, buf, count); in mdev_access()
753 dump_buffer(buf, count); in mdev_access()
768 ret = count; in mdev_access()
1418 size_t count, loff_t *ppos) in mtty_read() argument
1425 while (count) { in mtty_read()
1428 if (count >= 4 && !(*ppos % 4)) { in mtty_read()
1440 } else if (count >= 2 && !(*ppos % 2)) { in mtty_read()
1466 count -= filled; in mtty_read()
1479 size_t count, loff_t *ppos) in mtty_write() argument
1486 while (count) { in mtty_write()
1489 if (count >= 4 && !(*ppos % 4)) { in mtty_write()
1501 } else if (count >= 2 && !(*ppos % 2)) { in mtty_write()
1526 count -= filled; in mtty_write()
1558 unsigned int count, void *data) in mtty_set_irqs() argument
1567 if (!is_intx(mdev_state) || start != 0 || count != 1) { in mtty_set_irqs()
1584 if (!is_intx(mdev_state) || start != 0 || count != 1) { in mtty_set_irqs()
1601 if (is_intx(mdev_state) && !count && in mtty_set_irqs()
1608 start != 0 || count != 1) { in mtty_set_irqs()
1655 if (is_msi(mdev_state) && !count && in mtty_set_irqs()
1662 start != 0 || count != 1) { in mtty_set_irqs()
1768 irq_info->count = 1; in mtty_get_irq_info()
1849 minsz = offsetofend(struct vfio_irq_info, count); in mtty_ioctl()
1873 minsz = offsetofend(struct vfio_irq_set, count); in mtty_ioctl()
1893 hdr.count, data); in mtty_ioctl()