Lines Matching refs:function
179 unsigned int function; member
213 int ret, val, function, cnt; in spmi_pmic_gpio_get_state() local
243 function = pad->function; in spmi_pmic_gpio_get_state()
245 pad->function >= PMIC_GPIO_FUNC_INDEX_FUNC3) in spmi_pmic_gpio_get_state()
246 function += PMIC_GPIO_FUNC_INDEX_DTEST1 - in spmi_pmic_gpio_get_state()
259 spmi_pmic_gpio_functions[function], in spmi_pmic_gpio_get_state()
332 val |= pad->function in qcom_spmi_pmic_gpio_set()
341 val |= pad->function << PMIC_GPIO_REG_MODE_FUNCTION_SHIFT; in qcom_spmi_pmic_gpio_set()
422 pad->function = val & PMIC_GPIO_LV_MV_OUTPUT_SOURCE_SEL_MASK; in spmi_pmic_gpio_populate()
438 pad->function = val >> PMIC_GPIO_REG_MODE_FUNCTION_SHIFT; in spmi_pmic_gpio_populate()
439 pad->function &= PMIC_GPIO_REG_MODE_FUNCTION_MASK; in spmi_pmic_gpio_populate()
943 unsigned int function) in qcom_spmi_pmic_pinctrl_pinmux_set_mux() argument
960 if (function == PMIC_GPIO_FUNC_INDEX_FUNC3 || in qcom_spmi_pmic_pinctrl_pinmux_set_mux()
961 function == PMIC_GPIO_FUNC_INDEX_FUNC4) { in qcom_spmi_pmic_pinctrl_pinmux_set_mux()
965 if (function >= PMIC_GPIO_FUNC_INDEX_DTEST1) in qcom_spmi_pmic_pinctrl_pinmux_set_mux()
966 function -= (PMIC_GPIO_FUNC_INDEX_DTEST1 - in qcom_spmi_pmic_pinctrl_pinmux_set_mux()
970 pad->function = function; in qcom_spmi_pmic_pinctrl_pinmux_set_mux()
996 val |= pad->function in qcom_spmi_pmic_pinctrl_pinmux_set_mux()
1005 val |= pad->function << PMIC_GPIO_REG_MODE_FUNCTION_SHIFT; in qcom_spmi_pmic_pinctrl_pinmux_set_mux()