Home
last modified time | relevance | path

Searched refs:max_bits (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/external/bsd/wpa/dist/src/utils/
H A Dbitfield.c17 size_t max_bits; member
21 struct bitfield * bitfield_alloc(size_t max_bits) in bitfield_alloc() argument
25 bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8); in bitfield_alloc()
29 bf->max_bits = max_bits; in bitfield_alloc()
42 if (bit >= bf->max_bits) in bitfield_set()
50 if (bit >= bf->max_bits) in bitfield_clear()
58 if (bit >= bf->max_bits) in bitfield_is_set()
79 for (i = 0; i < (bf->max_bits + 7) / 8; i++) { in bitfield_get_first_zero()
83 if (i == (bf->max_bits + 7) / 8) in bitfield_get_first_zero()
86 if (i >= bf->max_bits) in bitfield_get_first_zero()
H A Dbitfield.h14 struct bitfield * bitfield_alloc(size_t max_bits);
/netbsd-src/sys/arch/mips/cavium/dev/
H A Docteon_cib.c115 u_int max_bits; in octeon_cib_attach() local
139 if (of_getprop_uint32(phandle, "cavium,max-bits", &max_bits) != 0) { in octeon_cib_attach()
143 if (max_bits == 0 || max_bits > 64) { in octeon_cib_attach()
148 sc->sc_intr = kmem_zalloc(sizeof(*sc->sc_intr) * max_bits, KM_SLEEP); in octeon_cib_attach()
149 sc->sc_nintr = max_bits; in octeon_cib_attach()
/netbsd-src/external/bsd/libbind/dist/dst/
H A Dsupport.c82 dst_s_calculate_bits(const u_char *str, const int max_bits) in dst_s_calculate_bits() argument
87 for (bits = max_bits; *p == 0x00 && bits > 0; p++) in dst_s_calculate_bits()
H A Ddst_internal.h122 int dst_s_calculate_bits( const u_int8_t *str, const int max_bits);
/netbsd-src/lib/libresolv/
H A Dsupport.c85 dst_s_calculate_bits(const u_char *str, const int max_bits) in dst_s_calculate_bits() argument
90 for (bits = max_bits; *p == 0x00 && bits > 0; p++) in dst_s_calculate_bits()
H A Ddst_internal.h130 int dst_s_calculate_bits( const u_int8_t *str, const int max_bits);
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_vm.h433 unsigned max_bits);
H A Damdgpu_vm.c2696 unsigned max_bits) in amdgpu_vm_adjust_size() argument
2698 unsigned int max_size = 1 << (max_bits - 30); in amdgpu_vm_adjust_size()
2759 min((unsigned)amdgpu_vm_block_size, max_bits in amdgpu_vm_adjust_size()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dbuiltins.cc4010 int max_bits = floor_log2 (max_len); in try_store_by_multiple_pieces() local
4022 int tst_bits = (max_bits != min_bits ? max_bits in try_store_by_multiple_pieces()
4049 max_bits = floor_log2 (max_len); in try_store_by_multiple_pieces()
4051 tst_bits = (max_bits != min_bits ? max_bits in try_store_by_multiple_pieces()
4061 if (max_bits >= 0) in try_store_by_multiple_pieces()
4062 xlenest += ((HOST_WIDE_INT_1U << max_bits) * 2 in try_store_by_multiple_pieces()
4106 for (int i = max_bits; i >= sctz_len; i--) in try_store_by_multiple_pieces()