Lines Matching defs:bits
1107 unsigned int bits, max_bits;
1119 bits = max_bits;
1122 if (str_to_uint(p, &bits) < 0 || bits > max_bits)
1125 *bits_r = bits;
1130 const struct ip_addr *net_ip, unsigned int bits)
1162 for (pos = 0, i = 0; pos + 32 <= bits; pos += 32, i++) {
1170 for (mask = 0xff000000; pos + 8 <= bits; pos += 8, mask >>= 8) {
1175 /* check the last bits, they're reversed in bytes */
1176 bits -= pos;
1177 for (mask = 0x80000000 >> (pos % 32); bits > 0; bits--, mask >>= 1) {