Lines Matching refs:gpio_n
255 bool mtk_is_virt_gpio(struct mtk_pinctrl *hw, unsigned int gpio_n) in mtk_is_virt_gpio() argument
260 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n]; in mtk_is_virt_gpio()
274 unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument
285 *gpio_n = eint_n; in mtk_xt_get_gpio_n()
287 *gpio_n = mtk_xt_find_eint_num(hw, eint_n); in mtk_xt_get_gpio_n()
289 return *gpio_n == EINT_NA ? -EINVAL : 0; in mtk_xt_get_gpio_n()
297 unsigned int gpio_n; in mtk_xt_get_gpio_state() local
300 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state()
304 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n]; in mtk_xt_get_gpio_state()
318 unsigned int gpio_n; in mtk_xt_set_gpio_as_eint() local
321 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_set_gpio_as_eint()
325 if (mtk_is_virt_gpio(hw, gpio_n)) in mtk_xt_set_gpio_as_eint()
328 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n]; in mtk_xt_set_gpio_as_eint()