Lines Matching refs:int16_t
64 const int16_t *coeffs;
65 int16_t *history;
77 int16_t *history;
91 static inline const int16_t *fir16_create(struct fir16_state_t *fir, in fir16_create()
92 const int16_t *coeffs, int taps) in fir16_create()
98 fir->history = kcalloc(2 * taps, sizeof(int16_t), GFP_KERNEL); in fir16_create()
100 fir->history = kcalloc(taps, sizeof(int16_t), GFP_KERNEL); in fir16_create()
108 memset(fir->history, 0, 2 * fir->taps * sizeof(int16_t)); in fir16_flush()
110 memset(fir->history, 0, fir->taps * sizeof(int16_t)); in fir16_flush()
146 static inline int16_t fir16(struct fir16_state_t *fir, int16_t sample) in fir16()
152 y = dot_asm((int16_t *) fir->coeffs, &fir->history[fir->curr_pos], in fir16()
172 return (int16_t) (y >> 15); in fir16()
175 static inline const int16_t *fir32_create(struct fir32_state_t *fir, in fir32_create()
181 fir->history = kcalloc(taps, sizeof(int16_t), GFP_KERNEL); in fir32_create()
187 memset(fir->history, 0, fir->taps * sizeof(int16_t)); in fir32_flush()
195 static inline int16_t fir32(struct fir32_state_t *fir, int16_t sample) in fir32()
213 return (int16_t) (y >> 15); in fir32()