Lines Matching defs:source
71 int source;
87 if (irq_map[i].source == src)
110 reg |= (1UL << (map->source & 31));
133 reg &= ~(1UL << (map->source & 31));
154 ipu_write_reg(bank->ipu, 1UL << (map->source & 31), bank->status);
174 (1UL << (map->source & 31));
181 * ipu_irq_map() - map an IPU interrupt source to an IRQ number
182 * @source: interrupt source bit position (see below)
185 * The source parameter has to be explained further. On i.MX31 IPU has 137 IRQ
187 * However, the source argument of this function is not the sequence number of
189 * register has source number 96, and not 88. This makes calculations easier,
193 int ipu_irq_map(unsigned int source)
201 map = src2map(source);
203 pr_err("IPU: Source %u already mapped to IRQ %u\n", source, map->irq);
209 if (irq_map[i].source < 0) {
213 irq_map[i].source = source;
214 irq_map[i].bank = irq_bank + source / 32;
218 pr_debug("IPU: mapped source %u to IRQ %u\n",
219 source, ret);
227 pr_err("IPU: couldn't map source %u: %d\n", source, ret);
233 * ipu_irq_map() - map an IPU interrupt source to an IRQ number
234 * @source: interrupt source bit position (see ipu_irq_map())
237 int ipu_irq_unmap(unsigned int source)
245 if (irq_map[i].source == source) {
248 pr_debug("IPU: unmapped source %u from IRQ %u\n",
249 source, irq_map[i].irq);
252 irq_map[i].source = -EINVAL;
295 pr_err("IPU: Interrupt on unmapped source %u bank %d\n",
338 irq_map[i].source = -EINVAL;