Searched refs:rescale (Results 1 – 8 of 8) sorted by relevance
20 struct rescale;24 int (*props)(struct device *dev, struct rescale *rescale);27 struct rescale { struct40 struct rescale *rescale = iio_priv(indio_dev); in rescale_read_raw() argument46 return iio_read_channel_raw(rescale->source, val); in rescale_read_raw()49 ret = iio_read_channel_scale(rescale->source, val, val2); in rescale_read_raw()52 *val *= rescale->numerator; in rescale_read_raw()53 *val2 *= rescale->denominator; in rescale_read_raw()56 *val *= rescale->numerator; in rescale_read_raw()57 if (rescale->denominator == 1) in rescale_read_raw()[all …]
10 tristate "IIO rescale"18 module will be called iio-rescale.
7 obj-$(CONFIG_IIO_RESCALE) += iio-rescale.o
138 if (++stats->rescale == rescale_at) { in scale_stats()139 stats->rescale = 0; in scale_stats()
26 unsigned int rescale; member
94 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities()97 r = atomic_read(&c->rescale); in bch_rescale_priorities()101 } while (atomic_cmpxchg(&c->rescale, r, r + next) != r); in bch_rescale_priorities()
412 goto rescale; in check_should_bypass()417 goto rescale; in check_should_bypass()458 rescale: in check_should_bypass()
603 atomic_t rescale; member