Lines Matching refs:community
113 struct intel_community *community; in intel_get_community() local
117 community = &pctrl->communities[i]; in intel_get_community()
118 if (pin >= community->pin_base && in intel_get_community()
119 pin < community->pin_base + community->npins) in intel_get_community()
120 return community; in intel_get_community()
130 const struct intel_community *community; in intel_get_padcfg() local
133 community = intel_get_community(pctrl, pin); in intel_get_padcfg()
134 if (!community) in intel_get_padcfg()
137 padno = pin_to_padno(community, pin); in intel_get_padcfg()
138 return community->pad_regs + reg + padno * 8; in intel_get_padcfg()
143 const struct intel_community *community; in intel_pad_owned_by_host() local
147 community = intel_get_community(pctrl, pin); in intel_pad_owned_by_host()
148 if (!community) in intel_pad_owned_by_host()
150 if (!community->padown_offset) in intel_pad_owned_by_host()
153 padno = pin_to_padno(community, pin); in intel_pad_owned_by_host()
156 offset = community->padown_offset + gpp * 16 + (gpp_offset / 8) * 4; in intel_pad_owned_by_host()
157 padown = community->regs + offset; in intel_pad_owned_by_host()
165 const struct intel_community *community; in intel_pad_reserved_for_acpi() local
169 community = intel_get_community(pctrl, pin); in intel_pad_reserved_for_acpi()
170 if (!community) in intel_pad_reserved_for_acpi()
172 if (!community->hostown_offset) in intel_pad_reserved_for_acpi()
175 padno = pin_to_padno(community, pin); in intel_pad_reserved_for_acpi()
177 offset = community->hostown_offset + gpp * 4; in intel_pad_reserved_for_acpi()
178 hostown = community->regs + offset; in intel_pad_reserved_for_acpi()
185 struct intel_community *community; in intel_pad_locked() local
189 community = intel_get_community(pctrl, pin); in intel_pad_locked()
190 if (!community) in intel_pad_locked()
192 if (!community->padcfglock_offset) in intel_pad_locked()
195 padno = pin_to_padno(community, pin); in intel_pad_locked()
203 offset = community->padcfglock_offset + gpp * 8; in intel_pad_locked()
204 value = readl(community->regs + offset); in intel_pad_locked()
208 offset = community->padcfglock_offset + 4 + gpp * 8; in intel_pad_locked()
209 value = readl(community->regs + offset); in intel_pad_locked()
669 const struct intel_community *community; in intel_gpio_irq_ack() local
674 community = intel_get_community(pctrl, pin); in intel_gpio_irq_ack()
675 if (community) { in intel_gpio_irq_ack()
676 unsigned padno = pin_to_padno(community, pin); in intel_gpio_irq_ack()
680 writel(BIT(gpp_offset), community->regs + GPI_IS + gpp * 4); in intel_gpio_irq_ack()
690 const struct intel_community *community; in intel_gpio_irq_mask_unmask() local
696 community = intel_get_community(pctrl, pin); in intel_gpio_irq_mask_unmask()
697 if (community) { in intel_gpio_irq_mask_unmask()
698 unsigned padno = pin_to_padno(community, pin); in intel_gpio_irq_mask_unmask()
704 reg = community->regs + community->ie_offset + gpp * 4; in intel_gpio_irq_mask_unmask()
774 const struct intel_community *community; in intel_gpio_irq_wake() local
779 community = intel_get_community(pctrl, pin); in intel_gpio_irq_wake()
780 if (!community) in intel_gpio_irq_wake()
783 padno = pin_to_padno(community, pin); in intel_gpio_irq_wake()
788 writel(BIT(gpp_offset), community->regs + GPI_GPE_STS + gpp * 4); in intel_gpio_irq_wake()
795 gpe_en = readl(community->regs + GPI_GPE_EN + gpp * 4); in intel_gpio_irq_wake()
800 writel(gpe_en, community->regs + GPI_GPE_EN + gpp * 4); in intel_gpio_irq_wake()
807 const struct intel_community *community) in intel_gpio_community_irq_handler() argument
811 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_community_irq_handler()
814 pending = readl(community->regs + GPI_IS + gpp * 4); in intel_gpio_community_irq_handler()
815 enabled = readl(community->regs + community->ie_offset + in intel_gpio_community_irq_handler()
829 if (padno >= community->npins) in intel_gpio_community_irq_handler()
833 community->pin_base + padno); in intel_gpio_community_irq_handler()
869 const struct intel_community *community; in intel_gpio_irq_init() local
873 community = &pctrl->communities[i]; in intel_gpio_irq_init()
874 base = community->regs; in intel_gpio_irq_init()
876 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_gpio_irq_init()
878 writel(0, base + community->ie_offset + gpp * 4); in intel_gpio_irq_init()
941 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_pm_init() local
944 intmask = devm_kcalloc(pctrl->dev, community->ngpps, in intel_pinctrl_pm_init()
987 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_probe() local
992 *community = pctrl->soc->communities[i]; in intel_pinctrl_probe()
995 community->barno); in intel_pinctrl_probe()
1003 community->regs = regs; in intel_pinctrl_probe()
1004 community->pad_regs = regs + padbar; in intel_pinctrl_probe()
1005 community->ngpps = DIV_ROUND_UP(community->npins, NPADS_IN_GPP); in intel_pinctrl_probe()
1077 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_suspend() local
1081 base = community->regs + community->ie_offset; in intel_pinctrl_suspend()
1082 for (gpp = 0; gpp < community->ngpps; gpp++) in intel_pinctrl_suspend()
1129 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_resume() local
1133 base = community->regs + community->ie_offset; in intel_pinctrl_resume()
1134 for (gpp = 0; gpp < community->ngpps; gpp++) { in intel_pinctrl_resume()