Lines Matching refs:npwm
67 for (i = 0; i < chip->npwm; i++) {
73 bitmap_clear(allocated_pwms, chip->base, chip->npwm);
147 if (args->args[0] >= pc->npwm)
177 if (args->args[0] >= pc->npwm)
280 if (!chip || !chip->dev || !chip->ops || !chip->npwm)
288 ret = alloc_pwms(chip->base, chip->npwm);
292 chip->pwms = kcalloc(chip->npwm, sizeof(*pwm), GFP_KERNEL);
300 for (i = 0; i < chip->npwm; i++) {
311 bitmap_set(allocated_pwms, chip->base, chip->npwm);
364 for (i = 0; i < chip->npwm; i++) {
440 if (!chip || index >= chip->npwm)
1273 for (i = 0; i < chip->npwm; i++) {
1322 dev_name(chip->dev), chip->npwm,
1323 (chip->npwm != 1) ? "s" : "");