Lines Matching refs:funcs

67 	struct axp20x_pinctrl_function		funcs[AXP20X_FUNCS_NB];  member
206 return ARRAY_SIZE(pctl->funcs); in axp20x_pmx_func_cnt()
214 return pctl->funcs[selector].name; in axp20x_pmx_func_name()
224 *groups = pctl->funcs[selector].groups; in axp20x_pmx_func_groups()
225 *num_groups = pctl->funcs[selector].ngroups; in axp20x_pmx_func_groups()
239 pctl->funcs[function].muxval); in axp20x_pmx_set_mux()
258 return axp20x_pmx_set(pctldev, group, pctl->funcs[function].muxval); in axp20x_pmx_set_mux()
269 pctl->funcs[AXP20X_FUNC_GPIO_IN].muxval); in axp20x_pmx_gpio_set_direction()
272 pctl->funcs[AXP20X_FUNC_GPIO_OUT].muxval); in axp20x_pmx_gpio_set_direction()
350 pctl->funcs[AXP20X_FUNC_GPIO_OUT].name = "gpio_out"; in axp20x_build_funcs_groups()
351 pctl->funcs[AXP20X_FUNC_GPIO_OUT].muxval = AXP20X_MUX_GPIO_OUT; in axp20x_build_funcs_groups()
352 pctl->funcs[AXP20X_FUNC_GPIO_IN].name = "gpio_in"; in axp20x_build_funcs_groups()
353 pctl->funcs[AXP20X_FUNC_GPIO_IN].muxval = AXP20X_MUX_GPIO_IN; in axp20x_build_funcs_groups()
354 pctl->funcs[AXP20X_FUNC_LDO].name = "ldo"; in axp20x_build_funcs_groups()
359 pctl->funcs[AXP20X_FUNC_ADC].name = "adc"; in axp20x_build_funcs_groups()
360 pctl->funcs[AXP20X_FUNC_ADC].muxval = pctl->desc->adc_mux; in axp20x_build_funcs_groups()
364 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups()
365 pctl->funcs[i].groups = devm_kcalloc(&pdev->dev, in axp20x_build_funcs_groups()
368 if (!pctl->funcs[i].groups) in axp20x_build_funcs_groups()
371 pctl->funcs[i].groups[pin] = pctl->desc->pins[pin].name; in axp20x_build_funcs_groups()
375 npins, &pctl->funcs[AXP20X_FUNC_LDO], in axp20x_build_funcs_groups()
381 npins, &pctl->funcs[AXP20X_FUNC_ADC], in axp20x_build_funcs_groups()