Lines Matching refs:p
16 void ila_init_saved_csum(struct ila_params *p) in ila_init_saved_csum() argument
18 if (!p->locator_match.v64) in ila_init_saved_csum()
21 p->csum_diff = compute_csum_diff8( in ila_init_saved_csum()
22 (__be32 *)&p->locator, in ila_init_saved_csum()
23 (__be32 *)&p->locator_match); in ila_init_saved_csum()
26 static __wsum get_csum_diff_iaddr(struct ila_addr *iaddr, struct ila_params *p) in get_csum_diff_iaddr() argument
28 if (p->locator_match.v64) in get_csum_diff_iaddr()
29 return p->csum_diff; in get_csum_diff_iaddr()
31 return compute_csum_diff8((__be32 *)&p->locator, in get_csum_diff_iaddr()
35 static __wsum get_csum_diff(struct ipv6hdr *ip6h, struct ila_params *p) in get_csum_diff() argument
37 return get_csum_diff_iaddr(ila_a2i(&ip6h->daddr), p); in get_csum_diff()
41 struct ila_params *p) in ila_csum_do_neutral_fmt() argument
46 diff = get_csum_diff_iaddr(iaddr, p); in ila_csum_do_neutral_fmt()
64 struct ila_params *p) in ila_csum_do_neutral_nofmt() argument
69 diff = get_csum_diff_iaddr(iaddr, p); in ila_csum_do_neutral_nofmt()
75 struct ila_params *p) in ila_csum_adjust_transport() argument
87 diff = get_csum_diff(ip6h, p); in ila_csum_adjust_transport()
98 diff = get_csum_diff(ip6h, p); in ila_csum_adjust_transport()
112 diff = get_csum_diff(ip6h, p); in ila_csum_adjust_transport()
120 void ila_update_ipv6_locator(struct sk_buff *skb, struct ila_params *p, in ila_update_ipv6_locator() argument
126 switch (p->csum_mode) { in ila_update_ipv6_locator()
128 ila_csum_adjust_transport(skb, p); in ila_update_ipv6_locator()
144 ila_csum_do_neutral_fmt(iaddr, p); in ila_update_ipv6_locator()
147 ila_csum_do_neutral_nofmt(iaddr, p); in ila_update_ipv6_locator()
154 iaddr->loc = p->locator; in ila_update_ipv6_locator()