/openbmc/linux/include/linux/ |
H A D | virtio_net.h | 97 u32 start = __virtio16_to_cpu(little_endian, hdr->csum_start); in virtio_net_hdr_to_skb() 98 u32 off = __virtio16_to_cpu(little_endian, hdr->csum_offset); in virtio_net_hdr_to_skb() 157 u16 gso_size = __virtio16_to_cpu(little_endian, hdr->gso_size); in virtio_net_hdr_to_skb()
|
H A D | virtio_byteorder.h | 16 static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) in __virtio16_to_cpu() function
|
H A D | vringh.h | 264 return __virtio16_to_cpu(vringh_is_little_endian(vrh), val); in vringh16_to_cpu()
|
H A D | virtio_config.h | 344 return __virtio16_to_cpu(virtio_is_little_endian(vdev), val); in virtio16_to_cpu()
|
/openbmc/linux/drivers/vdpa/pds/ |
H A D | debugfs.c | 212 __virtio16_to_cpu(true, vc.max_virtqueue_pairs)); in config_show() 213 seq_printf(seq, "mtu: %d\n", __virtio16_to_cpu(true, vc.mtu)); in config_show() 222 __virtio16_to_cpu(true, vc.status)); in config_show()
|
/openbmc/linux/tools/virtio/linux/ |
H A D | virtio_config.h | 71 return __virtio16_to_cpu(virtio_is_little_endian(vdev), val); in virtio16_to_cpu()
|
/openbmc/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim.h | 93 return __virtio16_to_cpu(vdpasim_is_little_endian(vdpasim), val); in vdpasim16_to_cpu()
|
/openbmc/u-boot/include/ |
H A D | virtio.h | 368 static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) in __virtio16_to_cpu() function 516 return __virtio16_to_cpu(virtio_is_little_endian(vdev), val); in virtio16_to_cpu()
|
/openbmc/linux/drivers/vhost/ |
H A D | vhost.h | 318 return __virtio16_to_cpu(vhost_is_little_endian(vq), val); in vhost16_to_cpu()
|
/openbmc/linux/drivers/vdpa/ |
H A D | vdpa.c | 882 val_u16 = __virtio16_to_cpu(true, config->max_virtqueue_pairs); in vdpa_dev_net_mq_config_fill() 895 val_u16 = __virtio16_to_cpu(true, config->mtu); in vdpa_dev_net_mtu_config_fill() 918 val_u16 = __virtio16_to_cpu(true, config->status); in vdpa_dev_net_status_config_fill()
|
/openbmc/linux/net/packet/ |
H A D | af_packet.c | 2606 (__virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse() 2607 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2 > in __packet_snd_vnet_parse() 2608 __virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len))) in __packet_snd_vnet_parse() 2610 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse() 2611 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2); in __packet_snd_vnet_parse() 2613 if (__virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len) > len) in __packet_snd_vnet_parse() 2897 copylen = __virtio16_to_cpu(vio_le(), in tpacket_snd() 3093 linear = __virtio16_to_cpu(vio_le(), vnet_hdr.hdr_len); in packet_snd()
|
/openbmc/linux/drivers/vdpa/alibaba/ |
H A D | eni_vdpa.c | 451 num = 2 * __virtio16_to_cpu(virtio_legacy_is_little_endian(), in eni_vdpa_get_num_queues()
|
/openbmc/linux/drivers/platform/mellanox/ |
H A D | mlxbf-tmfifo.c | 680 __virtio16_to_cpu(virtio_legacy_is_little_endian(), in mlxbf_tmfifo_rxtx_header()
|
/openbmc/linux/drivers/net/ |
H A D | tap.c | 90 return __virtio16_to_cpu(tap_is_little_endian(q), val); in tap16_to_cpu()
|
H A D | tun.c | 355 return __virtio16_to_cpu(tun_is_little_endian(tun), val); in tun16_to_cpu()
|
/openbmc/linux/drivers/vdpa/mlx5/net/ |
H A D | mlx5_vnet.c | 168 return __virtio16_to_cpu(mlx5_vdpa_is_little_endian(mvdev), val); in mlx5vdpa16_to_cpu()
|