Lines Matching +full:device +full:- +full:addr

1 /* SPDX-License-Identifier: GPL-2.0 */
9 * struct virtio_pci_modern_device - info for modern PCI virtio
10 * @pci_dev: Ptr to the PCI device struct
12 * @device: Device-specific data (non-legacy mode)
13 * @notify_base: Base of vq notifications (non-legacy mode)
16 * @notify_len: So we can sanity-check accesses
17 * @device_len: So we can sanity-check accesses
18 * @notify_map_cap: Capability for when we need to map notifications per-vq
20 * (non-legacy mode).
22 * @id: Device and vendor id
24 * verify the PCI device is a vendor's expected device rather
25 * than the standard virtio PCI device
26 * Returns the found device id or ERRNO
34 void __iomem *device; member
54 * Type-safe wrappers for io accesses.
58 * method, i.e. 32-bit accesses for 32-bit fields, 16-bit accesses
59 * for 16-bit fields and 8-bit accesses for 8-bit fields.
61 static inline u8 vp_ioread8(const u8 __iomem *addr) in vp_ioread8() argument
63 return ioread8(addr); in vp_ioread8()
65 static inline u16 vp_ioread16 (const __le16 __iomem *addr) in vp_ioread16() argument
67 return ioread16(addr); in vp_ioread16()
70 static inline u32 vp_ioread32(const __le32 __iomem *addr) in vp_ioread32() argument
72 return ioread32(addr); in vp_ioread32()
75 static inline void vp_iowrite8(u8 value, u8 __iomem *addr) in vp_iowrite8() argument
77 iowrite8(value, addr); in vp_iowrite8()
80 static inline void vp_iowrite16(u16 value, __le16 __iomem *addr) in vp_iowrite16() argument
82 iowrite16(value, addr); in vp_iowrite16()
85 static inline void vp_iowrite32(u32 value, __le32 __iomem *addr) in vp_iowrite32() argument
87 iowrite32(value, addr); in vp_iowrite32()