Lines Matching defs:tun16_to_cpu
353 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val)
1788 tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2 > tun16_to_cpu(tun, gso.hdr_len))
1789 gso.hdr_len = cpu_to_tun16(tun, tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2);
1791 if (tun16_to_cpu(tun, gso.hdr_len) > len)
1799 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN)))
1812 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN;
1835 if (tun16_to_cpu(tun, gso.hdr_len) > good_linear)
1838 linear = tun16_to_cpu(tun, gso.hdr_len);
2137 sinfo->gso_type, tun16_to_cpu(tun, gso.gso_size),
2138 tun16_to_cpu(tun, gso.hdr_len));
2142 min((int)tun16_to_cpu(tun, gso.hdr_len), 64), true);