• Home
  • Raw
  • Download

Lines Matching refs:risc

135 int cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc,  in cx88_risc_buffer()  argument
155 risc->size = instructions * 8; in cx88_risc_buffer()
156 risc->dma = 0; in cx88_risc_buffer()
157 risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); in cx88_risc_buffer()
158 if (NULL == risc->cpu) in cx88_risc_buffer()
162 rp = risc->cpu; in cx88_risc_buffer()
171 risc->jmp = rp; in cx88_risc_buffer()
172 BUG_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
189 risc->size = instructions * 8; in cx88_risc_databuffer()
190 risc->dma = 0; in cx88_risc_databuffer()
191 risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); in cx88_risc_databuffer()
192 if (NULL == risc->cpu) in cx88_risc_databuffer()
196 rp = risc->cpu; in cx88_risc_databuffer()
200 risc->jmp = rp; in cx88_risc_databuffer()
201 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof (*risc->cpu) > risc->size); in cx88_risc_databuffer()
335 unsigned int bpl, u32 risc) in cx88_sram_channel_setup() argument
352 cx_write(ch->cmds_start + 0, risc); in cx88_sram_channel_setup()
373 static int cx88_risc_decode(u32 risc) in cx88_risc_decode() argument
402 printk("0x%08x [ %s", risc, in cx88_risc_decode()
403 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx88_risc_decode()
405 if (risc & (1 << (i + 12))) in cx88_risc_decode()
407 printk(" count=%d ]\n", risc & 0xfff); in cx88_risc_decode()
408 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx88_risc_decode()
428 u32 risc; in cx88_sram_channel_dump() local
438 risc = cx_read(ch->cmds_start + 4 * (i+11)); in cx88_sram_channel_dump()
441 printk("0x%08x [ arg #%d ]\n", risc, n); in cx88_sram_channel_dump()
443 n = cx88_risc_decode(risc); in cx88_sram_channel_dump()
446 risc = cx_read(ch->ctrl_start + 4 * i); in cx88_sram_channel_dump()
448 n = cx88_risc_decode(risc); in cx88_sram_channel_dump()
450 risc = cx_read(ch->ctrl_start + 4 * (i+j)); in cx88_sram_channel_dump()
452 core->name, i+j, risc, j); in cx88_sram_channel_dump()