Lines Matching refs:virtio_access_is_big_endian
27 static inline bool virtio_access_is_big_endian(VirtIODevice *vdev) in virtio_access_is_big_endian() function
46 if (virtio_access_is_big_endian(vdev)) { in virtio_lduw_phys()
56 if (virtio_access_is_big_endian(vdev)) { in virtio_ldl_phys()
66 if (virtio_access_is_big_endian(vdev)) { in virtio_ldq_phys()
77 if (virtio_access_is_big_endian(vdev)) { in virtio_stw_phys()
89 if (virtio_access_is_big_endian(vdev)) { in virtio_stl_phys()
98 if (virtio_access_is_big_endian(vdev)) { in virtio_stw_p()
107 if (virtio_access_is_big_endian(vdev)) { in virtio_stl_p()
116 if (virtio_access_is_big_endian(vdev)) { in virtio_stq_p()
125 if (virtio_access_is_big_endian(vdev)) { in virtio_lduw_p()
134 if (virtio_access_is_big_endian(vdev)) { in virtio_ldl_p()
143 if (virtio_access_is_big_endian(vdev)) { in virtio_ldq_p()
153 return virtio_access_is_big_endian(vdev) ? s : bswap16(s); in virtio_tswap16()
155 return virtio_access_is_big_endian(vdev) ? bswap16(s) : s; in virtio_tswap16()
163 if (virtio_access_is_big_endian(vdev)) { in virtio_lduw_phys_cached()
173 if (virtio_access_is_big_endian(vdev)) { in virtio_ldl_phys_cached()
183 if (virtio_access_is_big_endian(vdev)) { in virtio_ldq_phys_cached()
193 if (virtio_access_is_big_endian(vdev)) { in virtio_stw_phys_cached()
204 if (virtio_access_is_big_endian(vdev)) { in virtio_stl_phys_cached()
219 return virtio_access_is_big_endian(vdev) ? s : bswap32(s); in virtio_tswap32()
221 return virtio_access_is_big_endian(vdev) ? bswap32(s) : s; in virtio_tswap32()
233 return virtio_access_is_big_endian(vdev) ? s : bswap64(s); in virtio_tswap64()
235 return virtio_access_is_big_endian(vdev) ? bswap64(s) : s; in virtio_tswap64()