Home
last modified time | relevance | path

Searched refs:pols (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/net/xfrm/
Dxfrm_policy.c1451 xfrm_tmpl_resolve(struct xfrm_policy **pols, int npols, const struct flowi *fl, in xfrm_tmpl_resolve() argument
1462 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { in xfrm_tmpl_resolve()
1467 ret = xfrm_tmpl_resolve_one(pols[i], fl, &tpp[cnx], family); in xfrm_tmpl_resolve()
1798 struct xfrm_policy **pols, in xfrm_expand_policies() argument
1803 if (*num_pols == 0 || !pols[0]) { in xfrm_expand_policies()
1808 if (IS_ERR(pols[0])) in xfrm_expand_policies()
1809 return PTR_ERR(pols[0]); in xfrm_expand_policies()
1811 *num_xfrms = pols[0]->xfrm_nr; in xfrm_expand_policies()
1814 if (pols[0] && pols[0]->action == XFRM_POLICY_ALLOW && in xfrm_expand_policies()
1815 pols[0]->type != XFRM_POLICY_TYPE_MAIN) { in xfrm_expand_policies()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dnrs.c486 struct ptlrpc_nrs_policy *pols[NRS_RES_MAX]; in nrs_resource_put_safe() local
492 pols[i] = resp[i]->res_policy; in nrs_resource_put_safe()
496 pols[i] = NULL; in nrs_resource_put_safe()
501 if (pols[i] == NULL) in nrs_resource_put_safe()
505 nrs = pols[i]->pol_nrs; in nrs_resource_put_safe()
508 nrs_policy_put_locked(pols[i]); in nrs_resource_put_safe()
/linux-4.1.27/include/net/
Dxfrm.h794 static inline void xfrm_pols_put(struct xfrm_policy **pols, int npols) in xfrm_pols_put() argument
798 xfrm_pol_put(pols[i]); in xfrm_pols_put()
946 struct xfrm_policy *pols[XFRM_POLICY_TYPE_MAX]; member
963 xfrm_pols_put(xdst->pols, xdst->num_pols); in xfrm_dst_destroy()