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()
386 static int rradc_disable_continuous_mode(struct rradc_chip *chip) in rradc_disable_continuous_mode()
400 static bool rradc_is_ready(struct rradc_chip *chip, in rradc_is_ready()
424 static int rradc_read_status_in_cont_mode(struct rradc_chip *chip, in rradc_read_status_in_cont_mode()
477 static int rradc_prepare_batt_id_conversion(struct rradc_chip *chip, in rradc_prepare_batt_id_conversion()
511 static int rradc_do_conversion(struct rradc_chip *chip, in rradc_do_conversion()
601 static int rradc_read_scale(struct rradc_chip *chip, int chan_address, int *val, in rradc_read_scale()
658 static int rradc_read_offset(struct rradc_chip *chip, int chan_address, int *val) in rradc_read_offset()
731 struct rradc_chip *chip = iio_priv(indio_dev); in rradc_read_raw()
928 struct rradc_chip *chip; in rradc_probe()