Lines Matching refs:our_chip

219 	struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip);  in pwm_samsung_request()  local
222 if (!(our_chip->variant.output_mask & BIT(pwm->hwpwm))) { in pwm_samsung_request()
245 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in pwm_samsung_enable() local
252 tcon = readl(our_chip->base + REG_TCON); in pwm_samsung_enable()
256 writel(tcon, our_chip->base + REG_TCON); in pwm_samsung_enable()
260 writel(tcon, our_chip->base + REG_TCON); in pwm_samsung_enable()
262 our_chip->disabled_mask &= ~BIT(pwm->hwpwm); in pwm_samsung_enable()
271 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in pwm_samsung_disable() local
278 tcon = readl(our_chip->base + REG_TCON); in pwm_samsung_disable()
280 writel(tcon, our_chip->base + REG_TCON); in pwm_samsung_disable()
282 our_chip->disabled_mask |= BIT(pwm->hwpwm); in pwm_samsung_disable()
309 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in __pwm_samsung_config() local
321 tcnt = readl(our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
322 oldtcmp = readl(our_chip->base + REG_TCMPB(pwm->hwpwm)); in __pwm_samsung_config()
334 dev_dbg(our_chip->chip.dev, "duty_ns=%d, period_ns=%d (%u)\n", in __pwm_samsung_config()
337 tin_rate = pwm_samsung_calc_tin(our_chip, pwm->hwpwm, period); in __pwm_samsung_config()
339 dev_dbg(our_chip->chip.dev, "tin_rate=%lu\n", tin_rate); in __pwm_samsung_config()
363 dev_dbg(our_chip->chip.dev, in __pwm_samsung_config()
367 writel(tcnt, our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
368 writel(tcmp, our_chip->base + REG_TCMPB(pwm->hwpwm)); in __pwm_samsung_config()
376 dev_dbg(our_chip->chip.dev, "Forcing manual update"); in __pwm_samsung_config()
377 pwm_samsung_manual_update(our_chip, pwm); in __pwm_samsung_config()
421 struct samsung_pwm_chip *our_chip = to_samsung_pwm_chip(chip); in pwm_samsung_set_polarity() local
425 pwm_samsung_set_invert(our_chip, pwm->hwpwm, invert); in pwm_samsung_set_polarity()
606 struct samsung_pwm_chip *our_chip = dev_get_drvdata(dev); in pwm_samsung_resume() local
607 struct pwm_chip *chip = &our_chip->chip; in pwm_samsung_resume()
617 if (our_chip->variant.output_mask & BIT(i)) in pwm_samsung_resume()
618 pwm_samsung_set_invert(our_chip, i, in pwm_samsung_resume()
619 our_chip->inverter_mask & BIT(i)); in pwm_samsung_resume()
625 pwm_samsung_manual_update(our_chip, pwm); in pwm_samsung_resume()
628 if (our_chip->disabled_mask & BIT(i)) in pwm_samsung_resume()