Home
last modified time | relevance | path

Searched refs:__virtio16_to_cpu (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/include/linux/
H A Dvirtio_net.h97 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 Dvirtio_byteorder.h16 static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) in __virtio16_to_cpu() function
H A Dvringh.h264 return __virtio16_to_cpu(vringh_is_little_endian(vrh), val); in vringh16_to_cpu()
H A Dvirtio_config.h344 return __virtio16_to_cpu(virtio_is_little_endian(vdev), val); in virtio16_to_cpu()
/openbmc/linux/drivers/vdpa/pds/
H A Ddebugfs.c212 __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 Dvirtio_config.h71 return __virtio16_to_cpu(virtio_is_little_endian(vdev), val); in virtio16_to_cpu()
/openbmc/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.h93 return __virtio16_to_cpu(vdpasim_is_little_endian(vdpasim), val); in vdpasim16_to_cpu()
/openbmc/u-boot/include/
H A Dvirtio.h368 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 Dvhost.h318 return __virtio16_to_cpu(vhost_is_little_endian(vq), val); in vhost16_to_cpu()
/openbmc/linux/drivers/vdpa/
H A Dvdpa.c882 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 Daf_packet.c2606 (__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 Deni_vdpa.c451 num = 2 * __virtio16_to_cpu(virtio_legacy_is_little_endian(), in eni_vdpa_get_num_queues()
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxbf-tmfifo.c680 __virtio16_to_cpu(virtio_legacy_is_little_endian(), in mlxbf_tmfifo_rxtx_header()
/openbmc/linux/drivers/net/
H A Dtap.c90 return __virtio16_to_cpu(tap_is_little_endian(q), val); in tap16_to_cpu()
H A Dtun.c355 return __virtio16_to_cpu(tun_is_little_endian(tun), val); in tun16_to_cpu()
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c168 return __virtio16_to_cpu(mlx5_vdpa_is_little_endian(mvdev), val); in mlx5vdpa16_to_cpu()