Lines Matching refs:pc
136 of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_xlate_with_flags() argument
140 if (pc->of_pwm_n_cells < 3) in of_pwm_xlate_with_flags()
143 if (args->args[0] >= pc->npwm) in of_pwm_xlate_with_flags()
146 pwm = pwm_request_from_chip(pc, args->args[0], NULL); in of_pwm_xlate_with_flags()
162 of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_simple_xlate() argument
166 if (pc->of_pwm_n_cells < 2) in of_pwm_simple_xlate()
169 if (args->args[0] >= pc->npwm) in of_pwm_simple_xlate()
172 pwm = pwm_request_from_chip(pc, args->args[0], NULL); in of_pwm_simple_xlate()
495 struct pwm_chip *pc; in of_pwm_get() local
512 pc = of_node_to_pwmchip(args.np); in of_pwm_get()
513 if (IS_ERR(pc)) { in of_pwm_get()
515 pwm = ERR_CAST(pc); in of_pwm_get()
519 if (args.args_count != pc->of_pwm_n_cells) { in of_pwm_get()
526 pwm = pc->of_xlate(pc, &args); in of_pwm_get()