risc 17 drivers/media/common/btcx-risc.h struct btcx_riscmem *risc, risc 20 drivers/media/common/btcx-risc.h struct btcx_riscmem *risc); risc 93 drivers/media/dvb-frontends/dib9000.c } risc; risc 239 drivers/media/dvb-frontends/dib9000.c if (state->platform.risc.fw_is_running && (reg < 1024)) risc 323 drivers/media/dvb-frontends/dib9000.c if (state->platform.risc.fw_is_running && (reg < 1024)) { risc 428 drivers/media/dvb-frontends/dib9000.c state->platform.risc.memcmd = -1; /* if it was called directly reset it - to force a future setup-call to set it */ risc 433 drivers/media/dvb-frontends/dib9000.c struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd & 0x7f]; risc 435 drivers/media/dvb-frontends/dib9000.c if (state->platform.risc.memcmd == cmd && /* same command */ risc 439 drivers/media/dvb-frontends/dib9000.c state->platform.risc.memcmd = cmd; risc 444 drivers/media/dvb-frontends/dib9000.c if (!state->platform.risc.fw_is_running) risc 447 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_lock) < 0) { risc 453 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_lock); risc 459 drivers/media/dvb-frontends/dib9000.c struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd]; risc 460 drivers/media/dvb-frontends/dib9000.c if (!state->platform.risc.fw_is_running) risc 463 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_lock) < 0) { risc 469 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_lock); risc 535 drivers/media/dvb-frontends/dib9000.c if (!state->platform.risc.fw_is_running) risc 538 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mbx_if_lock) < 0) { risc 582 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mbx_if_lock); risc 597 drivers/media/dvb-frontends/dib9000.c if (!state->platform.risc.fw_is_running) risc 600 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mbx_if_lock) < 0) { risc 641 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mbx_if_lock); risc 669 drivers/media/dvb-frontends/dib9000.c block = state->platform.risc.message_cache[i]; risc 709 drivers/media/dvb-frontends/dib9000.c if (!state->platform.risc.fw_is_running) risc 712 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mbx_lock) < 0) { risc 723 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mbx_lock); risc 738 drivers/media/dvb-frontends/dib9000.c block = state->platform.risc.message_cache[i]; risc 842 drivers/media/dvb-frontends/dib9000.c state->platform.risc.fw_is_running = 1; risc 847 drivers/media/dvb-frontends/dib9000.c state->platform.risc.memcmd = 0xff; risc 1017 drivers/media/dvb-frontends/dib9000.c if (address >= 1024 || !state->platform.risc.fw_is_running) risc 1044 drivers/media/dvb-frontends/dib9000.c if (address >= 1024 || !state->platform.risc.fw_is_running) risc 1066 drivers/media/dvb-frontends/dib9000.c if (!state->platform.risc.fw_is_running) risc 1148 drivers/media/dvb-frontends/dib9000.c state->platform.risc.fe_mm[i / 2].addr = b[i + 0]; risc 1149 drivers/media/dvb-frontends/dib9000.c state->platform.risc.fe_mm[i / 2].size = b[i + 1]; risc 1197 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { risc 1327 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 1659 drivers/media/dvb-frontends/dib9000.c struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[FE_MM_RW_COMPONENT_ACCESS_BUFFER]; risc 1682 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { risc 1696 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 1704 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2212 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { risc 2218 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2224 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2256 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { risc 2262 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2267 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2287 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { risc 2292 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2296 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2355 drivers/media/dvb-frontends/dib9000.c if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { risc 2361 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2366 drivers/media/dvb-frontends/dib9000.c mutex_unlock(&state->platform.risc.mem_mbx_lock); risc 2496 drivers/media/dvb-frontends/dib9000.c mutex_init(&st->platform.risc.mbx_if_lock); risc 2497 drivers/media/dvb-frontends/dib9000.c mutex_init(&st->platform.risc.mbx_lock); risc 2498 drivers/media/dvb-frontends/dib9000.c mutex_init(&st->platform.risc.mem_lock); risc 2499 drivers/media/dvb-frontends/dib9000.c mutex_init(&st->platform.risc.mem_mbx_lock); risc 42 drivers/media/pci/bt8xx/btcx-risc.c struct btcx_riscmem *risc) risc 44 drivers/media/pci/bt8xx/btcx-risc.c if (NULL == risc->cpu) risc 49 drivers/media/pci/bt8xx/btcx-risc.c memcnt, (unsigned long)risc->dma); risc 51 drivers/media/pci/bt8xx/btcx-risc.c pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); risc 52 drivers/media/pci/bt8xx/btcx-risc.c memset(risc,0,sizeof(*risc)); risc 56 drivers/media/pci/bt8xx/btcx-risc.c struct btcx_riscmem *risc, risc 62 drivers/media/pci/bt8xx/btcx-risc.c if (NULL != risc->cpu && risc->size < size) risc 63 drivers/media/pci/bt8xx/btcx-risc.c btcx_riscmem_free(pci,risc); risc 64 drivers/media/pci/bt8xx/btcx-risc.c if (NULL == risc->cpu) { risc 68 drivers/media/pci/bt8xx/btcx-risc.c risc->cpu = cpu; risc 69 drivers/media/pci/bt8xx/btcx-risc.c risc->dma = dma; risc 70 drivers/media/pci/bt8xx/btcx-risc.c risc->size = size; risc 76 drivers/media/pci/bt8xx/btcx-risc.c memset(risc->cpu,0,risc->size); risc 15 drivers/media/pci/bt8xx/btcx-risc.h struct btcx_riscmem *risc, risc 18 drivers/media/pci/bt8xx/btcx-risc.h struct btcx_riscmem *risc); risc 3328 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_risc_decode(u32 risc) risc 3356 drivers/media/pci/bt8xx/bttv-driver.c pr_cont("0x%08x [ %s", risc, risc 3357 drivers/media/pci/bt8xx/bttv-driver.c instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); risc 3359 drivers/media/pci/bt8xx/bttv-driver.c if (risc & (1 << (i + 12))) risc 3361 drivers/media/pci/bt8xx/bttv-driver.c pr_cont(" count=%d ]\n", risc & 0xfff); risc 3362 drivers/media/pci/bt8xx/bttv-driver.c return incr[risc >> 28] ? incr[risc >> 28] : 1; risc 3366 drivers/media/pci/bt8xx/bttv-driver.c struct btcx_riscmem *risc) risc 3371 drivers/media/pci/bt8xx/bttv-driver.c btv->c.v4l2_dev.name, risc->cpu, (unsigned long)risc->dma); risc 3372 drivers/media/pci/bt8xx/bttv-driver.c for (i = 0; i < (risc->size >> 2); i += n) { risc 3375 drivers/media/pci/bt8xx/bttv-driver.c (unsigned long)(risc->dma + (i<<2))); risc 3376 drivers/media/pci/bt8xx/bttv-driver.c n = bttv_risc_decode(le32_to_cpu(risc->cpu[i])); risc 3380 drivers/media/pci/bt8xx/bttv-driver.c (unsigned long)(risc->dma + ((i+j)<<2)), risc 3381 drivers/media/pci/bt8xx/bttv-driver.c risc->cpu[i+j], j); risc 3382 drivers/media/pci/bt8xx/bttv-driver.c if (0 == risc->cpu[i]) risc 3668 drivers/media/pci/bt8xx/bttv-driver.c static inline int is_active(struct btcx_riscmem *risc, u32 rc) risc 3670 drivers/media/pci/bt8xx/bttv-driver.c if (rc < risc->dma) risc 3672 drivers/media/pci/bt8xx/bttv-driver.c if (rc > risc->dma + risc->size) risc 35 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, risc 54 drivers/media/pci/bt8xx/bttv-risc.c if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) risc 58 drivers/media/pci/bt8xx/bttv-risc.c rp = risc->cpu; risc 108 drivers/media/pci/bt8xx/bttv-risc.c risc->jmp = rp; risc 109 drivers/media/pci/bt8xx/bttv-risc.c BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 114 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, risc 137 drivers/media/pci/bt8xx/bttv-risc.c if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) risc 141 drivers/media/pci/bt8xx/bttv-risc.c rp = risc->cpu; risc 229 drivers/media/pci/bt8xx/bttv-risc.c risc->jmp = rp; risc 230 drivers/media/pci/bt8xx/bttv-risc.c BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 235 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, risc 256 drivers/media/pci/bt8xx/bttv-risc.c if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,dwords*4)) < 0) { risc 262 drivers/media/pci/bt8xx/bttv-risc.c rp = risc->cpu; risc 317 drivers/media/pci/bt8xx/bttv-risc.c risc->jmp = rp; risc 318 drivers/media/pci/bt8xx/bttv-risc.c BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 544 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, risc 550 drivers/media/pci/bt8xx/bttv-risc.c if (NULL == risc) { risc 551 drivers/media/pci/bt8xx/bttv-risc.c d2printk("%d: risc=%p slot[%d]=NULL\n", btv->c.nr, risc, slot); risc 555 drivers/media/pci/bt8xx/bttv-risc.c btv->c.nr, risc, slot, risc 556 drivers/media/pci/bt8xx/bttv-risc.c (unsigned long long)risc->dma, irqflags); risc 563 drivers/media/pci/bt8xx/bttv-risc.c risc->jmp[0] = cpu_to_le32(cmd); risc 564 drivers/media/pci/bt8xx/bttv-risc.c risc->jmp[1] = cpu_to_le32(next); risc 565 drivers/media/pci/bt8xx/bttv-risc.c btv->main.cpu[slot+1] = cpu_to_le32(risc->dma); risc 238 drivers/media/pci/bt8xx/bttvp.h int bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, risc 247 drivers/media/pci/bt8xx/bttvp.h int bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, risc 164 drivers/media/pci/cx23885/cx23885-alsa.c buf->risc.dma); risc 260 drivers/media/pci/cx23885/cx23885-alsa.c struct cx23885_riscmem *risc; risc 267 drivers/media/pci/cx23885/cx23885-alsa.c risc = &chip->buf->risc; risc 268 drivers/media/pci/cx23885/cx23885-alsa.c pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); risc 392 drivers/media/pci/cx23885/cx23885-alsa.c ret = cx23885_risc_databuffer(chip->pci, &buf->risc, buf->sglist, risc 398 drivers/media/pci/cx23885/cx23885-alsa.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC); risc 399 drivers/media/pci/cx23885/cx23885-alsa.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 400 drivers/media/pci/cx23885/cx23885-alsa.c buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ risc 384 drivers/media/pci/cx23885/cx23885-core.c static int cx23885_risc_decode(u32 risc) risc 415 drivers/media/pci/cx23885/cx23885-core.c printk(KERN_DEBUG "0x%08x [ %s", risc, risc 416 drivers/media/pci/cx23885/cx23885-core.c instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); risc 418 drivers/media/pci/cx23885/cx23885-core.c if (risc & (1 << (i + 12))) risc 420 drivers/media/pci/cx23885/cx23885-core.c pr_cont(" count=%d ]\n", risc & 0xfff); risc 421 drivers/media/pci/cx23885/cx23885-core.c return incr[risc >> 28] ? incr[risc >> 28] : 1; risc 456 drivers/media/pci/cx23885/cx23885-core.c unsigned int bpl, u32 risc) risc 499 drivers/media/pci/cx23885/cx23885-core.c cx_write(ch->cmds_start + 0, risc); risc 545 drivers/media/pci/cx23885/cx23885-core.c u32 risc; risc 556 drivers/media/pci/cx23885/cx23885-core.c risc = cx_read(ch->cmds_start + 4 * (i + 14)); risc 558 drivers/media/pci/cx23885/cx23885-core.c cx23885_risc_decode(risc); risc 561 drivers/media/pci/cx23885/cx23885-core.c risc = cx_read(ch->ctrl_start + 4 * i); risc 566 drivers/media/pci/cx23885/cx23885-core.c n = cx23885_risc_decode(risc); risc 568 drivers/media/pci/cx23885/cx23885-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); risc 570 drivers/media/pci/cx23885/cx23885-core.c dev->name, i+j, risc, j); risc 589 drivers/media/pci/cx23885/cx23885-core.c struct cx23885_riscmem *risc) risc 595 drivers/media/pci/cx23885/cx23885-core.c dev->name, risc->cpu, (unsigned long)risc->dma); risc 596 drivers/media/pci/cx23885/cx23885-core.c for (i = 0; i < (risc->size >> 2); i += n) { risc 598 drivers/media/pci/cx23885/cx23885-core.c n = cx23885_risc_decode(le32_to_cpu(risc->cpu[i])); risc 601 drivers/media/pci/cx23885/cx23885-core.c dev->name, i + j, risc->cpu[i + j], j); risc 602 drivers/media/pci/cx23885/cx23885-core.c if (risc->cpu[i] == cpu_to_le32(RISC_JUMP)) risc 1198 drivers/media/pci/cx23885/cx23885-core.c int cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, risc 1220 drivers/media/pci/cx23885/cx23885-core.c risc->size = instructions * 12; risc 1221 drivers/media/pci/cx23885/cx23885-core.c risc->cpu = pci_alloc_consistent(pci, risc->size, &risc->dma); risc 1222 drivers/media/pci/cx23885/cx23885-core.c if (risc->cpu == NULL) risc 1226 drivers/media/pci/cx23885/cx23885-core.c rp = risc->cpu; risc 1235 drivers/media/pci/cx23885/cx23885-core.c risc->jmp = rp; risc 1236 drivers/media/pci/cx23885/cx23885-core.c BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 1241 drivers/media/pci/cx23885/cx23885-core.c struct cx23885_riscmem *risc, risc 1257 drivers/media/pci/cx23885/cx23885-core.c risc->size = instructions * 12; risc 1258 drivers/media/pci/cx23885/cx23885-core.c risc->cpu = pci_alloc_consistent(pci, risc->size, &risc->dma); risc 1259 drivers/media/pci/cx23885/cx23885-core.c if (risc->cpu == NULL) risc 1263 drivers/media/pci/cx23885/cx23885-core.c rp = risc->cpu; risc 1268 drivers/media/pci/cx23885/cx23885-core.c risc->jmp = rp; risc 1269 drivers/media/pci/cx23885/cx23885-core.c BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 1273 drivers/media/pci/cx23885/cx23885-core.c int cx23885_risc_vbibuffer(struct pci_dev *pci, struct cx23885_riscmem *risc, risc 1295 drivers/media/pci/cx23885/cx23885-core.c risc->size = instructions * 12; risc 1296 drivers/media/pci/cx23885/cx23885-core.c risc->cpu = pci_alloc_consistent(pci, risc->size, &risc->dma); risc 1297 drivers/media/pci/cx23885/cx23885-core.c if (risc->cpu == NULL) risc 1300 drivers/media/pci/cx23885/cx23885-core.c rp = risc->cpu; risc 1315 drivers/media/pci/cx23885/cx23885-core.c risc->jmp = rp; risc 1316 drivers/media/pci/cx23885/cx23885-core.c BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 1323 drivers/media/pci/cx23885/cx23885-core.c struct cx23885_riscmem *risc = &buf->risc; risc 1326 drivers/media/pci/cx23885/cx23885-core.c pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); risc 1412 drivers/media/pci/cx23885/cx23885-core.c port->ts_packet_size, buf->risc.dma); risc 1416 drivers/media/pci/cx23885/cx23885-core.c cx23885_risc_disasm(port, &buf->risc); risc 1585 drivers/media/pci/cx23885/cx23885-core.c cx23885_risc_databuffer(dev->pci, &buf->risc, risc 1619 drivers/media/pci/cx23885/cx23885-core.c buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); risc 1620 drivers/media/pci/cx23885/cx23885-core.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); risc 1621 drivers/media/pci/cx23885/cx23885-core.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); risc 1622 drivers/media/pci/cx23885/cx23885-core.c buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ risc 1630 drivers/media/pci/cx23885/cx23885-core.c buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); risc 1634 drivers/media/pci/cx23885/cx23885-core.c prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 1657 drivers/media/pci/cx23885/cx23885-core.c (unsigned long)buf->risc.dma); risc 94 drivers/media/pci/cx23885/cx23885-vbi.c VBI_LINE_LENGTH, buf->risc.dma); risc 144 drivers/media/pci/cx23885/cx23885-vbi.c cx23885_risc_vbibuffer(dev->pci, &buf->risc, risc 192 drivers/media/pci/cx23885/cx23885-vbi.c buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); risc 193 drivers/media/pci/cx23885/cx23885-vbi.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); risc 194 drivers/media/pci/cx23885/cx23885-vbi.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); risc 195 drivers/media/pci/cx23885/cx23885-vbi.c buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ risc 205 drivers/media/pci/cx23885/cx23885-vbi.c buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); risc 211 drivers/media/pci/cx23885/cx23885-vbi.c prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 312 drivers/media/pci/cx23885/cx23885-video.c buf->bpl, buf->risc.dma); risc 358 drivers/media/pci/cx23885/cx23885-video.c cx23885_risc_buffer(dev->pci, &buf->risc, risc 363 drivers/media/pci/cx23885/cx23885-video.c cx23885_risc_buffer(dev->pci, &buf->risc, risc 391 drivers/media/pci/cx23885/cx23885-video.c cx23885_risc_buffer(dev->pci, &buf->risc, risc 398 drivers/media/pci/cx23885/cx23885-video.c cx23885_risc_buffer(dev->pci, &buf->risc, risc 405 drivers/media/pci/cx23885/cx23885-video.c cx23885_risc_buffer(dev->pci, &buf->risc, risc 417 drivers/media/pci/cx23885/cx23885-video.c (unsigned long)buf->risc.dma); risc 462 drivers/media/pci/cx23885/cx23885-video.c buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); risc 463 drivers/media/pci/cx23885/cx23885-video.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); risc 464 drivers/media/pci/cx23885/cx23885-video.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); risc 465 drivers/media/pci/cx23885/cx23885-video.c buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ risc 473 drivers/media/pci/cx23885/cx23885-video.c buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); risc 477 drivers/media/pci/cx23885/cx23885-video.c prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 178 drivers/media/pci/cx23885/cx23885.h struct cx23885_riscmem risc; risc 325 drivers/media/pci/cx23885/cx23885.h struct cx23885_riscmem risc; risc 511 drivers/media/pci/cx23885/cx23885.h unsigned int bpl, u32 risc); risc 516 drivers/media/pci/cx23885/cx23885.h extern int cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, risc 522 drivers/media/pci/cx23885/cx23885.h struct cx23885_riscmem *risc, struct scatterlist *sglist, risc 622 drivers/media/pci/cx23885/cx23885.h struct cx23885_riscmem *risc, risc 53 drivers/media/pci/cx25821/cx25821-alsa.c struct cx25821_riscmem risc; risc 231 drivers/media/pci/cx25821/cx25821-alsa.c buf->risc.dma); risc 398 drivers/media/pci/cx25821/cx25821-alsa.c struct cx25821_riscmem *risc = &chip->buf->risc; risc 405 drivers/media/pci/cx25821/cx25821-alsa.c pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); risc 534 drivers/media/pci/cx25821/cx25821-alsa.c ret = cx25821_risc_databuffer_audio(chip->pci, &buf->risc, buf->sglist, risc 542 drivers/media/pci/cx25821/cx25821-alsa.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); risc 543 drivers/media/pci/cx25821/cx25821-alsa.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 544 drivers/media/pci/cx25821/cx25821-alsa.c buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ risc 299 drivers/media/pci/cx25821/cx25821-core.c static int cx25821_risc_decode(u32 risc) risc 331 drivers/media/pci/cx25821/cx25821-core.c risc, instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); risc 333 drivers/media/pci/cx25821/cx25821-core.c if (risc & (1 << (i + 12))) risc 336 drivers/media/pci/cx25821/cx25821-core.c pr_cont(" count=%d ]\n", risc & 0xfff); risc 337 drivers/media/pci/cx25821/cx25821-core.c return incr[risc >> 28] ? incr[risc >> 28] : 1; risc 426 drivers/media/pci/cx25821/cx25821-core.c unsigned int bpl, u32 risc) risc 468 drivers/media/pci/cx25821/cx25821-core.c cx_write(ch->cmds_start + 0, risc); risc 494 drivers/media/pci/cx25821/cx25821-core.c unsigned int bpl, u32 risc) risc 532 drivers/media/pci/cx25821/cx25821-core.c cx_write(ch->cmds_start + 0, risc); risc 577 drivers/media/pci/cx25821/cx25821-core.c u32 risc; risc 587 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->cmds_start + 4 * (i + 14)); risc 589 drivers/media/pci/cx25821/cx25821-core.c i += cx25821_risc_decode(risc); risc 593 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->ctrl_start + 4 * i); risc 598 drivers/media/pci/cx25821/cx25821-core.c n = cx25821_risc_decode(risc); risc 600 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); risc 602 drivers/media/pci/cx25821/cx25821-core.c 4 * (i + j), i + j, risc, j); risc 640 drivers/media/pci/cx25821/cx25821-core.c u32 risc, value, tmp; risc 653 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->cmds_start + 4 * (i + 14)); risc 655 drivers/media/pci/cx25821/cx25821-core.c i += cx25821_risc_decode(risc); risc 659 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->ctrl_start + 4 * i); risc 664 drivers/media/pci/cx25821/cx25821-core.c n = cx25821_risc_decode(risc); risc 667 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); risc 669 drivers/media/pci/cx25821/cx25821-core.c 4 * (i + j), i + j, risc, j); risc 687 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->cmds_start + 56 + (i * 4)); risc 688 drivers/media/pci/cx25821/cx25821-core.c pr_warn("instruction %d = 0x%x\n", i, risc); risc 692 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(AUD_A_CDT); risc 693 drivers/media/pci/cx25821/cx25821-core.c pr_warn("\nread cdt loc=0x%x\n", risc); risc 695 drivers/media/pci/cx25821/cx25821-core.c n = cx_read(risc + i * 4); risc 973 drivers/media/pci/cx25821/cx25821-core.c struct cx25821_riscmem *risc, risc 979 drivers/media/pci/cx25821/cx25821-core.c if (NULL != risc->cpu && risc->size < size) risc 980 drivers/media/pci/cx25821/cx25821-core.c pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); risc 981 drivers/media/pci/cx25821/cx25821-core.c if (NULL == risc->cpu) { risc 985 drivers/media/pci/cx25821/cx25821-core.c risc->cpu = cpu; risc 986 drivers/media/pci/cx25821/cx25821-core.c risc->dma = dma; risc 987 drivers/media/pci/cx25821/cx25821-core.c risc->size = size; risc 1055 drivers/media/pci/cx25821/cx25821-core.c int cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc, risc 1079 drivers/media/pci/cx25821/cx25821-core.c rc = cx25821_riscmem_alloc(pci, risc, instructions * 12); risc 1085 drivers/media/pci/cx25821/cx25821-core.c rp = risc->cpu; risc 1098 drivers/media/pci/cx25821/cx25821-core.c risc->jmp = rp; risc 1099 drivers/media/pci/cx25821/cx25821-core.c BUG_ON((risc->jmp - risc->cpu + 3) * sizeof(*risc->cpu) > risc->size); risc 1166 drivers/media/pci/cx25821/cx25821-core.c struct cx25821_riscmem *risc, risc 1183 drivers/media/pci/cx25821/cx25821-core.c rc = cx25821_riscmem_alloc(pci, risc, instructions * 12); risc 1188 drivers/media/pci/cx25821/cx25821-core.c rp = risc->cpu; risc 1193 drivers/media/pci/cx25821/cx25821-core.c risc->jmp = rp; risc 1194 drivers/media/pci/cx25821/cx25821-core.c BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 1202 drivers/media/pci/cx25821/cx25821-core.c if (WARN_ON(buf->risc.size == 0)) risc 1205 drivers/media/pci/cx25821/cx25821-core.c buf->risc.size, buf->risc.cpu, buf->risc.dma); risc 1206 drivers/media/pci/cx25821/cx25821-core.c memset(&buf->risc, 0, sizeof(buf->risc)); risc 66 drivers/media/pci/cx25821/cx25821-video.c cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); risc 179 drivers/media/pci/cx25821/cx25821-video.c ret = cx25821_risc_buffer(dev->pci, &buf->risc, risc 184 drivers/media/pci/cx25821/cx25821-video.c ret = cx25821_risc_buffer(dev->pci, &buf->risc, risc 193 drivers/media/pci/cx25821/cx25821-video.c ret = cx25821_risc_buffer(dev->pci, &buf->risc, risc 199 drivers/media/pci/cx25821/cx25821-video.c ret = cx25821_risc_buffer(dev->pci, &buf->risc, risc 205 drivers/media/pci/cx25821/cx25821-video.c ret = cx25821_risc_buffer(dev->pci, &buf->risc, risc 219 drivers/media/pci/cx25821/cx25821-video.c (unsigned long)buf->risc.dma); risc 245 drivers/media/pci/cx25821/cx25821-video.c buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); risc 246 drivers/media/pci/cx25821/cx25821-video.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); risc 247 drivers/media/pci/cx25821/cx25821-video.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); risc 248 drivers/media/pci/cx25821/cx25821-video.c buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ risc 253 drivers/media/pci/cx25821/cx25821-video.c buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); risc 257 drivers/media/pci/cx25821/cx25821-video.c prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 119 drivers/media/pci/cx25821/cx25821.h struct cx25821_riscmem risc; risc 393 drivers/media/pci/cx25821/cx25821.h u32 risc); risc 396 drivers/media/pci/cx25821/cx25821.h struct cx25821_riscmem *risc, risc 398 drivers/media/pci/cx25821/cx25821.h extern int cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc, risc 405 drivers/media/pci/cx25821/cx25821.h struct cx25821_riscmem *risc, risc 422 drivers/media/pci/cx25821/cx25821.h unsigned int bpl, u32 risc); risc 46 drivers/media/pci/cx88/cx88-alsa.c struct cx88_riscmem risc; risc 124 drivers/media/pci/cx88/cx88-alsa.c cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); risc 352 drivers/media/pci/cx88/cx88-alsa.c struct cx88_riscmem *risc = &chip->buf->risc; risc 359 drivers/media/pci/cx88/cx88-alsa.c if (risc->cpu) risc 360 drivers/media/pci/cx88/cx88-alsa.c pci_free_consistent(chip->pci, risc->size, risc 361 drivers/media/pci/cx88/cx88-alsa.c risc->cpu, risc->dma); risc 484 drivers/media/pci/cx88/cx88-alsa.c ret = cx88_risc_databuffer(chip->pci, &buf->risc, buf->sglist, risc 490 drivers/media/pci/cx88/cx88-alsa.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); risc 491 drivers/media/pci/cx88/cx88-alsa.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 685 drivers/media/pci/cx88/cx88-blackbird.c struct cx88_riscmem *risc = &buf->risc; risc 687 drivers/media/pci/cx88/cx88-blackbird.c if (risc->cpu) risc 688 drivers/media/pci/cx88/cx88-blackbird.c pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); risc 689 drivers/media/pci/cx88/cx88-blackbird.c memset(risc, 0, sizeof(*risc)); risc 130 drivers/media/pci/cx88/cx88-core.c int cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, risc 153 drivers/media/pci/cx88/cx88-core.c risc->size = instructions * 8; risc 154 drivers/media/pci/cx88/cx88-core.c risc->dma = 0; risc 155 drivers/media/pci/cx88/cx88-core.c risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); risc 156 drivers/media/pci/cx88/cx88-core.c if (!risc->cpu) risc 160 drivers/media/pci/cx88/cx88-core.c rp = risc->cpu; risc 170 drivers/media/pci/cx88/cx88-core.c risc->jmp = rp; risc 171 drivers/media/pci/cx88/cx88-core.c WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 176 drivers/media/pci/cx88/cx88-core.c int cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, risc 191 drivers/media/pci/cx88/cx88-core.c risc->size = instructions * 8; risc 192 drivers/media/pci/cx88/cx88-core.c risc->dma = 0; risc 193 drivers/media/pci/cx88/cx88-core.c risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); risc 194 drivers/media/pci/cx88/cx88-core.c if (!risc->cpu) risc 198 drivers/media/pci/cx88/cx88-core.c rp = risc->cpu; risc 203 drivers/media/pci/cx88/cx88-core.c risc->jmp = rp; risc 204 drivers/media/pci/cx88/cx88-core.c WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); risc 342 drivers/media/pci/cx88/cx88-core.c unsigned int bpl, u32 risc) risc 359 drivers/media/pci/cx88/cx88-core.c cx_write(ch->cmds_start + 0, risc); risc 381 drivers/media/pci/cx88/cx88-core.c static int cx88_risc_decode(u32 risc) risc 410 drivers/media/pci/cx88/cx88-core.c dprintk0("0x%08x [ %s", risc, risc 411 drivers/media/pci/cx88/cx88-core.c instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); risc 413 drivers/media/pci/cx88/cx88-core.c if (risc & (1 << (i + 12))) risc 415 drivers/media/pci/cx88/cx88-core.c pr_cont(" count=%d ]\n", risc & 0xfff); risc 416 drivers/media/pci/cx88/cx88-core.c return incr[risc >> 28] ? incr[risc >> 28] : 1; risc 435 drivers/media/pci/cx88/cx88-core.c u32 risc; risc 443 drivers/media/pci/cx88/cx88-core.c risc = cx_read(ch->cmds_start + 4 * (i + 11)); risc 446 drivers/media/pci/cx88/cx88-core.c pr_cont("0x%08x [ arg #%d ]\n", risc, n); risc 448 drivers/media/pci/cx88/cx88-core.c n = cx88_risc_decode(risc); risc 451 drivers/media/pci/cx88/cx88-core.c risc = cx_read(ch->ctrl_start + 4 * i); risc 453 drivers/media/pci/cx88/cx88-core.c n = cx88_risc_decode(risc); risc 455 drivers/media/pci/cx88/cx88-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); risc 457 drivers/media/pci/cx88/cx88-core.c i + j, risc, j); risc 103 drivers/media/pci/cx88/cx88-dvb.c struct cx88_riscmem *risc = &buf->risc; risc 105 drivers/media/pci/cx88/cx88-dvb.c if (risc->cpu) risc 106 drivers/media/pci/cx88/cx88-dvb.c pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); risc 107 drivers/media/pci/cx88/cx88-dvb.c memset(risc, 0, sizeof(*risc)); risc 83 drivers/media/pci/cx88/cx88-mpeg.c dev->ts_packet_size, buf->risc.dma); risc 218 drivers/media/pci/cx88/cx88-mpeg.c struct cx88_riscmem *risc = &buf->risc; risc 225 drivers/media/pci/cx88/cx88-mpeg.c rc = cx88_risc_databuffer(dev->pci, risc, sgt->sgl, risc 228 drivers/media/pci/cx88/cx88-mpeg.c if (risc->cpu) risc 229 drivers/media/pci/cx88/cx88-mpeg.c pci_free_consistent(dev->pci, risc->size, risc 230 drivers/media/pci/cx88/cx88-mpeg.c risc->cpu, risc->dma); risc 231 drivers/media/pci/cx88/cx88-mpeg.c memset(risc, 0, sizeof(*risc)); risc 245 drivers/media/pci/cx88/cx88-mpeg.c buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); risc 246 drivers/media/pci/cx88/cx88-mpeg.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); risc 247 drivers/media/pci/cx88/cx88-mpeg.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); risc 256 drivers/media/pci/cx88/cx88-mpeg.c buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); risc 260 drivers/media/pci/cx88/cx88-mpeg.c prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 59 drivers/media/pci/cx88/cx88-vbi.c VBI_LINE_LENGTH, buf->risc.dma); risc 147 drivers/media/pci/cx88/cx88-vbi.c cx88_risc_buffer(dev->pci, &buf->risc, sgt->sgl, risc 159 drivers/media/pci/cx88/cx88-vbi.c struct cx88_riscmem *risc = &buf->risc; risc 161 drivers/media/pci/cx88/cx88-vbi.c if (risc->cpu) risc 162 drivers/media/pci/cx88/cx88-vbi.c pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); risc 163 drivers/media/pci/cx88/cx88-vbi.c memset(risc, 0, sizeof(*risc)); risc 175 drivers/media/pci/cx88/cx88-vbi.c buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); risc 176 drivers/media/pci/cx88/cx88-vbi.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); risc 177 drivers/media/pci/cx88/cx88-vbi.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); risc 185 drivers/media/pci/cx88/cx88-vbi.c buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); risc 188 drivers/media/pci/cx88/cx88-vbi.c prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 357 drivers/media/pci/cx88/cx88-video.c buf->bpl, buf->risc.dma); risc 450 drivers/media/pci/cx88/cx88-video.c cx88_risc_buffer(dev->pci, &buf->risc, risc 455 drivers/media/pci/cx88/cx88-video.c cx88_risc_buffer(dev->pci, &buf->risc, risc 460 drivers/media/pci/cx88/cx88-video.c cx88_risc_buffer(dev->pci, &buf->risc, risc 467 drivers/media/pci/cx88/cx88-video.c cx88_risc_buffer(dev->pci, &buf->risc, risc 475 drivers/media/pci/cx88/cx88-video.c cx88_risc_buffer(dev->pci, &buf->risc, risc 485 drivers/media/pci/cx88/cx88-video.c (unsigned long)buf->risc.dma); risc 494 drivers/media/pci/cx88/cx88-video.c struct cx88_riscmem *risc = &buf->risc; risc 496 drivers/media/pci/cx88/cx88-video.c if (risc->cpu) risc 497 drivers/media/pci/cx88/cx88-video.c pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); risc 498 drivers/media/pci/cx88/cx88-video.c memset(risc, 0, sizeof(*risc)); risc 510 drivers/media/pci/cx88/cx88-video.c buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); risc 511 drivers/media/pci/cx88/cx88-video.c buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); risc 512 drivers/media/pci/cx88/cx88-video.c buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); risc 520 drivers/media/pci/cx88/cx88-video.c buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); risc 523 drivers/media/pci/cx88/cx88-video.c prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); risc 320 drivers/media/pci/cx88/cx88.h struct cx88_riscmem risc; risc 621 drivers/media/pci/cx88/cx88.h cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, risc 626 drivers/media/pci/cx88/cx88.h cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, risc 631 drivers/media/pci/cx88/cx88.h struct cx88_riscmem *risc); risc 634 drivers/media/pci/cx88/cx88.h unsigned int bpl, u32 risc); risc 179 drivers/media/pci/tw68/tw68-risc.c static void tw68_risc_decode(u32 risc, u32 addr) risc 196 drivers/media/pci/tw68/tw68-risc.c p = RISC_OP(risc); risc 197 drivers/media/pci/tw68/tw68-risc.c if (!(risc & 0x80000000) || !instr[p].name) { risc 198 drivers/media/pci/tw68/tw68-risc.c pr_debug("0x%08x [ INVALID ]\n", risc); risc 202 drivers/media/pci/tw68/tw68-risc.c risc, instr[p].name, (risc >> 27) & 1); risc 204 drivers/media/pci/tw68/tw68-risc.c pr_debug(" Type=%d", (risc >> 24) & 7); risc 207 drivers/media/pci/tw68/tw68-risc.c (risc >> 12) & 0xfff, risc & 0xfff); risc 271 drivers/net/ethernet/freescale/ucc_geth.c unsigned int risc, risc 299 drivers/net/ethernet/freescale/ucc_geth.c | risc; risc 308 drivers/net/ethernet/freescale/ucc_geth.c unsigned int risc, risc 320 drivers/net/ethernet/freescale/ucc_geth.c if ((val & ENET_INIT_PARAM_RISC_MASK) == risc) { risc 343 drivers/net/ethernet/freescale/ucc_geth.c unsigned int risc, risc 355 drivers/net/ethernet/freescale/ucc_geth.c if ((val & ENET_INIT_PARAM_RISC_MASK) == risc) { risc 217 sound/pci/bt87x.c __le32 *risc; risc 224 sound/pci/bt87x.c risc = (__le32 *)chip->dma_risc.area; risc 226 sound/pci/bt87x.c *risc++ = cpu_to_le32(RISC_SYNC | RISC_SYNC_FM1); risc 227 sound/pci/bt87x.c *risc++ = cpu_to_le32(0); risc 248 sound/pci/bt87x.c *risc++ = cpu_to_le32(cmd); risc 250 sound/pci/bt87x.c *risc++ = cpu_to_le32(addr); risc 255 sound/pci/bt87x.c *risc++ = cpu_to_le32(RISC_SYNC | RISC_SYNC_VRO); risc 256 sound/pci/bt87x.c *risc++ = cpu_to_le32(0); risc 257 sound/pci/bt87x.c *risc++ = cpu_to_le32(RISC_JUMP); risc 258 sound/pci/bt87x.c *risc++ = cpu_to_le32(chip->dma_risc.addr);