Lines Matching refs:num_migrate
4336 struct xfrm_migrate *m, int num_migrate) in xfrm_policy_migrate() argument
4349 for (j = 0, mp = m; j < num_migrate; j++, mp++) { in xfrm_policy_migrate()
4375 static int xfrm_migrate_check(const struct xfrm_migrate *m, int num_migrate) in xfrm_migrate_check() argument
4379 if (num_migrate < 1 || num_migrate > XFRM_MAX_DEPTH) in xfrm_migrate_check()
4382 for (i = 0; i < num_migrate; i++) { in xfrm_migrate_check()
4388 for (j = i + 1; j < num_migrate; j++) { in xfrm_migrate_check()
4405 struct xfrm_migrate *m, int num_migrate, in xfrm_migrate() argument
4417 if ((err = xfrm_migrate_check(m, num_migrate)) < 0) in xfrm_migrate()
4432 for (i = 0, mp = m; i < num_migrate; i++, mp++) { in xfrm_migrate()
4448 if ((err = xfrm_policy_migrate(pol, m, num_migrate)) < 0) in xfrm_migrate()
4458 km_migrate(sel, dir, type, m, num_migrate, k, encap); in xfrm_migrate()