Lines Matching refs:our_chip

216 	struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip);  in pwm_samsung_request()  local
219 if (!(our_chip->variant.output_mask & BIT(pwm->hwpwm))) { in pwm_samsung_request()
242 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in pwm_samsung_enable() local
249 tcon = readl(our_chip->base + REG_TCON); in pwm_samsung_enable()
253 writel(tcon, our_chip->base + REG_TCON); in pwm_samsung_enable()
257 writel(tcon, our_chip->base + REG_TCON); in pwm_samsung_enable()
259 our_chip->disabled_mask &= ~BIT(pwm->hwpwm); in pwm_samsung_enable()
268 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in pwm_samsung_disable() local
275 tcon = readl(our_chip->base + REG_TCON); in pwm_samsung_disable()
277 writel(tcon, our_chip->base + REG_TCON); in pwm_samsung_disable()
279 our_chip->disabled_mask |= BIT(pwm->hwpwm); in pwm_samsung_disable()
306 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in __pwm_samsung_config() local
318 tcnt = readl(our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
319 oldtcmp = readl(our_chip->base + REG_TCMPB(pwm->hwpwm)); in __pwm_samsung_config()
331 dev_dbg(our_chip->chip.dev, "duty_ns=%d, period_ns=%d (%u)\n", in __pwm_samsung_config()
334 tin_rate = pwm_samsung_calc_tin(our_chip, pwm->hwpwm, period); in __pwm_samsung_config()
336 dev_dbg(our_chip->chip.dev, "tin_rate=%lu\n", tin_rate); in __pwm_samsung_config()
360 dev_dbg(our_chip->chip.dev, in __pwm_samsung_config()
364 writel(tcnt, our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
365 writel(tcmp, our_chip->base + REG_TCMPB(pwm->hwpwm)); in __pwm_samsung_config()
373 dev_dbg(our_chip->chip.dev, "Forcing manual update"); in __pwm_samsung_config()
374 pwm_samsung_manual_update(our_chip, pwm); in __pwm_samsung_config()
418 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in pwm_samsung_set_polarity() local
422 pwm_samsung_set_invert(our_chip, pwm->hwpwm, invert); in pwm_samsung_set_polarity()
603 struct samsung_pwm_chip *our_chip = dev_get_drvdata(dev); in pwm_samsung_resume() local
604 struct pwm_chip *chip = &our_chip->chip; in pwm_samsung_resume()
614 if (our_chip->variant.output_mask & BIT(i)) in pwm_samsung_resume()
615 pwm_samsung_set_invert(our_chip, i, in pwm_samsung_resume()
616 our_chip->inverter_mask & BIT(i)); in pwm_samsung_resume()
622 pwm_samsung_manual_update(our_chip, pwm); in pwm_samsung_resume()
625 if (our_chip->disabled_mask & BIT(i)) in pwm_samsung_resume()