Lines Matching refs:gpp
158 unsigned int gpp, offset, gpp_offset; in intel_pad_owned_by_host() local
172 gpp = PADOWN_GPP(gpp_offset); in intel_pad_owned_by_host()
173 offset = community->padown_offset + padgrp->padown_num * 4 + gpp * 4; in intel_pad_owned_by_host()
1040 unsigned int gpp, gpp_offset, is_offset; in intel_gpio_irq_ack() local
1042 gpp = padgrp->reg_num; in intel_gpio_irq_ack()
1044 is_offset = community->is_offset + gpp * 4; in intel_gpio_irq_ack()
1061 unsigned int gpp, gpp_offset; in intel_gpio_irq_mask_unmask() local
1066 gpp = padgrp->reg_num; in intel_gpio_irq_mask_unmask()
1069 reg = community->regs + community->ie_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1070 is = community->regs + community->is_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1192 unsigned int gpp; in intel_gpio_community_irq_handler() local
1195 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_community_irq_handler()
1196 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_gpio_community_irq_handler()
1248 unsigned int gpp; in intel_gpio_irq_init() local
1253 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_irq_init()
1255 writel(0, base + community->ie_offset + gpp * 4); in intel_gpio_irq_init()
1256 writel(0xffff, base + community->is_offset + gpp * 4); in intel_gpio_irq_init()
1280 const struct intel_padgroup *gpp = &community->gpps[i]; in intel_gpio_add_community_ranges() local
1282 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges()
1286 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges()
1287 gpp->size); in intel_gpio_add_community_ranges()
1322 const struct intel_padgroup *gpp = &community->gpps[j]; in intel_gpio_ngpio() local
1324 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio()
1327 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio()
1328 ngpio = gpp->gpio_base + gpp->size; in intel_gpio_ngpio()
1749 unsigned int gpp; in intel_pinctrl_suspend_noirq() local
1752 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1753 communities[i].intmask[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1756 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1757 communities[i].hostown[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1779 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_hostown() argument
1782 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_restore_hostown()
1794 if (!intel_gpio_update_reg(base + gpp * 4, requested, saved)) in intel_restore_hostown()
1797 dev_dbg(dev, "restored hostown %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_hostown()
1801 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_intmask() argument
1805 if (!intel_gpio_update_reg(base + gpp * 4, ~0U, saved)) in intel_restore_intmask()
1808 dev_dbg(dev, "restored mask %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_intmask()
1855 unsigned int gpp; in intel_pinctrl_resume_noirq() local
1858 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1859 intel_restore_intmask(pctrl, i, base, gpp, communities[i].intmask[gpp]); in intel_pinctrl_resume_noirq()
1862 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1863 intel_restore_hostown(pctrl, i, base, gpp, communities[i].hostown[gpp]); in intel_pinctrl_resume_noirq()