Lines Matching refs:rradc_chip
216 struct rradc_chip;
236 int (*scale_fn)(struct rradc_chip *chip, u16 adc_code, int *result);
239 struct rradc_chip { struct
257 static int rradc_read(struct rradc_chip *chip, u16 addr, __le16 *buf, int len) in rradc_read() argument
303 static int rradc_get_fab_coeff(struct rradc_chip *chip, int64_t *offset, in rradc_get_fab_coeff()
342 static int rradc_post_process_batt_id(struct rradc_chip *chip, u16 adc_code, in rradc_post_process_batt_id()
356 static int rradc_enable_continuous_mode(struct rradc_chip *chip) in rradc_enable_continuous_mode()
387 static int rradc_disable_continuous_mode(struct rradc_chip *chip) in rradc_disable_continuous_mode()
401 static bool rradc_is_ready(struct rradc_chip *chip, in rradc_is_ready()
425 static int rradc_read_status_in_cont_mode(struct rradc_chip *chip, in rradc_read_status_in_cont_mode()
478 static int rradc_prepare_batt_id_conversion(struct rradc_chip *chip, in rradc_prepare_batt_id_conversion()
513 static int rradc_do_conversion(struct rradc_chip *chip, in rradc_do_conversion()
603 static int rradc_read_scale(struct rradc_chip *chip, int chan_address, int *val, in rradc_read_scale()
660 static int rradc_read_offset(struct rradc_chip *chip, int chan_address, int *val) in rradc_read_offset()
733 struct rradc_chip *chip = iio_priv(indio_dev); in rradc_read_raw()
930 struct rradc_chip *chip; in rradc_probe()