/Linux-v6.1/drivers/pwm/ |
D | pwm-lpss.c | 38 .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()
|
D | sysfs.c | 323 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()
|
D | pwm-sun4i.c | 81 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()
|
D | pwm-stm32.c | 145 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()
|
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() 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 …]
|
D | pwm-cros-ec.c | 222 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()
|
D | pwm-sifive.c | 230 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()
|
D | pwm-clps711x.c | 81 if (args->args[0] >= chip->npwm) in clps711x_pwm_xlate() 105 priv->chip.npwm = 2; in clps711x_pwm_probe()
|
D | pwm-img.c | 327 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()
|
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-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() 246 jz4740->chip.npwm = info->num_pwms; in jz4740_pwm_probe()
|
D | pwm-bcm-iproc.c | 202 ip->chip.npwm = 4; in iproc_pwmc_probe() 224 for (i = 0; i < ip->chip.npwm; i++) { in iproc_pwmc_probe()
|
D | pwm-hibvt.c | 208 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()
|
D | pwm-bcm-kona.c | 288 kp->chip.npwm = 6; in kona_pwmc_probe() 308 for (chan = 0; chan < kp->chip.npwm; chan++) in kona_pwmc_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-twl-led.c | 358 twl->chip.npwm = 2; in twl_pwmled_probe() 361 twl->chip.npwm = 1; in twl_pwmled_probe()
|
D | pwm-tiehrpwm.c | 480 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()
|
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-clk.c | 99 pcchip->chip.npwm = 1; in pwm_clk_probe()
|
D | pwm-visconti.c | 149 priv->chip.npwm = 4; in visconti_pwm_probe()
|
D | pwm-ep93xx.c | 184 ep93xx_pwm->chip.npwm = 1; in ep93xx_pwm_probe()
|
D | pwm-mxs.c | 142 ret = of_property_read_u32(np, "fsl,pwm-number", &mxs->chip.npwm); in mxs_pwm_probe()
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | sysfs-class-pwm | 19 What: /sys/class/pwm/pwmchip<N>/npwm 32 Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1.
|