Lines Matching refs:n_groups
395 static int genl_allocate_reserve_groups(int n_groups, int *first_id)
415 i < min_t(int, id + n_groups,
425 if (id + n_groups > mc_groups_longs * BITS_PER_LONG) {
427 BITS_TO_LONGS(n_groups);
442 for (i = 0; i < BITS_TO_LONGS(n_groups); i++)
449 for (i = id; i < id + n_groups; i++)
460 int n_groups = family->n_mcgrps;
464 if (!n_groups)
467 for (i = 0; i < n_groups; i++) {
479 BUG_ON(n_groups != 1);
482 BUG_ON(n_groups != 1);
485 BUG_ON(n_groups != 1);
488 BUG_ON(n_groups != 1);
491 err = genl_allocate_reserve_groups(n_groups, &first_id);