Lines Matching refs:xfrm_state
293 static int attach_crypt(struct xfrm_state *x, struct nlattr *rta) in attach_crypt()
378 static int attach_aead(struct xfrm_state *x, struct nlattr *rta) in attach_aead()
465 static void copy_from_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p) in copy_from_user_state()
487 static void xfrm_update_ae_params(struct xfrm_state *x, struct nlattr **attrs, in xfrm_update_ae_params()
528 static struct xfrm_state *xfrm_state_construct(struct net *net, in xfrm_state_construct()
533 struct xfrm_state *x = xfrm_state_alloc(net); in xfrm_state_construct()
618 struct xfrm_state *x; in xfrm_add_sa()
654 static struct xfrm_state *xfrm_user_state_lookup(struct net *net, in xfrm_user_state_lookup()
659 struct xfrm_state *x = NULL; in xfrm_user_state_lookup()
692 struct xfrm_state *x; in xfrm_del_sa()
725 static void copy_to_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p) in copy_to_user_state()
791 static int copy_to_user_state_extra(struct xfrm_state *x, in copy_to_user_state_extra()
867 static int dump_one_state(struct xfrm_state *x, int count, void *ptr) in dump_one_state()
949 struct xfrm_state *x, u32 seq) in xfrm_state_netlink()
1176 struct xfrm_state *x; in xfrm_get_sa()
1199 struct xfrm_state *x; in xfrm_alloc_userspi()
1575 static inline int copy_to_user_state_sec_ctx(struct xfrm_state *x, struct sk_buff *skb) in copy_to_user_state_sec_ctx()
1808 static inline size_t xfrm_aevent_msgsize(struct xfrm_state *x) in xfrm_aevent_msgsize()
1822 static int build_aevent(struct sk_buff *skb, struct xfrm_state *x, const struct km_event *c) in build_aevent()
1882 struct xfrm_state *x; in xfrm_get_ae()
1925 struct xfrm_state *x; in xfrm_new_ae()
2067 struct xfrm_state *x; in xfrm_add_sa_expire()
2108 struct xfrm_state *x = xfrm_state_alloc(net); in xfrm_add_acquire()
2509 static int build_expire(struct sk_buff *skb, struct xfrm_state *x, const struct km_event *c) in build_expire()
2531 static int xfrm_exp_state_notify(struct xfrm_state *x, const struct km_event *c) in xfrm_exp_state_notify()
2548 static int xfrm_aevent_state_notify(struct xfrm_state *x, const struct km_event *c) in xfrm_aevent_state_notify()
2589 static inline size_t xfrm_sa_len(struct xfrm_state *x) in xfrm_sa_len()
2625 static int xfrm_notify_sa(struct xfrm_state *x, const struct km_event *c) in xfrm_notify_sa()
2682 static int xfrm_send_state_notify(struct xfrm_state *x, const struct km_event *c) in xfrm_send_state_notify()
2706 static inline size_t xfrm_acquire_msgsize(struct xfrm_state *x, in xfrm_acquire_msgsize()
2716 static int build_acquire(struct sk_buff *skb, struct xfrm_state *x, in build_acquire()
2754 static int xfrm_send_acquire(struct xfrm_state *x, struct xfrm_tmpl *xt, in xfrm_send_acquire()
3050 static int build_mapping(struct sk_buff *skb, struct xfrm_state *x, in build_mapping()
3076 static int xfrm_send_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, in xfrm_send_mapping()