• Home
  • Raw
  • Download

Lines Matching refs:ipa

39 	struct ipa *ipa;  member
55 struct ipa *ipa = interrupt->ipa; in ipa_interrupt_process() local
62 offset = ipa_reg_irq_clr_offset(ipa->version); in ipa_interrupt_process()
64 iowrite32(mask, ipa->reg_virt + offset); in ipa_interrupt_process()
67 interrupt->handler[irq_id](interrupt->ipa, irq_id); in ipa_interrupt_process()
74 iowrite32(mask, ipa->reg_virt + offset); in ipa_interrupt_process()
81 struct ipa *ipa = interrupt->ipa; in ipa_isr_thread() local
89 dev = &ipa->pdev->dev; in ipa_isr_thread()
98 offset = ipa_reg_irq_stts_offset(ipa->version); in ipa_isr_thread()
99 pending = ioread32(ipa->reg_virt + offset); in ipa_isr_thread()
108 pending = ioread32(ipa->reg_virt + offset); in ipa_isr_thread()
115 offset = ipa_reg_irq_clr_offset(ipa->version); in ipa_isr_thread()
116 iowrite32(pending, ipa->reg_virt + offset); in ipa_isr_thread()
125 void ipa_interrupt_irq_disable(struct ipa *ipa) in ipa_interrupt_irq_disable() argument
127 disable_irq(ipa->interrupt->irq); in ipa_interrupt_irq_disable()
130 void ipa_interrupt_irq_enable(struct ipa *ipa) in ipa_interrupt_irq_enable() argument
132 enable_irq(ipa->interrupt->irq); in ipa_interrupt_irq_enable()
139 struct ipa *ipa = interrupt->ipa; in ipa_interrupt_suspend_control() local
144 WARN_ON(!(mask & ipa->available)); in ipa_interrupt_suspend_control()
147 if (ipa->version == IPA_VERSION_3_0) in ipa_interrupt_suspend_control()
150 offset = ipa_reg_irq_suspend_en_offset(ipa->version); in ipa_interrupt_suspend_control()
151 val = ioread32(ipa->reg_virt + offset); in ipa_interrupt_suspend_control()
156 iowrite32(val, ipa->reg_virt + offset); in ipa_interrupt_suspend_control()
176 struct ipa *ipa = interrupt->ipa; in ipa_interrupt_suspend_clear_all() local
180 offset = ipa_reg_irq_suspend_info_offset(ipa->version); in ipa_interrupt_suspend_clear_all()
181 val = ioread32(ipa->reg_virt + offset); in ipa_interrupt_suspend_clear_all()
184 if (ipa->version == IPA_VERSION_3_0) in ipa_interrupt_suspend_clear_all()
187 offset = ipa_reg_irq_suspend_clr_offset(ipa->version); in ipa_interrupt_suspend_clear_all()
188 iowrite32(val, ipa->reg_virt + offset); in ipa_interrupt_suspend_clear_all()
201 struct ipa *ipa = interrupt->ipa; in ipa_interrupt_add() local
210 offset = ipa_reg_irq_en_offset(ipa->version); in ipa_interrupt_add()
211 iowrite32(interrupt->enabled, ipa->reg_virt + offset); in ipa_interrupt_add()
218 struct ipa *ipa = interrupt->ipa; in ipa_interrupt_remove() local
225 offset = ipa_reg_irq_en_offset(ipa->version); in ipa_interrupt_remove()
226 iowrite32(interrupt->enabled, ipa->reg_virt + offset); in ipa_interrupt_remove()
232 struct ipa_interrupt *ipa_interrupt_config(struct ipa *ipa) in ipa_interrupt_config() argument
234 struct device *dev = &ipa->pdev->dev; in ipa_interrupt_config()
240 ret = platform_get_irq_byname(ipa->pdev, "ipa"); in ipa_interrupt_config()
251 interrupt->ipa = ipa; in ipa_interrupt_config()
255 offset = ipa_reg_irq_en_offset(ipa->version); in ipa_interrupt_config()
256 iowrite32(0, ipa->reg_virt + offset); in ipa_interrupt_config()
284 struct device *dev = &interrupt->ipa->pdev->dev; in ipa_interrupt_deconfig()