Lines Matching defs:apds990x_chip
112 struct apds990x_chip {
186 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data)
199 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data)
212 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data)
224 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data)
236 static int apds990x_mode_on(struct apds990x_chip *chip)
248 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux)
306 static inline int apds990x_set_atime(struct apds990x_chip *chip, u32 time_ms)
319 static int apds990x_refresh_pthres(struct apds990x_chip *chip, int data)
344 static int apds990x_refresh_athres(struct apds990x_chip *chip)
360 static void apds990x_force_a_refresh(struct apds990x_chip *chip)
368 static void apds990x_force_p_refresh(struct apds990x_chip *chip)
376 static int apds990x_calc_again(struct apds990x_chip *chip)
431 static int apds990x_get_lux(struct apds990x_chip *chip, int clear, int ir)
452 static int apds990x_ack_int(struct apds990x_chip *chip, u8 mode)
476 struct apds990x_chip *chip = data;
536 static int apds990x_configure(struct apds990x_chip *chip)
566 static int apds990x_detect(struct apds990x_chip *chip)
598 static int apds990x_chip_on(struct apds990x_chip *chip)
615 static int apds990x_chip_off(struct apds990x_chip *chip)
625 struct apds990x_chip *chip = dev_get_drvdata(dev);
673 struct apds990x_chip *chip = dev_get_drvdata(dev);
682 struct apds990x_chip *chip = dev_get_drvdata(dev);
713 struct apds990x_chip *chip = dev_get_drvdata(dev);
718 static int apds990x_set_arate(struct apds990x_chip *chip, int rate)
747 struct apds990x_chip *chip = dev_get_drvdata(dev);
773 struct apds990x_chip *chip = dev_get_drvdata(dev);
797 struct apds990x_chip *chip = dev_get_drvdata(dev);
806 struct apds990x_chip *chip = dev_get_drvdata(dev);
838 struct apds990x_chip *chip = dev_get_drvdata(dev);
848 struct apds990x_chip *chip = dev_get_drvdata(dev);
876 struct apds990x_chip *chip = dev_get_drvdata(dev);
884 struct apds990x_chip *chip = dev_get_drvdata(dev);
889 static ssize_t apds990x_set_lux_thresh(struct apds990x_chip *chip, u32 *target,
919 struct apds990x_chip *chip = dev_get_drvdata(dev);
931 struct apds990x_chip *chip = dev_get_drvdata(dev);
950 struct apds990x_chip *chip = dev_get_drvdata(dev);
959 struct apds990x_chip *chip = dev_get_drvdata(dev);
994 struct apds990x_chip *chip = dev_get_drvdata(dev);
1023 struct apds990x_chip *chip = dev_get_drvdata(dev);
1057 struct apds990x_chip *chip;
1190 struct apds990x_chip *chip = i2c_get_clientdata(client);
1215 struct apds990x_chip *chip = i2c_get_clientdata(client);
1224 struct apds990x_chip *chip = i2c_get_clientdata(client);
1240 struct apds990x_chip *chip = i2c_get_clientdata(client);
1249 struct apds990x_chip *chip = i2c_get_clientdata(client);