Lines Matching defs:bits
33 /* Number of linear calibration shadow registers / LINCALRDYW control bits */
599 static void stm32_adc_set_bits(struct stm32_adc *adc, u32 reg, u32 bits)
604 stm32_adc_writel(adc, reg, stm32_adc_readl(adc, reg) | bits);
608 static void stm32_adc_set_bits_common(struct stm32_adc *adc, u32 reg, u32 bits)
611 writel_relaxed(readl_relaxed(adc->common->base + reg) | bits,
616 static void stm32_adc_clr_bits(struct stm32_adc *adc, u32 reg, u32 bits)
621 stm32_adc_writel(adc, reg, stm32_adc_readl(adc, reg) & ~bits);
625 static void stm32_adc_clr_bits_common(struct stm32_adc *adc, u32 reg, u32 bits)
628 writel_relaxed(readl_relaxed(adc->common->base + reg) & ~bits,
1041 * - It ensures bits LINCALRDYW[6..1] are kept cleared
1158 * by checking that all LINCALRDYWx bits are set.
1907 if (device_property_read_u32(dev, "assigned-resolution-bits", &res))
1914 dev_err(&indio_dev->dev, "Bad resolution: %u bits\n", res);
1918 dev_dbg(&indio_dev->dev, "Using %u bits resolution\n", res);