Lines Matching defs:data
517 #define has_16bit_fans(data) ((data)->features & FEAT_16BIT_FANS) argument
518 #define has_12mv_adc(data) ((data)->features & FEAT_12MV_ADC) argument
519 #define has_10_9mv_adc(data) ((data)->features & FEAT_10_9MV_ADC) argument
520 #define has_newer_autopwm(data) ((data)->features & FEAT_NEWER_AUTOPWM) argument
521 #define has_old_autopwm(data) ((data)->features & FEAT_OLD_AUTOPWM) argument
522 #define has_temp_offset(data) ((data)->features & FEAT_TEMP_OFFSET) argument
523 #define has_temp_peci(data, nr) (((data)->features & FEAT_TEMP_PECI) && \ argument
525 #define has_temp_old_peci(data, nr) \ argument
528 #define has_fan16_config(data) ((data)->features & FEAT_FAN16_CONFIG) argument
529 #define has_four_fans(data) ((data)->features & (FEAT_FOUR_FANS | \ argument
532 #define has_five_fans(data) ((data)->features & (FEAT_FIVE_FANS | \ argument
534 #define has_six_fans(data) ((data)->features & FEAT_SIX_FANS) argument
535 #define has_vid(data) ((data)->features & FEAT_VID) argument
536 #define has_in7_internal(data) ((data)->features & FEAT_IN7_INTERNAL) argument
537 #define has_avcc3(data) ((data)->features & FEAT_AVCC3) argument
538 #define has_four_pwm(data) ((data)->features & (FEAT_FOUR_PWM | \ argument
541 #define has_five_pwm(data) ((data)->features & (FEAT_FIVE_PWM | \ argument
543 #define has_six_pwm(data) ((data)->features & FEAT_SIX_PWM) argument
544 #define has_pwm_freq2(data) ((data)->features & FEAT_PWM_FREQ2) argument
545 #define has_four_temp(data) ((data)->features & FEAT_FOUR_TEMP) argument
546 #define has_six_temp(data) ((data)->features & FEAT_SIX_TEMP) argument
547 #define has_vin3_5v(data) ((data)->features & FEAT_VIN3_5V) argument
548 #define has_noconf(data) ((data)->features & FEAT_NOCONF) argument
549 #define has_scaling(data) ((data)->features & (FEAT_12MV_ADC | \ argument
551 #define has_fanctl_onoff(data) ((data)->features & FEAT_FANCTL_ONOFF) argument
642 static int adc_lsb(const struct it87_data *data, int nr) in adc_lsb()
657 static u8 in_to_reg(const struct it87_data *data, int nr, long val) in in_to_reg()
663 static int in_from_reg(const struct it87_data *data, int nr, int val) in in_from_reg()
693 static u8 pwm_to_reg(const struct it87_data *data, long val) in pwm_to_reg()
701 static int pwm_from_reg(const struct it87_data *data, u8 reg) in pwm_from_reg()
741 static int smbus_disable(struct it87_data *data) in smbus_disable()
757 static int smbus_enable(struct it87_data *data) in smbus_enable()
780 static int it87_read_value(struct it87_data *data, u8 reg) in it87_read_value()
792 static void it87_write_value(struct it87_data *data, u8 reg, u8 value) in it87_write_value()
798 static void it87_update_pwm_ctrl(struct it87_data *data, int nr) in it87_update_pwm_ctrl()
848 static int it87_lock(struct it87_data *data) in it87_lock()
859 static void it87_unlock(struct it87_data *data) in it87_unlock()
867 struct it87_data *data = dev_get_drvdata(dev); in it87_update_device() local
994 struct it87_data *data = it87_update_device(dev); in show_in() local
1008 struct it87_data *data = dev_get_drvdata(dev); in set_in() local
1091 struct it87_data *data = it87_update_device(dev); in show_temp() local
1105 struct it87_data *data = dev_get_drvdata(dev); in set_temp() local
1167 static int get_temp_type(struct it87_data *data, int index) in get_temp_type()
1221 struct it87_data *data = it87_update_device(dev); in show_temp_type() local
1235 struct it87_data *data = dev_get_drvdata(dev); in set_temp_type() local
1294 static int pwm_mode(const struct it87_data *data, int nr) in pwm_mode()
1315 struct it87_data *data = it87_update_device(dev); in show_fan() local
1331 struct it87_data *data = it87_update_device(dev); in show_fan_div() local
1344 struct it87_data *data = it87_update_device(dev); in show_pwm_enable() local
1357 struct it87_data *data = it87_update_device(dev); in show_pwm() local
1371 struct it87_data *data = it87_update_device(dev); in show_pwm_freq() local
1396 struct it87_data *data = dev_get_drvdata(dev); in set_fan() local
1441 struct it87_data *data = dev_get_drvdata(dev); in set_fan_div() local
1488 const struct it87_data *data = dev_get_drvdata(dev); in check_trip_points() local
1519 struct it87_data *data = dev_get_drvdata(dev); in set_pwm_enable() local
1594 struct it87_data *data = dev_get_drvdata(dev); in set_pwm() local
1640 struct it87_data *data = dev_get_drvdata(dev); in set_pwm_freq() local
1680 struct it87_data *data = it87_update_device(dev); in show_pwm_temp_map() local
1701 struct it87_data *data = dev_get_drvdata(dev); in set_pwm_temp_map() local
1749 struct it87_data *data = it87_update_device(dev); in show_auto_pwm() local
1765 struct it87_data *data = dev_get_drvdata(dev); in set_auto_pwm() local
1794 struct it87_data *data = it87_update_device(dev); in show_auto_pwm_slope() local
1808 struct it87_data *data = dev_get_drvdata(dev); in set_auto_pwm_slope() local
1831 struct it87_data *data = it87_update_device(dev); in show_auto_temp() local
1852 struct it87_data *data = dev_get_drvdata(dev); in set_auto_temp() local
2063 struct it87_data *data = it87_update_device(dev); in alarms_show() local
2075 struct it87_data *data = it87_update_device(dev); in show_alarm() local
2088 struct it87_data *data = dev_get_drvdata(dev); in clear_intrusion() local
2135 struct it87_data *data = it87_update_device(dev); in show_beep() local
2148 struct it87_data *data = dev_get_drvdata(dev); in set_beep() local
2193 struct it87_data *data = dev_get_drvdata(dev); in vrm_show() local
2201 struct it87_data *data = dev_get_drvdata(dev); in vrm_store() local
2216 struct it87_data *data = it87_update_device(dev); in cpu0_vid_show() local
2240 struct it87_data *data = dev_get_drvdata(dev); in show_label() local
2263 struct it87_data *data = dev_get_drvdata(dev); in it87_in_is_visible() local
2347 struct it87_data *data = dev_get_drvdata(dev); in it87_temp_is_visible() local
2414 struct it87_data *data = dev_get_drvdata(dev); in it87_is_visible() local
2446 struct it87_data *data = dev_get_drvdata(dev); in it87_fan_is_visible() local
2517 struct it87_data *data = dev_get_drvdata(dev); in it87_pwm_is_visible() local
2578 struct it87_data *data = dev_get_drvdata(dev); in it87_auto_pwm_is_visible() local
3200 static void it87_check_limit_regs(struct it87_data *data) in it87_check_limit_regs()
3217 static void it87_check_voltage_monitors_reset(struct it87_data *data) in it87_check_voltage_monitors_reset()
3232 struct it87_data *data = platform_get_drvdata(pdev); in it87_check_tachometers_reset() local
3248 struct it87_data *data = platform_get_drvdata(pdev); in it87_check_tachometers_16bit_mode() local
3263 static void it87_start_monitoring(struct it87_data *data) in it87_start_monitoring()
3274 struct it87_data *data = platform_get_drvdata(pdev); in it87_init_device() local
3343 struct it87_data *data = dev_get_drvdata(dev); in it87_check_pwm() local
3398 struct it87_data *data; in it87_probe() local
3559 struct it87_data *data = dev_get_drvdata(&pdev->dev); in it87_resume_sio() local
3592 struct it87_data *data = dev_get_drvdata(dev); in it87_resume() local
3698 #define IT87_DMI_MATCH_VND(vendor, name, cb, data) \ argument