Lines Matching refs:ngroups
543 if (i < NLGRPLONGS(nlk_sk(sk)->ngroups)) in netlink_update_listeners()
744 for (i = 0; i < nlk->ngroups; i++) in netlink_release()
939 if (nlk->ngroups >= groups) in netlink_realloc_groups()
947 memset((char *)new_groups + NLGRPSZ(nlk->ngroups), 0, in netlink_realloc_groups()
948 NLGRPSZ(groups) - NLGRPSZ(nlk->ngroups)); in netlink_realloc_groups()
951 nlk->ngroups = groups; in netlink_realloc_groups()
998 if (nlk->ngroups < BITS_PER_LONG) in netlink_bind()
999 groups &= (1UL << nlk->ngroups) - 1; in netlink_bind()
1433 if (nlk->portid == p->portid || p->group - 1 >= nlk->ngroups || in do_one_broadcast()
1582 if (nlk->portid == p->portid || p->group - 1 >= nlk->ngroups || in do_one_set_err()
1672 if (!val || val - 1 >= nlk->ngroups) in netlink_setsockopt()
1750 for (pos = 0; pos * 8 < nlk->ngroups; pos += sizeof(u32)) { in netlink_getsockopt()
1762 if (put_user(ALIGN(BITS_TO_BYTES(nlk->ngroups), sizeof(u32)), optlen)) in netlink_getsockopt()