Lines Matching refs:count
114 u8 count; member
159 static void dump_buffer(u8 *buf, uint32_t count) in dump_buffer() argument
165 for (i = 0; i < count; i++) { in dump_buffer()
238 u8 *buf, u32 count) in handle_pci_cfg_write() argument
286 offset, count); in handle_pci_cfg_write()
292 u16 offset, u8 *buf, u32 count) in handle_bar_write() argument
308 if (mdev_state->s[index].rxtx.count < in handle_bar_write()
312 mdev_state->s[index].rxtx.count++; in handle_bar_write()
322 (mdev_state->s[index].rxtx.count == in handle_bar_write()
376 mdev_state->s[index].rxtx.count = 0; in handle_bar_write()
460 u16 offset, u8 *buf, u32 count) in handle_bar_read() argument
477 mdev_state->s[index].rxtx.count--; in handle_bar_read()
518 (mdev_state->s[index].rxtx.count >= in handle_bar_read()
579 if (mdev_state->s[index].rxtx.count < in handle_bar_read()
634 static ssize_t mdev_access(struct mdev_device *mdev, u8 *buf, size_t count, in mdev_access() argument
663 dump_buffer(buf, count); in mdev_access()
664 handle_pci_cfg_write(mdev_state, offset, buf, count); in mdev_access()
666 memcpy(buf, (mdev_state->vconfig + offset), count); in mdev_access()
667 dump_buffer(buf, count); in mdev_access()
677 dump_buffer(buf, count); in mdev_access()
684 handle_bar_write(index, mdev_state, offset, buf, count); in mdev_access()
686 handle_bar_read(index, mdev_state, offset, buf, count); in mdev_access()
687 dump_buffer(buf, count); in mdev_access()
702 ret = count; in mdev_access()
800 size_t count, loff_t *ppos) in mtty_read() argument
805 while (count) { in mtty_read()
808 if (count >= 4 && !(*ppos % 4)) { in mtty_read()
820 } else if (count >= 2 && !(*ppos % 2)) { in mtty_read()
846 count -= filled; in mtty_read()
859 size_t count, loff_t *ppos) in mtty_write() argument
864 while (count) { in mtty_write()
867 if (count >= 4 && !(*ppos % 4)) { in mtty_write()
879 } else if (count >= 2 && !(*ppos % 2)) { in mtty_write()
904 count -= filled; in mtty_write()
917 unsigned int count, void *data) in mtty_set_irqs() argument
1106 irq_info->count = 1; in mtty_get_irq_info()
1194 minsz = offsetofend(struct vfio_irq_info, count); in mtty_ioctl()
1218 minsz = offsetofend(struct vfio_irq_set, count); in mtty_ioctl()
1238 hdr.count, data); in mtty_ioctl()