Lines Matching refs:n_groups
383 static int genl_allocate_reserve_groups(int n_groups, int *first_id) in genl_allocate_reserve_groups() argument
403 i < min_t(int, id + n_groups, in genl_allocate_reserve_groups()
413 if (id + n_groups > mc_groups_longs * BITS_PER_LONG) { in genl_allocate_reserve_groups()
415 BITS_TO_LONGS(n_groups); in genl_allocate_reserve_groups()
430 for (i = 0; i < BITS_TO_LONGS(n_groups); i++) in genl_allocate_reserve_groups()
437 for (i = id; i < id + n_groups; i++) in genl_allocate_reserve_groups()
448 int n_groups = family->n_mcgrps; in genl_validate_assign_mc_groups() local
452 if (!n_groups) in genl_validate_assign_mc_groups()
455 for (i = 0; i < n_groups; i++) { in genl_validate_assign_mc_groups()
467 BUG_ON(n_groups != 1); in genl_validate_assign_mc_groups()
470 BUG_ON(n_groups != 1); in genl_validate_assign_mc_groups()
473 BUG_ON(n_groups != 1); in genl_validate_assign_mc_groups()
476 BUG_ON(n_groups != 1); in genl_validate_assign_mc_groups()
479 err = genl_allocate_reserve_groups(n_groups, &first_id); in genl_validate_assign_mc_groups()