Lines Matching refs:period
16 * - The period and duty cycle can't be changed together in one atomic action.
58 int period, int duty)
63 * Changes to the period and duty cycle take effect as soon as the
65 * to an inconsistent state after the period is written and before the
67 * is longer than the new period, the EC may output 100% for a moment.
69 * To minimize the time between the changes to period and duty cycle
74 { NTXEC_REG_PERIOD_HIGH, ntxec_reg8(period >> 8) },
76 { NTXEC_REG_PERIOD_LOW, ntxec_reg8(period) },
87 unsigned int period, duty;
93 period = min_t(u64, state->period, MAX_PERIOD_NS);
94 duty = min_t(u64, state->duty_cycle, period);
96 period /= TIME_BASE_NS;
109 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty);