Lines Matching refs:risc
35 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument
54 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed()
58 rp = risc->cpu; in bttv_risc_packed()
108 risc->jmp = rp; in bttv_risc_packed()
109 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_packed()
114 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument
137 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar()
141 rp = risc->cpu; in bttv_risc_planar()
229 risc->jmp = rp; in bttv_risc_planar()
230 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_planar()
481 bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, in bttv_risc_hook() argument
487 if (NULL == risc) { in bttv_risc_hook()
488 d2printk("%d: risc=%p slot[%d]=NULL\n", btv->c.nr, risc, slot); in bttv_risc_hook()
492 btv->c.nr, risc, slot, in bttv_risc_hook()
493 (unsigned long long)risc->dma, irqflags); in bttv_risc_hook()
500 risc->jmp[0] = cpu_to_le32(cmd); in bttv_risc_hook()
501 risc->jmp[1] = cpu_to_le32(next); in bttv_risc_hook()
502 btv->main.cpu[slot+1] = cpu_to_le32(risc->dma); in bttv_risc_hook()