Lines Matching refs:buf
149 char *buf, u32 count) in handle_pci_cfg_write() argument
156 cfg_addr = *(u32 *)buf; in handle_pci_cfg_write()
173 static ssize_t mdev_access(struct mdev_state *mdev_state, char *buf, in mdev_access() argument
182 handle_pci_cfg_write(mdev_state, pos, buf, count); in mdev_access()
184 memcpy(buf, (mdev_state->vconfig + pos), count); in mdev_access()
191 memcpy(mdev_state->memblk, buf, count); in mdev_access()
193 memcpy(buf, mdev_state->memblk, count); in mdev_access()
301 static ssize_t mdpy_read(struct vfio_device *vdev, char __user *buf, in mdpy_read() argument
320 if (copy_to_user(buf, &val, sizeof(val))) in mdpy_read()
332 if (copy_to_user(buf, &val, sizeof(val))) in mdpy_read()
344 if (copy_to_user(buf, &val, sizeof(val))) in mdpy_read()
353 buf += filled; in mdpy_read()
362 static ssize_t mdpy_write(struct vfio_device *vdev, const char __user *buf, in mdpy_write() argument
376 if (copy_from_user(&val, buf, sizeof(val))) in mdpy_write()
388 if (copy_from_user(&val, buf, sizeof(val))) in mdpy_write()
400 if (copy_from_user(&val, buf, sizeof(val))) in mdpy_write()
413 buf += filled; in mdpy_write()
629 char *buf) in resolution_show() argument
633 return sprintf(buf, "%dx%d\n", in resolution_show()
654 static ssize_t mdpy_show_description(struct mdev_type *mtype, char *buf) in mdpy_show_description() argument
658 return sprintf(buf, "virtual display, %dx%d framebuffer\n", in mdpy_show_description()