Lines Matching refs:gpio_n
261 bool mtk_is_virt_gpio(struct mtk_pinctrl *hw, unsigned int gpio_n)
266 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n];
280 unsigned int *gpio_n,
290 * Be greedy to guess first gpio_n is equal to eint_n.
295 *gpio_n = eint_n;
297 *gpio_n = mtk_xt_find_eint_num(hw, eint_n);
299 return *gpio_n == EINT_NA ? -EINVAL : 0;
307 unsigned int gpio_n;
310 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip);
314 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n];
328 unsigned int gpio_n;
331 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip);
335 if (mtk_is_virt_gpio(hw, gpio_n))
338 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n];