Lines Matching full:bins
49 * [7:0]: all bins {max_magnitude[1:0], bitmap_weight[5:0]}
50 * [7:0]: all bins max_magnitude[9:2]
51 * [7:0]: all bins {max_index[5:0], max_magnitude[11:10]}
74 * [7:0]: lower bins {max_magnitude[1:0], bitmap_weight[5:0]}
75 * [7:0]: lower bins max_magnitude[9:2]
76 * [7:0]: lower bins {max_index[5:0], max_magnitude[11:10]}
77 * [7:0]: upper bins {max_magnitude[1:0], bitmap_weight[5:0]}
78 * [7:0]: upper bins max_magnitude[9:2]
79 * [7:0]: upper bins {max_index[5:0], max_magnitude[11:10]}
111 /* grabs the max magnitude from the all/upper/lower bins */
112 static inline u16 spectral_max_magnitude(u8 *bins) in spectral_max_magnitude() argument
114 return (bins[0] & 0xc0) >> 6 | in spectral_max_magnitude()
115 (bins[1] & 0xff) << 2 | in spectral_max_magnitude()
116 (bins[2] & 0x03) << 10; in spectral_max_magnitude()
119 /* return the max magnitude from the all/upper/lower bins */
120 static inline u8 spectral_max_index(u8 *bins, int num_bins) in spectral_max_index() argument
122 s8 m = (bins[2] & 0xfc) >> 2; in spectral_max_index()
148 static inline u8 spectral_max_index_ht40(u8 *bins) in spectral_max_index_ht40() argument
152 idx = spectral_max_index(bins, SPECTRAL_HT20_40_NUM_BINS); in spectral_max_index_ht40()
160 static inline u8 spectral_max_index_ht20(u8 *bins) in spectral_max_index_ht20() argument
162 return spectral_max_index(bins, SPECTRAL_HT20_NUM_BINS); in spectral_max_index_ht20()
165 /* return the bitmap weight from the all/upper/lower bins */
166 static inline u8 spectral_bitmap_weight(u8 *bins) in spectral_bitmap_weight() argument
168 return bins[0] & 0x3f; in spectral_bitmap_weight()