Searched refs:xp (Results 1 – 9 of 9) sorted by relevance
/net/ipv6/ila/ |
D | ila_xlat.c | 18 struct ila_xlat_params xp; member 84 return (ila->xp.ifindex && ila->xp.ifindex != ifindex); in ila_cmp_wildcards() 88 struct ila_xlat_params *xp) in ila_cmp_params() argument 90 return (ila->xp.ifindex != xp->ifindex); in ila_cmp_params() 98 return (ila->xp.ip.locator_match.v64 != *(__be64 *)arg->key); in ila_cmpfn() 105 if (ila->xp.ifindex) in ila_order() 114 .key_offset = offsetof(struct ila_map, xp.ip.locator_match), 140 struct ila_xlat_params *xp) in parse_nl_config() argument 142 memset(xp, 0, sizeof(*xp)); in parse_nl_config() 145 xp->ip.locator.v64 = (__force __be64)nla_get_u64( in parse_nl_config() [all …]
|
/net/key/ |
D | af_key.c | 1902 static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) in check_reqid() argument 1907 for (i=0; i<xp->xfrm_nr; i++) { in check_reqid() 1908 if (xp->xfrm_vec[i].reqid == reqid) in check_reqid() 1936 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_ipsecrequest *rq) in parse_ipsecrequest() argument 1938 struct net *net = xp_net(xp); in parse_ipsecrequest() 1939 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; in parse_ipsecrequest() 1942 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) in parse_ipsecrequest() 1973 t->encap_family = xp->family; in parse_ipsecrequest() 1977 xp->xfrm_nr++; in parse_ipsecrequest() 1982 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument [all …]
|
/net/xfrm/ |
D | xfrm_user.c | 1359 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates() argument 1364 xp->xfrm_nr = nr; in copy_templates() 1366 struct xfrm_tmpl *t = &xp->xfrm_vec[i]; in copy_templates() 1481 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy() argument 1483 xp->priority = p->priority; in copy_from_user_policy() 1484 xp->index = p->index; in copy_from_user_policy() 1485 memcpy(&xp->selector, &p->sel, sizeof(xp->selector)); in copy_from_user_policy() 1486 memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); in copy_from_user_policy() 1487 xp->action = p->action; in copy_from_user_policy() 1488 xp->flags = p->flags; in copy_from_user_policy() [all …]
|
D | xfrm_policy.c | 186 struct xfrm_policy *xp = (struct xfrm_policy *)data; in xfrm_policy_timer() local 192 read_lock(&xp->lock); in xfrm_policy_timer() 194 if (unlikely(xp->walk.dead)) in xfrm_policy_timer() 197 dir = xfrm_policy_id2dir(xp->index); in xfrm_policy_timer() 199 if (xp->lft.hard_add_expires_seconds) { in xfrm_policy_timer() 200 long tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer() 201 xp->curlft.add_time - now; in xfrm_policy_timer() 207 if (xp->lft.hard_use_expires_seconds) { in xfrm_policy_timer() 208 long tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer() 209 (xp->curlft.use_time ? : xp->curlft.add_time) - now; in xfrm_policy_timer() [all …]
|
D | xfrm_state.c | 1738 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify() argument 1745 km->notify_policy(xp, dir, c); in km_policy_notify()
|
/net/netfilter/ |
D | x_tables.c | 499 struct xt_af *xp = &xt[af]; in xt_compat_add_offset() local 501 if (!xp->compat_tab) { in xt_compat_add_offset() 502 if (!xp->number) in xt_compat_add_offset() 504 xp->compat_tab = vmalloc(sizeof(struct compat_delta) * xp->number); in xt_compat_add_offset() 505 if (!xp->compat_tab) in xt_compat_add_offset() 507 xp->cur = 0; in xt_compat_add_offset() 510 if (xp->cur >= xp->number) in xt_compat_add_offset() 513 if (xp->cur) in xt_compat_add_offset() 514 delta += xp->compat_tab[xp->cur - 1].delta; in xt_compat_add_offset() 515 xp->compat_tab[xp->cur].offset = offset; in xt_compat_add_offset() [all …]
|
/net/ipv4/ |
D | inet_fragment.c | 302 struct sk_buff *xp = fp->next; in inet_frag_destroy() local 306 fp = xp; in inet_frag_destroy()
|
D | ip_fragment.c | 321 struct sk_buff *xp = fp->next; in ip_frag_reinit() local 325 fp = xp; in ip_frag_reinit()
|
/net/sunrpc/ |
D | xprtsock.c | 953 __be32 *xp; in xs_local_data_read_skb() local 962 xp = skb_header_pointer(skb, sizeof(rpc_fraghdr), sizeof(_xid), &_xid); in xs_local_data_read_skb() 963 if (xp == NULL) in xs_local_data_read_skb() 968 rovr = xprt_lookup_rqst(xprt, *xp); in xs_local_data_read_skb() 1034 __be32 *xp; in xs_udp_data_read_skb() local 1043 xp = skb_header_pointer(skb, 0, sizeof(_xid), &_xid); in xs_udp_data_read_skb() 1044 if (xp == NULL) in xs_udp_data_read_skb() 1049 rovr = xprt_lookup_rqst(xprt, *xp); in xs_udp_data_read_skb()
|