Lines Matching refs:ap
94 #define VT1211_REG_PWM_AUTO_TEMP(ap) (0x55 - (ap)) argument
95 #define VT1211_REG_PWM_AUTO_PWM(ix, ap) (0x58 + 2 * (ix) - (ap)) argument
765 int ap = sensor_attr_2->nr; in show_pwm_auto_point_temp() local
768 data->pwm_auto_temp[ap])); in show_pwm_auto_point_temp()
779 int ap = sensor_attr_2->nr; in set_pwm_auto_point_temp() local
796 data->pwm_auto_temp[ap] = TEMP_TO_REG(data->pwm_ctl[ix] & 7, val); in set_pwm_auto_point_temp()
797 vt1211_write8(data, VT1211_REG_PWM_AUTO_TEMP(ap), in set_pwm_auto_point_temp()
798 data->pwm_auto_temp[ap]); in set_pwm_auto_point_temp()
829 int ap = sensor_attr_2->nr; in show_pwm_auto_point_pwm() local
831 return sprintf(buf, "%d\n", data->pwm_auto_pwm[ix][ap]); in show_pwm_auto_point_pwm()
842 int ap = sensor_attr_2->nr; in set_pwm_auto_point_pwm() local
851 data->pwm_auto_pwm[ix][ap] = clamp_val(val, 0, 255); in set_pwm_auto_point_pwm()
852 vt1211_write8(data, VT1211_REG_PWM_AUTO_PWM(ix, ap), in set_pwm_auto_point_pwm()
853 data->pwm_auto_pwm[ix][ap]); in set_pwm_auto_point_pwm()
1039 #define SENSOR_ATTR_PWM_AUTO_POINT_TEMP(ix, ap) \ argument
1040 SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_temp, S_IRUGO | S_IWUSR, \
1042 ap-1, ix-1)
1044 #define SENSOR_ATTR_PWM_AUTO_POINT_TEMP_RO(ix, ap) \ argument
1045 SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_temp, S_IRUGO, \
1047 ap-1, ix-1)
1049 #define SENSOR_ATTR_PWM_AUTO_POINT_PWM(ix, ap) \ argument
1050 SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_pwm, S_IRUGO | S_IWUSR, \
1052 ap-1, ix-1)
1054 #define SENSOR_ATTR_PWM_AUTO_POINT_PWM_RO(ix, ap) \ argument
1055 SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_pwm, S_IRUGO, \
1057 ap-1, ix-1)