Lines Matching refs:pc
135 of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_xlate_with_flags() argument
139 if (pc->of_pwm_n_cells < 3) in of_pwm_xlate_with_flags()
142 if (args->args[0] >= pc->npwm) in of_pwm_xlate_with_flags()
145 pwm = pwm_request_from_chip(pc, args->args[0], NULL); in of_pwm_xlate_with_flags()
161 of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_simple_xlate() argument
165 if (pc->of_pwm_n_cells < 2) in of_pwm_simple_xlate()
168 if (args->args[0] >= pc->npwm) in of_pwm_simple_xlate()
171 pwm = pwm_request_from_chip(pc, args->args[0], NULL); in of_pwm_simple_xlate()
574 struct pwm_chip *pc; in of_pwm_get() local
591 pc = of_node_to_pwmchip(args.np); in of_pwm_get()
592 if (IS_ERR(pc)) { in of_pwm_get()
594 pwm = ERR_CAST(pc); in of_pwm_get()
598 if (args.args_count != pc->of_pwm_n_cells) { in of_pwm_get()
605 pwm = pc->of_xlate(pc, &args); in of_pwm_get()