Home
last modified time | relevance | path

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

123

/Linux-v6.1/drivers/pwm/
Dpwm-lpss.c38 .npwm = 1,
46 .npwm = 1,
55 .npwm = 4,
64 .npwm = 4,
255 if (WARN_ON(info->npwm > MAX_PWMS)) in pwm_lpss_probe()
271 lpwm->chip.npwm = info->npwm; in pwm_lpss_probe()
279 for (i = 0; i < lpwm->info->npwm; i++) { in pwm_lpss_probe()
Dsysfs.c323 if (hwpwm >= chip->npwm) in export_store()
350 if (hwpwm >= chip->npwm) in unexport_store()
364 return sysfs_emit(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()
442 for (i = 0; i < chip->npwm; i++) { in pwm_class_suspend()
471 return pwm_class_resume_npwm(parent, chip->npwm); in pwm_class_resume()
514 for (i = 0; i < chip->npwm; i++) { in pwmchip_sysfs_unexport()
Dpwm-sun4i.c81 unsigned int npwm; member
330 .npwm = 2,
335 .npwm = 2,
340 .npwm = 1,
346 .npwm = 1,
352 .npwm = 2,
454 sun4ichip->chip.npwm = sun4ichip->data->npwm; in sun4i_pwm_probe()
Dpwm-stm32.c145 if (pwm->chip->npwm < 2) in stm32_pwm_raw_capture()
582 int npwm = 0; in stm32_pwm_detect_channels() local
594 npwm++; in stm32_pwm_detect_channels()
597 npwm++; in stm32_pwm_detect_channels()
600 npwm++; in stm32_pwm_detect_channels()
603 npwm++; in stm32_pwm_detect_channels()
605 return npwm; in stm32_pwm_detect_channels()
636 priv->chip.npwm = stm32_pwm_detect_channels(priv); in stm32_pwm_probe()
652 for (i = 0; i < priv->chip.npwm; i++) in stm32_pwm_remove()
669 for (i = 0; i < priv->chip.npwm; i++) { in stm32_pwm_suspend()
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()
264 if (!chip || !chip->dev || !chip->ops || !chip->npwm) in pwmchip_add()
272 ret = alloc_pwms(chip->npwm); in pwmchip_add()
278 chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL); in pwmchip_add()
284 for (i = 0; i < chip->npwm; i++) { in pwmchip_add()
294 bitmap_set(allocated_pwms, chip->base, chip->npwm); in pwmchip_add()
413 if (!chip || index >= chip->npwm) in pwm_request_from_chip()
1111 for (i = 0; i < chip->npwm; i++) { in pwm_dbg_show()
[all …]
Dpwm-cros-ec.c222 if (args->args[0] >= pc->npwm) in cros_ec_pwm_xlate()
306 chip->npwm = CROS_EC_PWM_DT_COUNT; in cros_ec_pwm_probe()
313 chip->npwm = ret; in cros_ec_pwm_probe()
316 dev_dbg(dev, "Probed %u PWMs\n", chip->npwm); in cros_ec_pwm_probe()
Dpwm-sifive.c230 chip->npwm = 4; in pwm_sifive_probe()
251 for (i = 0; i < chip->npwm; ++i) { in pwm_sifive_probe()
289 dev_dbg(dev, "SiFive PWM chip registered %d PWMs\n", chip->npwm); in pwm_sifive_probe()
314 for (ch = 0; ch < ddata->chip.npwm; ch++) { in pwm_sifive_remove()
Dpwm-clps711x.c81 if (args->args[0] >= chip->npwm) in clps711x_pwm_xlate()
105 priv->chip.npwm = 2; in clps711x_pwm_probe()
Dpwm-img.c327 imgchip->chip.npwm = IMG_PWM_NPWM; in img_pwm_probe()
371 for (i = 0; i < imgchip->chip.npwm; i++) in img_pwm_suspend()
392 for (i = 0; i < imgchip->chip.npwm; i++) in img_pwm_resume()
398 for (i = 0; i < imgchip->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-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()
246 jz4740->chip.npwm = info->num_pwms; in jz4740_pwm_probe()
Dpwm-bcm-iproc.c202 ip->chip.npwm = 4; in iproc_pwmc_probe()
224 for (i = 0; i < ip->chip.npwm; i++) { in iproc_pwmc_probe()
Dpwm-hibvt.c208 pwm_chip->chip.npwm = soc->num_pwms; in hibvt_pwm_probe()
235 for (i = 0; i < pwm_chip->chip.npwm; i++) { in hibvt_pwm_probe()
Dpwm-bcm-kona.c288 kp->chip.npwm = 6; in kona_pwmc_probe()
308 for (chan = 0; chan < kp->chip.npwm; chan++) in kona_pwmc_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-twl-led.c358 twl->chip.npwm = 2; in twl_pwmled_probe()
361 twl->chip.npwm = 1; in twl_pwmled_probe()
Dpwm-tiehrpwm.c480 pc->chip.npwm = NUM_PWM_CHANNEL; in ehrpwm_pwm_probe()
563 for (i = 0; i < pc->chip.npwm; i++) { in ehrpwm_pwm_suspend()
581 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-clk.c99 pcchip->chip.npwm = 1; in pwm_clk_probe()
Dpwm-visconti.c149 priv->chip.npwm = 4; in visconti_pwm_probe()
Dpwm-ep93xx.c184 ep93xx_pwm->chip.npwm = 1; in ep93xx_pwm_probe()
Dpwm-mxs.c142 ret = of_property_read_u32(np, "fsl,pwm-number", &mxs->chip.npwm); in mxs_pwm_probe()
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-class-pwm19 What: /sys/class/pwm/pwmchip<N>/npwm
32 Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1.

123