stmpe_pwm 34 drivers/pwm/pwm-stmpe.c static inline struct stmpe_pwm *to_stmpe_pwm(struct pwm_chip *chip) stmpe_pwm 36 drivers/pwm/pwm-stmpe.c return container_of(chip, struct stmpe_pwm, chip); stmpe_pwm 41 drivers/pwm/pwm-stmpe.c struct stmpe_pwm *stmpe_pwm = to_stmpe_pwm(chip); stmpe_pwm 45 drivers/pwm/pwm-stmpe.c ret = stmpe_reg_read(stmpe_pwm->stmpe, STMPE24XX_PWMCS); stmpe_pwm 54 drivers/pwm/pwm-stmpe.c ret = stmpe_reg_write(stmpe_pwm->stmpe, STMPE24XX_PWMCS, value); stmpe_pwm 67 drivers/pwm/pwm-stmpe.c struct stmpe_pwm *stmpe_pwm = to_stmpe_pwm(chip); stmpe_pwm 71 drivers/pwm/pwm-stmpe.c ret = stmpe_reg_read(stmpe_pwm->stmpe, STMPE24XX_PWMCS); stmpe_pwm 80 drivers/pwm/pwm-stmpe.c ret = stmpe_reg_write(stmpe_pwm->stmpe, STMPE24XX_PWMCS, value); stmpe_pwm 102 drivers/pwm/pwm-stmpe.c struct stmpe_pwm *stmpe_pwm = to_stmpe_pwm(chip); stmpe_pwm 120 drivers/pwm/pwm-stmpe.c if (stmpe_pwm->stmpe->partnum == STMPE2401 || stmpe_pwm 121 drivers/pwm/pwm-stmpe.c stmpe_pwm->stmpe->partnum == STMPE2403) stmpe_pwm 124 drivers/pwm/pwm-stmpe.c ret = stmpe_set_altfunc(stmpe_pwm->stmpe, BIT(pin), stmpe_pwm 156 drivers/pwm/pwm-stmpe.c if (stmpe_pwm->stmpe->partnum == STMPE2401) stmpe_pwm 159 drivers/pwm/pwm-stmpe.c if (stmpe_pwm->stmpe->partnum == STMPE2403) stmpe_pwm 162 drivers/pwm/pwm-stmpe.c stmpe_pwm->last_duty = 0x00; stmpe_pwm 164 drivers/pwm/pwm-stmpe.c if (stmpe_pwm->stmpe->partnum == STMPE2401) stmpe_pwm 167 drivers/pwm/pwm-stmpe.c if (stmpe_pwm->stmpe->partnum == STMPE2403) stmpe_pwm 170 drivers/pwm/pwm-stmpe.c stmpe_pwm->last_duty = 0xff; stmpe_pwm 172 drivers/pwm/pwm-stmpe.c u8 value, last = stmpe_pwm->last_duty; stmpe_pwm 196 drivers/pwm/pwm-stmpe.c } else if (stmpe_pwm->stmpe->partnum == STMPE2403) { stmpe_pwm 200 drivers/pwm/pwm-stmpe.c } else if (stmpe_pwm->stmpe->partnum == STMPE2401) { stmpe_pwm 222 drivers/pwm/pwm-stmpe.c stmpe_pwm->last_duty = value; stmpe_pwm 233 drivers/pwm/pwm-stmpe.c ret = stmpe_reg_write(stmpe_pwm->stmpe, offset, value); stmpe_pwm 242 drivers/pwm/pwm-stmpe.c ret = stmpe_reg_write(stmpe_pwm->stmpe, offset, value); stmpe_pwm 272 drivers/pwm/pwm-stmpe.c struct stmpe_pwm *pwm;