Lines Matching defs:bits
42 /* Limit filter output resolution to 31 bits. (i.e. sample range is +/-2^30) */
47 * 2^(n-1) maximum positive value cannot be coded in 2's complement n bits
49 * So, the resolution of samples from filter is actually limited to 23 bits
196 int bits, shift;
234 * Check resolution (limited to signed 32 bits)
259 bits = fls(flo->res);
264 if (flo->res > BIT(bits - 1))
265 bits++;
269 shift = DFSDM_DATA_RES - bits;
277 /* Resolution is lower than 24 bits */
282 * If resolution is 24 bits or more,
286 * Reduce resolution to 23 bits (rshift)
289 * bits (lshift).
296 flo->bits = bits;
298 pr_debug("%s: fast %d, fosr %d, iosr %d, res 0x%llx/%d bits, rshift %d, lshift %d\n",
300 flo->res, bits, flo->rshift,
480 dev_dbg(&indio_dev->dev, "Samples actual resolution: %d bits",
481 min(flo->bits, (u32)DFSDM_DATA_RES - 1));
842 * Samples from filter are retrieved with 23 bits resolution
843 * or less. Shift left to align MSB on 24 bits.
906 * The DFSDM supports half-word transfers. However, for 16 bits record,