Lines Matching full: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, in bttv_risc_packed() argument
46 /* estimate risc mem: worst case is one write per page border + in bttv_risc_packed()
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 BUG_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
131 /* estimate risc mem: worst case is one write per page border + in bttv_risc_planar()
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()
208 /* write risc instruction */ in bttv_risc_planar()
229 risc->jmp = rp; in bttv_risc_planar()
230 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_planar()
235 bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_overlay() argument
251 /* estimate risc mem: worst case is (1.5*clip+1) * lines instructions in bttv_risc_overlay()
256 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,dwords*4)) < 0) { in bttv_risc_overlay()
262 rp = risc->cpu; in bttv_risc_overlay()
286 /* write out risc code */ in bttv_risc_overlay()
317 risc->jmp = rp; in bttv_risc_overlay()
318 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_overlay()
450 /* risc group / risc main loop / dma management */
511 dprintk("%d: risc main @ %08llx\n", in bttv_risc_init_main()
544 bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, in bttv_risc_hook() argument
550 if (NULL == risc) { in bttv_risc_hook()
551 d2printk("%d: risc=%p slot[%d]=NULL\n", btv->c.nr, risc, slot); in bttv_risc_hook()
554 d2printk("%d: risc=%p slot[%d]=%08llx irq=%d\n", in bttv_risc_hook()
555 btv->c.nr, risc, slot, in bttv_risc_hook()
556 (unsigned long long)risc->dma, irqflags); in bttv_risc_hook()
563 risc->jmp[0] = cpu_to_le32(cmd); in bttv_risc_hook()
564 risc->jmp[1] = cpu_to_le32(next); in bttv_risc_hook()
565 btv->main.cpu[slot+1] = cpu_to_le32(risc->dma); in bttv_risc_hook()
695 /* calculate geometry, build risc code */
836 /* build risc code */ in bttv_buffer_risc()
855 /* calculate geometry, build risc code */
872 /* build risc code */ in bttv_overlay_risc()