Lines Matching full:risc

130 int cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc,  in cx88_risc_buffer()  argument
145 * estimate risc mem: worst case is one write per page border + in cx88_risc_buffer()
153 risc->size = instructions * 8; in cx88_risc_buffer()
154 risc->dma = 0; in cx88_risc_buffer()
155 risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); in cx88_risc_buffer()
156 if (!risc->cpu) in cx88_risc_buffer()
159 /* write risc instructions */ in cx88_risc_buffer()
160 rp = risc->cpu; in cx88_risc_buffer()
170 risc->jmp = rp; in cx88_risc_buffer()
171 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx88_risc_buffer()
176 int cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, in cx88_risc_databuffer() argument
184 * estimate risc mem: worst case is one write per page border + in cx88_risc_databuffer()
191 risc->size = instructions * 8; in cx88_risc_databuffer()
192 risc->dma = 0; in cx88_risc_databuffer()
193 risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); in cx88_risc_databuffer()
194 if (!risc->cpu) in cx88_risc_databuffer()
197 /* write risc instructions */ in cx88_risc_databuffer()
198 rp = risc->cpu; in cx88_risc_databuffer()
203 risc->jmp = rp; in cx88_risc_databuffer()
204 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx88_risc_databuffer()
214 * we are going to put all thr risc programs into host memory, so we
342 unsigned int bpl, u32 risc) in cx88_sram_channel_setup() argument
359 cx_write(ch->cmds_start + 0, risc); in cx88_sram_channel_setup()
381 static int cx88_risc_decode(u32 risc) in cx88_risc_decode() argument
410 dprintk0("0x%08x [ %s", risc, in cx88_risc_decode()
411 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx88_risc_decode()
413 if (risc & (1 << (i + 12))) in cx88_risc_decode()
415 pr_cont(" count=%d ]\n", risc & 0xfff); in cx88_risc_decode()
416 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx88_risc_decode()
423 "initial risc", in cx88_sram_channel_dump()
428 "risc pc", in cx88_sram_channel_dump()
435 u32 risc; in cx88_sram_channel_dump() local
443 risc = cx_read(ch->cmds_start + 4 * (i + 11)); in cx88_sram_channel_dump()
444 pr_cont(" risc%d: ", i); in cx88_sram_channel_dump()
446 pr_cont("0x%08x [ arg #%d ]\n", risc, n); in cx88_sram_channel_dump()
448 n = cx88_risc_decode(risc); in cx88_sram_channel_dump()
451 risc = cx_read(ch->ctrl_start + 4 * i); in cx88_sram_channel_dump()
453 n = cx88_risc_decode(risc); in cx88_sram_channel_dump()
455 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx88_sram_channel_dump()
457 i + j, risc, j); in cx88_sram_channel_dump()
535 /* disable RISC controller + IRQs */ in cx88_shutdown()
566 cx_write(MO_INT1_STAT, 0xFFFFFFFF); // Clear RISC int in cx88_reset()
604 cx_write(MO_INT1_STAT, 0xFFFFFFFF); // Clear RISC int in cx88_reset()
784 /* If downstream RISC is enabled, bail out; ALSA is managing DMA */ in cx88_start_audio_dma()
805 /* If downstream RISC is enabled, bail out; ALSA is managing DMA */ in cx88_stop_audio_dma()