Home
last modified time | relevance | path

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

123

/drivers/pwm/
Dpwm-lpss-pci.c20 .npwm = 1,
27 .npwm = 1,
34 .npwm = 4,
42 .npwm = 4,
Dsysfs.c348 if (hwpwm >= chip->npwm) in export_store()
375 if (hwpwm >= chip->npwm) in unexport_store()
389 return sprintf(buf, "%u\n", chip->npwm); in npwm_show()
391 static DEVICE_ATTR_RO(npwm);
437 static int pwm_class_resume_npwm(struct device *parent, unsigned int npwm) in pwm_class_resume_npwm() argument
443 for (i = 0; i < npwm; i++) { in pwm_class_resume_npwm()
474 for (i = 0; i < chip->npwm; i++) { in pwm_class_suspend()
513 return pwm_class_resume_npwm(parent, chip->npwm); in pwm_class_resume()
556 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,
465 pwm->chip.npwm = pwm->data->npwm; in sun4i_pwm_probe()
Dpwm-lpss-platform.c21 .npwm = 1,
28 .npwm = 1,
36 .npwm = 4,
Dcore.c67 for (i = 0; i < chip->npwm; i++) { in free_pwms()
73 bitmap_clear(allocated_pwms, chip->base, chip->npwm); in free_pwms()
147 if (args->args[0] >= pc->npwm) in of_pwm_xlate_with_flags()
177 if (args->args[0] >= pc->npwm) in of_pwm_simple_xlate()
280 if (!chip || !chip->dev || !chip->ops || !chip->npwm) in pwmchip_add_with_polarity()
288 ret = alloc_pwms(chip->base, chip->npwm); in pwmchip_add_with_polarity()
292 chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL); in pwmchip_add_with_polarity()
300 for (i = 0; i < chip->npwm; i++) { in pwmchip_add_with_polarity()
312 bitmap_set(allocated_pwms, chip->base, chip->npwm); in pwmchip_add_with_polarity()
365 for (i = 0; i < chip->npwm; i++) { in pwmchip_remove()
[all …]
Dpwm-lpss.c213 if (WARN_ON(info->npwm > MAX_PWMS)) in pwm_lpss_probe()
233 lpwm->chip.npwm = info->npwm; in pwm_lpss_probe()
241 for (i = 0; i < lpwm->info->npwm; i++) { in pwm_lpss_probe()
255 for (i = 0; i < lpwm->info->npwm; i++) { in pwm_lpss_remove()
Dpwm-sifive.c258 chip->npwm = 4; in pwm_sifive_probe()
280 for (i = 0; i < chip->npwm; ++i) { in pwm_sifive_probe()
318 dev_dbg(dev, "SiFive PWM chip registered %d PWMs\n", chip->npwm); in pwm_sifive_probe()
343 for (ch = 0; ch < ddata->chip.npwm; ch++) { in pwm_sifive_remove()
Dpwm-cros-ec.c179 if (args->args[0] >= pc->npwm) in cros_ec_pwm_xlate()
263 chip->npwm = ret; in cros_ec_pwm_probe()
264 dev_dbg(dev, "Probed %u PWMs\n", chip->npwm); in cros_ec_pwm_probe()
Dpwm-img.c310 pwm->chip.npwm = IMG_PWM_NPWM; in img_pwm_probe()
352 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_suspend()
373 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_resume()
379 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_resume()
Dpwm-bcm-kona.c276 kp->chip.npwm = 6; in kona_pwmc_probe()
299 for (chan = 0; chan < kp->chip.npwm; chan++) in kona_pwmc_probe()
318 for (chan = 0; chan < kp->chip.npwm; chan++) in kona_pwmc_remove()
Dpwm-berlin.c212 pwm->chip.npwm = 4; in berlin_pwm_probe()
245 for (i = 0; i < pwm->chip.npwm; i++) { in berlin_pwm_suspend()
273 for (i = 0; i < pwm->chip.npwm; i++) { in berlin_pwm_resume()
Dpwm-lpc32xx.c120 lpc32xx->chip.npwm = 1; in lpc32xx_pwm_probe()
144 for (i = 0; i < lpc32xx->chip.npwm; i++) in lpc32xx_pwm_remove()
Dpwm-clps711x.c107 if (args->args[0] >= chip->npwm) in clps711x_pwm_xlate()
134 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()
630 priv->chip.npwm = stm32_pwm_detect_channels(priv, &num_enabled); in stm32_pwm_probe()
650 for (i = 0; i < priv->chip.npwm; i++) in stm32_pwm_remove()
667 for (i = 0; i < priv->chip.npwm; i++) { in stm32_pwm_suspend()
Dpwm-lpc18xx-sct.c214 for (i = 0; i < chip->npwm; i++) in lpc18xx_pwm_config()
374 lpc18xx_pwm->chip.npwm = 16; in lpc18xx_pwm_probe()
401 for (i = 0; i < lpc18xx_pwm->chip.npwm; i++) { in lpc18xx_pwm_probe()
Dpwm-zx.c227 zpc->chip.npwm = 4; in zx_pwm_probe()
235 for (i = 0; i < zpc->chip.npwm; i++) in zx_pwm_probe()
Dpwm-bcm-iproc.c214 ip->chip.npwm = 4; in iproc_pwmc_probe()
239 for (i = 0; i < ip->chip.npwm; i++) { in iproc_pwmc_probe()
Dpwm-twl-led.c287 twl->chip.npwm = 2; in twl_pwmled_probe()
290 twl->chip.npwm = 1; in twl_pwmled_probe()
Dpwm-fsl-ftm.c459 fpc->chip.npwm = 8; in fsl_pwm_probe()
488 for (i = 0; i < fpc->chip.npwm; i++) { in fsl_pwm_suspend()
511 for (i = 0; i < fpc->chip.npwm; i++) { in fsl_pwm_resume()
Dpwm-hibvt.c212 pwm_chip->chip.npwm = soc->num_pwms; in hibvt_pwm_probe()
242 for (i = 0; i < pwm_chip->chip.npwm; i++) { in hibvt_pwm_probe()
Dpwm-tiehrpwm.c456 pc->chip.npwm = NUM_PWM_CHANNEL; in ehrpwm_pwm_probe()
540 for (i = 0; i < pc->chip.npwm; i++) { in ehrpwm_pwm_suspend()
558 for (i = 0; i < pc->chip.npwm; i++) { in ehrpwm_pwm_resume()
Dpwm-ab8500.c105 ab8500->chip.npwm = 1; in ab8500_pwm_probe()
Dpwm-imx1.c169 imx->chip.npwm = 1; in pwm_imx1_probe()

123