Searched refs:eint_n (Results 1 – 9 of 9) sorted by relevance
/linux-5.19.10/drivers/pinctrl/mediatek/ |
D | mtk-eint.h | 45 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
|
D | pinctrl-mtk-common-v2.c | 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 [all …]
|
D | pinctrl-mtk-common.c | 851 unsigned long eint_n; in mtk_gpio_to_irq() local 857 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq() 859 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq() 867 unsigned long eint_n; in mtk_gpio_set_config() local 878 eint_n = pin->eint.eintnum; in mtk_gpio_set_config() 880 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config() 949 mtk_xt_get_gpio_n(void *data, unsigned long eint_n, unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument 955 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_n() 965 static int mtk_xt_get_gpio_state(void *data, unsigned long eint_n) in mtk_xt_get_gpio_state() argument 970 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_state() [all …]
|
D | pinctrl-moore.h | 34 .eint_n = _eint_n, \
|
D | pinctrl-paris.h | 34 .eint_n = _eintnum, \
|
D | pinctrl-moore.c | 495 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq() 498 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 514 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config() 519 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
|
D | pinctrl-paris.c | 942 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq() 945 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 959 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config() 964 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
|
D | mtk-eint.c | 456 int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) in mtk_eint_find_irq() argument 460 irq = irq_find_mapping(eint->domain, eint_n); in mtk_eint_find_irq()
|
D | pinctrl-mtk-common-v2.h | 203 u16 eint_n; member
|