Searched refs:RES_MASK (Results 1 – 11 of 11) sorted by relevance
11 #define RES_MASK(bits) ((1 << (bits)) - 1) macro
93 tmp = be16_to_cpu(buf) & RES_MASK(AD7298_BITS); in ad7298_scan_temp()140 *val = ret & RES_MASK(AD7298_BITS); in ad7298_read_raw()
27 #define RES_MASK(bits) ((1 << (bits)) - 1) macro
26 #define RES_MASK(bits) ((1 << (bits)) - 1) /* TODO: move this into a common header */ macro
71 #define RES_MASK(bits) ((1 << (bits)) - 1) macro
57 RES_MASK(st->chip_info->channel[0].scan_type.realbits); in ad7476_read_raw()
56 RES_MASK(st->chip_info->channel[0].scan_type.realbits); in ad7887_read_raw()
162 RES_MASK(chan->scan_type.realbits); in ad799x_read_raw()
37 #define RES_MASK(bits) ((1 << (bits)) - 1) macro
56 #define RES_MASK(bits) ((1 << (bits)) - 1) macro
46 RES_MASK(AD9834_FREQ_BITS / 2))); in ad9834_write_frequency()49 RES_MASK(AD9834_FREQ_BITS / 2))); in ad9834_write_frequency()