Home
last modified time | relevance | path

Searched refs:rescale (Results 1 – 8 of 8) sorted by relevance

/drivers/iio/afe/
Diio-rescale.c23 int rescale_process_scale(struct rescale *rescale, int scale_type, in rescale_process_scale() argument
30 *val *= rescale->numerator; in rescale_process_scale()
31 *val2 *= rescale->denominator; in rescale_process_scale()
34 *val *= rescale->numerator; in rescale_process_scale()
35 if (rescale->denominator == 1) in rescale_process_scale()
37 *val2 = rescale->denominator; in rescale_process_scale()
41 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale()
42 tmp *= rescale->numerator; in rescale_process_scale()
51 int rescale_process_offset(struct rescale *rescale, int scale_type, in rescale_process_offset() argument
59 tmp = (s64)rescale->offset * scale2; in rescale_process_offset()
[all …]
DKconfig10 tristate "IIO rescale"
18 module will be called iio-rescale.
DMakefile7 obj-$(CONFIG_IIO_RESCALE) += iio-rescale.o
/drivers/md/bcache/
Dstats.c138 if (++stats->rescale == rescale_at) { in scale_stats()
139 stats->rescale = 0; in scale_stats()
Dstats.h25 unsigned int rescale; member
Dalloc.c93 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities()
96 r = atomic_read(&c->rescale); in bch_rescale_priorities()
100 } while (atomic_cmpxchg(&c->rescale, r, r + next) != r); in bch_rescale_priorities()
Drequest.c407 goto rescale; in check_should_bypass()
412 goto rescale; in check_should_bypass()
453 rescale: in check_should_bypass()
Dbcache.h609 atomic_t rescale; member