Lines Matching refs:walk
187 if (unlikely(xp->walk.dead)) in xfrm_policy_timer()
251 if (unlikely(pol->walk.dead)) in xfrm_policy_flo_get()
263 return !pol->walk.dead; in xfrm_policy_flo_check()
289 INIT_LIST_HEAD(&policy->walk.all); in xfrm_policy_alloc()
309 BUG_ON(!policy->walk.dead); in xfrm_policy_destroy()
335 policy->walk.dead = 1; in xfrm_policy_kill()
674 list_add(&policy->walk.all, &net->xfrm.policy_all); in xfrm_policy_insert()
879 int xfrm_policy_walk(struct net *net, struct xfrm_policy_walk *walk, in xfrm_policy_walk() argument
887 if (walk->type >= XFRM_POLICY_TYPE_MAX && in xfrm_policy_walk()
888 walk->type != XFRM_POLICY_TYPE_ANY) in xfrm_policy_walk()
891 if (list_empty(&walk->walk.all) && walk->seq != 0) in xfrm_policy_walk()
895 if (list_empty(&walk->walk.all)) in xfrm_policy_walk()
898 x = list_entry(&walk->walk.all, struct xfrm_policy_walk_entry, all); in xfrm_policy_walk()
902 pol = container_of(x, struct xfrm_policy, walk); in xfrm_policy_walk()
903 if (walk->type != XFRM_POLICY_TYPE_ANY && in xfrm_policy_walk()
904 walk->type != pol->type) in xfrm_policy_walk()
907 walk->seq, data); in xfrm_policy_walk()
909 list_move_tail(&walk->walk.all, &x->all); in xfrm_policy_walk()
912 walk->seq++; in xfrm_policy_walk()
914 if (walk->seq == 0) { in xfrm_policy_walk()
918 list_del_init(&walk->walk.all); in xfrm_policy_walk()
925 void xfrm_policy_walk_init(struct xfrm_policy_walk *walk, u8 type) in xfrm_policy_walk_init() argument
927 INIT_LIST_HEAD(&walk->walk.all); in xfrm_policy_walk_init()
928 walk->walk.dead = 1; in xfrm_policy_walk_init()
929 walk->type = type; in xfrm_policy_walk_init()
930 walk->seq = 0; in xfrm_policy_walk_init()
934 void xfrm_policy_walk_done(struct xfrm_policy_walk *walk) in xfrm_policy_walk_done() argument
936 if (list_empty(&walk->walk.all)) in xfrm_policy_walk_done()
940 list_del(&walk->walk.all); in xfrm_policy_walk_done()
1134 list_add(&pol->walk.all, &net->xfrm.policy_all); in __xfrm_policy_link()
1154 list_del(&pol->walk.all); in __xfrm_policy_unlink()
1939 pol_dead |= pols[i]->walk.dead; in xfrm_bundle_lookup()
3127 if (unlikely(pol->walk.dead)) { in xfrm_policy_migrate()