Lines Matching refs:eint_n
235 static int mtk_xt_find_eint_num(struct mtk_pinctrl *hw, unsigned long eint_n) in mtk_xt_find_eint_num() argument
243 if (desc[i].eint.eint_n == eint_n) in mtk_xt_find_eint_num()
278 static int mtk_xt_get_gpio_n(void *data, unsigned long eint_n, in mtk_xt_get_gpio_n() argument
292 if (hw->soc->npins > eint_n && in mtk_xt_get_gpio_n()
293 desc[eint_n].eint.eint_n == eint_n) in mtk_xt_get_gpio_n()
294 *gpio_n = eint_n; in mtk_xt_get_gpio_n()
296 *gpio_n = mtk_xt_find_eint_num(hw, eint_n); in mtk_xt_get_gpio_n()
301 static int mtk_xt_get_gpio_state(void *data, unsigned long eint_n) in mtk_xt_get_gpio_state() argument
309 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state()
322 static int mtk_xt_set_gpio_as_eint(void *data, unsigned long eint_n) in mtk_xt_set_gpio_as_eint() argument
330 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_set_gpio_as_eint()