Lines Matching refs:gpp
148 unsigned int gpp, offset, gpp_offset; in intel_pad_owned_by_host() local
162 gpp = PADOWN_GPP(gpp_offset); in intel_pad_owned_by_host()
163 offset = community->padown_offset + padgrp->padown_num * 4 + gpp * 4; in intel_pad_owned_by_host()
1023 unsigned int gpp, gpp_offset, is_offset; in intel_gpio_irq_ack() local
1025 gpp = padgrp->reg_num; in intel_gpio_irq_ack()
1027 is_offset = community->is_offset + gpp * 4; in intel_gpio_irq_ack()
1045 unsigned int gpp, gpp_offset; in intel_gpio_irq_mask_unmask() local
1050 gpp = padgrp->reg_num; in intel_gpio_irq_mask_unmask()
1053 reg = community->regs + community->ie_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1054 is = community->regs + community->is_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1160 unsigned int gpp; in intel_gpio_community_irq_handler() local
1163 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_community_irq_handler()
1164 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_gpio_community_irq_handler()
1216 const struct intel_padgroup *gpp = &community->gpps[i]; in intel_gpio_add_community_ranges() local
1218 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges()
1222 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges()
1223 gpp->size); in intel_gpio_add_community_ranges()
1258 const struct intel_padgroup *gpp = &community->gpps[j]; in intel_gpio_ngpio() local
1260 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio()
1263 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio()
1264 ngpio = gpp->gpio_base + gpp->size; in intel_gpio_ngpio()
1628 unsigned int gpp; in intel_pinctrl_suspend_noirq() local
1631 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1632 communities[i].intmask[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1635 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1636 communities[i].hostown[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1650 unsigned int gpp; in intel_gpio_irq_init() local
1655 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_irq_init()
1657 writel(0, base + community->ie_offset + gpp * 4); in intel_gpio_irq_init()
1658 writel(0xffff, base + community->is_offset + gpp * 4); in intel_gpio_irq_init()
1678 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_hostown() argument
1681 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_restore_hostown()
1693 if (!intel_gpio_update_reg(base + gpp * 4, requested, saved)) in intel_restore_hostown()
1696 dev_dbg(dev, "restored hostown %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_hostown()
1700 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_intmask() argument
1704 if (!intel_gpio_update_reg(base + gpp * 4, ~0U, saved)) in intel_restore_intmask()
1707 dev_dbg(dev, "restored mask %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_intmask()
1754 unsigned int gpp; in intel_pinctrl_resume_noirq() local
1757 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1758 intel_restore_intmask(pctrl, i, base, gpp, communities[i].intmask[gpp]); in intel_pinctrl_resume_noirq()
1761 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1762 intel_restore_hostown(pctrl, i, base, gpp, communities[i].hostown[gpp]); in intel_pinctrl_resume_noirq()