Lines Matching refs:pwm_ctrl
648 u32 pwm_ctrl; in kvaser_pciefd_pwm_stop() local
652 pwm_ctrl = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_stop()
653 top = (pwm_ctrl >> KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT) & 0xff; in kvaser_pciefd_pwm_stop()
656 pwm_ctrl |= top; in kvaser_pciefd_pwm_stop()
657 iowrite32(pwm_ctrl, can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_stop()
664 u32 pwm_ctrl; in kvaser_pciefd_pwm_start() local
673 pwm_ctrl = top & 0xff; in kvaser_pciefd_pwm_start()
674 pwm_ctrl |= (top & 0xff) << KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT; in kvaser_pciefd_pwm_start()
675 iowrite32(pwm_ctrl, can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_start()
679 pwm_ctrl = trigger & 0xff; in kvaser_pciefd_pwm_start()
680 pwm_ctrl |= (top & 0xff) << KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT; in kvaser_pciefd_pwm_start()
681 iowrite32(pwm_ctrl, can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_start()