Searched refs:eint_n (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/pinctrl/mediatek/ |
H 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
|
H 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 …]
|
H A D | pinctrl-mtk-common.c | 856 unsigned long eint_n; in mtk_gpio_to_irq() local 862 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq() 864 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq() 872 unsigned long eint_n; in mtk_gpio_set_config() local 883 eint_n = pin->eint.eintnum; in mtk_gpio_set_config() 885 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config() 952 mtk_xt_get_gpio_n(void *data, unsigned long eint_n, unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument 958 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_n() 968 static int mtk_xt_get_gpio_state(void *data, unsigned long eint_n) in mtk_xt_get_gpio_state() argument 973 pin = mtk_find_pin_by_eint_num(pctl, eint_n); in mtk_xt_get_gpio_state() [all …]
|
H A D | pinctrl-moore.h | 34 .eint_n = _eint_n, \
|
H A D | pinctrl-paris.h | 34 .eint_n = _eintnum, \
|
H A D | pinctrl-moore.c | 531 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq() 534 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 550 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config() 555 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
|
H A D | pinctrl-paris.c | 929 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq() 932 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 946 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config() 951 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
|
H 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()
|
H A D | pinctrl-mtk-common-v2.h | 203 u16 eint_n; member
|