Lines Matching full:duty
16 * - The period and duty cycle can't be changed together in one atomic action.
44 * The time base used in the EC is 8MHz, or 125ns. Period and duty cycle are
57 int period, int duty) in ntxec_pwm_set_raw_period_and_duty_cycle() argument
62 * Changes to the period and duty cycle take effect as soon as the in ntxec_pwm_set_raw_period_and_duty_cycle()
65 * duty cycle is fully written. If, in such a case, the old duty cycle in ntxec_pwm_set_raw_period_and_duty_cycle()
68 * To minimize the time between the changes to period and duty cycle in ntxec_pwm_set_raw_period_and_duty_cycle()
74 { NTXEC_REG_DUTY_HIGH, ntxec_reg8(duty >> 8) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
76 { NTXEC_REG_DUTY_LOW, ntxec_reg8(duty) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
86 unsigned int period, duty; in ntxec_pwm_apply() local
93 duty = min_t(u64, state->duty_cycle, period); in ntxec_pwm_apply()
96 duty /= TIME_BASE_NS; in ntxec_pwm_apply()
99 * Writing a duty cycle of zero puts the device into a state where in ntxec_pwm_apply()
100 * writing a higher duty cycle doesn't result in the brightness that it in ntxec_pwm_apply()
103 * As a workaround, write ENABLE=0 when the duty cycle is zero. in ntxec_pwm_apply()
104 * The case that something has previously set the duty cycle to zero in ntxec_pwm_apply()
107 if (state->enabled && duty != 0) { in ntxec_pwm_apply()
108 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty); in ntxec_pwm_apply()