Lines Matching defs:cycles
131 unsigned long long cycles = state->period;
134 /* Calculate the period cycles and prescale value */
135 cycles *= clk_get_rate(atmel_pwm->clk);
136 do_div(cycles, NSEC_PER_SEC);
140 * So for each bit the number of clock cycles is wider divide the input
143 shift = fls(cycles) - atmel_pwm->data->cfg.period_bits;
150 cycles >>= *pres;
155 *cprd = cycles;
163 unsigned long long cycles = state->duty_cycle;
165 cycles *= cprd;
166 do_div(cycles, state->period);
167 *cdty = cprd - cycles;