Lines Matching refs:ppos

318 			    char __user *buf, size_t count, loff_t *ppos)
323 u64 pos = *ppos & VFIO_PCI_OFFSET_MASK;
331 ret = vfio_pci_core_read(core_vdev, buf, count, ppos);
359 *ppos -= count;
369 const char __user *buf, size_t count, loff_t *ppos)
374 u64 pos = *ppos & VFIO_PCI_OFFSET_MASK;
393 *ppos += copy_count;
397 return vfio_pci_core_write(core_vdev, buf, count, ppos);
448 char __user *buf, size_t mem_count, loff_t *ppos)
450 unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
451 u64 offset = *ppos & VFIO_PCI_OFFSET_MASK;
499 char __user *buf, size_t count, loff_t *ppos)
501 u64 offset = *ppos & VFIO_PCI_OFFSET_MASK;
502 unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
527 ret = nvgrace_gpu_map_and_read(nvdev, buf, mem_count, ppos);
542 *ppos += count;
548 char __user *buf, size_t count, loff_t *ppos)
550 unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
556 return nvgrace_gpu_read_mem(nvdev, buf, count, ppos);
559 return nvgrace_gpu_read_config_emu(core_vdev, buf, count, ppos);
561 return vfio_pci_core_read(core_vdev, buf, count, ppos);
571 loff_t *ppos)
573 unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
574 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK;
616 size_t count, loff_t *ppos, const char __user *buf)
618 unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
619 u64 offset = *ppos & VFIO_PCI_OFFSET_MASK;
647 ret = nvgrace_gpu_map_and_write(nvdev, buf, mem_count, ppos);
652 *ppos += count;
658 const char __user *buf, size_t count, loff_t *ppos)
663 unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
666 return nvgrace_gpu_write_mem(nvdev, count, ppos, buf);
669 return nvgrace_gpu_write_config_emu(core_vdev, buf, count, ppos);
671 return vfio_pci_core_write(core_vdev, buf, count, ppos);