Lines Matching defs:offset
11 * @off: offset of the capability
28 u32 offset, length;
34 pci_read_config_dword(dev, off + offsetof(struct virtio_pci_cap, offset),
35 &offset);
62 if (start + offset < offset) {
65 start, offset);
69 offset += start;
71 if (offset & (align - 1)) {
73 "virtio_pci: offset %u not aligned to %u\n",
74 offset, align);
84 if (minlen + offset < minlen ||
85 minlen + offset > pci_resource_len(dev, bar)) {
89 minlen, offset,
94 p = pci_iomap_range(dev, bar, offset, length);
98 length, offset, bar);
100 *pa = pci_resource_start(dev, bar) + offset;
112 * Returns offset of the capability, or 0.
160 offsetof(struct virtio_pci_cap, offset));
309 /* Read notify length and offset from config space. */
317 cap.offset),
665 * vp_modern_get_queue_notify_off - get notification offset for a virtqueue
669 * Returns the notification offset for a virtqueue
694 /* offset should not wrap */
698 "bad notification offset %u (x %u) "