Lines Matching full:remaining
39 * @remaining: Decreased by bytes on return.
40 * @bytes: Bytes to copy and adjust off, pos and remaining.
51 size_t *remaining, in igd_opregion_shift_copy() argument
59 *remaining -= bytes; in igd_opregion_shift_copy()
71 size_t remaining; in vfio_pci_igd_rw() local
77 remaining = count; in vfio_pci_igd_rw()
80 if (remaining && pos < OPREGION_VERSION) { in vfio_pci_igd_rw()
81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); in vfio_pci_igd_rw()
85 &remaining, bytes)) in vfio_pci_igd_rw()
90 if (remaining && pos < OPREGION_VERSION + sizeof(__le16)) { in vfio_pci_igd_rw()
91 size_t bytes = min_t(size_t, remaining, in vfio_pci_igd_rw()
103 &pos, &remaining, bytes)) in vfio_pci_igd_rw()
108 if (remaining && pos < OPREGION_RVDA) { in vfio_pci_igd_rw()
109 size_t bytes = min_t(size_t, remaining, OPREGION_RVDA - pos); in vfio_pci_igd_rw()
113 &remaining, bytes)) in vfio_pci_igd_rw()
118 if (remaining && pos < OPREGION_RVDA + sizeof(__le64)) { in vfio_pci_igd_rw()
119 size_t bytes = min_t(size_t, remaining, in vfio_pci_igd_rw()
126 &pos, &remaining, bytes)) in vfio_pci_igd_rw()
131 if (remaining && pos < OPREGION_SIZE) { in vfio_pci_igd_rw()
132 size_t bytes = min_t(size_t, remaining, OPREGION_SIZE - pos); in vfio_pci_igd_rw()
136 &remaining, bytes)) in vfio_pci_igd_rw()
141 if (remaining && in vfio_pci_igd_rw()
143 remaining)) in vfio_pci_igd_rw()