Searched refs:smp_lvl (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/iio/pressure/ |
D | rohm-bm1390.c | 344 int smp_lvl, ret, i, warn, dummy; in __bm1390_fifo_flush() local 348 ret = regmap_read(data->regmap, BM1390_REG_FIFO_LVL, &smp_lvl); in __bm1390_fifo_flush() 352 smp_lvl = FIELD_GET(BM1390_MASK_FIFO_LVL, smp_lvl); in __bm1390_fifo_flush() 353 if (!smp_lvl) in __bm1390_fifo_flush() 356 if (smp_lvl > BM1390_FIFO_LENGTH) { in __bm1390_fifo_flush() 362 dev_err(data->dev, "bad FIFO level %d\n", smp_lvl); in __bm1390_fifo_flush() 363 smp_lvl = BM1390_FIFO_LENGTH; in __bm1390_fifo_flush() 367 do_div(sample_period, smp_lvl); in __bm1390_fifo_flush() 369 if (samples && smp_lvl > samples) in __bm1390_fifo_flush() 370 smp_lvl = samples; in __bm1390_fifo_flush() [all …]
|