Lines Matching refs:funcs
67 struct axp20x_pinctrl_function funcs[AXP20X_FUNCS_NB]; member
203 return ARRAY_SIZE(pctl->funcs); in axp20x_pmx_func_cnt()
211 return pctl->funcs[selector].name; in axp20x_pmx_func_name()
221 *groups = pctl->funcs[selector].groups; in axp20x_pmx_func_groups()
222 *num_groups = pctl->funcs[selector].ngroups; in axp20x_pmx_func_groups()
236 pctl->funcs[function].muxval); in axp20x_pmx_set_mux()
255 return axp20x_pmx_set(pctldev, group, pctl->funcs[function].muxval); in axp20x_pmx_set_mux()
266 pctl->funcs[AXP20X_FUNC_GPIO_IN].muxval); in axp20x_pmx_gpio_set_direction()
269 pctl->funcs[AXP20X_FUNC_GPIO_OUT].muxval); in axp20x_pmx_gpio_set_direction()
347 pctl->funcs[AXP20X_FUNC_GPIO_OUT].name = "gpio_out"; in axp20x_build_funcs_groups()
348 pctl->funcs[AXP20X_FUNC_GPIO_OUT].muxval = AXP20X_MUX_GPIO_OUT; in axp20x_build_funcs_groups()
349 pctl->funcs[AXP20X_FUNC_GPIO_IN].name = "gpio_in"; in axp20x_build_funcs_groups()
350 pctl->funcs[AXP20X_FUNC_GPIO_IN].muxval = AXP20X_MUX_GPIO_IN; in axp20x_build_funcs_groups()
351 pctl->funcs[AXP20X_FUNC_LDO].name = "ldo"; in axp20x_build_funcs_groups()
356 pctl->funcs[AXP20X_FUNC_ADC].name = "adc"; in axp20x_build_funcs_groups()
357 pctl->funcs[AXP20X_FUNC_ADC].muxval = pctl->desc->adc_mux; in axp20x_build_funcs_groups()
361 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups()
362 pctl->funcs[i].groups = devm_kcalloc(&pdev->dev, in axp20x_build_funcs_groups()
365 if (!pctl->funcs[i].groups) in axp20x_build_funcs_groups()
368 pctl->funcs[i].groups[pin] = pctl->desc->pins[pin].name; in axp20x_build_funcs_groups()
372 npins, &pctl->funcs[AXP20X_FUNC_LDO], in axp20x_build_funcs_groups()
378 npins, &pctl->funcs[AXP20X_FUNC_ADC], in axp20x_build_funcs_groups()