Lines Matching refs:tun16_to_cpu
209 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu() function
1066 …tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2 > tun16_to_cpu(tun, gso… in tun_get_user()
1067 …gso.hdr_len = cpu_to_tun16(tun, tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_off… in tun_get_user()
1069 if (tun16_to_cpu(tun, gso.hdr_len) > len) in tun_get_user()
1077 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN))) in tun_get_user()
1090 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user()
1101 if (tun16_to_cpu(tun, gso.hdr_len) > good_linear) in tun_get_user()
1104 linear = tun16_to_cpu(tun, gso.hdr_len); in tun_get_user()
1131 if (!skb_partial_csum_set(skb, tun16_to_cpu(tun, gso.csum_start), in tun_get_user()
1132 tun16_to_cpu(tun, gso.csum_offset))) { in tun_get_user()
1186 skb_shinfo(skb)->gso_size = tun16_to_cpu(tun, gso.gso_size); in tun_get_user()
1288 sinfo->gso_type, tun16_to_cpu(tun, gso.gso_size), in tun_put_user()
1289 tun16_to_cpu(tun, gso.hdr_len)); in tun_put_user()
1293 min((int)tun16_to_cpu(tun, gso.hdr_len), 64), true); in tun_put_user()