Lines Matching refs:gpp

168 	unsigned int gpp, offset, gpp_offset;  in intel_pad_owned_by_host()  local
182 gpp = PADOWN_GPP(gpp_offset); in intel_pad_owned_by_host()
183 offset = community->padown_offset + padgrp->padown_num * 4 + gpp * 4; in intel_pad_owned_by_host()
1059 unsigned int gpp, gpp_offset, is_offset; in intel_gpio_irq_ack() local
1061 gpp = padgrp->reg_num; in intel_gpio_irq_ack()
1063 is_offset = community->is_offset + gpp * 4; in intel_gpio_irq_ack()
1080 unsigned int gpp, gpp_offset; in intel_gpio_irq_mask_unmask() local
1085 gpp = padgrp->reg_num; in intel_gpio_irq_mask_unmask()
1088 reg = community->regs + community->ie_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1089 is = community->regs + community->is_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
1211 unsigned int gpp; in intel_gpio_community_irq_handler() local
1214 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_community_irq_handler()
1215 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_gpio_community_irq_handler()
1262 unsigned int gpp; in intel_gpio_irq_init() local
1267 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_irq_init()
1269 writel(0, base + community->ie_offset + gpp * 4); in intel_gpio_irq_init()
1270 writel(0xffff, base + community->is_offset + gpp * 4); in intel_gpio_irq_init()
1294 const struct intel_padgroup *gpp = &community->gpps[i]; in intel_gpio_add_community_ranges() local
1296 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges()
1300 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges()
1301 gpp->size); in intel_gpio_add_community_ranges()
1336 const struct intel_padgroup *gpp = &community->gpps[j]; in intel_gpio_ngpio() local
1338 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio()
1341 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio()
1342 ngpio = gpp->gpio_base + gpp->size; in intel_gpio_ngpio()
1787 unsigned int gpp; in intel_pinctrl_suspend_noirq() local
1790 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1791 communities[i].intmask[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1794 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend_noirq()
1795 communities[i].hostown[gpp] = readl(base + gpp * 4); in intel_pinctrl_suspend_noirq()
1817 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_hostown() argument
1820 const struct intel_padgroup *padgrp = &community->gpps[gpp]; in intel_restore_hostown()
1832 if (!intel_gpio_update_reg(base + gpp * 4, requested, saved)) in intel_restore_hostown()
1835 dev_dbg(dev, "restored hostown %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_hostown()
1839 void __iomem *base, unsigned int gpp, u32 saved) in intel_restore_intmask() argument
1843 if (!intel_gpio_update_reg(base + gpp * 4, ~0U, saved)) in intel_restore_intmask()
1846 dev_dbg(dev, "restored mask %u/%u %#08x\n", c, gpp, readl(base + gpp * 4)); in intel_restore_intmask()
1898 unsigned int gpp; in intel_pinctrl_resume_noirq() local
1901 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1902 intel_restore_intmask(pctrl, i, base, gpp, communities[i].intmask[gpp]); in intel_pinctrl_resume_noirq()
1905 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_resume_noirq()
1906 intel_restore_hostown(pctrl, i, base, gpp, communities[i].hostown[gpp]); in intel_pinctrl_resume_noirq()