/drivers/pwm/ |
D | pwm-lpss-pci.c | 20 .npwm = 1, 27 .npwm = 1, 34 .npwm = 4, 42 .npwm = 4,
|
D | sysfs.c | 323 if (hwpwm >= chip->npwm) in export_store() 350 if (hwpwm >= chip->npwm) in unexport_store() 364 return sprintf(buf, "%u\n", chip->npwm); in npwm_show() 366 static DEVICE_ATTR_RO(npwm); 412 static int pwm_class_resume_npwm(struct device *parent, unsigned int npwm) in pwm_class_resume_npwm() argument 418 for (i = 0; i < npwm; i++) { in pwm_class_resume_npwm() 449 for (i = 0; i < chip->npwm; i++) { in pwm_class_suspend() 488 return pwm_class_resume_npwm(parent, chip->npwm); in pwm_class_resume() 531 for (i = 0; i < chip->npwm; i++) { in pwmchip_sysfs_unexport()
|
D | pwm-sun4i.c | 81 unsigned int npwm; member 338 .npwm = 2, 343 .npwm = 2, 348 .npwm = 1, 354 .npwm = 1, 360 .npwm = 2, 462 pwm->chip.npwm = pwm->data->npwm; in sun4i_pwm_probe()
|
D | pwm-lpss-platform.c | 21 .npwm = 1, 28 .npwm = 1, 36 .npwm = 4,
|
D | core.c | 57 for (i = 0; i < chip->npwm; i++) { in free_pwms() 63 bitmap_clear(allocated_pwms, chip->base, chip->npwm); in free_pwms() 136 if (args->args[0] >= pc->npwm) in of_pwm_xlate_with_flags() 248 if (!chip || !chip->dev || !chip->ops || !chip->npwm) in pwmchip_add() 256 ret = alloc_pwms(chip->npwm); in pwmchip_add() 262 chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL); in pwmchip_add() 268 for (i = 0; i < chip->npwm; i++) { in pwmchip_add() 278 bitmap_set(allocated_pwms, chip->base, chip->npwm); in pwmchip_add() 397 if (!chip || index >= chip->npwm) in pwm_request_from_chip() 1168 for (i = 0; i < chip->npwm; i++) { in pwm_dbg_show() [all …]
|
D | pwm-lpss.c | 218 if (WARN_ON(info->npwm > MAX_PWMS)) in pwm_lpss_probe() 237 lpwm->chip.npwm = info->npwm; in pwm_lpss_probe() 245 for (i = 0; i < lpwm->info->npwm; i++) { in pwm_lpss_probe()
|
D | pwm-sifive.c | 254 chip->npwm = 4; in pwm_sifive_probe() 275 for (i = 0; i < chip->npwm; ++i) { in pwm_sifive_probe() 313 dev_dbg(dev, "SiFive PWM chip registered %d PWMs\n", chip->npwm); in pwm_sifive_probe() 338 for (ch = 0; ch < ddata->chip.npwm; ch++) { in pwm_sifive_remove()
|
D | pwm-cros-ec.c | 182 if (args->args[0] >= pc->npwm) in cros_ec_pwm_xlate() 265 chip->npwm = ret; in cros_ec_pwm_probe() 266 dev_dbg(dev, "Probed %u PWMs\n", chip->npwm); in cros_ec_pwm_probe()
|
D | pwm-img.c | 307 pwm->chip.npwm = IMG_PWM_NPWM; in img_pwm_probe() 351 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_suspend() 372 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_resume() 378 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_resume()
|
D | pwm-berlin.c | 239 bpc->chip.npwm = 4; in berlin_pwm_probe() 270 for (i = 0; i < bpc->chip.npwm; i++) { in berlin_pwm_suspend() 298 for (i = 0; i < bpc->chip.npwm; i++) { in berlin_pwm_resume()
|
D | pwm-clps711x.c | 107 if (args->args[0] >= chip->npwm) in clps711x_pwm_xlate() 131 priv->chip.npwm = 2; in clps711x_pwm_probe()
|
D | pwm-lpss.h | 26 unsigned int npwm; member
|
D | pwm-jz4740.c | 41 u32 pwm_channels_mask = GENMASK(jz->chip.npwm - 1, 2); in jz4740_pwm_can_use_chn() 247 jz4740->chip.npwm = info->num_pwms; in jz4740_pwm_probe()
|
D | pwm-stm32.c | 145 if (pwm->chip->npwm < 2) in stm32_pwm_raw_capture() 627 priv->chip.npwm = stm32_pwm_detect_channels(priv, &num_enabled); in stm32_pwm_probe() 647 for (i = 0; i < priv->chip.npwm; i++) in stm32_pwm_remove() 664 for (i = 0; i < priv->chip.npwm; i++) { in stm32_pwm_suspend()
|
D | pwm-bcm-kona.c | 272 kp->chip.npwm = 6; in kona_pwmc_probe() 292 for (chan = 0; chan < kp->chip.npwm; chan++) in kona_pwmc_probe()
|
D | pwm-twl-led.c | 286 twl->chip.npwm = 2; in twl_pwmled_probe() 289 twl->chip.npwm = 1; in twl_pwmled_probe()
|
D | pwm-bcm-iproc.c | 212 ip->chip.npwm = 4; in iproc_pwmc_probe() 234 for (i = 0; i < ip->chip.npwm; i++) { in iproc_pwmc_probe()
|
D | pwm-hibvt.c | 209 pwm_chip->chip.npwm = soc->num_pwms; in hibvt_pwm_probe() 236 for (i = 0; i < pwm_chip->chip.npwm; i++) { in hibvt_pwm_probe()
|
D | pwm-fsl-ftm.c | 454 fpc->chip.npwm = 8; in fsl_pwm_probe() 476 for (i = 0; i < fpc->chip.npwm; i++) { in fsl_pwm_suspend() 499 for (i = 0; i < fpc->chip.npwm; i++) { in fsl_pwm_resume()
|
D | pwm-tiehrpwm.c | 450 pc->chip.npwm = NUM_PWM_CHANNEL; in ehrpwm_pwm_probe() 533 for (i = 0; i < pc->chip.npwm; i++) { in ehrpwm_pwm_suspend() 551 for (i = 0; i < pc->chip.npwm; i++) { in ehrpwm_pwm_resume()
|
D | pwm-ab8500.c | 111 ab8500->chip.npwm = 1; in ab8500_pwm_probe()
|
D | pwm-ntxec.c | 156 chip->npwm = 1; in ntxec_pwm_probe()
|
D | pwm-lpc18xx-sct.c | 225 for (i = 0; i < chip->npwm; i++) in lpc18xx_pwm_config() 398 lpc18xx_pwm->chip.npwm = LPC18XX_NUM_PWMS; in lpc18xx_pwm_probe()
|
D | pwm-lpc32xx.c | 118 lpc32xx->chip.npwm = 1; in lpc32xx_pwm_probe()
|
D | pwm-imx1.c | 156 imx->chip.npwm = 1; in pwm_imx1_probe()
|