Home
last modified time | relevance | path

Searched refs:gpio_n (Results 1 – 5 of 5) sorted by relevance

/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.c255 bool mtk_is_virt_gpio(struct mtk_pinctrl *hw, unsigned int gpio_n) in mtk_is_virt_gpio() argument
260 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n]; in mtk_is_virt_gpio()
274 unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument
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()
293 return *gpio_n == EINT_NA ? -EINVAL : 0; in mtk_xt_get_gpio_n()
301 unsigned int gpio_n; in mtk_xt_get_gpio_state() local
304 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state()
308 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n]; in mtk_xt_get_gpio_state()
322 unsigned int gpio_n; in mtk_xt_set_gpio_as_eint() local
[all …]
Dmtk-eint.c229 unsigned int gpio_n; in mtk_eint_irq_request_resources() local
233 &gpio_n, &gpio_c); in mtk_eint_irq_request_resources()
239 err = gpiochip_lock_as_irq(gpio_c, gpio_n); in mtk_eint_irq_request_resources()
259 unsigned int gpio_n; in mtk_eint_irq_release_resources() local
261 eint->gpio_xlate->get_gpio_n(eint->pctl, d->hwirq, &gpio_n, in mtk_eint_irq_release_resources()
264 gpiochip_unlock_as_irq(gpio_c, gpio_n); in mtk_eint_irq_release_resources()
Dmtk-eint.h46 unsigned int *gpio_n,
Dpinctrl-mtk-common-v2.h318 bool mtk_is_virt_gpio(struct mtk_pinctrl *hw, unsigned int gpio_n);
Dpinctrl-mtk-common.c930 mtk_xt_get_gpio_n(void *data, unsigned long eint_n, unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument
941 *gpio_n = pin->pin.number; in mtk_xt_get_gpio_n()