Lines Matching defs:ipu
18 #include <mach/ipu.h>
25 static u32 ipu_read_reg(struct ipu *ipu, unsigned long reg)
27 return __raw_readl(ipu->reg_ipu + reg);
30 static void ipu_write_reg(struct ipu *ipu, u32 value, unsigned long reg)
32 __raw_writel(value, ipu->reg_ipu + reg);
48 struct ipu *ipu;
77 struct ipu *ipu;
113 reg = ipu_read_reg(bank->ipu, bank->control);
115 ipu_write_reg(bank->ipu, reg, bank->control);
136 reg = ipu_read_reg(bank->ipu, bank->control);
138 ipu_write_reg(bank->ipu, reg, bank->control);
158 ipu_write_reg(bank->ipu, 1UL << (map->source & 31), bank->status);
177 ret = bank && ipu_read_reg(bank->ipu, bank->status) &
272 struct ipu *ipu = get_irq_data(irq);
280 status = ipu_read_reg(ipu, bank->status);
286 status &= ipu_read_reg(ipu, bank->control);
313 struct ipu *ipu = get_irq_data(irq);
321 status = ipu_read_reg(ipu, bank->status);
323 status &= ipu_read_reg(ipu, bank->control);
355 int __init ipu_irq_attach_irq(struct ipu *ipu, struct platform_device *dev)
363 irq_bank[i].ipu = ipu;
375 irq_map[i].ipu = ipu;
384 set_irq_data(ipu->irq_fn, ipu);
385 set_irq_chained_handler(ipu->irq_fn, ipu_irq_fn);
387 set_irq_data(ipu->irq_err, ipu);
388 set_irq_chained_handler(ipu->irq_err, ipu_irq_err);
393 void ipu_irq_detach_irq(struct ipu *ipu, struct platform_device *dev)
400 set_irq_chained_handler(ipu->irq_fn, NULL);
401 set_irq_data(ipu->irq_fn, NULL);
403 set_irq_chained_handler(ipu->irq_err, NULL);
404 set_irq_data(ipu->irq_err, NULL);