hwpwm 622 drivers/gpio/gpio-mvebu.c pwm->hwpwm, "mvebu-pwm", hwpwm 729 drivers/gpio/gpio-mvebu.c mvebu_gpio_blink(&mvchip->chip, pwm->hwpwm, 1); hwpwm 731 drivers/gpio/gpio-mvebu.c mvebu_gpio_blink(&mvchip->chip, pwm->hwpwm, 0); hwpwm 283 drivers/pwm/core.c pwm->hwpwm = i; hwpwm 79 drivers/pwm/pwm-atmel-tcb.c unsigned group = pwm->hwpwm / 2; hwpwm 80 drivers/pwm/pwm-atmel-tcb.c unsigned index = pwm->hwpwm % 2; hwpwm 125 drivers/pwm/pwm-atmel-tcb.c tcbpwmc->pwms[pwm->hwpwm] = tcbpwm; hwpwm 136 drivers/pwm/pwm-atmel-tcb.c clk_disable_unprepare(tc->clk[pwm->hwpwm / 2]); hwpwm 137 drivers/pwm/pwm-atmel-tcb.c tcbpwmc->pwms[pwm->hwpwm] = NULL; hwpwm 147 drivers/pwm/pwm-atmel-tcb.c unsigned group = pwm->hwpwm / 2; hwpwm 148 drivers/pwm/pwm-atmel-tcb.c unsigned index = pwm->hwpwm % 2; hwpwm 206 drivers/pwm/pwm-atmel-tcb.c unsigned group = pwm->hwpwm / 2; hwpwm 207 drivers/pwm/pwm-atmel-tcb.c unsigned index = pwm->hwpwm % 2; hwpwm 288 drivers/pwm/pwm-atmel-tcb.c unsigned group = pwm->hwpwm / 2; hwpwm 289 drivers/pwm/pwm-atmel-tcb.c unsigned index = pwm->hwpwm % 2; hwpwm 334 drivers/pwm/pwm-atmel-tcb.c atcbpwm = tcbpwmc->pwms[pwm->hwpwm + 1]; hwpwm 336 drivers/pwm/pwm-atmel-tcb.c atcbpwm = tcbpwmc->pwms[pwm->hwpwm - 1]; hwpwm 154 drivers/pwm/pwm-atmel.c val = atmel_pwm_ch_readl(atmel_pwm, pwm->hwpwm, PWM_CMR); hwpwm 156 drivers/pwm/pwm-atmel.c atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, PWM_CMR, val); hwpwm 159 drivers/pwm/pwm-atmel.c atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, hwpwm 169 drivers/pwm/pwm-atmel.c atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, hwpwm 171 drivers/pwm/pwm-atmel.c atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, hwpwm 188 drivers/pwm/pwm-atmel.c while (!(atmel_pwm->updated_pwms & (1 << pwm->hwpwm)) && hwpwm 195 drivers/pwm/pwm-atmel.c atmel_pwm_writel(atmel_pwm, PWM_DIS, 1 << pwm->hwpwm); hwpwm 203 drivers/pwm/pwm-atmel.c while ((atmel_pwm_readl(atmel_pwm, PWM_SR) & (1 << pwm->hwpwm)) && hwpwm 226 drivers/pwm/pwm-atmel.c cprd = atmel_pwm_ch_readl(atmel_pwm, pwm->hwpwm, hwpwm 254 drivers/pwm/pwm-atmel.c val = atmel_pwm_ch_readl(atmel_pwm, pwm->hwpwm, PWM_CMR); hwpwm 260 drivers/pwm/pwm-atmel.c atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, PWM_CMR, val); hwpwm 264 drivers/pwm/pwm-atmel.c atmel_pwm->updated_pwms &= ~(1 << pwm->hwpwm); hwpwm 266 drivers/pwm/pwm-atmel.c atmel_pwm_writel(atmel_pwm, PWM_ENA, 1 << pwm->hwpwm); hwpwm 92 drivers/pwm/pwm-bcm-iproc.c if (value & BIT(IPROC_PWM_CTRL_EN_SHIFT(pwm->hwpwm))) hwpwm 97 drivers/pwm/pwm-bcm-iproc.c if (value & BIT(IPROC_PWM_CTRL_POLARITY_SHIFT(pwm->hwpwm))) hwpwm 103 drivers/pwm/pwm-bcm-iproc.c prescale = value >> IPROC_PWM_PRESCALE_SHIFT(pwm->hwpwm); hwpwm 108 drivers/pwm/pwm-bcm-iproc.c value = readl(ip->base + IPROC_PWM_PERIOD_OFFSET(pwm->hwpwm)); hwpwm 112 drivers/pwm/pwm-bcm-iproc.c value = readl(ip->base + IPROC_PWM_DUTY_CYCLE_OFFSET(pwm->hwpwm)); hwpwm 159 drivers/pwm/pwm-bcm-iproc.c iproc_pwmc_disable(ip, pwm->hwpwm); hwpwm 163 drivers/pwm/pwm-bcm-iproc.c value &= ~IPROC_PWM_PRESCALE_MASK(pwm->hwpwm); hwpwm 164 drivers/pwm/pwm-bcm-iproc.c value |= prescale << IPROC_PWM_PRESCALE_SHIFT(pwm->hwpwm); hwpwm 168 drivers/pwm/pwm-bcm-iproc.c writel(period, ip->base + IPROC_PWM_PERIOD_OFFSET(pwm->hwpwm)); hwpwm 169 drivers/pwm/pwm-bcm-iproc.c writel(duty, ip->base + IPROC_PWM_DUTY_CYCLE_OFFSET(pwm->hwpwm)); hwpwm 175 drivers/pwm/pwm-bcm-iproc.c value |= 1 << IPROC_PWM_CTRL_POLARITY_SHIFT(pwm->hwpwm); hwpwm 177 drivers/pwm/pwm-bcm-iproc.c value &= ~(1 << IPROC_PWM_CTRL_POLARITY_SHIFT(pwm->hwpwm)); hwpwm 182 drivers/pwm/pwm-bcm-iproc.c iproc_pwmc_enable(ip, pwm->hwpwm); hwpwm 117 drivers/pwm/pwm-bcm-kona.c unsigned int value, chan = pwm->hwpwm; hwpwm 180 drivers/pwm/pwm-bcm-kona.c unsigned int chan = pwm->hwpwm; hwpwm 232 drivers/pwm/pwm-bcm-kona.c unsigned int chan = pwm->hwpwm; hwpwm 44 drivers/pwm/pwm-bcm2835.c value &= ~(PWM_CONTROL_MASK << PWM_CONTROL_SHIFT(pwm->hwpwm)); hwpwm 45 drivers/pwm/pwm-bcm2835.c value |= (PWM_MODE << PWM_CONTROL_SHIFT(pwm->hwpwm)); hwpwm 57 drivers/pwm/pwm-bcm2835.c value &= ~(PWM_CONTROL_MASK << PWM_CONTROL_SHIFT(pwm->hwpwm)); hwpwm 81 drivers/pwm/pwm-bcm2835.c pc->base + DUTY(pwm->hwpwm)); hwpwm 82 drivers/pwm/pwm-bcm2835.c writel(period, pc->base + PERIOD(pwm->hwpwm)); hwpwm 93 drivers/pwm/pwm-bcm2835.c value |= PWM_ENABLE << PWM_CONTROL_SHIFT(pwm->hwpwm); hwpwm 105 drivers/pwm/pwm-bcm2835.c value &= ~(PWM_ENABLE << PWM_CONTROL_SHIFT(pwm->hwpwm)); hwpwm 118 drivers/pwm/pwm-bcm2835.c value &= ~(PWM_POLARITY << PWM_CONTROL_SHIFT(pwm->hwpwm)); hwpwm 120 drivers/pwm/pwm-bcm2835.c value |= PWM_POLARITY << PWM_CONTROL_SHIFT(pwm->hwpwm); hwpwm 115 drivers/pwm/pwm-berlin.c value = berlin_pwm_readl(pwm, pwm_dev->hwpwm, BERLIN_PWM_CONTROL); hwpwm 120 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, pwm_dev->hwpwm, value, BERLIN_PWM_CONTROL); hwpwm 122 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, pwm_dev->hwpwm, duty, BERLIN_PWM_DUTY); hwpwm 123 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, pwm_dev->hwpwm, period, BERLIN_PWM_TCNT); hwpwm 135 drivers/pwm/pwm-berlin.c value = berlin_pwm_readl(pwm, pwm_dev->hwpwm, BERLIN_PWM_CONTROL); hwpwm 142 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, pwm_dev->hwpwm, value, BERLIN_PWM_CONTROL); hwpwm 152 drivers/pwm/pwm-berlin.c value = berlin_pwm_readl(pwm, pwm_dev->hwpwm, BERLIN_PWM_EN); hwpwm 154 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, pwm_dev->hwpwm, value, BERLIN_PWM_EN); hwpwm 165 drivers/pwm/pwm-berlin.c value = berlin_pwm_readl(pwm, pwm_dev->hwpwm, BERLIN_PWM_EN); hwpwm 167 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, pwm_dev->hwpwm, value, BERLIN_PWM_EN); hwpwm 102 drivers/pwm/pwm-brcmstb.c unsigned int channel = pwm->hwpwm; hwpwm 209 drivers/pwm/pwm-brcmstb.c brcmstb_pwm_enable_set(p, pwm->hwpwm, true); hwpwm 218 drivers/pwm/pwm-brcmstb.c brcmstb_pwm_enable_set(p, pwm->hwpwm, false); hwpwm 73 drivers/pwm/pwm-clps711x.c clps711x_pwm_update_val(priv, pwm->hwpwm, duty); hwpwm 84 drivers/pwm/pwm-clps711x.c clps711x_pwm_update_val(priv, pwm->hwpwm, duty); hwpwm 93 drivers/pwm/pwm-clps711x.c clps711x_pwm_update_val(priv, pwm->hwpwm, 0); hwpwm 111 drivers/pwm/pwm-cros-ec.c return cros_ec_pwm_set_duty(ec_pwm->ec, pwm->hwpwm, duty_cycle); hwpwm 120 drivers/pwm/pwm-cros-ec.c ret = cros_ec_pwm_get_duty(ec_pwm->ec, pwm->hwpwm); hwpwm 97 drivers/pwm/pwm-fsl-ftm.c regmap_update_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16), hwpwm 98 drivers/pwm/pwm-fsl-ftm.c BIT(pwm->hwpwm + 16)); hwpwm 111 drivers/pwm/pwm-fsl-ftm.c regmap_update_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16), hwpwm 222 drivers/pwm/pwm-fsl-ftm.c if (~(val | BIT(pwm->hwpwm)) & 0xFF) hwpwm 255 drivers/pwm/pwm-fsl-ftm.c pwm->hwpwm); hwpwm 285 drivers/pwm/pwm-fsl-ftm.c regmap_write(fpc->regmap, FTM_CSC(pwm->hwpwm), hwpwm 287 drivers/pwm/pwm-fsl-ftm.c regmap_write(fpc->regmap, FTM_CV(pwm->hwpwm), duty); hwpwm 291 drivers/pwm/pwm-fsl-ftm.c reg_polarity = BIT(pwm->hwpwm); hwpwm 293 drivers/pwm/pwm-fsl-ftm.c regmap_update_bits(fpc->regmap, FTM_POL, BIT(pwm->hwpwm), reg_polarity); hwpwm 321 drivers/pwm/pwm-fsl-ftm.c BIT(pwm->hwpwm), BIT(pwm->hwpwm)); hwpwm 345 drivers/pwm/pwm-fsl-ftm.c regmap_update_bits(fpc->regmap, FTM_OUTMASK, BIT(pwm->hwpwm), hwpwm 87 drivers/pwm/pwm-hibvt.c hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), hwpwm 95 drivers/pwm/pwm-hibvt.c hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), hwpwm 110 drivers/pwm/pwm-hibvt.c hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CFG0_ADDR(pwm->hwpwm), hwpwm 113 drivers/pwm/pwm-hibvt.c hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CFG1_ADDR(pwm->hwpwm), hwpwm 124 drivers/pwm/pwm-hibvt.c hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), hwpwm 127 drivers/pwm/pwm-hibvt.c hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), hwpwm 141 drivers/pwm/pwm-hibvt.c value = readl(base + PWM_CFG0_ADDR(pwm->hwpwm)); hwpwm 144 drivers/pwm/pwm-hibvt.c value = readl(base + PWM_CFG1_ADDR(pwm->hwpwm)); hwpwm 147 drivers/pwm/pwm-hibvt.c value = readl(base + PWM_CTRL_ADDR(pwm->hwpwm)); hwpwm 136 drivers/pwm/pwm-img.c val &= ~(PWM_CTRL_CFG_DIV_MASK << PWM_CTRL_CFG_DIV_SHIFT(pwm->hwpwm)); hwpwm 138 drivers/pwm/pwm-img.c PWM_CTRL_CFG_DIV_SHIFT(pwm->hwpwm); hwpwm 143 drivers/pwm/pwm-img.c img_pwm_writel(pwm_chip, PWM_CH_CFG(pwm->hwpwm), val); hwpwm 162 drivers/pwm/pwm-img.c val |= BIT(pwm->hwpwm); hwpwm 167 drivers/pwm/pwm-img.c PERIP_PWM_PDM_CONTROL_CH_SHIFT(pwm->hwpwm), 0); hwpwm 178 drivers/pwm/pwm-img.c val &= ~BIT(pwm->hwpwm); hwpwm 152 drivers/pwm/pwm-imx-tpm.c tmp = readl(tpm->base + PWM_IMX_TPM_CnV(pwm->hwpwm)); hwpwm 157 drivers/pwm/pwm-imx-tpm.c val = readl(tpm->base + PWM_IMX_TPM_CnSC(pwm->hwpwm)); hwpwm 233 drivers/pwm/pwm-imx-tpm.c writel(p->val, tpm->base + PWM_IMX_TPM_CnV(pwm->hwpwm)); hwpwm 242 drivers/pwm/pwm-imx-tpm.c || readl(tpm->base + PWM_IMX_TPM_CnV(pwm->hwpwm)) hwpwm 256 drivers/pwm/pwm-imx-tpm.c val = readl(tpm->base + PWM_IMX_TPM_CnSC(pwm->hwpwm)); hwpwm 272 drivers/pwm/pwm-imx-tpm.c writel(val, tpm->base + PWM_IMX_TPM_CnSC(pwm->hwpwm)); hwpwm 41 drivers/pwm/pwm-jz4740.c if (pwm->hwpwm < 2) hwpwm 44 drivers/pwm/pwm-jz4740.c jz4740_timer_start(pwm->hwpwm); hwpwm 51 drivers/pwm/pwm-jz4740.c jz4740_timer_set_ctrl(pwm->hwpwm, 0); hwpwm 53 drivers/pwm/pwm-jz4740.c jz4740_timer_stop(pwm->hwpwm); hwpwm 61 drivers/pwm/pwm-jz4740.c jz4740_timer_set_ctrl(pwm->hwpwm, ctrl); hwpwm 62 drivers/pwm/pwm-jz4740.c jz4740_timer_enable(pwm->hwpwm); hwpwm 69 drivers/pwm/pwm-jz4740.c uint32_t ctrl = jz4740_timer_get_ctrl(pwm->hwpwm); hwpwm 75 drivers/pwm/pwm-jz4740.c jz4740_timer_set_duty(pwm->hwpwm, 0xffff); hwpwm 76 drivers/pwm/pwm-jz4740.c jz4740_timer_set_period(pwm->hwpwm, 0x0); hwpwm 84 drivers/pwm/pwm-jz4740.c jz4740_timer_set_ctrl(pwm->hwpwm, ctrl); hwpwm 87 drivers/pwm/pwm-jz4740.c jz4740_timer_disable(pwm->hwpwm); hwpwm 120 drivers/pwm/pwm-jz4740.c jz4740_timer_set_count(pwm->hwpwm, 0); hwpwm 121 drivers/pwm/pwm-jz4740.c jz4740_timer_set_duty(pwm->hwpwm, duty); hwpwm 122 drivers/pwm/pwm-jz4740.c jz4740_timer_set_period(pwm->hwpwm, period); hwpwm 127 drivers/pwm/pwm-jz4740.c jz4740_timer_set_ctrl(pwm->hwpwm, ctrl); hwpwm 138 drivers/pwm/pwm-jz4740.c jz4740_timer_set_ctrl(pwm->hwpwm, ctrl); hwpwm 34 drivers/pwm/pwm-lp3943.c lp3943_pwm_request_map(struct lp3943_pwm *lp3943_pwm, int hwpwm) hwpwm 45 drivers/pwm/pwm-lp3943.c pwm_map->output = pdata->pwms[hwpwm]->output; hwpwm 46 drivers/pwm/pwm-lp3943.c pwm_map->num_outputs = pdata->pwms[hwpwm]->num_outputs; hwpwm 66 drivers/pwm/pwm-lp3943.c pwm_map = lp3943_pwm_request_map(lp3943_pwm, pwm->hwpwm); hwpwm 113 drivers/pwm/pwm-lp3943.c if (pwm->hwpwm == 0) { hwpwm 159 drivers/pwm/pwm-lp3943.c if (pwm->hwpwm == 0) hwpwm 138 drivers/pwm/pwm-lpc18xx-sct.c val &= ~LPC18XX_PWM_RES_MASK(pwm->hwpwm); hwpwm 139 drivers/pwm/pwm-lpc18xx-sct.c val |= LPC18XX_PWM_RES(pwm->hwpwm, action); hwpwm 206 drivers/pwm/pwm-lpc18xx-sct.c pwm->hwpwm); hwpwm 259 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm_writel(lpc18xx_pwm, LPC18XX_PWM_OUTPUTSET(pwm->hwpwm), hwpwm 261 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm_writel(lpc18xx_pwm, LPC18XX_PWM_OUTPUTCL(pwm->hwpwm), hwpwm 275 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm_writel(lpc18xx_pwm, LPC18XX_PWM_OUTPUTSET(pwm->hwpwm), 0); hwpwm 276 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm_writel(lpc18xx_pwm, LPC18XX_PWM_OUTPUTCL(pwm->hwpwm), 0); hwpwm 54 drivers/pwm/pwm-lpc32xx.c val = readl(lpc32xx->base + (pwm->hwpwm << 2)); hwpwm 57 drivers/pwm/pwm-lpc32xx.c writel(val, lpc32xx->base + (pwm->hwpwm << 2)); hwpwm 72 drivers/pwm/pwm-lpc32xx.c val = readl(lpc32xx->base + (pwm->hwpwm << 2)); hwpwm 74 drivers/pwm/pwm-lpc32xx.c writel(val, lpc32xx->base + (pwm->hwpwm << 2)); hwpwm 84 drivers/pwm/pwm-lpc32xx.c val = readl(lpc32xx->base + (pwm->hwpwm << 2)); hwpwm 86 drivers/pwm/pwm-lpc32xx.c writel(val, lpc32xx->base + (pwm->hwpwm << 2)); hwpwm 130 drivers/pwm/pwm-lpc32xx.c val = readl(lpc32xx->base + (lpc32xx->chip.pwms[0].hwpwm << 2)); hwpwm 132 drivers/pwm/pwm-lpc32xx.c writel(val, lpc32xx->base + (lpc32xx->chip.pwms[0].hwpwm << 2)); hwpwm 41 drivers/pwm/pwm-lpss.c return readl(lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); hwpwm 48 drivers/pwm/pwm-lpss.c writel(value, lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); hwpwm 54 drivers/pwm/pwm-lpss.c const void __iomem *addr = lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM; hwpwm 83 drivers/pwm/pwm-mediatek.c ret = clk_prepare_enable(pc->clk_pwms[pwm->hwpwm]); hwpwm 102 drivers/pwm/pwm-mediatek.c clk_disable_unprepare(pc->clk_pwms[pwm->hwpwm]); hwpwm 136 drivers/pwm/pwm-mediatek.c do_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm])); hwpwm 152 drivers/pwm/pwm-mediatek.c if (pc->soc->pwm45_fixup && pwm->hwpwm > 2) { hwpwm 162 drivers/pwm/pwm-mediatek.c pwm_mediatek_writel(pc, pwm->hwpwm, PWMCON, BIT(15) | clkdiv); hwpwm 163 drivers/pwm/pwm-mediatek.c pwm_mediatek_writel(pc, pwm->hwpwm, reg_width, cnt_period); hwpwm 164 drivers/pwm/pwm-mediatek.c pwm_mediatek_writel(pc, pwm->hwpwm, reg_thres, cnt_duty); hwpwm 182 drivers/pwm/pwm-mediatek.c value |= BIT(pwm->hwpwm); hwpwm 194 drivers/pwm/pwm-mediatek.c value &= ~BIT(pwm->hwpwm); hwpwm 131 drivers/pwm/pwm-meson.c channel = &meson->channels[pwm->hwpwm]; hwpwm 232 drivers/pwm/pwm-meson.c channel_data = &meson_pwm_per_channel_data[pwm->hwpwm]; hwpwm 261 drivers/pwm/pwm-meson.c value &= ~meson_pwm_per_channel_data[pwm->hwpwm].pwm_en_mask; hwpwm 319 drivers/pwm/pwm-meson.c channel = &meson->channels[pwm->hwpwm]; hwpwm 341 drivers/pwm/pwm-meson.c channel = &meson->channels[pwm->hwpwm]; hwpwm 342 drivers/pwm/pwm-meson.c channel_data = &meson_pwm_per_channel_data[pwm->hwpwm]; hwpwm 81 drivers/pwm/pwm-mxs.c mxs->base + PWM_ACTIVE0 + pwm->hwpwm * 0x20); hwpwm 84 drivers/pwm/pwm-mxs.c mxs->base + PWM_PERIOD0 + pwm->hwpwm * 0x20); hwpwm 104 drivers/pwm/pwm-mxs.c writel(1 << pwm->hwpwm, mxs->base + PWM_CTRL + SET); hwpwm 113 drivers/pwm/pwm-mxs.c writel(1 << pwm->hwpwm, mxs->base + PWM_CTRL + CLR); hwpwm 141 drivers/pwm/pwm-pca9685.c regmap_read(pca->regmap, LED_N_ON_H(pwm->hwpwm), &value); hwpwm 154 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, LED_N_OFF_L(pwm->hwpwm), 0); hwpwm 155 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, LED_N_OFF_H(pwm->hwpwm), 0); hwpwm 158 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, LED_N_ON_H(pwm->hwpwm), on); hwpwm 286 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 289 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_H(pwm->hwpwm); hwpwm 298 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 301 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_L(pwm->hwpwm); hwpwm 305 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 308 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_H(pwm->hwpwm); hwpwm 313 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 316 drivers/pwm/pwm-pca9685.c reg = LED_N_ON_H(pwm->hwpwm); hwpwm 326 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 329 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_L(pwm->hwpwm); hwpwm 333 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 336 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_H(pwm->hwpwm); hwpwm 341 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 344 drivers/pwm/pwm-pca9685.c reg = LED_N_ON_H(pwm->hwpwm); hwpwm 360 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 363 drivers/pwm/pwm-pca9685.c reg = LED_N_ON_L(pwm->hwpwm); hwpwm 367 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 370 drivers/pwm/pwm-pca9685.c reg = LED_N_ON_H(pwm->hwpwm); hwpwm 378 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 381 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_H(pwm->hwpwm); hwpwm 393 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 396 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_H(pwm->hwpwm); hwpwm 401 drivers/pwm/pwm-pca9685.c if (pwm->hwpwm >= PCA9685_MAXCHAN) hwpwm 404 drivers/pwm/pwm-pca9685.c reg = LED_N_OFF_L(pwm->hwpwm); hwpwm 413 drivers/pwm/pwm-pca9685.c if (pca9685_pwm_test_and_set_inuse(pca, pwm->hwpwm)) hwpwm 426 drivers/pwm/pwm-pca9685.c pca9685_pwm_clear_inuse(pca, pwm->hwpwm); hwpwm 69 drivers/pwm/pwm-pxa.c offset = pwm->hwpwm ? 0x10 : 0; hwpwm 215 drivers/pwm/pwm-renesas-tpu.c if (_pwm->hwpwm >= TPU_CHANNEL_MAX) hwpwm 223 drivers/pwm/pwm-renesas-tpu.c pwm->channel = _pwm->hwpwm; hwpwm 219 drivers/pwm/pwm-samsung.c if (!(our_chip->variant.output_mask & BIT(pwm->hwpwm))) { hwpwm 222 drivers/pwm/pwm-samsung.c pwm->hwpwm); hwpwm 243 drivers/pwm/pwm-samsung.c unsigned int tcon_chan = to_tcon_channel(pwm->hwpwm); hwpwm 259 drivers/pwm/pwm-samsung.c our_chip->disabled_mask &= ~BIT(pwm->hwpwm); hwpwm 269 drivers/pwm/pwm-samsung.c unsigned int tcon_chan = to_tcon_channel(pwm->hwpwm); hwpwm 279 drivers/pwm/pwm-samsung.c our_chip->disabled_mask |= BIT(pwm->hwpwm); hwpwm 287 drivers/pwm/pwm-samsung.c unsigned int tcon_chan = to_tcon_channel(pwm->hwpwm); hwpwm 318 drivers/pwm/pwm-samsung.c tcnt = readl(our_chip->base + REG_TCNTB(pwm->hwpwm)); hwpwm 319 drivers/pwm/pwm-samsung.c oldtcmp = readl(our_chip->base + REG_TCMPB(pwm->hwpwm)); hwpwm 334 drivers/pwm/pwm-samsung.c tin_rate = pwm_samsung_calc_tin(our_chip, pwm->hwpwm, period); hwpwm 364 drivers/pwm/pwm-samsung.c writel(tcnt, our_chip->base + REG_TCNTB(pwm->hwpwm)); hwpwm 365 drivers/pwm/pwm-samsung.c writel(tcmp, our_chip->base + REG_TCMPB(pwm->hwpwm)); hwpwm 422 drivers/pwm/pwm-samsung.c pwm_samsung_set_invert(our_chip, pwm->hwpwm, invert); hwpwm 116 drivers/pwm/pwm-sifive.c pwm->hwpwm * PWM_SIFIVE_SIZE_PWMCMP); hwpwm 198 drivers/pwm/pwm-sifive.c pwm->hwpwm * PWM_SIFIVE_SIZE_PWMCMP); hwpwm 128 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMCR, hwpwm 130 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMDCR, dc); hwpwm 131 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); hwpwm 147 drivers/pwm/pwm-spear.c val = spear_pwm_readl(pc, pwm->hwpwm, PWMCR); hwpwm 149 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMCR, val); hwpwm 159 drivers/pwm/pwm-spear.c val = spear_pwm_readl(pc, pwm->hwpwm, PWMCR); hwpwm 161 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMCR, val); hwpwm 73 drivers/pwm/pwm-sprd.c struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; hwpwm 85 drivers/pwm/pwm-sprd.c pwm->hwpwm); hwpwm 89 drivers/pwm/pwm-sprd.c val = sprd_pwm_read(spc, pwm->hwpwm, SPRD_PWM_ENABLE); hwpwm 103 drivers/pwm/pwm-sprd.c val = sprd_pwm_read(spc, pwm->hwpwm, SPRD_PWM_PRESCALE); hwpwm 108 drivers/pwm/pwm-sprd.c val = sprd_pwm_read(spc, pwm->hwpwm, SPRD_PWM_DUTY); hwpwm 121 drivers/pwm/pwm-sprd.c struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; hwpwm 151 drivers/pwm/pwm-sprd.c sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_PRESCALE, prescale); hwpwm 152 drivers/pwm/pwm-sprd.c sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_MOD, SPRD_PWM_MOD_MAX); hwpwm 153 drivers/pwm/pwm-sprd.c sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_DUTY, duty); hwpwm 163 drivers/pwm/pwm-sprd.c struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; hwpwm 178 drivers/pwm/pwm-sprd.c pwm->hwpwm); hwpwm 191 drivers/pwm/pwm-sprd.c sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_ENABLE, 1); hwpwm 198 drivers/pwm/pwm-sprd.c sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_ENABLE, 0); hwpwm 191 drivers/pwm/pwm-sti.c ((ncfg == 1) && (pwm->hwpwm == cur->hwpwm)) || hwpwm 192 drivers/pwm/pwm-sti.c ((ncfg == 1) && (pwm->hwpwm != cur->hwpwm) && period_same) || hwpwm 229 drivers/pwm/pwm-sti.c ret = regmap_write(pc->regmap, PWM_OUT_VAL(pwm->hwpwm), value); hwpwm 235 drivers/pwm/pwm-sti.c set_bit(pwm->hwpwm, &pc->configured); hwpwm 274 drivers/pwm/pwm-sti.c pwm->hwpwm, ret); hwpwm 309 drivers/pwm/pwm-sti.c clear_bit(pwm->hwpwm, &pc->configured); hwpwm 323 drivers/pwm/pwm-sti.c if (pwm->hwpwm >= cdata->cpt_num_devs) { hwpwm 324 drivers/pwm/pwm-sti.c dev_err(dev, "device %u is not valid\n", pwm->hwpwm); hwpwm 332 drivers/pwm/pwm-sti.c regmap_write(pc->regmap, PWM_CPT_EDGE(pwm->hwpwm), CPT_EDGE_RISING); hwpwm 333 drivers/pwm/pwm-sti.c regmap_field_write(pc->pwm_cpt_int_en, BIT(pwm->hwpwm)); hwpwm 339 drivers/pwm/pwm-sti.c pwm->hwpwm, ret); hwpwm 346 drivers/pwm/pwm-sti.c regmap_write(pc->regmap, PWM_CPT_EDGE(pwm->hwpwm), CPT_EDGE_DISABLED); hwpwm 119 drivers/pwm/pwm-stm32.c dma_id = pwm->hwpwm < 2 ? STM32_TIMERS_DMA_CH1 : STM32_TIMERS_DMA_CH3; hwpwm 120 drivers/pwm/pwm-stm32.c ccen = pwm->hwpwm < 2 ? TIM_CCER_CC12E : TIM_CCER_CC34E; hwpwm 121 drivers/pwm/pwm-stm32.c ccr = pwm->hwpwm < 2 ? TIM_CCR1 : TIM_CCR3; hwpwm 209 drivers/pwm/pwm-stm32.c pwm->hwpwm < 2 ? TIM_CCMR1 : TIM_CCMR2, hwpwm 210 drivers/pwm/pwm-stm32.c TIM_CCMR_CC1S | TIM_CCMR_CC2S, pwm->hwpwm & 0x1 ? hwpwm 215 drivers/pwm/pwm-stm32.c regmap_update_bits(priv->regmap, TIM_CCER, pwm->hwpwm < 2 ? hwpwm 216 drivers/pwm/pwm-stm32.c TIM_CCER_CC12P : TIM_CCER_CC34P, pwm->hwpwm < 2 ? hwpwm 263 drivers/pwm/pwm-stm32.c pwm->hwpwm < 2 ? TIM_CCMR1 : TIM_CCMR2, hwpwm 309 drivers/pwm/pwm-stm32.c regmap_write(priv->regmap, pwm->hwpwm < 2 ? TIM_CCMR1 : TIM_CCMR2, 0); hwpwm 452 drivers/pwm/pwm-stm32.c stm32_pwm_disable(priv, pwm->hwpwm); hwpwm 457 drivers/pwm/pwm-stm32.c stm32_pwm_set_polarity(priv, pwm->hwpwm, state->polarity); hwpwm 459 drivers/pwm/pwm-stm32.c ret = stm32_pwm_config(priv, pwm->hwpwm, hwpwm 465 drivers/pwm/pwm-stm32.c ret = stm32_pwm_enable(priv, pwm->hwpwm); hwpwm 48 drivers/pwm/pwm-stmpe.c pwm->hwpwm); hwpwm 52 drivers/pwm/pwm-stmpe.c value = ret | BIT(pwm->hwpwm); hwpwm 57 drivers/pwm/pwm-stmpe.c pwm->hwpwm); hwpwm 74 drivers/pwm/pwm-stmpe.c pwm->hwpwm); hwpwm 78 drivers/pwm/pwm-stmpe.c value = ret & ~BIT(pwm->hwpwm); hwpwm 83 drivers/pwm/pwm-stmpe.c pwm->hwpwm); hwpwm 117 drivers/pwm/pwm-stmpe.c pin = pwm->hwpwm; hwpwm 128 drivers/pwm/pwm-stmpe.c pwm->hwpwm); hwpwm 134 drivers/pwm/pwm-stmpe.c switch (pwm->hwpwm) { hwpwm 153 drivers/pwm/pwm-stmpe.c pwm->hwpwm, duty_ns, period_ns); hwpwm 220 drivers/pwm/pwm-stmpe.c pwm->hwpwm, value, last, program[0], program[1], hwpwm 257 drivers/pwm/pwm-stmpe.c dev_dbg(chip->dev, "programmed PWM#%u, %u bytes\n", pwm->hwpwm, i); hwpwm 118 drivers/pwm/pwm-sun4i.c if ((PWM_REG_PRESCAL(val, pwm->hwpwm) == PWM_PRESCAL_MASK) && hwpwm 122 drivers/pwm/pwm-sun4i.c prescaler = prescaler_table[PWM_REG_PRESCAL(val, pwm->hwpwm)]; hwpwm 127 drivers/pwm/pwm-sun4i.c if (val & BIT_CH(PWM_ACT_STATE, pwm->hwpwm)) hwpwm 132 drivers/pwm/pwm-sun4i.c if ((val & BIT_CH(PWM_CLK_GATING | PWM_EN, pwm->hwpwm)) == hwpwm 133 drivers/pwm/pwm-sun4i.c BIT_CH(PWM_CLK_GATING | PWM_EN, pwm->hwpwm)) hwpwm 138 drivers/pwm/pwm-sun4i.c val = sun4i_pwm_readl(sun4i_pwm, PWM_CH_PRD(pwm->hwpwm)); hwpwm 236 drivers/pwm/pwm-sun4i.c if (PWM_REG_PRESCAL(ctrl, pwm->hwpwm) != prescaler) { hwpwm 238 drivers/pwm/pwm-sun4i.c ctrl &= ~BIT_CH(PWM_CLK_GATING, pwm->hwpwm); hwpwm 241 drivers/pwm/pwm-sun4i.c ctrl &= ~BIT_CH(PWM_PRESCAL_MASK, pwm->hwpwm); hwpwm 242 drivers/pwm/pwm-sun4i.c ctrl |= BIT_CH(prescaler, pwm->hwpwm); hwpwm 246 drivers/pwm/pwm-sun4i.c sun4i_pwm_writel(sun4i_pwm, val, PWM_CH_PRD(pwm->hwpwm)); hwpwm 247 drivers/pwm/pwm-sun4i.c sun4i_pwm->next_period[pwm->hwpwm] = jiffies + hwpwm 249 drivers/pwm/pwm-sun4i.c sun4i_pwm->needs_delay[pwm->hwpwm] = true; hwpwm 253 drivers/pwm/pwm-sun4i.c ctrl &= ~BIT_CH(PWM_ACT_STATE, pwm->hwpwm); hwpwm 255 drivers/pwm/pwm-sun4i.c ctrl |= BIT_CH(PWM_ACT_STATE, pwm->hwpwm); hwpwm 257 drivers/pwm/pwm-sun4i.c ctrl |= BIT_CH(PWM_CLK_GATING, pwm->hwpwm); hwpwm 259 drivers/pwm/pwm-sun4i.c ctrl |= BIT_CH(PWM_EN, pwm->hwpwm); hwpwm 260 drivers/pwm/pwm-sun4i.c } else if (!sun4i_pwm->needs_delay[pwm->hwpwm]) { hwpwm 261 drivers/pwm/pwm-sun4i.c ctrl &= ~BIT_CH(PWM_EN, pwm->hwpwm); hwpwm 262 drivers/pwm/pwm-sun4i.c ctrl &= ~BIT_CH(PWM_CLK_GATING, pwm->hwpwm); hwpwm 272 drivers/pwm/pwm-sun4i.c if (!sun4i_pwm->needs_delay[pwm->hwpwm]) { hwpwm 279 drivers/pwm/pwm-sun4i.c if (sun4i_pwm->needs_delay[pwm->hwpwm] && hwpwm 280 drivers/pwm/pwm-sun4i.c time_before(now, sun4i_pwm->next_period[pwm->hwpwm])) { hwpwm 281 drivers/pwm/pwm-sun4i.c delay_us = jiffies_to_usecs(sun4i_pwm->next_period[pwm->hwpwm] - hwpwm 288 drivers/pwm/pwm-sun4i.c sun4i_pwm->needs_delay[pwm->hwpwm] = false; hwpwm 292 drivers/pwm/pwm-sun4i.c ctrl &= ~BIT_CH(PWM_CLK_GATING, pwm->hwpwm); hwpwm 293 drivers/pwm/pwm-sun4i.c ctrl &= ~BIT_CH(PWM_EN, pwm->hwpwm); hwpwm 123 drivers/pwm/pwm-tegra.c pwm_writel(pc, pwm->hwpwm, val); hwpwm 144 drivers/pwm/pwm-tegra.c val = pwm_readl(pc, pwm->hwpwm); hwpwm 146 drivers/pwm/pwm-tegra.c pwm_writel(pc, pwm->hwpwm, val); hwpwm 156 drivers/pwm/pwm-tegra.c val = pwm_readl(pc, pwm->hwpwm); hwpwm 158 drivers/pwm/pwm-tegra.c pwm_writel(pc, pwm->hwpwm, val); hwpwm 256 drivers/pwm/pwm-tiehrpwm.c if (i == pwm->hwpwm) hwpwm 266 drivers/pwm/pwm-tiehrpwm.c pc->period_cycles[pwm->hwpwm] = period_cycles; hwpwm 293 drivers/pwm/pwm-tiehrpwm.c if (pwm->hwpwm == 1) hwpwm 314 drivers/pwm/pwm-tiehrpwm.c pc->polarity[pwm->hwpwm] = polarity; hwpwm 329 drivers/pwm/pwm-tiehrpwm.c if (pwm->hwpwm) { hwpwm 344 drivers/pwm/pwm-tiehrpwm.c configure_polarity(pc, pwm->hwpwm); hwpwm 363 drivers/pwm/pwm-tiehrpwm.c if (pwm->hwpwm) { hwpwm 401 drivers/pwm/pwm-tiehrpwm.c pc->period_cycles[pwm->hwpwm] = 0; hwpwm 81 drivers/pwm/pwm-twl-led.c base = pwm->hwpwm * 2 + TWL4030_PWMA_REG; hwpwm 105 drivers/pwm/pwm-twl-led.c val |= TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS); hwpwm 130 drivers/pwm/pwm-twl-led.c val &= ~TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS); hwpwm 83 drivers/pwm/pwm-twl.c base = pwm->hwpwm * 3; hwpwm 107 drivers/pwm/pwm-twl.c val |= TWL4030_PWM_TOGGLE(pwm->hwpwm, TWL4030_PWMXCLK_ENABLE); hwpwm 113 drivers/pwm/pwm-twl.c val |= TWL4030_PWM_TOGGLE(pwm->hwpwm, TWL4030_PWMX_ENABLE); hwpwm 137 drivers/pwm/pwm-twl.c val &= ~TWL4030_PWM_TOGGLE(pwm->hwpwm, TWL4030_PWMX_ENABLE); hwpwm 143 drivers/pwm/pwm-twl.c val &= ~TWL4030_PWM_TOGGLE(pwm->hwpwm, TWL4030_PWMXCLK_ENABLE); hwpwm 159 drivers/pwm/pwm-twl.c if (pwm->hwpwm == 1) { hwpwm 197 drivers/pwm/pwm-twl.c if (pwm->hwpwm == 1) hwpwm 229 drivers/pwm/pwm-twl.c val |= TWL6030_PWM_TOGGLE(pwm->hwpwm, TWL6030_PWMXS | TWL6030_PWMXEN); hwpwm 230 drivers/pwm/pwm-twl.c val &= ~TWL6030_PWM_TOGGLE(pwm->hwpwm, TWL6030_PWMXR); hwpwm 252 drivers/pwm/pwm-twl.c val |= TWL6030_PWM_TOGGLE(pwm->hwpwm, TWL6030_PWMXR); hwpwm 253 drivers/pwm/pwm-twl.c val &= ~TWL6030_PWM_TOGGLE(pwm->hwpwm, TWL6030_PWMXS | TWL6030_PWMXEN); hwpwm 261 drivers/pwm/pwm-twl.c val |= TWL6030_PWM_TOGGLE(pwm->hwpwm, TWL6030_PWMXEN); hwpwm 269 drivers/pwm/pwm-twl.c val &= ~TWL6030_PWM_TOGGLE(pwm->hwpwm, TWL6030_PWMXEN); hwpwm 108 drivers/pwm/pwm-vt8500.c writel(prescale, vt8500->base + REG_SCALAR(pwm->hwpwm)); hwpwm 109 drivers/pwm/pwm-vt8500.c pwm_busy_wait(vt8500, pwm->hwpwm, STATUS_SCALAR_UPDATE); hwpwm 111 drivers/pwm/pwm-vt8500.c writel(pv, vt8500->base + REG_PERIOD(pwm->hwpwm)); hwpwm 112 drivers/pwm/pwm-vt8500.c pwm_busy_wait(vt8500, pwm->hwpwm, STATUS_PERIOD_UPDATE); hwpwm 114 drivers/pwm/pwm-vt8500.c writel(dc, vt8500->base + REG_DUTY(pwm->hwpwm)); hwpwm 115 drivers/pwm/pwm-vt8500.c pwm_busy_wait(vt8500, pwm->hwpwm, STATUS_DUTY_UPDATE); hwpwm 117 drivers/pwm/pwm-vt8500.c val = readl(vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 119 drivers/pwm/pwm-vt8500.c writel(val, vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 120 drivers/pwm/pwm-vt8500.c pwm_busy_wait(vt8500, pwm->hwpwm, STATUS_CTRL_UPDATE); hwpwm 138 drivers/pwm/pwm-vt8500.c val = readl(vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 140 drivers/pwm/pwm-vt8500.c writel(val, vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 141 drivers/pwm/pwm-vt8500.c pwm_busy_wait(vt8500, pwm->hwpwm, STATUS_CTRL_UPDATE); hwpwm 151 drivers/pwm/pwm-vt8500.c val = readl(vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 153 drivers/pwm/pwm-vt8500.c writel(val, vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 154 drivers/pwm/pwm-vt8500.c pwm_busy_wait(vt8500, pwm->hwpwm, STATUS_CTRL_UPDATE); hwpwm 166 drivers/pwm/pwm-vt8500.c val = readl(vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 173 drivers/pwm/pwm-vt8500.c writel(val, vt8500->base + REG_CTRL(pwm->hwpwm)); hwpwm 174 drivers/pwm/pwm-vt8500.c pwm_busy_wait(vt8500, pwm->hwpwm, STATUS_CTRL_UPDATE); hwpwm 41 drivers/pwm/pwm-zx.c static inline u32 zx_pwm_readl(struct zx_pwm_chip *zpc, unsigned int hwpwm, hwpwm 44 drivers/pwm/pwm-zx.c return readl(zpc->base + (hwpwm + 1) * 0x10 + offset); hwpwm 47 drivers/pwm/pwm-zx.c static inline void zx_pwm_writel(struct zx_pwm_chip *zpc, unsigned int hwpwm, hwpwm 50 drivers/pwm/pwm-zx.c writel(value, zpc->base + (hwpwm + 1) * 0x10 + offset); hwpwm 53 drivers/pwm/pwm-zx.c static void zx_pwm_set_mask(struct zx_pwm_chip *zpc, unsigned int hwpwm, hwpwm 58 drivers/pwm/pwm-zx.c data = zx_pwm_readl(zpc, hwpwm, offset); hwpwm 61 drivers/pwm/pwm-zx.c zx_pwm_writel(zpc, hwpwm, offset, data); hwpwm 73 drivers/pwm/pwm-zx.c value = zx_pwm_readl(zpc, pwm->hwpwm, ZX_PWM_MODE); hwpwm 88 drivers/pwm/pwm-zx.c tmp = zx_pwm_readl(zpc, pwm->hwpwm, ZX_PWM_PERIOD); hwpwm 92 drivers/pwm/pwm-zx.c tmp = zx_pwm_readl(zpc, pwm->hwpwm, ZX_PWM_DUTY); hwpwm 134 drivers/pwm/pwm-zx.c zx_pwm_set_mask(zpc, pwm->hwpwm, ZX_PWM_MODE, ZX_PWM_EN, 0); hwpwm 137 drivers/pwm/pwm-zx.c zx_pwm_set_mask(zpc, pwm->hwpwm, ZX_PWM_MODE, ZX_PWM_CLKDIV_MASK, hwpwm 139 drivers/pwm/pwm-zx.c zx_pwm_writel(zpc, pwm->hwpwm, ZX_PWM_PERIOD, period_cycles); hwpwm 140 drivers/pwm/pwm-zx.c zx_pwm_writel(zpc, pwm->hwpwm, ZX_PWM_DUTY, duty_cycles); hwpwm 144 drivers/pwm/pwm-zx.c zx_pwm_set_mask(zpc, pwm->hwpwm, ZX_PWM_MODE, hwpwm 160 drivers/pwm/pwm-zx.c zx_pwm_set_mask(zpc, pwm->hwpwm, ZX_PWM_MODE, ZX_PWM_POLAR, hwpwm 178 drivers/pwm/pwm-zx.c zx_pwm_set_mask(zpc, pwm->hwpwm, ZX_PWM_MODE, hwpwm 181 drivers/pwm/pwm-zx.c zx_pwm_set_mask(zpc, pwm->hwpwm, ZX_PWM_MODE, hwpwm 263 drivers/pwm/sysfs.c dev_set_name(&export->child, "pwm%u", pwm->hwpwm); hwpwm 272 drivers/pwm/sysfs.c pwm_prop[0] = kasprintf(GFP_KERNEL, "EXPORT=pwm%u", pwm->hwpwm); hwpwm 297 drivers/pwm/sysfs.c pwm_prop[0] = kasprintf(GFP_KERNEL, "UNEXPORT=pwm%u", pwm->hwpwm); hwpwm 316 drivers/pwm/sysfs.c unsigned int hwpwm; hwpwm 319 drivers/pwm/sysfs.c ret = kstrtouint(buf, 0, &hwpwm); hwpwm 323 drivers/pwm/sysfs.c if (hwpwm >= chip->npwm) hwpwm 326 drivers/pwm/sysfs.c pwm = pwm_request_from_chip(chip, hwpwm, "sysfs"); hwpwm 343 drivers/pwm/sysfs.c unsigned int hwpwm; hwpwm 346 drivers/pwm/sysfs.c ret = kstrtouint(buf, 0, &hwpwm); hwpwm 350 drivers/pwm/sysfs.c if (hwpwm >= chip->npwm) hwpwm 353 drivers/pwm/sysfs.c ret = pwm_unexport_child(parent, &chip->pwms[hwpwm]); hwpwm 194 drivers/staging/greybus/pwm.c return gb_pwm_activate_operation(pwmc, pwm->hwpwm); hwpwm 204 drivers/staging/greybus/pwm.c gb_pwm_deactivate_operation(pwmc, pwm->hwpwm); hwpwm 212 drivers/staging/greybus/pwm.c return gb_pwm_config_operation(pwmc, pwm->hwpwm, duty_ns, period_ns); hwpwm 220 drivers/staging/greybus/pwm.c return gb_pwm_set_polarity_operation(pwmc, pwm->hwpwm, polarity); hwpwm 227 drivers/staging/greybus/pwm.c return gb_pwm_enable_operation(pwmc, pwm->hwpwm); hwpwm 234 drivers/staging/greybus/pwm.c gb_pwm_disable_operation(pwmc, pwm->hwpwm); hwpwm 79 include/linux/pwm.h unsigned int hwpwm;