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()
1025 unsigned int gpp, gpp_offset, is_offset; in intel_gpio_irq_ack() local
1027 gpp = padgrp->reg_num; in intel_gpio_irq_ack()
1029 is_offset = community->is_offset + gpp * 4; in intel_gpio_irq_ack()
1047 unsigned int gpp, gpp_offset; in intel_gpio_irq_mask_unmask() local
1052 gpp = padgrp->reg_num; in intel_gpio_irq_mask_unmask()
1055 reg = community->regs + community->ie_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1056 is = community->regs + community->is_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1159 unsigned int gpp; in intel_gpio_community_irq_handler() local
1162 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_community_irq_handler()
1163 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_gpio_community_irq_handler()
1216 unsigned int gpp; in intel_gpio_irq_init() local
1221 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_irq_init()
1223 writel(0, base + community->ie_offset + gpp * 4); in intel_gpio_irq_init()
1224 writel(0xffff, base + community->is_offset + gpp * 4); in intel_gpio_irq_init()
1248 const struct intel_padgroup *gpp = &community->gpps[i]; in intel_gpio_add_community_ranges() local
1250 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges()
1254 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges()
1255 gpp->size); in intel_gpio_add_community_ranges()
1290 const struct intel_padgroup *gpp = &community->gpps[j]; in intel_gpio_ngpio() local
1292 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio()
1295 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio()
1296 ngpio = gpp->gpio_base + gpp->size; in intel_gpio_ngpio()
1679 unsigned int gpp; in intel_pinctrl_suspend_noirq() local
1682 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1683 communities[i].intmask[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1686 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1687 communities[i].hostown[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1709 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_hostown() argument
1712 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_restore_hostown()
1724 if (!intel_gpio_update_reg(base + gpp * 4, requested, saved)) in intel_restore_hostown()
1727 dev_dbg(dev, "restored hostown %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_hostown()
1731 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_intmask() argument
1735 if (!intel_gpio_update_reg(base + gpp * 4, ~0U, saved)) in intel_restore_intmask()
1738 dev_dbg(dev, "restored mask %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_intmask()
1785 unsigned int gpp; in intel_pinctrl_resume_noirq() local
1788 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1789 intel_restore_intmask(pctrl, i, base, gpp, communities[i].intmask[gpp]); in intel_pinctrl_resume_noirq()
1792 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1793 intel_restore_hostown(pctrl, i, base, gpp, communities[i].hostown[gpp]); in intel_pinctrl_resume_noirq()