/drivers/media/pci/cx25821/ |
D | cx25821-core.c | 313 static int cx25821_risc_decode(u32 risc) in cx25821_risc_decode() argument 345 risc, instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx25821_risc_decode() 347 if (risc & (1 << (i + 12))) in cx25821_risc_decode() 350 pr_cont(" count=%d ]\n", risc & 0xfff); in cx25821_risc_decode() 351 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx25821_risc_decode() 440 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument 482 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup() 508 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument 546 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_audio() 591 u32 risc; in cx25821_sram_channel_dump() local [all …]
|
D | cx25821-alsa.c | 66 struct cx25821_riscmem risc; member 244 buf->risc.dma); in _cx25821_start_audio_dma() 411 struct cx25821_riscmem *risc = &chip->buf->risc; in dsp_buffer_free() local 418 pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); in dsp_buffer_free() 547 ret = cx25821_risc_databuffer_audio(chip->pci, &buf->risc, buf->sglist, in snd_cx25821_hw_params() 555 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in snd_cx25821_hw_params() 556 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx25821_hw_params() 557 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx25821_hw_params()
|
D | cx25821-video.c | 83 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma() 196 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 201 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 210 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 216 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 222 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare() 236 (unsigned long)buf->risc.dma); in cx25821_buffer_prepare() 262 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in cx25821_buffer_queue() 263 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx25821_buffer_queue() 264 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in cx25821_buffer_queue() [all …]
|
D | cx25821.h | 136 struct cx25821_riscmem risc; member 410 u32 risc); 413 struct cx25821_riscmem *risc, 415 extern int cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc, 422 struct cx25821_riscmem *risc, 439 unsigned int bpl, u32 risc); 452 unsigned int bpl, u32 risc);
|
/drivers/media/pci/cx88/ |
D | cx88-core.c | 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() [all …]
|
D | cx88-vbi.c | 54 VBI_LINE_LENGTH, buf->risc.dma); in cx8800_start_vbi_dma() 143 cx88_risc_buffer(dev->pci, &buf->risc, sgt->sgl, in buffer_prepare() 155 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local 157 if (risc->cpu) in buffer_finish() 158 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in buffer_finish() 159 memset(risc, 0, sizeof(*risc)); in buffer_finish() 171 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); in buffer_queue() 172 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue() 173 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); in buffer_queue() 182 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in buffer_queue() [all …]
|
D | cx88-mpeg.c | 100 dev->ts_packet_size, buf->risc.dma); in cx8802_start_dma() 229 struct cx88_riscmem *risc = &buf->risc; in cx8802_buf_prepare() local 236 rc = cx88_risc_databuffer(dev->pci, risc, sgt->sgl, in cx8802_buf_prepare() 239 if (risc->cpu) in cx8802_buf_prepare() 240 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in cx8802_buf_prepare() 241 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() 265 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in cx8802_buf_queue() [all …]
|
D | cx88-alsa.c | 64 struct cx88_riscmem risc; member 148 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma() 373 struct cx88_riscmem *risc = &chip->buf->risc; in dsp_buffer_free() local 380 if (risc->cpu) in dsp_buffer_free() 381 pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); in dsp_buffer_free() 501 ret = cx88_risc_databuffer(chip->pci, &buf->risc, buf->sglist, in snd_cx88_hw_params() 507 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC); in snd_cx88_hw_params() 508 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx88_hw_params()
|
D | cx88-video.c | 367 buf->bpl, buf->risc.dma); in start_video_dma() 460 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 465 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 470 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 477 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 485 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 494 (unsigned long)buf->risc.dma); in buffer_prepare() 503 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local 505 if (risc->cpu) in buffer_finish() 506 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in buffer_finish() [all …]
|
D | cx88.h | 329 struct cx88_riscmem risc; member 627 cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, 632 cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, 637 struct cx88_riscmem *risc); 640 unsigned int bpl, u32 risc);
|
D | cx88-blackbird.c | 667 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local 669 if (risc->cpu) in buffer_finish() 670 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in buffer_finish() 671 memset(risc, 0, sizeof(*risc)); in buffer_finish()
|
/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 45 struct btcx_riscmem *risc) in btcx_riscmem_free() argument 47 if (NULL == risc->cpu) in btcx_riscmem_free() 52 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free() 54 pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); in btcx_riscmem_free() 55 memset(risc,0,sizeof(*risc)); in btcx_riscmem_free() 59 struct btcx_riscmem *risc, in btcx_riscmem_alloc() argument 65 if (NULL != risc->cpu && risc->size < size) in btcx_riscmem_alloc() 66 btcx_riscmem_free(pci,risc); in btcx_riscmem_alloc() 67 if (NULL == risc->cpu) { in btcx_riscmem_alloc() 71 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 | 14 struct btcx_riscmem *risc, 17 struct btcx_riscmem *risc);
|
D | Makefile | 2 bttv-risc.o bttv-vbi.o bttv-i2c.o bttv-gpio.o \ 3 bttv-input.o bttv-audio-hook.o btcx-risc.o
|
D | bttv-driver.c | 3385 static int bttv_risc_decode(u32 risc) in bttv_risc_decode() argument 3413 pr_cont("0x%08x [ %s", risc, in bttv_risc_decode() 3414 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in bttv_risc_decode() 3416 if (risc & (1 << (i + 12))) in bttv_risc_decode() 3418 pr_cont(" count=%d ]\n", risc & 0xfff); in bttv_risc_decode() 3419 return incr[risc >> 28] ? incr[risc >> 28] : 1; in bttv_risc_decode() 3423 struct btcx_riscmem *risc) in bttv_risc_disasm() argument 3428 btv->c.v4l2_dev.name, risc->cpu, (unsigned long)risc->dma); in bttv_risc_disasm() 3429 for (i = 0; i < (risc->size >> 2); i += n) { in bttv_risc_disasm() 3432 (unsigned long)(risc->dma + (i<<2))); in bttv_risc_disasm() [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-core.c | 379 static int cx23885_risc_decode(u32 risc) in cx23885_risc_decode() argument 410 printk("0x%08x [ %s", risc, in cx23885_risc_decode() 411 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx23885_risc_decode() 413 if (risc & (1 << (i + 12))) in cx23885_risc_decode() 415 printk(" count=%d ]\n", risc & 0xfff); in cx23885_risc_decode() 416 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx23885_risc_decode() 441 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument 484 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup() 530 u32 risc; in cx23885_sram_channel_dump() local 541 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump() [all …]
|
D | cx23885-vbi.c | 103 VBI_LINE_LENGTH, buf->risc.dma); in cx23885_start_vbi_dma() 153 cx23885_risc_vbibuffer(dev->pci, &buf->risc, in buffer_prepare() 201 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() 202 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue() 203 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() 204 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in buffer_queue() 214 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in buffer_queue() 220 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in buffer_queue()
|
D | cx23885-alsa.c | 177 buf->risc.dma); in cx23885_start_audio_dma() 273 struct cx23885_riscmem *risc; in dsp_buffer_free() local 280 risc = &chip->buf->risc; in dsp_buffer_free() 281 pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); in dsp_buffer_free() 406 ret = cx23885_risc_databuffer(chip->pci, &buf->risc, buf->sglist, in snd_cx23885_hw_params() 412 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC); in snd_cx23885_hw_params() 413 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx23885_hw_params() 414 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx23885_hw_params()
|
D | cx23885-video.c | 319 buf->bpl, buf->risc.dma); in cx23885_start_video_dma() 365 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 370 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 398 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 405 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 412 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare() 424 (unsigned long)buf->risc.dma); in buffer_prepare() 469 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() 470 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue() 471 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue() [all …]
|
D | cx23885.h | 182 struct cx23885_riscmem risc; member 329 struct cx23885_riscmem risc; member 513 unsigned int bpl, u32 risc); 518 extern int cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, 524 struct cx23885_riscmem *risc, struct scatterlist *sglist, 624 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 | 88 } risc; member 234 if (state->platform.risc.fw_is_running && (reg < 1024)) in dib9000_read16_attr() 318 if (state->platform.risc.fw_is_running && (reg < 1024)) { in dib9000_write16_attr() 423 …state->platform.risc.memcmd = -1; /* if it was called directly reset it - to force a future setup-… in dib9000_risc_mem_setup_cmd() 428 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd & 0x7f]; in dib9000_risc_mem_setup() 430 if (state->platform.risc.memcmd == cmd && /* same command */ in dib9000_risc_mem_setup() 434 state->platform.risc.memcmd = cmd; in dib9000_risc_mem_setup() 439 if (!state->platform.risc.fw_is_running) in dib9000_risc_mem_read() 442 if (mutex_lock_interruptible(&state->platform.risc.mem_lock) < 0) { in dib9000_risc_mem_read() 448 mutex_unlock(&state->platform.risc.mem_lock); in dib9000_risc_mem_read() [all …]
|
/drivers/media/common/ |
D | btcx-risc.h | 16 struct btcx_riscmem *risc, 19 struct btcx_riscmem *risc);
|