Lines Matching refs:cc2_data
78 struct cc2_data { struct
119 static int cc2_enable(struct cc2_data *data) in cc2_enable()
141 static void cc2_disable(struct cc2_data *data) in cc2_disable()
206 static int cc2_command_mode_start(struct cc2_data *data) in cc2_command_mode_start()
245 static int cc2_command_mode_finish(struct cc2_data *data) in cc2_command_mode_finish()
256 static int cc2_write_reg(struct cc2_data *data, u8 reg, u16 val) in cc2_write_reg()
289 static int cc2_read_reg(struct cc2_data *data, u8 reg, u16 *val) in cc2_read_reg()
321 static int cc2_get_reg_val(struct cc2_data *data, u8 reg, long *val) in cc2_get_reg_val()
368 static int cc2_read_measurement(struct cc2_data *data, in cc2_read_measurement()
394 static int cc2_measurement(struct cc2_data *data, enum hwmon_sensor_types type, in cc2_measurement()
418 static int cc2_read_hyst_and_measure(struct cc2_data *data, u8 reg, in cc2_read_hyst_and_measure()
445 const struct cc2_data *cc2 = data; in cc2_is_visible()
481 struct cc2_data *cc2 = data; in cc2_ready_interrupt()
491 struct cc2_data *cc2 = data; in cc2_low_interrupt()
504 struct cc2_data *cc2 = data; in cc2_high_interrupt()
515 static int cc2_humidity_min_alarm_status(struct cc2_data *data, long *val) in cc2_humidity_min_alarm_status()
535 static int cc2_humidity_max_alarm_status(struct cc2_data *data, long *val) in cc2_humidity_max_alarm_status()
558 struct cc2_data *data = dev_get_drvdata(dev); in cc2_read()
606 struct cc2_data *data = dev_get_drvdata(dev); in cc2_write()
654 static int cc2_request_ready_irq(struct cc2_data *data, struct device *dev) in cc2_request_ready_irq()
671 static int cc2_request_alarm_irqs(struct cc2_data *data, struct device *dev) in cc2_request_alarm_irqs()
725 struct cc2_data *data; in cc2_probe()
767 struct cc2_data *data = i2c_get_clientdata(client); in cc2_remove()