Lines Matching refs:xfrm_state

53 static inline bool xfrm_state_hold_rcu(struct xfrm_state __rcu *x)  in xfrm_state_hold_rcu()
89 struct xfrm_state *_x = NULL; \
114 struct xfrm_state *x; in xfrm_hash_transfer()
218 int __xfrm_state_delete(struct xfrm_state *x);
220 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
222 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
516 void xfrm_state_free(struct xfrm_state *x) in xfrm_state_free()
522 static void ___xfrm_state_destroy(struct xfrm_state *x) in ___xfrm_state_destroy()
549 struct xfrm_state *x; in xfrm_state_gc_task()
565 struct xfrm_state *x = container_of(me, struct xfrm_state, mtimer); in xfrm_timer_handler()
655 struct xfrm_state *xfrm_state_alloc(struct net *net) in xfrm_state_alloc()
657 struct xfrm_state *x; in xfrm_state_alloc()
686 void __xfrm_state_destroy(struct xfrm_state *x, bool sync) in __xfrm_state_destroy()
702 int __xfrm_state_delete(struct xfrm_state *x) in __xfrm_state_delete()
737 int xfrm_state_delete(struct xfrm_state *x) in xfrm_state_delete()
756 struct xfrm_state *x; in xfrm_state_flush_secctx_check()
776 struct xfrm_state *x; in xfrm_dev_state_flush_secctx_check()
817 struct xfrm_state *x; in xfrm_state_flush()
860 struct xfrm_state *x; in xfrm_dev_state_flush()
939 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, in xfrm_init_tempstate()
977 static struct xfrm_state *__xfrm_state_lookup_all(struct net *net, u32 mark, in __xfrm_state_lookup_all()
984 struct xfrm_state *x; in __xfrm_state_lookup_all()
1020 static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, in __xfrm_state_lookup()
1026 struct xfrm_state *x; in __xfrm_state_lookup()
1045 static struct xfrm_state *__xfrm_state_lookup_byaddr(struct net *net, u32 mark, in __xfrm_state_lookup_byaddr()
1051 struct xfrm_state *x; in __xfrm_state_lookup_byaddr()
1070 static inline struct xfrm_state *
1071 __xfrm_state_locate(struct xfrm_state *x, int use_spi, int family) in __xfrm_state_locate()
1094 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at()
1096 struct xfrm_state **best, int *acq_in_progress, in xfrm_state_look_at()
1136 struct xfrm_state *
1145 struct xfrm_state *x, *x0, *to_put; in xfrm_state_find()
1148 struct xfrm_state *best = NULL; in xfrm_state_find()
1361 struct xfrm_state *
1367 struct xfrm_state *rx = NULL, *x = NULL; in xfrm_stateonly_find()
1395 struct xfrm_state *xfrm_state_lookup_byspi(struct net *net, __be32 spi, in xfrm_state_lookup_byspi()
1398 struct xfrm_state *x; in xfrm_state_lookup_byspi()
1403 x = container_of(w, struct xfrm_state, km); in xfrm_state_lookup_byspi()
1417 static void __xfrm_state_insert(struct xfrm_state *x) in __xfrm_state_insert()
1458 static void __xfrm_state_bump_genids(struct xfrm_state *xnew) in __xfrm_state_bump_genids()
1463 struct xfrm_state *x; in __xfrm_state_bump_genids()
1480 void xfrm_state_insert(struct xfrm_state *x) in xfrm_state_insert()
1492 static struct xfrm_state *__find_acq_core(struct net *net, in __find_acq_core()
1501 struct xfrm_state *x; in __find_acq_core()
1573 static struct xfrm_state *__xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq);
1575 int xfrm_state_add(struct xfrm_state *x) in xfrm_state_add()
1578 struct xfrm_state *x1, *to_put; in xfrm_state_add()
1632 static inline int clone_security(struct xfrm_state *x, struct xfrm_sec_ctx *security) in clone_security()
1656 static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig, in xfrm_state_clone()
1660 struct xfrm_state *x = xfrm_state_alloc(net); in xfrm_state_clone()
1756 struct xfrm_state *xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net, in xfrm_migrate_state_find()
1760 struct xfrm_state *x = NULL; in xfrm_migrate_state_find()
1808 struct xfrm_state *xfrm_state_migrate(struct xfrm_state *x, in xfrm_state_migrate()
1812 struct xfrm_state *xc; in xfrm_state_migrate()
1844 int xfrm_state_update(struct xfrm_state *x) in xfrm_state_update()
1846 struct xfrm_state *x1, *to_put; in xfrm_state_update()
1936 int xfrm_state_check_expire(struct xfrm_state *x) in xfrm_state_check_expire()
1960 struct xfrm_state *
1964 struct xfrm_state *x; in xfrm_state_lookup()
1973 struct xfrm_state *
1978 struct xfrm_state *x; in xfrm_state_lookup_byaddr()
1987 struct xfrm_state *
1992 struct xfrm_state *x; in xfrm_find_acq()
2039 const struct xfrm_state *v = p; in __xfrm6_state_sort_cmp()
2114 xfrm_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n, in xfrm_state_sort()
2130 static struct xfrm_state *__xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq) in __xfrm_find_acq_byseq()
2133 struct xfrm_state *x; in __xfrm_find_acq_byseq()
2147 struct xfrm_state *xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq) in xfrm_find_acq_byseq()
2149 struct xfrm_state *x; in xfrm_find_acq_byseq()
2200 int xfrm_alloc_spi(struct xfrm_state *x, u32 low, u32 high, in xfrm_alloc_spi()
2205 struct xfrm_state *x0; in xfrm_alloc_spi()
2264 static bool __xfrm_state_filter_match(struct xfrm_state *x, in __xfrm_state_filter_match()
2282 int (*func)(struct xfrm_state *, int, void*), in xfrm_state_walk() argument
2285 struct xfrm_state *state; in xfrm_state_walk()
2300 state = container_of(x, struct xfrm_state, km); in xfrm_state_walk()
2349 struct xfrm_state *x = from_timer(x, t, rtimer); in xfrm_replay_timer_handler()
2376 void km_state_notify(struct xfrm_state *x, const struct km_event *c) in km_state_notify()
2389 void km_state_expired(struct xfrm_state *x, int hard, u32 portid) in km_state_expired()
2404 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) in km_query()
2420 static int __km_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport) in __km_new_mapping()
2436 int km_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport) in km_new_mapping()
2730 void xfrm_state_delete_tunnel(struct xfrm_state *x) in xfrm_state_delete_tunnel()
2733 struct xfrm_state *t = x->tunnel; in xfrm_state_delete_tunnel()
2744 u32 xfrm_state_mtu(struct xfrm_state *x, int mtu) in xfrm_state_mtu()
2777 int __xfrm_init_state(struct xfrm_state *x, bool init_replay, bool offload, in __xfrm_init_state()
2859 int xfrm_init_state(struct xfrm_state *x) in xfrm_init_state()
2877 xfrm_state_cache = KMEM_CACHE(xfrm_state, in xfrm_state_init()
2937 static void xfrm_audit_helper_sainfo(struct xfrm_state *x, in xfrm_audit_helper_sainfo()
2985 void xfrm_audit_state_add(struct xfrm_state *x, int result, bool task_valid) in xfrm_audit_state_add()
2999 void xfrm_audit_state_delete(struct xfrm_state *x, int result, bool task_valid) in xfrm_audit_state_delete()
3013 void xfrm_audit_state_replay_overflow(struct xfrm_state *x, in xfrm_audit_state_replay_overflow()
3031 void xfrm_audit_state_replay(struct xfrm_state *x, in xfrm_audit_state_replay()
3077 void xfrm_audit_state_icvfail(struct xfrm_state *x, in xfrm_audit_state_icvfail()