Home
last modified time | relevance | path

Searched refs:npwm (Results 1 – 25 of 64) sorted by relevance

123

/drivers/pwm/
Dpwm-lpss-pci.c20 .npwm = 1,
27 .npwm = 1,
34 .npwm = 4,
42 .npwm = 4,
Dsysfs.c323 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()
Dpwm-sun4i.c81 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()
Dpwm-lpss-platform.c21 .npwm = 1,
28 .npwm = 1,
36 .npwm = 4,
Dcore.c57 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 …]
Dpwm-lpss.c218 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()
Dpwm-sifive.c254 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()
Dpwm-cros-ec.c182 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()
Dpwm-img.c307 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()
Dpwm-berlin.c239 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()
Dpwm-clps711x.c107 if (args->args[0] >= chip->npwm) in clps711x_pwm_xlate()
131 priv->chip.npwm = 2; in clps711x_pwm_probe()
Dpwm-lpss.h26 unsigned int npwm; member
Dpwm-jz4740.c41 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()
Dpwm-stm32.c145 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()
Dpwm-bcm-kona.c272 kp->chip.npwm = 6; in kona_pwmc_probe()
292 for (chan = 0; chan < kp->chip.npwm; chan++) in kona_pwmc_probe()
Dpwm-twl-led.c286 twl->chip.npwm = 2; in twl_pwmled_probe()
289 twl->chip.npwm = 1; in twl_pwmled_probe()
Dpwm-bcm-iproc.c212 ip->chip.npwm = 4; in iproc_pwmc_probe()
234 for (i = 0; i < ip->chip.npwm; i++) { in iproc_pwmc_probe()
Dpwm-hibvt.c209 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()
Dpwm-fsl-ftm.c454 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()
Dpwm-tiehrpwm.c450 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()
Dpwm-ab8500.c111 ab8500->chip.npwm = 1; in ab8500_pwm_probe()
Dpwm-ntxec.c156 chip->npwm = 1; in ntxec_pwm_probe()
Dpwm-lpc18xx-sct.c225 for (i = 0; i < chip->npwm; i++) in lpc18xx_pwm_config()
398 lpc18xx_pwm->chip.npwm = LPC18XX_NUM_PWMS; in lpc18xx_pwm_probe()
Dpwm-lpc32xx.c118 lpc32xx->chip.npwm = 1; in lpc32xx_pwm_probe()
Dpwm-imx1.c156 imx->chip.npwm = 1; in pwm_imx1_probe()

123