Lines Matching refs:apds990x_chip

112 struct apds990x_chip {  struct
186 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte()
199 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word()
212 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte()
224 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word()
236 static int apds990x_mode_on(struct apds990x_chip *chip) in apds990x_mode_on()
248 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) in apds990x_lux_to_threshold()
306 static inline int apds990x_set_atime(struct apds990x_chip *chip, u32 time_ms) in apds990x_set_atime()
319 static int apds990x_refresh_pthres(struct apds990x_chip *chip, int data) in apds990x_refresh_pthres()
344 static int apds990x_refresh_athres(struct apds990x_chip *chip) in apds990x_refresh_athres()
360 static void apds990x_force_a_refresh(struct apds990x_chip *chip) in apds990x_force_a_refresh()
368 static void apds990x_force_p_refresh(struct apds990x_chip *chip) in apds990x_force_p_refresh()
376 static int apds990x_calc_again(struct apds990x_chip *chip) in apds990x_calc_again()
431 static int apds990x_get_lux(struct apds990x_chip *chip, int clear, int ir) in apds990x_get_lux()
452 static int apds990x_ack_int(struct apds990x_chip *chip, u8 mode) in apds990x_ack_int()
476 struct apds990x_chip *chip = data; in apds990x_irq()
536 static int apds990x_configure(struct apds990x_chip *chip) in apds990x_configure()
566 static int apds990x_detect(struct apds990x_chip *chip) in apds990x_detect()
598 static int apds990x_chip_on(struct apds990x_chip *chip) in apds990x_chip_on()
615 static int apds990x_chip_off(struct apds990x_chip *chip) in apds990x_chip_off()
625 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_show()
673 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_calib_show()
682 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_calib_store()
713 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_rate_show()
718 static int apds990x_set_arate(struct apds990x_chip *chip, int rate) in apds990x_set_arate()
747 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_rate_store()
773 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_show()
797 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_enable_show()
806 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_enable_store()
838 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_reporting_mode_show()
848 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_reporting_mode_store()
876 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_above_show()
884 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_below_show()
889 static ssize_t apds990x_set_lux_thresh(struct apds990x_chip *chip, u32 *target, in apds990x_set_lux_thresh()
919 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_above_store()
931 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_below_store()
950 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_threshold_show()
959 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_threshold_store()
994 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_power_state_store()
1023 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_chip_id_show()
1056 struct apds990x_chip *chip; in apds990x_probe()
1189 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_remove()
1213 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_suspend()
1222 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_resume()
1238 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_runtime_suspend()
1247 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_runtime_resume()