Lines Matching refs:bh1770_chip

120 struct bh1770_chip {  struct
179 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control() argument
189 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, in bh1770_prox_interrupt_control()
199 static int bh1770_lux_rate(struct bh1770_chip *chip, int rate_index) in bh1770_lux_rate()
214 static int bh1770_prox_rate(struct bh1770_chip *chip, int mode) in bh1770_prox_rate()
227 static inline int bh1770_led_cfg(struct bh1770_chip *chip) in bh1770_led_cfg()
243 static inline u8 bh1770_psraw_to_adjusted(struct bh1770_chip *chip, u8 psraw) in bh1770_psraw_to_adjusted()
253 static inline u8 bh1770_psadjusted_to_raw(struct bh1770_chip *chip, u8 ps) in bh1770_psadjusted_to_raw()
271 static int bh1770_prox_set_threshold(struct bh1770_chip *chip) in bh1770_prox_set_threshold()
286 static inline u16 bh1770_lux_raw_to_adjusted(struct bh1770_chip *chip, u16 raw) in bh1770_lux_raw_to_adjusted()
293 static inline u16 bh1770_lux_adjusted_to_raw(struct bh1770_chip *chip, in bh1770_lux_adjusted_to_raw()
300 static int bh1770_lux_update_thresholds(struct bh1770_chip *chip, in bh1770_lux_update_thresholds()
340 static int bh1770_lux_get_result(struct bh1770_chip *chip) in bh1770_lux_get_result()
360 static u32 bh1770_get_corr_value(struct bh1770_chip *chip) in bh1770_get_corr_value()
372 static int bh1770_lux_read_result(struct bh1770_chip *chip) in bh1770_lux_read_result()
382 static int bh1770_chip_on(struct bh1770_chip *chip) in bh1770_chip_on()
413 static void bh1770_chip_off(struct bh1770_chip *chip) in bh1770_chip_off()
425 static int bh1770_prox_mode_control(struct bh1770_chip *chip) in bh1770_prox_mode_control()
448 static int bh1770_prox_read_result(struct bh1770_chip *chip) in bh1770_prox_read_result()
505 static int bh1770_detect(struct bh1770_chip *chip) in bh1770_detect()
559 struct bh1770_chip *chip = in bh1770_prox_work()
560 container_of(work, struct bh1770_chip, prox_work.work); in bh1770_prox_work()
570 struct bh1770_chip *chip = data; in bh1770_irq()
633 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_power_state_store()
681 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_lux_result_show()
711 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_prox_enable_store()
742 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_prox_enable_show()
754 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_prox_result_show()
786 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_get_prox_rate_above()
793 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_get_prox_rate_below()
811 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_set_prox_rate_above()
829 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_set_prox_rate_below()
846 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_get_prox_thres()
854 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_set_prox_thres()
877 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_prox_persistence_show()
886 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_prox_persistence_store()
905 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_prox_abs_thres_show()
913 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_prox_abs_thres_store()
932 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_chip_id_show()
945 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_lux_calib_show()
958 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_lux_calib_store()
1001 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_get_lux_rate()
1009 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_set_lux_rate()
1035 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_get_lux_thresh_above()
1042 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_get_lux_thresh_below()
1046 static ssize_t bh1770_set_lux_thresh(struct bh1770_chip *chip, u16 *target, in bh1770_set_lux_thresh()
1078 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_set_lux_thresh_above()
1089 struct bh1770_chip *chip = dev_get_drvdata(dev); in bh1770_set_lux_thresh_below()
1167 struct bh1770_chip *chip; in bh1770_probe()
1284 struct bh1770_chip *chip = i2c_get_clientdata(client); in bh1770_remove()
1307 struct bh1770_chip *chip = i2c_get_clientdata(client); in bh1770_suspend()
1317 struct bh1770_chip *chip = i2c_get_clientdata(client); in bh1770_resume()
1345 struct bh1770_chip *chip = i2c_get_clientdata(client); in bh1770_runtime_suspend()
1355 struct bh1770_chip *chip = i2c_get_clientdata(client); in bh1770_runtime_resume()