Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/
Dmtk-eint.h45 int (*get_gpio_n)(void *data, unsigned long eint_n,
48 int (*get_gpio_state)(void *data, unsigned long eint_n);
49 int (*set_gpio_as_eint)(void *data, unsigned long eint_n);
75 int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n,
77 int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n);
95 static inline int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, in mtk_eint_set_debounce() argument
101 static inline int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) in mtk_eint_find_irq() argument
Dpinctrl-mtk-common-v2.c230 static int mtk_xt_find_eint_num(struct mtk_pinctrl *hw, unsigned long eint_n) in mtk_xt_find_eint_num() argument
238 if (desc[i].eint.eint_n == eint_n) in mtk_xt_find_eint_num()
273 static int mtk_xt_get_gpio_n(void *data, unsigned long eint_n, in mtk_xt_get_gpio_n() argument
287 if (hw->soc->npins > eint_n && in mtk_xt_get_gpio_n()
288 desc[eint_n].eint.eint_n == eint_n) in mtk_xt_get_gpio_n()
289 *gpio_n = eint_n; in mtk_xt_get_gpio_n()
291 *gpio_n = mtk_xt_find_eint_num(hw, eint_n); in mtk_xt_get_gpio_n()
296 static int mtk_xt_get_gpio_state(void *data, unsigned long eint_n) in mtk_xt_get_gpio_state() argument
304 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state()
317 static int mtk_xt_set_gpio_as_eint(void *data, unsigned long eint_n) in mtk_xt_set_gpio_as_eint() argument
[all …]
Dpinctrl-mtk-common.c832 unsigned long eint_n; in mtk_gpio_to_irq() local
838 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq()
840 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq()
848 unsigned long eint_n; in mtk_gpio_set_config() local
859 eint_n = pin->eint.eintnum; in mtk_gpio_set_config()
861 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config()
930 mtk_xt_get_gpio_n(void *data, unsigned long eint_n, unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument
936 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_n()
946 static int mtk_xt_get_gpio_state(void *data, unsigned long eint_n) in mtk_xt_get_gpio_state() argument
951 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_state()
[all …]
Dpinctrl-moore.h34 .eint_n = _eint_n, \
Dpinctrl-paris.h34 .eint_n = _eintnum, \
Dpinctrl-moore.c479 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq()
482 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq()
496 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config()
501 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
Dpinctrl-paris.c851 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq()
854 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq()
868 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config()
873 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
Dmtk-eint.c451 int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) in mtk_eint_find_irq() argument
455 irq = irq_find_mapping(eint->domain, eint_n); in mtk_eint_find_irq()
Dpinctrl-mtk-common-v2.h161 u16 eint_n; member