Lines Matching full:period
16 * - The period and duty cycle can't be changed together in one atomic action.
46 * The time base used in the EC is 8MHz, or 125ns. Period and duty cycle are
59 int period, int duty) in ntxec_pwm_set_raw_period_and_duty_cycle() argument
64 * Changes to the period and duty cycle take effect as soon as the in ntxec_pwm_set_raw_period_and_duty_cycle()
66 * to an inconsistent state after the period is written and before the in ntxec_pwm_set_raw_period_and_duty_cycle()
68 * is longer than the new period, the EC may output 100% for a moment. in ntxec_pwm_set_raw_period_and_duty_cycle()
70 * To minimize the time between the changes to period and duty cycle in ntxec_pwm_set_raw_period_and_duty_cycle()
75 { NTXEC_REG_PERIOD_HIGH, ntxec_reg8(period >> 8) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
77 { NTXEC_REG_PERIOD_LOW, ntxec_reg8(period) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
88 unsigned int period, duty; in ntxec_pwm_apply() local
94 period = min_t(u64, state->period, MAX_PERIOD_NS); in ntxec_pwm_apply()
95 duty = min_t(u64, state->duty_cycle, period); in ntxec_pwm_apply()
97 period /= TIME_BASE_NS; in ntxec_pwm_apply()
110 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty); in ntxec_pwm_apply()