Lines Matching refs:eint
243 if (desc[i].eint.eint_n == eint_n) in mtk_xt_find_eint_num()
268 if (desc->eint.eint_m == NO_EINT_SUPPORT) in mtk_is_virt_gpio()
271 if (desc->funcs && !desc->funcs[desc->eint.eint_m].name) in mtk_is_virt_gpio()
293 desc[eint_n].eint.eint_n == eint_n) in mtk_xt_get_gpio_n()
340 desc->eint.eint_m); in mtk_xt_set_gpio_as_eint()
378 hw->eint = devm_kzalloc(hw->dev, sizeof(*hw->eint), GFP_KERNEL); in mtk_build_eint()
379 if (!hw->eint) in mtk_build_eint()
382 hw->eint->base = devm_platform_ioremap_resource_byname(pdev, "eint"); in mtk_build_eint()
383 if (IS_ERR(hw->eint->base)) { in mtk_build_eint()
384 ret = PTR_ERR(hw->eint->base); in mtk_build_eint()
388 hw->eint->irq = irq_of_parse_and_map(np, 0); in mtk_build_eint()
389 if (!hw->eint->irq) { in mtk_build_eint()
399 hw->eint->dev = &pdev->dev; in mtk_build_eint()
400 hw->eint->hw = hw->soc->eint_hw; in mtk_build_eint()
401 hw->eint->pctl = hw; in mtk_build_eint()
402 hw->eint->gpio_xlate = &mtk_eint_xt; in mtk_build_eint()
404 return mtk_eint_do_init(hw->eint); in mtk_build_eint()
407 devm_kfree(hw->dev, hw->eint); in mtk_build_eint()
408 hw->eint = NULL; in mtk_build_eint()