Lines Matching defs:buf
98 void __iomem *io, char __user *buf,
119 if (copy_from_user(&val, buf, 4))
132 if (copy_to_user(buf, &val, 4))
141 if (copy_from_user(&val, buf, 2))
154 if (copy_to_user(buf, &val, 2))
163 if (copy_from_user(&val, buf, 1))
176 if (copy_to_user(buf, &val, 1))
189 if (copy_to_user(buf + i, &val, 1))
197 buf += filled;
227 ssize_t vfio_pci_bar_rw(struct vfio_pci_core_device *vdev, char __user *buf,
279 done = do_io_rw(vdev, res->flags & IORESOURCE_MEM, io, buf, pos,
292 ssize_t vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, char __user *buf,
348 done = do_io_rw(vdev, false, iomem, buf, off, count, 0, 0, iswrite);