Lines Matching defs:bh1770_chip
120 struct bh1770_chip {
179 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip,
189 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip,
199 static int bh1770_lux_rate(struct bh1770_chip *chip, int rate_index)
214 static int bh1770_prox_rate(struct bh1770_chip *chip, int mode)
227 static inline int bh1770_led_cfg(struct bh1770_chip *chip)
243 static inline u8 bh1770_psraw_to_adjusted(struct bh1770_chip *chip, u8 psraw)
253 static inline u8 bh1770_psadjusted_to_raw(struct bh1770_chip *chip, u8 ps)
271 static int bh1770_prox_set_threshold(struct bh1770_chip *chip)
286 static inline u16 bh1770_lux_raw_to_adjusted(struct bh1770_chip *chip, u16 raw)
293 static inline u16 bh1770_lux_adjusted_to_raw(struct bh1770_chip *chip,
300 static int bh1770_lux_update_thresholds(struct bh1770_chip *chip,
340 static int bh1770_lux_get_result(struct bh1770_chip *chip)
360 static u32 bh1770_get_corr_value(struct bh1770_chip *chip)
372 static int bh1770_lux_read_result(struct bh1770_chip *chip)
382 static int bh1770_chip_on(struct bh1770_chip *chip)
413 static void bh1770_chip_off(struct bh1770_chip *chip)
425 static int bh1770_prox_mode_control(struct bh1770_chip *chip)
448 static int bh1770_prox_read_result(struct bh1770_chip *chip)
505 static int bh1770_detect(struct bh1770_chip *chip)
559 struct bh1770_chip *chip =
560 container_of(work, struct bh1770_chip, prox_work.work);
570 struct bh1770_chip *chip = data;
633 struct bh1770_chip *chip = dev_get_drvdata(dev);
681 struct bh1770_chip *chip = dev_get_drvdata(dev);
711 struct bh1770_chip *chip = dev_get_drvdata(dev);
742 struct bh1770_chip *chip = dev_get_drvdata(dev);
754 struct bh1770_chip *chip = dev_get_drvdata(dev);
786 struct bh1770_chip *chip = dev_get_drvdata(dev);
793 struct bh1770_chip *chip = dev_get_drvdata(dev);
811 struct bh1770_chip *chip = dev_get_drvdata(dev);
829 struct bh1770_chip *chip = dev_get_drvdata(dev);
846 struct bh1770_chip *chip = dev_get_drvdata(dev);
854 struct bh1770_chip *chip = dev_get_drvdata(dev);
877 struct bh1770_chip *chip = dev_get_drvdata(dev);
886 struct bh1770_chip *chip = dev_get_drvdata(dev);
905 struct bh1770_chip *chip = dev_get_drvdata(dev);
913 struct bh1770_chip *chip = dev_get_drvdata(dev);
932 struct bh1770_chip *chip = dev_get_drvdata(dev);
945 struct bh1770_chip *chip = dev_get_drvdata(dev);
958 struct bh1770_chip *chip = dev_get_drvdata(dev);
1001 struct bh1770_chip *chip = dev_get_drvdata(dev);
1009 struct bh1770_chip *chip = dev_get_drvdata(dev);
1035 struct bh1770_chip *chip = dev_get_drvdata(dev);
1042 struct bh1770_chip *chip = dev_get_drvdata(dev);
1046 static ssize_t bh1770_set_lux_thresh(struct bh1770_chip *chip, u16 *target,
1078 struct bh1770_chip *chip = dev_get_drvdata(dev);
1089 struct bh1770_chip *chip = dev_get_drvdata(dev);
1168 struct bh1770_chip *chip;
1285 struct bh1770_chip *chip = i2c_get_clientdata(client);
1310 struct bh1770_chip *chip = i2c_get_clientdata(client);
1320 struct bh1770_chip *chip = i2c_get_clientdata(client);
1348 struct bh1770_chip *chip = i2c_get_clientdata(client);
1358 struct bh1770_chip *chip = i2c_get_clientdata(client);