Searched refs:nbits (Results 1 – 3 of 3) sorted by relevance
/net/ethtool/ |
D | bitset.c | 128 static void ethnl_bitmap32_update(u32 *dst, unsigned int nbits, in ethnl_bitmap32_update() argument 131 while (nbits > 0) { in ethnl_bitmap32_update() 135 if (nbits < 32) in ethnl_bitmap32_update() 136 real_mask &= ethnl_lower_bits(nbits); in ethnl_bitmap32_update() 143 if (nbits <= 32) in ethnl_bitmap32_update() 146 nbits -= 32; in ethnl_bitmap32_update() 171 int ethnl_bitset32_size(const u32 *val, const u32 *mask, unsigned int nbits, in ethnl_bitset32_size() argument 183 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_bitset32_size() 191 for (i = 0; i < nbits; i++) { in ethnl_bitset32_size() 233 const u32 *mask, unsigned int nbits, in ethnl_put_bitset32() argument [all …]
|
D | bitset.h | 12 unsigned int nbits, ethnl_string_array_t names, 14 int ethnl_bitset32_size(const u32 *val, const u32 *mask, unsigned int nbits, 18 unsigned int nbits, ethnl_string_array_t names, 21 const u32 *mask, unsigned int nbits, 23 int ethnl_update_bitset(unsigned long *bitmap, unsigned int nbits, 26 int ethnl_update_bitset32(u32 *bitmap, unsigned int nbits, 30 unsigned int nbits, const struct nlattr *attr,
|
/net/sunrpc/ |
D | auth.c | 59 unsigned int nbits; in param_set_hashtbl_sz() local 67 nbits = fls(num - 1); in param_set_hashtbl_sz() 68 if (nbits > MAX_HASHTABLE_BITS || nbits < 2) in param_set_hashtbl_sz() 70 *(unsigned int *)kp->arg = nbits; in param_set_hashtbl_sz() 78 unsigned int nbits; in param_get_hashtbl_sz() local 80 nbits = *(unsigned int *)kp->arg; in param_get_hashtbl_sz() 81 return sprintf(buffer, "%u\n", 1U << nbits); in param_get_hashtbl_sz()
|