Lines Matching refs:delpol
1189 struct xfrm_policy *delpol; in xfrm_policy_inexact_insert() local
1206 delpol = xfrm_policy_insert_list(chain, policy, excl); in xfrm_policy_inexact_insert()
1207 if (delpol && excl) { in xfrm_policy_inexact_insert()
1215 if (delpol) in xfrm_policy_inexact_insert()
1218 return delpol; in xfrm_policy_inexact_insert()
1505 struct xfrm_policy *pol, *delpol = NULL; in xfrm_policy_insert_inexact_list() local
1515 !WARN_ON(delpol)) { in xfrm_policy_insert_inexact_list()
1516 delpol = pol; in xfrm_policy_insert_inexact_list()
1523 if (delpol) in xfrm_policy_insert_inexact_list()
1542 struct xfrm_policy *pol, *newpos = NULL, *delpol = NULL; in xfrm_policy_insert_list() local
1550 !WARN_ON(delpol)) { in xfrm_policy_insert_list()
1553 delpol = pol; in xfrm_policy_insert_list()
1560 if (delpol) in xfrm_policy_insert_list()
1569 return delpol; in xfrm_policy_insert_list()
1575 struct xfrm_policy *delpol; in xfrm_policy_insert() local
1581 delpol = xfrm_policy_insert_list(chain, policy, excl); in xfrm_policy_insert()
1583 delpol = xfrm_policy_inexact_insert(policy, dir, excl); in xfrm_policy_insert()
1585 if (IS_ERR(delpol)) { in xfrm_policy_insert()
1587 return PTR_ERR(delpol); in xfrm_policy_insert()
1598 if (delpol) { in xfrm_policy_insert()
1599 xfrm_policy_requeue(delpol, policy); in xfrm_policy_insert()
1600 __xfrm_policy_unlink(delpol, dir); in xfrm_policy_insert()
1602 policy->index = delpol ? delpol->index : xfrm_gen_index(net, dir, policy->index); in xfrm_policy_insert()
1610 if (delpol) in xfrm_policy_insert()
1611 xfrm_policy_kill(delpol); in xfrm_policy_insert()