Home
last modified time | relevance | path

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

123

/linux-4.19.296/drivers/pwm/
Dpwm-lpss-pci.c23 .npwm = 1,
30 .npwm = 1,
37 .npwm = 4,
45 .npwm = 4,
Dpwm-lpss-platform.c24 .npwm = 1,
31 .npwm = 1,
38 .npwm = 4,
Dpwm-lpss.c186 if (WARN_ON(info->npwm > MAX_PWMS)) in pwm_lpss_probe()
206 lpwm->chip.npwm = info->npwm; in pwm_lpss_probe()
222 for (i = 0; i < lpwm->info->npwm; i++) { in pwm_lpss_remove()
235 for (i = 0; i < lpwm->info->npwm; i++) in pwm_lpss_suspend()
247 for (i = 0; i < lpwm->info->npwm; i++) in pwm_lpss_resume()
Dcore.c76 for (i = 0; i < chip->npwm; i++) { in free_pwms()
82 bitmap_clear(allocated_pwms, chip->base, chip->npwm); in free_pwms()
148 if (args->args[0] >= pc->npwm) in of_pwm_xlate_with_flags()
178 if (args->args[0] >= pc->npwm) in of_pwm_simple_xlate()
270 if (!chip || !chip->dev || !chip->ops || !chip->npwm) in pwmchip_add_with_polarity()
278 ret = alloc_pwms(chip->base, chip->npwm); in pwmchip_add_with_polarity()
282 chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL); in pwmchip_add_with_polarity()
290 for (i = 0; i < chip->npwm; i++) { in pwmchip_add_with_polarity()
304 bitmap_set(allocated_pwms, chip->base, chip->npwm); in pwmchip_add_with_polarity()
357 for (i = 0; i < chip->npwm; i++) { in pwmchip_remove()
[all …]
Dpwm-stm32.c142 if (pwm->chip->npwm < 2) in stm32_pwm_raw_capture()
569 int npwm = 0; in stm32_pwm_detect_channels() local
581 npwm++; in stm32_pwm_detect_channels()
584 npwm++; in stm32_pwm_detect_channels()
587 npwm++; in stm32_pwm_detect_channels()
590 npwm++; in stm32_pwm_detect_channels()
592 return npwm; in stm32_pwm_detect_channels()
624 priv->chip.npwm = stm32_pwm_detect_channels(priv); in stm32_pwm_probe()
640 for (i = 0; i < priv->chip.npwm; i++) in stm32_pwm_remove()
Dpwm-sun4i.c76 unsigned int npwm; member
317 .npwm = 2,
322 .npwm = 2,
327 .npwm = 1,
378 pwm->chip.npwm = pwm->data->npwm; in sun4i_pwm_probe()
Dsysfs.c320 if (hwpwm >= chip->npwm) in export_store()
347 if (hwpwm >= chip->npwm) in unexport_store()
361 return sprintf(buf, "%u\n", chip->npwm); in npwm_show()
363 static DEVICE_ATTR_RO(npwm);
410 for (i = 0; i < chip->npwm; i++) { in pwmchip_sysfs_unexport()
Dpwm-cros-ec.c139 if (args->args[0] >= pc->npwm) in cros_ec_pwm_xlate()
216 chip->npwm = ret; in cros_ec_pwm_probe()
217 dev_dbg(dev, "Probed %u PWMs\n", chip->npwm); in cros_ec_pwm_probe()
Dpwm-meson.c470 for (i = 0; i < meson->chip.npwm; i++) { in meson_pwm_init_channels()
516 for (i = 0; i < meson->chip.npwm; i++) in meson_pwm_add_channels()
540 meson->chip.npwm = 2; in meson_pwm_probe()
545 meson->inverter_mask = BIT(meson->chip.npwm) - 1; in meson_pwm_probe()
547 channels = devm_kcalloc(&pdev->dev, meson->chip.npwm, in meson_pwm_probe()
Dpwm-img.c313 pwm->chip.npwm = IMG_PWM_NPWM; in img_pwm_probe()
355 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_suspend()
376 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_resume()
382 for (i = 0; i < pwm_chip->chip.npwm; i++) in img_pwm_resume()
Dpwm-lpss.h23 unsigned int npwm; member
Dpwm-lpc32xx.c124 lpc32xx->chip.npwm = 1; in lpc32xx_pwm_probe()
148 for (i = 0; i < lpc32xx->chip.npwm; i++) in lpc32xx_pwm_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-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-clps711x.c112 if (args->args[0] >= chip->npwm) in clps711x_pwm_xlate()
139 priv->chip.npwm = 2; in clps711x_pwm_probe()
Dpwm-lpc18xx-sct.c217 for (i = 0; i < chip->npwm; i++) in lpc18xx_pwm_config()
382 lpc18xx_pwm->chip.npwm = 16; in lpc18xx_pwm_probe()
409 for (i = 0; i < lpc18xx_pwm->chip.npwm; i++) { in lpc18xx_pwm_probe()
Dpwm-zx.c230 zpc->chip.npwm = 4; in zx_pwm_probe()
238 for (i = 0; i < zpc->chip.npwm; i++) in zx_pwm_probe()
Dpwm-hibvt.c198 pwm_chip->chip.npwm = soc->num_pwms; in hibvt_pwm_probe()
227 for (i = 0; i < pwm_chip->chip.npwm; i++) { in hibvt_pwm_probe()
Dpwm-twl-led.c298 twl->chip.npwm = 2; in twl_pwmled_probe()
301 twl->chip.npwm = 1; in twl_pwmled_probe()
Dpwm-bcm-iproc.c215 ip->chip.npwm = 4; in iproc_pwmc_probe()
240 for (i = 0; i < ip->chip.npwm; i++) { in iproc_pwmc_probe()
Dpwm-fsl-ftm.c482 fpc->chip.npwm = 8; in fsl_pwm_probe()
511 for (i = 0; i < fpc->chip.npwm; i++) { in fsl_pwm_suspend()
534 for (i = 0; i < fpc->chip.npwm; i++) { in fsl_pwm_resume()
Dpwm-crc.c118 pwm->chip.npwm = 1; in crystalcove_pwm_probe()
Dpwm-ab8500.c105 ab8500->chip.npwm = 1; in ab8500_pwm_probe()
Dpwm-tiehrpwm.c469 pc->chip.npwm = NUM_PWM_CHANNEL; in ehrpwm_pwm_probe()
553 for (i = 0; i < pc->chip.npwm; i++) { in ehrpwm_pwm_suspend()
571 for (i = 0; i < pc->chip.npwm; i++) { in ehrpwm_pwm_resume()
Dpwm-puv3.c125 puv3->chip.npwm = 1; in pwm_probe()

123