• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/cx88/

Lines Matching refs:risc

128 int cx88_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
143 /* estimate risc mem: worst case is one write per page border +
149 if ((rc = btcx_riscmem_alloc(pci,risc,instructions*8)) < 0)
152 /* write risc instructions */
153 rp = risc->cpu;
162 risc->jmp = rp;
163 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof (*risc->cpu) > risc->size);
167 int cx88_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc,
175 /* estimate risc mem: worst case is one write per page border +
181 if ((rc = btcx_riscmem_alloc(pci,risc,instructions*8)) < 0)
184 /* write risc instructions */
185 rp = risc->cpu;
189 risc->jmp = rp;
190 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof (*risc->cpu) > risc->size);
194 int cx88_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
200 if ((rc = btcx_riscmem_alloc(pci, risc, 4*16)) < 0)
203 /* write risc instructions */
204 rp = risc->cpu;
210 *(rp++) = cpu_to_le32(risc->dma);
223 btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc);
230 /* we are going to put all thr risc programs into host memory, so we
357 unsigned int bpl, u32 risc)
374 cx_write(ch->cmds_start + 0, risc);
395 static int cx88_risc_decode(u32 risc)
424 printk("0x%08x [ %s", risc,
425 instr[risc >> 28] ? instr[risc >> 28] : "INVALID");
427 if (risc & (1 << (i + 12)))
429 printk(" count=%d ]\n", risc & 0xfff);
430 return incr[risc >> 28] ? incr[risc >> 28] : 1;
438 "initial risc",
443 "risc pc",
450 u32 risc;
460 risc = cx_read(ch->cmds_start + 4 * (i+11));
461 printk("%s: risc%d: ", core->name, i);
463 printk("0x%08x [ arg #%d ]\n", risc, n);
465 n = cx88_risc_decode(risc);
468 risc = cx_read(ch->ctrl_start + 4 * i);
470 n = cx88_risc_decode(risc);
472 risc = cx_read(ch->ctrl_start + 4 * (i+j));
474 core->name, i+j, risc, j);