Lines Matching refs:pwm_ctrl
652 u32 pwm_ctrl; in kvaser_pciefd_pwm_stop() local
656 pwm_ctrl = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_stop()
657 top = (pwm_ctrl >> KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT) & 0xff; in kvaser_pciefd_pwm_stop()
660 pwm_ctrl |= top; in kvaser_pciefd_pwm_stop()
661 iowrite32(pwm_ctrl, can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_stop()
668 u32 pwm_ctrl; in kvaser_pciefd_pwm_start() local
677 pwm_ctrl = top & 0xff; in kvaser_pciefd_pwm_start()
678 pwm_ctrl |= (top & 0xff) << KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT; in kvaser_pciefd_pwm_start()
679 iowrite32(pwm_ctrl, can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_start()
683 pwm_ctrl = trigger & 0xff; in kvaser_pciefd_pwm_start()
684 pwm_ctrl |= (top & 0xff) << KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT; in kvaser_pciefd_pwm_start()
685 iowrite32(pwm_ctrl, can->reg_base + KVASER_PCIEFD_KCAN_PWM_REG); in kvaser_pciefd_pwm_start()