Lines Matching defs:cycles
198 unsigned long long cycles = state->period;
201 /* Calculate the period cycles and prescale value */
202 cycles *= clkrate;
203 do_div(cycles, NSEC_PER_SEC);
207 * So for each bit the number of clock cycles is wider divide the input
210 shift = fls(cycles) - atmel_pwm->data->cfg.period_bits;
217 cycles >>= *pres;
222 *cprd = cycles;
231 unsigned long long cycles = state->duty_cycle;
233 cycles *= clkrate;
234 do_div(cycles, NSEC_PER_SEC);
235 cycles >>= pres;
236 *cdty = cprd - cycles;