Home
last modified time | relevance | path

Searched refs:eint_n (Results 1 – 9 of 9) sorted by relevance

/linux-6.3-rc2/drivers/pinctrl/mediatek/
A Dmtk-eint.h50 int (*get_gpio_n)(void *data, unsigned long eint_n,
53 int (*get_gpio_state)(void *data, unsigned long eint_n);
54 int (*set_gpio_as_eint)(void *data, unsigned long eint_n);
81 int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n,
83 int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n);
101 static inline int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, in mtk_eint_set_debounce() argument
107 static inline int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) in mtk_eint_find_irq() argument
A Dpinctrl-mtk-common-v2.c235 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
[all …]
A Dpinctrl-mtk-common.c866 unsigned long eint_n; in mtk_gpio_to_irq() local
872 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq()
874 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq()
882 unsigned long eint_n; in mtk_gpio_set_config() local
893 eint_n = pin->eint.eintnum; in mtk_gpio_set_config()
895 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config()
969 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_n()
979 static int mtk_xt_get_gpio_state(void *data, unsigned long eint_n) in mtk_xt_get_gpio_state() argument
984 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_state()
991 static int mtk_xt_set_gpio_as_eint(void *data, unsigned long eint_n) in mtk_xt_set_gpio_as_eint() argument
[all …]
A Dpinctrl-moore.h34 .eint_n = _eint_n, \
A Dpinctrl-paris.h34 .eint_n = _eintnum, \
A Dpinctrl-moore.c533 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq()
536 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq()
552 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config()
557 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
A Dpinctrl-paris.c947 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq()
950 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq()
964 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config()
969 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
A Dmtk-eint.c476 int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) in mtk_eint_find_irq() argument
480 irq = irq_find_mapping(eint->domain, eint_n); in mtk_eint_find_irq()
A Dpinctrl-mtk-common-v2.h203 u16 eint_n; member

Completed in 24 milliseconds