Lines Matching defs:ramp
121 /* #PROCHOT & #VRDHOT PWM ramp control */
654 static u8 LM93_RAMP_TO_REG(int ramp)
656 ramp = SENSORS_LIMIT(ramp, LM93_RAMP_MIN, LM93_RAMP_MAX);
657 return (u8)((ramp + 2) / 5);
2028 u8 ramp;
2031 ramp = lm93_read_byte(client, LM93_REG_PWM_RAMP_CTL);
2032 ramp = (ramp & 0x0f) | (LM93_RAMP_TO_REG(val) << 4 & 0xf0);
2033 lm93_write_byte(client, LM93_REG_PWM_RAMP_CTL, ramp);
2057 u8 ramp;
2060 ramp = lm93_read_byte(client, LM93_REG_PWM_RAMP_CTL);
2061 ramp = (ramp & 0xf0) | (LM93_RAMP_TO_REG(val) & 0x0f);
2062 lm93_write_byte(client, LM93_REG_PWM_RAMP_CTL, ramp);