Lines Matching refs:funcs

71 	struct axp20x_pinctrl_function		funcs[AXP20X_FUNCS_NB];  member
207 return ARRAY_SIZE(pctl->funcs); in axp20x_pmx_func_cnt()
215 return pctl->funcs[selector].name; in axp20x_pmx_func_name()
225 *groups = pctl->funcs[selector].groups; in axp20x_pmx_func_groups()
226 *num_groups = pctl->funcs[selector].ngroups; in axp20x_pmx_func_groups()
240 pctl->funcs[function].muxval); in axp20x_pmx_set_mux()
259 return axp20x_pmx_set(pctldev, group, pctl->funcs[function].muxval); in axp20x_pmx_set_mux()
270 pctl->funcs[AXP20X_FUNC_GPIO_IN].muxval); in axp20x_pmx_gpio_set_direction()
273 pctl->funcs[AXP20X_FUNC_GPIO_OUT].muxval); in axp20x_pmx_gpio_set_direction()
351 pctl->funcs[AXP20X_FUNC_GPIO_OUT].name = "gpio_out"; in axp20x_build_funcs_groups()
352 pctl->funcs[AXP20X_FUNC_GPIO_OUT].muxval = AXP20X_MUX_GPIO_OUT; in axp20x_build_funcs_groups()
353 pctl->funcs[AXP20X_FUNC_GPIO_IN].name = "gpio_in"; in axp20x_build_funcs_groups()
354 pctl->funcs[AXP20X_FUNC_GPIO_IN].muxval = AXP20X_MUX_GPIO_IN; in axp20x_build_funcs_groups()
355 pctl->funcs[AXP20X_FUNC_LDO].name = "ldo"; in axp20x_build_funcs_groups()
360 pctl->funcs[AXP20X_FUNC_ADC].name = "adc"; in axp20x_build_funcs_groups()
361 pctl->funcs[AXP20X_FUNC_ADC].muxval = pctl->desc->adc_mux; in axp20x_build_funcs_groups()
365 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups()
366 pctl->funcs[i].groups = devm_kcalloc(&pdev->dev, in axp20x_build_funcs_groups()
370 pctl->funcs[i].groups[pin] = pctl->desc->pins[pin].name; in axp20x_build_funcs_groups()
374 npins, &pctl->funcs[AXP20X_FUNC_LDO], in axp20x_build_funcs_groups()
380 npins, &pctl->funcs[AXP20X_FUNC_ADC], in axp20x_build_funcs_groups()