Lines Matching +full:0 +full:x000003ff
8 * - The hardware cannot generate a 0% duty cycle.
26 #define RCAR_PWMCR 0x00
27 #define RCAR_PWMCR_CC0_MASK 0x000f0000
32 #define RCAR_PWMCR_EN0 BIT(0)
34 #define RCAR_PWMCNT 0x04
35 #define RCAR_PWMCNT_CYC0_MASK 0x03ff0000
37 #define RCAR_PWMCNT_PH0_MASK 0x000003ff
38 #define RCAR_PWMCNT_PH0_SHIFT 0
77 if (clk_rate == 0) in rcar_pwm_get_clock_division()
124 if (cyc == 0 || ph == 0) in rcar_pwm_set_counter()
129 return 0; in rcar_pwm_set_counter()
146 /* Don't enable the PWM device if CYC0 or PH0 is 0 */ in rcar_pwm_enable()
148 if ((value & RCAR_PWMCNT_CYC0_MASK) == 0 || in rcar_pwm_enable()
149 (value & RCAR_PWMCNT_PH0_MASK) == 0) in rcar_pwm_enable()
154 return 0; in rcar_pwm_enable()
159 rcar_pwm_update(rp, RCAR_PWMCR_EN0, 0, RCAR_PWMCR); in rcar_pwm_disable()
174 return 0; in rcar_pwm_apply()
178 if (div < 0) in rcar_pwm_apply()
187 /* The SYNC should be set to 0 even if rcar_pwm_set_counter failed */ in rcar_pwm_apply()
188 rcar_pwm_update(rp, RCAR_PWMCR_SYNC, 0, RCAR_PWMCR); in rcar_pwm_apply()
213 rcar_pwm->base = devm_platform_ioremap_resource(pdev, 0); in rcar_pwm_probe()
230 if (ret < 0) { in rcar_pwm_probe()
236 return 0; in rcar_pwm_probe()