Lines Matching refs:risc
4 bttv-risc.c -- interfaces to other kernel modules
6 bttv risc code handling
32 /* risc code generators */
35 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc,
46 /* estimate risc mem: worst case is one write per page border +
54 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0)
58 rp = risc->cpu;
108 risc->jmp = rp;
109 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size);
114 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc,
131 /* estimate risc mem: worst case is one write per page border +
137 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0)
141 rp = risc->cpu;
208 /* write risc instruction */
229 risc->jmp = rp;
230 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size);
361 /* risc group / risc main loop / dma management */
448 dprintk("%d: risc main @ %08llx\n",
481 bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc,
487 if (NULL == risc) {
488 d2printk("%d: risc=%p slot[%d]=NULL\n", btv->c.nr, risc, slot);
491 d2printk("%d: risc=%p slot[%d]=%08llx irq=%d\n",
492 btv->c.nr, risc, slot,
493 (unsigned long long)risc->dma, irqflags);
500 risc->jmp[0] = cpu_to_le32(cmd);
501 risc->jmp[1] = cpu_to_le32(next);
502 btv->main.cpu[slot+1] = cpu_to_le32(risc->dma);
658 /* calculate geometry, build risc code */
789 /* build risc code */