Lines Matching defs:opt
146 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale()
169 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret()
179 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode()
223 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux()
346 static int opt3001_get_int_time(struct opt3001 *opt, int *val, int *val2) in opt3001_get_int_time()
354 static int opt3001_set_int_time(struct opt3001 *opt, int time) in opt3001_set_int_time()
389 struct opt3001 *opt = iio_priv(iio); in opt3001_read_raw() local
420 struct opt3001 *opt = iio_priv(iio); in opt3001_write_raw() local
447 struct opt3001 *opt = iio_priv(iio); in opt3001_read_event_value() local
475 struct opt3001 *opt = iio_priv(iio); in opt3001_write_event_value() local
530 struct opt3001 *opt = iio_priv(iio); in opt3001_read_event_config() local
539 struct opt3001 *opt = iio_priv(iio); in opt3001_write_event_config() local
589 static int opt3001_read_id(struct opt3001 *opt) in opt3001_read_id()
620 static int opt3001_configure(struct opt3001 *opt) in opt3001_configure()
687 struct opt3001 *opt = iio_priv(iio); in opt3001_irq() local
743 struct opt3001 *opt; in opt3001_probe() local
800 struct opt3001 *opt = iio_priv(iio); in opt3001_remove() local