Lines Matching refs:gpio_mode
85 int gpio_mode, val; in da9062_gpio_get() local
88 gpio_mode = da9062_pctl_get_pin_mode(pctl, offset); in da9062_gpio_get()
89 if (gpio_mode < 0) in da9062_gpio_get()
90 return gpio_mode; in da9062_gpio_get()
92 switch (gpio_mode) { in da9062_gpio_get()
123 int gpio_mode; in da9062_gpio_get_direction() local
125 gpio_mode = da9062_pctl_get_pin_mode(pctl, offset); in da9062_gpio_get_direction()
126 if (gpio_mode < 0) in da9062_gpio_get_direction()
127 return gpio_mode; in da9062_gpio_get_direction()
129 switch (gpio_mode) { in da9062_gpio_get_direction()
190 int gpio_mode; in da9062_gpio_set_config() local
205 gpio_mode = da9062_pctl_get_pin_mode(pctl, offset); in da9062_gpio_set_config()
206 if (gpio_mode < 0) in da9062_gpio_set_config()
208 else if (gpio_mode != DA9062_PIN_GPI) in da9062_gpio_set_config()
213 gpio_mode = da9062_pctl_get_pin_mode(pctl, offset); in da9062_gpio_set_config()
214 if (gpio_mode < 0) in da9062_gpio_set_config()
216 else if (gpio_mode != DA9062_PIN_GPO_OD) in da9062_gpio_set_config()