Lines Matching refs:npwm
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()
1163 dev_name(chip->dev), chip->npwm, in pwm_seq_show()
1164 (chip->npwm != 1) ? "s" : ""); in pwm_seq_show()