Lines Matching defs:chip
201 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte()
214 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word()
227 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte()
239 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word()
251 static int apds990x_mode_on(struct apds990x_chip *chip) in apds990x_mode_on()
263 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) in apds990x_lux_to_threshold()
321 static inline int apds990x_set_atime(struct apds990x_chip *chip, u32 time_ms) in apds990x_set_atime()
334 static int apds990x_refresh_pthres(struct apds990x_chip *chip, int data) in apds990x_refresh_pthres()
359 static int apds990x_refresh_athres(struct apds990x_chip *chip) in apds990x_refresh_athres()
375 static void apds990x_force_a_refresh(struct apds990x_chip *chip) in apds990x_force_a_refresh()
383 static void apds990x_force_p_refresh(struct apds990x_chip *chip) in apds990x_force_p_refresh()
391 static int apds990x_calc_again(struct apds990x_chip *chip) in apds990x_calc_again()
446 static int apds990x_get_lux(struct apds990x_chip *chip, int clear, int ir) in apds990x_get_lux()
467 static int apds990x_ack_int(struct apds990x_chip *chip, u8 mode) in apds990x_ack_int()
491 struct apds990x_chip *chip = data; in apds990x_irq() local
551 static int apds990x_configure(struct apds990x_chip *chip) in apds990x_configure()
581 static int apds990x_detect(struct apds990x_chip *chip) in apds990x_detect()
613 static int apds990x_chip_on(struct apds990x_chip *chip) in apds990x_chip_on()
630 static int apds990x_chip_off(struct apds990x_chip *chip) in apds990x_chip_off()
640 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_show() local
688 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_calib_show() local
697 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_calib_store() local
727 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_rate_show() local
731 static int apds990x_set_arate(struct apds990x_chip *chip, int rate) in apds990x_set_arate()
760 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_rate_store() local
786 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_show() local
809 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_enable_show() local
817 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_enable_store() local
849 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_reporting_mode_show() local
858 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_reporting_mode_store() local
886 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_above_show() local
893 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_below_show() local
897 static ssize_t apds990x_set_lux_thresh(struct apds990x_chip *chip, u32 *target, in apds990x_set_lux_thresh()
927 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_above_store() local
938 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_lux_thresh_below_store() local
956 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_threshold_show() local
964 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_prox_threshold_store() local
999 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_power_state_store() local
1028 struct apds990x_chip *chip = dev_get_drvdata(dev); in apds990x_chip_id_show() local
1061 struct apds990x_chip *chip; in apds990x_probe() local
1194 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_remove() local
1219 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_suspend() local
1228 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_resume() local
1244 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_runtime_suspend() local
1253 struct apds990x_chip *chip = i2c_get_clientdata(client); in apds990x_runtime_resume() local