Searched refs:period_cycles (Results 1 - 9 of 9) sorted by relevance
/drivers/pwm/ |
H A D | pwm-puv3.c | 44 unsigned long period_cycles, prescale, pv, dc; local 51 period_cycles = c; 53 if (period_cycles < 1) 54 period_cycles = 1; 56 prescale = (period_cycles - 1) / 1024; 57 pv = period_cycles / (prescale + 1) - 1;
|
H A D | pwm-ep93xx.c | 76 unsigned long period_cycles; local 94 period_cycles = c; 96 c = period_cycles; 101 if (period_cycles < 0x10000 && duty_cycles < 0x10000) { 105 if (period_cycles > term) { 106 writew(period_cycles, base + EP93XX_PWMx_TERM_COUNT); 110 writew(period_cycles, base + EP93XX_PWMx_TERM_COUNT);
|
H A D | pwm-imx.c | 115 unsigned long period_cycles, duty_cycles, prescale; local 154 period_cycles = c; 156 prescale = period_cycles / 0x10000 + 1; 158 period_cycles /= prescale; 159 c = (unsigned long long)period_cycles * duty_ns; 167 if (period_cycles > 2) 168 period_cycles -= 2; 170 period_cycles = 0; 173 writel(period_cycles, imx->mmio_base + MX3_PWMPR);
|
H A D | pwm-pxa.c | 68 unsigned long period_cycles, prescale, pv, dc; local 77 period_cycles = c; 79 if (period_cycles < 1) 80 period_cycles = 1; 81 prescale = (period_cycles - 1) / 1024; 82 pv = period_cycles / (prescale + 1) - 1;
|
H A D | pwm-tiehrpwm.c | 130 unsigned long period_cycles[NUM_PWM_CHANNEL]; member in struct:ehrpwm_pwm_chip 233 * period_ns = 10^9 * (ps_divval * period_cycles) / PWM_CLK_RATE 241 unsigned long period_cycles, duty_cycles; local 251 period_cycles = (unsigned long)c; 253 if (period_cycles < 1) { 254 period_cycles = 1; 268 if (pc->period_cycles[i] && 269 (pc->period_cycles[i] != period_cycles)) { 283 pc->period_cycles[pw [all...] |
H A D | pwm-lpc32xx.c | 39 int period_cycles, duty_cycles; local 51 period_cycles = c; 74 val |= PWM_RELOADV(period_cycles) | PWM_DUTY(duty_cycles);
|
H A D | pwm-tiecap.c | 62 * period_ns = 10^9 * period_cycles / PWM_CLK_RATE 70 unsigned long period_cycles, duty_cycles; local 79 period_cycles = (unsigned long)c; 81 if (period_cycles < 1) { 82 period_cycles = 1; 103 writel(period_cycles, pc->mmio_base + CAP1); 111 writel(period_cycles, pc->mmio_base + CAP3);
|
H A D | pwm-vt8500.c | 85 unsigned long period_cycles, prescale, pv, dc; local 98 period_cycles = c; 100 if (period_cycles < 1) 101 period_cycles = 1; 102 prescale = (period_cycles - 1) / 4096; 103 pv = period_cycles / (prescale + 1) - 1;
|
H A D | pwm-mxs.c | 51 unsigned int period_cycles, duty_cycles; local 67 period_cycles = c; 84 writel(PERIOD_PERIOD(period_cycles) | PERIOD_ACTIVE_HIGH |
|
Completed in 201 milliseconds