Lines Matching refs:ngroups
552 if (i < NLGRPLONGS(nlk_sk(sk)->ngroups)) in netlink_update_listeners()
764 for (i = 0; i < nlk->ngroups; i++) in netlink_release()
951 if (nlk->ngroups >= groups) in netlink_realloc_groups()
959 memset((char *)new_groups + NLGRPSZ(nlk->ngroups), 0, in netlink_realloc_groups()
960 NLGRPSZ(groups) - NLGRPSZ(nlk->ngroups)); in netlink_realloc_groups()
963 nlk->ngroups = groups; in netlink_realloc_groups()
1010 if (nlk->ngroups < BITS_PER_LONG) in netlink_bind()
1011 groups &= (1UL << nlk->ngroups) - 1; in netlink_bind()
1430 if (nlk->portid == p->portid || p->group - 1 >= nlk->ngroups || in do_one_broadcast()
1576 if (nlk->portid == p->portid || p->group - 1 >= nlk->ngroups || in do_one_set_err()
1671 if (!val || val - 1 >= nlk->ngroups) in netlink_setsockopt()
1772 for (pos = 0; pos * 8 < nlk->ngroups; pos += sizeof(u32)) { in netlink_getsockopt()
1784 if (put_user(ALIGN(BITS_TO_BYTES(nlk->ngroups), sizeof(u32)), optlen)) in netlink_getsockopt()