Lines Matching defs:l3
130 * @l3: struct omap3_l3 *
140 static irqreturn_t omap3_l3_block_irq(struct omap3_l3 *l3,
159 struct omap3_l3 *l3 = _l3;
168 int_type = irq == l3->app_irq ? L3_APPLICATION_ERROR : L3_DEBUG_ERROR;
170 status = omap3_l3_readll(l3->rt, L3_SI_FLAG_STATUS_0);
179 status = omap3_l3_readll(l3->rt, L3_SI_FLAG_STATUS_1);
186 base = l3->rt + omap3_l3_bases[int_type][err_source];
190 ret |= omap3_l3_block_irq(l3, error, error_addr);
207 .compatible = "ti,omap3-l3-smx",
216 struct omap3_l3 *l3;
220 l3 = kzalloc(sizeof(*l3), GFP_KERNEL);
221 if (!l3)
224 platform_set_drvdata(pdev, l3);
232 l3->rt = ioremap(res->start, resource_size(res));
233 if (!l3->rt) {
239 l3->debug_irq = platform_get_irq(pdev, 0);
240 ret = request_irq(l3->debug_irq, omap3_l3_app_irq, IRQF_TRIGGER_RISING,
241 "l3-debug-irq", l3);
247 l3->app_irq = platform_get_irq(pdev, 1);
248 ret = request_irq(l3->app_irq, omap3_l3_app_irq, IRQF_TRIGGER_RISING,
249 "l3-app-irq", l3);
258 free_irq(l3->debug_irq, l3);
260 iounmap(l3->rt);
262 kfree(l3);
268 struct omap3_l3 *l3 = platform_get_drvdata(pdev);
270 free_irq(l3->app_irq, l3);
271 free_irq(l3->debug_irq, l3);
272 iounmap(l3->rt);
273 kfree(l3);