Lines Matching refs:gpp
167 unsigned int gpp, offset, gpp_offset; in intel_pad_owned_by_host() local
181 gpp = PADOWN_GPP(gpp_offset); in intel_pad_owned_by_host()
182 offset = community->padown_offset + padgrp->padown_num * 4 + gpp * 4; in intel_pad_owned_by_host()
1061 unsigned int gpp, gpp_offset, is_offset; in intel_gpio_irq_ack() local
1063 gpp = padgrp->reg_num; in intel_gpio_irq_ack()
1065 is_offset = community->is_offset + gpp * 4; in intel_gpio_irq_ack()
1082 unsigned int gpp, gpp_offset; in intel_gpio_irq_mask_unmask() local
1087 gpp = padgrp->reg_num; in intel_gpio_irq_mask_unmask()
1090 reg = community->regs + community->ie_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1091 is = community->regs + community->is_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1217 unsigned int gpp; in intel_gpio_community_irq_handler() local
1220 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_community_irq_handler()
1221 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_gpio_community_irq_handler()
1268 unsigned int gpp; in intel_gpio_irq_init() local
1273 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_irq_init()
1275 writel(0, base + community->ie_offset + gpp * 4); in intel_gpio_irq_init()
1276 writel(0xffff, base + community->is_offset + gpp * 4); in intel_gpio_irq_init()
1300 const struct intel_padgroup *gpp = &community->gpps[i]; in intel_gpio_add_community_ranges() local
1302 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges()
1306 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges()
1307 gpp->size); in intel_gpio_add_community_ranges()
1342 const struct intel_padgroup *gpp = &community->gpps[j]; in intel_gpio_ngpio() local
1344 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio()
1347 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio()
1348 ngpio = gpp->gpio_base + gpp->size; in intel_gpio_ngpio()
1793 unsigned int gpp; in intel_pinctrl_suspend_noirq() local
1796 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1797 communities[i].intmask[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1800 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1801 communities[i].hostown[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1823 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_hostown() argument
1826 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_restore_hostown()
1838 if (!intel_gpio_update_reg(base + gpp * 4, requested, saved)) in intel_restore_hostown()
1841 dev_dbg(dev, "restored hostown %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_hostown()
1845 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_intmask() argument
1849 if (!intel_gpio_update_reg(base + gpp * 4, ~0U, saved)) in intel_restore_intmask()
1852 dev_dbg(dev, "restored mask %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_intmask()
1904 unsigned int gpp; in intel_pinctrl_resume_noirq() local
1907 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1908 intel_restore_intmask(pctrl, i, base, gpp, communities[i].intmask[gpp]); in intel_pinctrl_resume_noirq()
1911 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1912 intel_restore_hostown(pctrl, i, base, gpp, communities[i].hostown[gpp]); in intel_pinctrl_resume_noirq()