Lines Matching defs:pos

38  * @pos: Increased by bytes on return.
40 * @bytes: Bytes to copy and adjust off, pos and remaining.
50 loff_t *pos,
58 *pos += bytes;
70 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK, off = 0;
73 if (pos >= vdev->region[i].size || iswrite)
76 count = min_t(size_t, count, vdev->region[i].size - pos);
80 if (remaining && pos < OPREGION_VERSION) {
81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos);
84 opregionvbt->opregion + pos, &pos,
90 if (remaining && pos < OPREGION_VERSION + sizeof(__le16)) {
92 OPREGION_VERSION + sizeof(__le16) - pos);
102 (pos - OPREGION_VERSION),
103 &pos, &remaining, bytes))
108 if (remaining && pos < OPREGION_RVDA) {
109 size_t bytes = min_t(size_t, remaining, OPREGION_RVDA - pos);
112 opregionvbt->opregion + pos, &pos,
118 if (remaining && pos < OPREGION_RVDA + sizeof(__le64)) {
120 OPREGION_RVDA + sizeof(__le64) - pos);
125 (u8 *)&rvda + (pos - OPREGION_RVDA),
126 &pos, &remaining, bytes))
131 if (remaining && pos < OPREGION_SIZE) {
132 size_t bytes = min_t(size_t, remaining, OPREGION_SIZE - pos);
135 opregionvbt->opregion + pos, &pos,
142 copy_to_user(buf + off, opregionvbt->vbt_ex + (pos - OPREGION_SIZE),
287 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK;
291 if (pos >= vdev->region[i].size || iswrite)
294 size = count = min(count, (size_t)(vdev->region[i].size - pos));
296 if ((pos & 1) && size) {
299 ret = pci_user_read_config_byte(pdev, pos, &val);
306 pos++;
310 if ((pos & 3) && size > 2) {
314 ret = pci_user_read_config_word(pdev, pos, &val);
322 pos += 2;
330 ret = pci_user_read_config_dword(pdev, pos, &val);
338 pos += 4;
346 ret = pci_user_read_config_word(pdev, pos, &val);
354 pos += 2;
361 ret = pci_user_read_config_byte(pdev, pos, &val);
368 pos++;