Lines Matching refs:gpp
181 unsigned int gpp, offset, gpp_offset; in intel_pad_owned_by_host() local
195 gpp = PADOWN_GPP(gpp_offset); in intel_pad_owned_by_host()
196 offset = community->padown_offset + padgrp->padown_num * 4 + gpp * 4; in intel_pad_owned_by_host()
984 unsigned int gpp, gpp_offset, is_offset; in intel_gpio_irq_ack() local
986 gpp = padgrp->reg_num; in intel_gpio_irq_ack()
988 is_offset = community->is_offset + gpp * 4; in intel_gpio_irq_ack()
1006 unsigned int gpp, gpp_offset; in intel_gpio_irq_mask_unmask() local
1011 gpp = padgrp->reg_num; in intel_gpio_irq_mask_unmask()
1014 reg = community->regs + community->ie_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1015 is = community->regs + community->is_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1119 int gpp; in intel_gpio_community_irq_handler() local
1121 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_community_irq_handler()
1122 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_gpio_community_irq_handler()
1169 const struct intel_padgroup *gpp = &community->gpps[i]; in intel_gpio_add_pin_ranges() local
1171 if (gpp->gpio_base < 0) in intel_gpio_add_pin_ranges()
1175 gpp->gpio_base, gpp->base, in intel_gpio_add_pin_ranges()
1176 gpp->size); in intel_gpio_add_pin_ranges()
1193 const struct intel_padgroup *gpp = &community->gpps[j]; in intel_gpio_ngpio() local
1195 if (gpp->gpio_base < 0) in intel_gpio_ngpio()
1198 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio()
1199 ngpio = gpp->gpio_base + gpp->size; in intel_gpio_ngpio()
1550 unsigned int gpp; in intel_pinctrl_suspend_noirq() local
1553 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1554 communities[i].intmask[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1557 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1558 communities[i].hostown[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1572 unsigned int gpp; in intel_gpio_irq_init() local
1577 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_irq_init()
1579 writel(0, base + community->ie_offset + gpp * 4); in intel_gpio_irq_init()
1580 writel(0xffff, base + community->is_offset + gpp * 4); in intel_gpio_irq_init()
1660 unsigned int gpp; in intel_pinctrl_resume_noirq() local
1663 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_pinctrl_resume_noirq()
1664 writel(communities[i].intmask[gpp], base + gpp * 4); in intel_pinctrl_resume_noirq()
1665 dev_dbg(dev, "restored mask %d/%u %#08x\n", i, gpp, in intel_pinctrl_resume_noirq()
1666 readl(base + gpp * 4)); in intel_pinctrl_resume_noirq()
1670 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_pinctrl_resume_noirq()
1671 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_pinctrl_resume_noirq()
1673 u32 saved = communities[i].hostown[gpp]; in intel_pinctrl_resume_noirq()
1680 value = intel_gpio_update_pad_mode(base + gpp * 4, in intel_pinctrl_resume_noirq()
1684 i, gpp, value, saved); in intel_pinctrl_resume_noirq()