Searched refs:eint_n (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/drivers/pinctrl/mediatek/ |
A D | mtk-eint.h | 50 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 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 …]
|
A D | pinctrl-mtk-common.c | 866 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 D | pinctrl-moore.h | 34 .eint_n = _eint_n, \
|
A D | pinctrl-paris.h | 34 .eint_n = _eintnum, \
|
A D | pinctrl-moore.c | 533 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 D | pinctrl-paris.c | 947 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 D | mtk-eint.c | 476 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 D | pinctrl-mtk-common-v2.h | 203 u16 eint_n; member
|
Completed in 24 milliseconds