/drivers/media/pci/cx25821/ |
D | cx25821-core.c | 309 static int cx25821_risc_decode(u32 risc) in cx25821_risc_decode() argument 341 risc, instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx25821_risc_decode() 343 if (risc & (1 << (i + 12))) in cx25821_risc_decode() 346 pr_cont(" count=%d ]\n", risc & 0xfff); in cx25821_risc_decode() 347 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx25821_risc_decode() 436 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument 478 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup() 504 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument 542 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_audio() 587 u32 risc; in cx25821_sram_channel_dump() local [all …]
|
D | cx25821-alsa.c | 62 struct cx25821_riscmem risc; member 240 buf->risc.dma); in _cx25821_start_audio_dma() 407 struct cx25821_riscmem *risc = &chip->buf->risc; in dsp_buffer_free() local 414 pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); in dsp_buffer_free() 543 ret = cx25821_risc_databuffer_audio(chip->pci, &buf->risc, buf->sglist, in snd_cx25821_hw_params() 551 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in snd_cx25821_hw_params() 552 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx25821_hw_params() 553 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx25821_hw_params()
|
D | cx25821-video.c | 79 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma() 192 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 197 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 206 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 212 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 218 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 232 (unsigned long)buf->risc.dma); in cx25821_buffer_prepare() 258 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in cx25821_buffer_queue() 259 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx25821_buffer_queue() 260 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in cx25821_buffer_queue() [all …]
|
D | cx25821.h | 130 struct cx25821_riscmem risc; member 404 u32 risc); 407 struct cx25821_riscmem *risc, 409 extern int cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc, 416 struct cx25821_riscmem *risc, 433 unsigned int bpl, u32 risc); 446 unsigned int bpl, u32 risc);
|
/drivers/media/pci/cx88/ |
D | cx88-core.c | 139 int cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, in cx88_risc_buffer() argument 162 risc->size = instructions * 8; in cx88_risc_buffer() 163 risc->dma = 0; in cx88_risc_buffer() 164 risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); in cx88_risc_buffer() 165 if (!risc->cpu) in cx88_risc_buffer() 169 rp = risc->cpu; in cx88_risc_buffer() 179 risc->jmp = rp; in cx88_risc_buffer() 180 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx88_risc_buffer() 185 int cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, in cx88_risc_databuffer() argument 200 risc->size = instructions * 8; in cx88_risc_databuffer() [all …]
|
D | cx88-vbi.c | 59 VBI_LINE_LENGTH, buf->risc.dma); in cx8800_start_vbi_dma() 147 cx88_risc_buffer(dev->pci, &buf->risc, sgt->sgl, in buffer_prepare() 159 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local 161 if (risc->cpu) in buffer_finish() 162 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in buffer_finish() 163 memset(risc, 0, sizeof(*risc)); in buffer_finish() 175 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); in buffer_queue() 176 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue() 177 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); in buffer_queue() 186 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in buffer_queue() [all …]
|
D | cx88-mpeg.c | 92 dev->ts_packet_size, buf->risc.dma); in cx8802_start_dma() 227 struct cx88_riscmem *risc = &buf->risc; in cx8802_buf_prepare() local 234 rc = cx88_risc_databuffer(dev->pci, risc, sgt->sgl, in cx8802_buf_prepare() 237 if (risc->cpu) in cx8802_buf_prepare() 238 pci_free_consistent(dev->pci, risc->size, in cx8802_buf_prepare() 239 risc->cpu, risc->dma); in cx8802_buf_prepare() 240 memset(risc, 0, sizeof(*risc)); in cx8802_buf_prepare() 254 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); in cx8802_buf_queue() 255 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx8802_buf_queue() 256 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); in cx8802_buf_queue() [all …]
|
D | cx88-alsa.c | 55 struct cx88_riscmem risc; member 133 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma() 361 struct cx88_riscmem *risc = &chip->buf->risc; in dsp_buffer_free() local 368 if (risc->cpu) in dsp_buffer_free() 369 pci_free_consistent(chip->pci, risc->size, in dsp_buffer_free() 370 risc->cpu, risc->dma); in dsp_buffer_free() 493 ret = cx88_risc_databuffer(chip->pci, &buf->risc, buf->sglist, in snd_cx88_hw_params() 499 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in snd_cx88_hw_params() 500 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx88_hw_params()
|
D | cx88-video.c | 376 buf->bpl, buf->risc.dma); in start_video_dma() 469 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 474 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 479 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 486 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 494 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 504 (unsigned long)buf->risc.dma); in buffer_prepare() 513 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local 515 if (risc->cpu) in buffer_finish() 516 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in buffer_finish() [all …]
|
D | cx88.h | 330 struct cx88_riscmem risc; member 631 cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, 636 cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, 641 struct cx88_riscmem *risc); 644 unsigned int bpl, u32 risc);
|
D | cx88-blackbird.c | 694 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local 696 if (risc->cpu) in buffer_finish() 697 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in buffer_finish() 698 memset(risc, 0, sizeof(*risc)); in buffer_finish()
|
/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 54 struct btcx_riscmem *risc) in btcx_riscmem_free() argument 56 if (NULL == risc->cpu) in btcx_riscmem_free() 61 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free() 63 pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); in btcx_riscmem_free() 64 memset(risc,0,sizeof(*risc)); in btcx_riscmem_free() 68 struct btcx_riscmem *risc, in btcx_riscmem_alloc() argument 74 if (NULL != risc->cpu && risc->size < size) in btcx_riscmem_alloc() 75 btcx_riscmem_free(pci,risc); in btcx_riscmem_alloc() 76 if (NULL == risc->cpu) { in btcx_riscmem_alloc() 80 risc->cpu = cpu; in btcx_riscmem_alloc() [all …]
|
D | bttv-risc.c | 47 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument 66 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed() 70 rp = risc->cpu; in bttv_risc_packed() 120 risc->jmp = rp; in bttv_risc_packed() 121 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_packed() 126 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument 149 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar() 153 rp = risc->cpu; in bttv_risc_planar() 240 risc->jmp = rp; in bttv_risc_planar() 241 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_planar() [all …]
|
D | btcx-risc.h | 15 struct btcx_riscmem *risc, 18 struct btcx_riscmem *risc);
|
D | Makefile | 3 bttv-risc.o bttv-vbi.o bttv-i2c.o bttv-gpio.o \ 4 bttv-input.o bttv-audio-hook.o btcx-risc.o
|
D | bttv-driver.c | 3384 static int bttv_risc_decode(u32 risc) in bttv_risc_decode() argument 3412 pr_cont("0x%08x [ %s", risc, in bttv_risc_decode() 3413 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in bttv_risc_decode() 3415 if (risc & (1 << (i + 12))) in bttv_risc_decode() 3417 pr_cont(" count=%d ]\n", risc & 0xfff); in bttv_risc_decode() 3418 return incr[risc >> 28] ? incr[risc >> 28] : 1; in bttv_risc_decode() 3422 struct btcx_riscmem *risc) in bttv_risc_disasm() argument 3427 btv->c.v4l2_dev.name, risc->cpu, (unsigned long)risc->dma); in bttv_risc_disasm() 3428 for (i = 0; i < (risc->size >> 2); i += n) { in bttv_risc_disasm() 3431 (unsigned long)(risc->dma + (i<<2))); in bttv_risc_disasm() [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-core.c | 381 static int cx23885_risc_decode(u32 risc) in cx23885_risc_decode() argument 412 printk(KERN_DEBUG "0x%08x [ %s", risc, in cx23885_risc_decode() 413 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx23885_risc_decode() 415 if (risc & (1 << (i + 12))) in cx23885_risc_decode() 417 pr_cont(" count=%d ]\n", risc & 0xfff); in cx23885_risc_decode() 418 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx23885_risc_decode() 442 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument 485 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup() 531 u32 risc; in cx23885_sram_channel_dump() local 542 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump() [all …]
|
D | cx23885-vbi.c | 104 VBI_LINE_LENGTH, buf->risc.dma); in cx23885_start_vbi_dma() 154 cx23885_risc_vbibuffer(dev->pci, &buf->risc, in buffer_prepare() 202 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() 203 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue() 204 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() 205 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in buffer_queue() 215 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in buffer_queue() 221 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in buffer_queue()
|
D | cx23885-alsa.c | 174 buf->risc.dma); in cx23885_start_audio_dma() 270 struct cx23885_riscmem *risc; in dsp_buffer_free() local 277 risc = &chip->buf->risc; in dsp_buffer_free() 278 pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); in dsp_buffer_free() 402 ret = cx23885_risc_databuffer(chip->pci, &buf->risc, buf->sglist, in snd_cx23885_hw_params() 408 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC); in snd_cx23885_hw_params() 409 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx23885_hw_params() 410 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx23885_hw_params()
|
D | cx23885-video.c | 321 buf->bpl, buf->risc.dma); in cx23885_start_video_dma() 367 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 372 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 400 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 407 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 414 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 426 (unsigned long)buf->risc.dma); in buffer_prepare() 471 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() 472 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue() 473 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() [all …]
|
D | cx23885.h | 184 struct cx23885_riscmem risc; member 331 struct cx23885_riscmem risc; member 515 unsigned int bpl, u32 risc); 520 extern int cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, 526 struct cx23885_riscmem *risc, struct scatterlist *sglist, 626 struct cx23885_riscmem *risc,
|
/drivers/media/pci/tw68/ |
D | tw68-risc.c | 187 static void tw68_risc_decode(u32 risc, u32 addr) 204 p = RISC_OP(risc); 205 if (!(risc & 0x80000000) || !instr[p].name) { 206 pr_debug("0x%08x [ INVALID ]\n", risc); 210 risc, instr[p].name, (risc >> 27) & 1); 212 pr_debug(" Type=%d", (risc >> 24) & 7); 215 (risc >> 12) & 0xfff, risc & 0xfff);
|
D | Makefile | 1 tw68-objs := tw68-core.o tw68-video.o tw68-risc.o
|
/drivers/media/dvb-frontends/ |
D | dib9000.c | 96 } risc; member 242 if (state->platform.risc.fw_is_running && (reg < 1024)) in dib9000_read16_attr() 326 if (state->platform.risc.fw_is_running && (reg < 1024)) { in dib9000_write16_attr() 431 …state->platform.risc.memcmd = -1; /* if it was called directly reset it - to force a future setup-… in dib9000_risc_mem_setup_cmd() 436 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd & 0x7f]; in dib9000_risc_mem_setup() 438 if (state->platform.risc.memcmd == cmd && /* same command */ in dib9000_risc_mem_setup() 442 state->platform.risc.memcmd = cmd; in dib9000_risc_mem_setup() 447 if (!state->platform.risc.fw_is_running) in dib9000_risc_mem_read() 450 if (mutex_lock_interruptible(&state->platform.risc.mem_lock) < 0) { in dib9000_risc_mem_read() 456 mutex_unlock(&state->platform.risc.mem_lock); in dib9000_risc_mem_read() [all …]
|
/drivers/media/common/ |
D | btcx-risc.h | 17 struct btcx_riscmem *risc, 20 struct btcx_riscmem *risc);
|