npwm 827 drivers/gpio/gpio-mvebu.c mvpwm->chip.npwm = mvchip->chip.ngpio; npwm 64 drivers/pwm/core.c for (i = 0; i < chip->npwm; i++) { npwm 70 drivers/pwm/core.c bitmap_clear(allocated_pwms, chip->base, chip->npwm); npwm 136 drivers/pwm/core.c if (args->args[0] >= pc->npwm) npwm 166 drivers/pwm/core.c if (args->args[0] >= pc->npwm) npwm 258 drivers/pwm/core.c if (!chip || !chip->dev || !chip->ops || !chip->npwm) npwm 266 drivers/pwm/core.c ret = alloc_pwms(chip->base, chip->npwm); npwm 270 drivers/pwm/core.c chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL); npwm 278 drivers/pwm/core.c for (i = 0; i < chip->npwm; i++) { npwm 292 drivers/pwm/core.c bitmap_set(allocated_pwms, chip->base, chip->npwm); npwm 345 drivers/pwm/core.c for (i = 0; i < chip->npwm; i++) { npwm 421 drivers/pwm/core.c if (!chip || index >= chip->npwm) npwm 1145 drivers/pwm/core.c for (i = 0; i < chip->npwm; i++) { npwm 1194 drivers/pwm/core.c dev_name(chip->dev), chip->npwm, npwm 1195 drivers/pwm/core.c (chip->npwm != 1) ? "s" : ""); npwm 105 drivers/pwm/pwm-ab8500.c ab8500->chip.npwm = 1; npwm 269 drivers/pwm/pwm-atmel-hlcdc.c chip->chip.npwm = 1; npwm 412 drivers/pwm/pwm-atmel-tcb.c tcbpwm->chip.npwm = NPWM; npwm 374 drivers/pwm/pwm-atmel.c atmel_pwm->chip.npwm = 4; npwm 210 drivers/pwm/pwm-bcm-iproc.c ip->chip.npwm = 4; npwm 235 drivers/pwm/pwm-bcm-iproc.c for (i = 0; i < ip->chip.npwm; i++) { npwm 276 drivers/pwm/pwm-bcm-kona.c kp->chip.npwm = 6; npwm 299 drivers/pwm/pwm-bcm-kona.c for (chan = 0; chan < kp->chip.npwm; chan++) npwm 318 drivers/pwm/pwm-bcm-kona.c for (chan = 0; chan < kp->chip.npwm; chan++) npwm 170 drivers/pwm/pwm-bcm2835.c pc->chip.npwm = 2; npwm 212 drivers/pwm/pwm-berlin.c pwm->chip.npwm = 4; npwm 245 drivers/pwm/pwm-berlin.c for (i = 0; i < pwm->chip.npwm; i++) { npwm 273 drivers/pwm/pwm-berlin.c for (i = 0; i < pwm->chip.npwm; i++) { npwm 263 drivers/pwm/pwm-brcmstb.c p->chip.npwm = 2; npwm 107 drivers/pwm/pwm-clps711x.c if (args->args[0] >= chip->npwm) npwm 134 drivers/pwm/pwm-clps711x.c priv->chip.npwm = 2; npwm 110 drivers/pwm/pwm-crc.c pwm->chip.npwm = 1; npwm 138 drivers/pwm/pwm-cros-ec.c if (args->args[0] >= pc->npwm) npwm 215 drivers/pwm/pwm-cros-ec.c chip->npwm = ret; npwm 216 drivers/pwm/pwm-cros-ec.c dev_dbg(dev, "Probed %u PWMs\n", chip->npwm); npwm 191 drivers/pwm/pwm-ep93xx.c ep93xx_pwm->chip.npwm = 1; npwm 459 drivers/pwm/pwm-fsl-ftm.c fpc->chip.npwm = 8; npwm 488 drivers/pwm/pwm-fsl-ftm.c for (i = 0; i < fpc->chip.npwm; i++) { npwm 511 drivers/pwm/pwm-fsl-ftm.c for (i = 0; i < fpc->chip.npwm; i++) { npwm 211 drivers/pwm/pwm-hibvt.c pwm_chip->chip.npwm = soc->num_pwms; npwm 241 drivers/pwm/pwm-hibvt.c for (i = 0; i < pwm_chip->chip.npwm; i++) { npwm 306 drivers/pwm/pwm-img.c pwm->chip.npwm = IMG_PWM_NPWM; npwm 337 drivers/pwm/pwm-img.c for (i = 0; i < pwm_chip->chip.npwm; i++) { npwm 363 drivers/pwm/pwm-img.c for (i = 0; i < pwm_chip->chip.npwm; i++) npwm 384 drivers/pwm/pwm-img.c for (i = 0; i < pwm_chip->chip.npwm; i++) npwm 390 drivers/pwm/pwm-img.c for (i = 0; i < pwm_chip->chip.npwm; i++) npwm 378 drivers/pwm/pwm-imx-tpm.c tpm->chip.npwm = FIELD_GET(PWM_IMX_TPM_PARAM_CHAN, val); npwm 169 drivers/pwm/pwm-imx1.c imx->chip.npwm = 1; npwm 327 drivers/pwm/pwm-imx27.c imx->chip.npwm = 1; npwm 167 drivers/pwm/pwm-jz4740.c jz4740->chip.npwm = NUM_PWM; npwm 277 drivers/pwm/pwm-lp3943.c lp3943_pwm->chip.npwm = LP3943_NUM_PWMS; npwm 214 drivers/pwm/pwm-lpc18xx-sct.c for (i = 0; i < chip->npwm; i++) npwm 376 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm->chip.npwm = 16; npwm 409 drivers/pwm/pwm-lpc18xx-sct.c for (i = 0; i < lpc18xx_pwm->chip.npwm; i++) { npwm 120 drivers/pwm/pwm-lpc32xx.c lpc32xx->chip.npwm = 1; npwm 144 drivers/pwm/pwm-lpc32xx.c for (i = 0; i < lpc32xx->chip.npwm; i++) npwm 20 drivers/pwm/pwm-lpss-pci.c .npwm = 1, npwm 27 drivers/pwm/pwm-lpss-pci.c .npwm = 1, npwm 34 drivers/pwm/pwm-lpss-pci.c .npwm = 4, npwm 42 drivers/pwm/pwm-lpss-pci.c .npwm = 4, npwm 21 drivers/pwm/pwm-lpss-platform.c .npwm = 1, npwm 28 drivers/pwm/pwm-lpss-platform.c .npwm = 1, npwm 36 drivers/pwm/pwm-lpss-platform.c .npwm = 4, npwm 207 drivers/pwm/pwm-lpss.c if (WARN_ON(info->npwm > MAX_PWMS)) npwm 227 drivers/pwm/pwm-lpss.c lpwm->chip.npwm = info->npwm; npwm 243 drivers/pwm/pwm-lpss.c for (i = 0; i < lpwm->info->npwm; i++) { npwm 256 drivers/pwm/pwm-lpss.c for (i = 0; i < lpwm->info->npwm; i++) npwm 268 drivers/pwm/pwm-lpss.c for (i = 0; i < lpwm->info->npwm; i++) npwm 27 drivers/pwm/pwm-lpss.h unsigned int npwm; npwm 262 drivers/pwm/pwm-mediatek.c pc->chip.npwm = pc->soc->num_pwms; npwm 500 drivers/pwm/pwm-meson.c for (i = 0; i < meson->chip.npwm; i++) { npwm 556 drivers/pwm/pwm-meson.c meson->chip.npwm = MESON_NUM_PWMS; npwm 208 drivers/pwm/pwm-mtk-disp.c mdp->chip.npwm = 1; npwm 147 drivers/pwm/pwm-mxs.c ret = of_property_read_u32(np, "fsl,pwm-number", &mxs->chip.npwm); npwm 328 drivers/pwm/pwm-omap-dmtimer.c omap->chip.npwm = 1; npwm 488 drivers/pwm/pwm-pca9685.c pca->chip.npwm = PCA9685_MAXCHAN + 1; npwm 122 drivers/pwm/pwm-puv3.c puv3->chip.npwm = 1; npwm 189 drivers/pwm/pwm-pxa.c pwm->chip.npwm = (id->driver_data & HAS_SECONDARY_PWM) ? 2 : 1; npwm 229 drivers/pwm/pwm-rcar.c rcar_pwm->chip.npwm = 1; npwm 416 drivers/pwm/pwm-renesas-tpu.c tpu->chip.npwm = TPU_CHANNEL_MAX; npwm 355 drivers/pwm/pwm-rockchip.c pc->chip.npwm = 1; npwm 524 drivers/pwm/pwm-samsung.c chip->chip.npwm = SAMSUNG_PWM_NUM; npwm 249 drivers/pwm/pwm-sifive.c chip->npwm = 4; npwm 284 drivers/pwm/pwm-sifive.c dev_dbg(dev, "SiFive PWM chip registered %d PWMs\n", chip->npwm); npwm 303 drivers/pwm/pwm-sifive.c for (ch = 0; ch < ddata->chip.npwm; ch++) { npwm 199 drivers/pwm/pwm-spear.c pc->chip.npwm = NUM_PWM; npwm 275 drivers/pwm/pwm-sprd.c spc->chip.npwm = spc->num_pwms; npwm 631 drivers/pwm/pwm-sti.c pc->chip.npwm = pc->cdata->pwm_num_devs; npwm 211 drivers/pwm/pwm-stm32-lp.c priv->chip.npwm = 1; npwm 142 drivers/pwm/pwm-stm32.c if (pwm->chip->npwm < 2) npwm 569 drivers/pwm/pwm-stm32.c int npwm = 0; npwm 581 drivers/pwm/pwm-stm32.c npwm++; npwm 584 drivers/pwm/pwm-stm32.c npwm++; npwm 587 drivers/pwm/pwm-stm32.c npwm++; npwm 590 drivers/pwm/pwm-stm32.c npwm++; npwm 592 drivers/pwm/pwm-stm32.c return npwm; npwm 626 drivers/pwm/pwm-stm32.c priv->chip.npwm = stm32_pwm_detect_channels(priv); npwm 642 drivers/pwm/pwm-stm32.c for (i = 0; i < priv->chip.npwm; i++) npwm 285 drivers/pwm/pwm-stmpe.c pwm->chip.npwm = 3; npwm 75 drivers/pwm/pwm-sun4i.c unsigned int npwm; npwm 310 drivers/pwm/pwm-sun4i.c .npwm = 2, npwm 315 drivers/pwm/pwm-sun4i.c .npwm = 2, npwm 320 drivers/pwm/pwm-sun4i.c .npwm = 1, npwm 371 drivers/pwm/pwm-sun4i.c pwm->chip.npwm = pwm->data->npwm; npwm 220 drivers/pwm/pwm-tegra.c pwm->chip.npwm = pwm->soc->num_channels; npwm 245 drivers/pwm/pwm-tegra.c for (i = 0; i < pc->chip.npwm; i++) { npwm 231 drivers/pwm/pwm-tiecap.c pc->chip.npwm = 1; npwm 456 drivers/pwm/pwm-tiehrpwm.c pc->chip.npwm = NUM_PWM_CHANNEL; npwm 540 drivers/pwm/pwm-tiehrpwm.c for (i = 0; i < pc->chip.npwm; i++) { npwm 558 drivers/pwm/pwm-tiehrpwm.c for (i = 0; i < pc->chip.npwm; i++) { npwm 287 drivers/pwm/pwm-twl-led.c twl->chip.npwm = 2; npwm 290 drivers/pwm/pwm-twl-led.c twl->chip.npwm = 1; npwm 314 drivers/pwm/pwm-twl.c twl->chip.npwm = 2; npwm 214 drivers/pwm/pwm-vt8500.c chip->chip.npwm = VT8500_NR_PWMS; npwm 227 drivers/pwm/pwm-zx.c zpc->chip.npwm = 4; npwm 235 drivers/pwm/pwm-zx.c for (i = 0; i < zpc->chip.npwm; i++) npwm 323 drivers/pwm/sysfs.c if (hwpwm >= chip->npwm) npwm 350 drivers/pwm/sysfs.c if (hwpwm >= chip->npwm) npwm 364 drivers/pwm/sysfs.c return sprintf(buf, "%u\n", chip->npwm); npwm 366 drivers/pwm/sysfs.c static DEVICE_ATTR_RO(npwm); npwm 412 drivers/pwm/sysfs.c static int pwm_class_resume_npwm(struct device *parent, unsigned int npwm) npwm 418 drivers/pwm/sysfs.c for (i = 0; i < npwm; i++) { npwm 442 drivers/pwm/sysfs.c for (i = 0; i < chip->npwm; i++) { npwm 471 drivers/pwm/sysfs.c return pwm_class_resume_npwm(parent, chip->npwm); npwm 514 drivers/pwm/sysfs.c for (i = 0; i < chip->npwm; i++) { npwm 285 drivers/staging/greybus/pwm.c pwm->npwm = pwmc->pwm_max + 1; npwm 294 include/linux/pwm.h unsigned int npwm;