Searched refs:num_bins (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | st.c | 107 #define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) 203 tbl->num_bins = size; in st_init_table_with_size() 239 for (i = 0; i < table->num_bins; i++) { in st_free_table() 261 bin_pos = hash_val%(table)->num_bins;\ 293 if (table->num_entries/(table->num_bins) > ST_DEFAULT_MAX_DENSITY) \ 296 bin_pos = hash_val % table->num_bins;\ 331 bin_pos = hash_val % table->num_bins; in st_add_direct() 338 int i, old_num_bins = table->num_bins, new_num_bins; in rehash() 359 table->num_bins = new_num_bins; in rehash() 367 size_t i, num_bins = old_table->num_bins; in st_copy() local [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | spectral.c | 562 static void ath11k_spectral_parse_fft(u8 *outbins, u8 *inbins, int num_bins, u8 fft_sz) in ath11k_spectral_parse_fft() argument 568 while (i < num_bins) { in ath11k_spectral_parse_fft() 586 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local 614 num_bins = bin_len / bin_sz; in ath11k_spectral_process_fft() 616 num_bins >>= 1; in ath11k_spectral_process_fft() 618 if (num_bins < ATH11K_SPECTRAL_MIN_IB_BINS || in ath11k_spectral_process_fft() 619 num_bins > ATH11K_SPECTRAL_MAX_IB_BINS(ab) || in ath11k_spectral_process_fft() 620 !is_power_of_2(num_bins)) { in ath11k_spectral_process_fft() 621 ath11k_warn(ab, "Invalid num of bins %d\n", num_bins); in ath11k_spectral_process_fft() 625 check_length = sizeof(*fft_report) + (num_bins * ab->hw_params.spectral.fft_sz); in ath11k_spectral_process_fft() [all …]
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | st.h | 67 int num_bins; member
|