• Home
  • Raw
  • Download

Lines Matching refs:count

114 	u8 count;  member
161 static void dump_buffer(u8 *buf, uint32_t count) in dump_buffer() argument
167 for (i = 0; i < count; i++) { in dump_buffer()
240 u8 *buf, u32 count) in handle_pci_cfg_write() argument
288 offset, count); in handle_pci_cfg_write()
294 u16 offset, u8 *buf, u32 count) in handle_bar_write() argument
310 if (mdev_state->s[index].rxtx.count < in handle_bar_write()
314 mdev_state->s[index].rxtx.count++; in handle_bar_write()
324 (mdev_state->s[index].rxtx.count == in handle_bar_write()
378 mdev_state->s[index].rxtx.count = 0; in handle_bar_write()
462 u16 offset, u8 *buf, u32 count) in handle_bar_read() argument
479 mdev_state->s[index].rxtx.count--; in handle_bar_read()
520 (mdev_state->s[index].rxtx.count >= in handle_bar_read()
581 if (mdev_state->s[index].rxtx.count < in handle_bar_read()
636 static ssize_t mdev_access(struct mdev_state *mdev_state, u8 *buf, size_t count, in mdev_access() argument
658 dump_buffer(buf, count); in mdev_access()
659 handle_pci_cfg_write(mdev_state, offset, buf, count); in mdev_access()
661 memcpy(buf, (mdev_state->vconfig + offset), count); in mdev_access()
662 dump_buffer(buf, count); in mdev_access()
672 dump_buffer(buf, count); in mdev_access()
679 handle_bar_write(index, mdev_state, offset, buf, count); in mdev_access()
681 handle_bar_read(index, mdev_state, offset, buf, count); in mdev_access()
682 dump_buffer(buf, count); in mdev_access()
697 ret = count; in mdev_access()
781 size_t count, loff_t *ppos) in mtty_read() argument
788 while (count) { in mtty_read()
791 if (count >= 4 && !(*ppos % 4)) { in mtty_read()
803 } else if (count >= 2 && !(*ppos % 2)) { in mtty_read()
829 count -= filled; in mtty_read()
842 size_t count, loff_t *ppos) in mtty_write() argument
849 while (count) { in mtty_write()
852 if (count >= 4 && !(*ppos % 4)) { in mtty_write()
864 } else if (count >= 2 && !(*ppos % 2)) { in mtty_write()
889 count -= filled; in mtty_write()
902 unsigned int count, void *data) in mtty_set_irqs() argument
1074 irq_info->count = 1; in mtty_get_irq_info()
1155 minsz = offsetofend(struct vfio_irq_info, count); in mtty_ioctl()
1179 minsz = offsetofend(struct vfio_irq_set, count); in mtty_ioctl()
1199 hdr.count, data); in mtty_ioctl()