Home
last modified time | relevance | path

Searched refs:risc (Results 1 – 25 of 26) sorted by relevance

12

/drivers/media/common/
Dbtcx-risc.c49 struct btcx_riscmem *risc) in btcx_riscmem_free() argument
51 if (NULL == risc->cpu) in btcx_riscmem_free()
56 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free()
58 pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); in btcx_riscmem_free()
59 memset(risc,0,sizeof(*risc)); in btcx_riscmem_free()
63 struct btcx_riscmem *risc, in btcx_riscmem_alloc() argument
69 if (NULL != risc->cpu && risc->size < size) in btcx_riscmem_alloc()
70 btcx_riscmem_free(pci,risc); in btcx_riscmem_alloc()
71 if (NULL == risc->cpu) { in btcx_riscmem_alloc()
75 risc->cpu = cpu; in btcx_riscmem_alloc()
[all …]
Dbtcx-risc.h16 struct btcx_riscmem *risc,
19 struct btcx_riscmem *risc);
DMakefile3 obj-$(CONFIG_VIDEO_BTCX) += btcx-risc.o
/drivers/media/pci/cx25821/
Dcx25821-core.c313 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 …]
Dcx25821.h121 struct btcx_riscmem risc; member
406 u32 risc);
408 extern int cx25821_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
415 struct btcx_riscmem *risc,
421 extern int cx25821_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
434 unsigned int bpl, u32 risc);
447 unsigned int bpl, u32 risc);
Dcx25821-video.c122 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma()
184 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in cx25821_restart_video_queue()
185 prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63 - 32 */ in cx25821_restart_video_queue()
342 cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
347 cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
356 cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
362 cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
368 cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
380 chan->fmt->name, (unsigned long)buf->risc.dma); in cx25821_buffer_prepare()
418 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in buffer_queue()
[all …]
Dcx25821-alsa.c66 struct btcx_riscmem risc; member
166 buf->risc.dma); in _cx25821_start_audio_dma()
338 btcx_riscmem_free(chip->pci, &chip->buf->risc); in dsp_buffer_free()
470 ret = cx25821_risc_databuffer_audio(chip->pci, &buf->risc, dma->sglist, in snd_cx25821_hw_params()
478 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in snd_cx25821_hw_params()
479 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx25821_hw_params()
480 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx25821_hw_params()
Dcx25821-audio-upstream.c49 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_upstream_audio() argument
80 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_upstream_audio()
Dcx25821-video-upstream.c43 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_upstream() argument
74 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_upstream()
/drivers/media/pci/cx88/
Dcx88-core.c130 int cx88_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc, in cx88_risc_buffer() argument
151 if ((rc = btcx_riscmem_alloc(pci,risc,instructions*8)) < 0) in cx88_risc_buffer()
155 rp = risc->cpu; in cx88_risc_buffer()
164 risc->jmp = rp; in cx88_risc_buffer()
165 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof (*risc->cpu) > risc->size); in cx88_risc_buffer()
169 int cx88_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc, in cx88_risc_databuffer() argument
183 if ((rc = btcx_riscmem_alloc(pci,risc,instructions*8)) < 0) in cx88_risc_databuffer()
187 rp = risc->cpu; in cx88_risc_databuffer()
191 risc->jmp = rp; in cx88_risc_databuffer()
192 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof (*risc->cpu) > risc->size); in cx88_risc_databuffer()
[all …]
Dcx88-vbi.c57 buf->vb.width, buf->risc.dma); in cx8800_start_vbi_dma()
135 buf, buf->vb.i, (unsigned long)buf->risc.dma); in cx8800_vbi_timeout()
179 cx88_risc_buffer(dev->pci, &buf->risc, in vbi_prepare()
203 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in vbi_queue()
204 buf->risc.jmp[1] = cpu_to_le32(q->stopper.dma); in vbi_queue()
220 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in vbi_queue()
Dcx88.h317 struct btcx_riscmem risc; member
633 cx88_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
638 cx88_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc,
642 cx88_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
648 struct btcx_riscmem *risc);
651 unsigned int bpl, u32 risc);
Dcx88-mpeg.c100 dev->ts_packet_size, buf->risc.dma); in cx8802_start_dma()
238 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in cx8802_restart_queue()
280 cx88_risc_databuffer(dev->pci, &buf->risc, in cx8802_buf_prepare()
299 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in cx8802_buf_queue()
300 buf->risc.jmp[1] = cpu_to_le32(cx88q->stopper.dma); in cx8802_buf_queue()
318 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in cx8802_buf_queue()
339 buf, buf->vb.i, reason, (unsigned long)buf->risc.dma); in do_cancel_buffers()
Dcx88-alsa.c64 struct btcx_riscmem risc; member
147 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma()
301 btcx_riscmem_free(chip->pci,&chip->buf->risc); in dsp_buffer_free()
424 ret = cx88_risc_databuffer(chip->pci, &buf->risc, dma->sglist, in snd_cx88_hw_params()
430 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC); in snd_cx88_hw_params()
431 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx88_hw_params()
Dcx88-video.c421 buf->bpl, buf->risc.dma); in start_video_dma()
506 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in restart_video_queue()
572 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
577 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
582 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
588 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
595 cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
608 (unsigned long)buf->risc.dma); in buffer_prepare()
629 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in buffer_queue()
630 buf->risc.jmp[1] = cpu_to_le32(q->stopper.dma); in buffer_queue()
[all …]
/drivers/media/pci/cx23885/
Dcx23885-core.c383 static int cx23885_risc_decode(u32 risc) in cx23885_risc_decode() argument
414 printk("0x%08x [ %s", risc, in cx23885_risc_decode()
415 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx23885_risc_decode()
417 if (risc & (1 << (i + 12))) in cx23885_risc_decode()
419 printk(" count=%d ]\n", risc & 0xfff); in cx23885_risc_decode()
420 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx23885_risc_decode()
460 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument
503 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup()
549 u32 risc; in cx23885_sram_channel_dump() local
560 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump()
[all …]
Dcx23885-vbi.c117 buf->vb.width, buf->risc.dma); in cx23885_start_vbi_dma()
176 buf, buf->vb.i, (unsigned long)buf->risc.dma); in cx23885_vbi_timeout()
224 cx23885_risc_vbibuffer(dev->pci, &buf->risc, in vbi_prepare()
249 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in vbi_queue()
250 buf->risc.jmp[1] = cpu_to_le32(q->stopper.dma); in vbi_queue()
251 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in vbi_queue()
268 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in vbi_queue()
269 prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63-32 */ in vbi_queue()
Dcx23885-alsa.c105 buf->risc.dma); in cx23885_start_audio_dma()
206 btcx_riscmem_free(chip->pci, &chip->buf->risc); in dsp_buffer_free()
333 ret = cx23885_risc_databuffer(chip->pci, &buf->risc, dma->sglist, in snd_cx23885_hw_params()
339 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC); in snd_cx23885_hw_params()
340 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx23885_hw_params()
341 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx23885_hw_params()
Dcx23885.h194 struct btcx_riscmem risc; member
335 struct btcx_riscmem risc; member
512 unsigned int bpl, u32 risc);
517 extern int cx23885_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
520 extern int cx23885_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
526 struct btcx_riscmem *risc, struct scatterlist *sglist,
634 struct btcx_riscmem *risc,
Dcx23885-video.c564 buf->bpl, buf->risc.dma); in cx23885_start_video_dma()
625 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in cx23885_restart_video_queue()
626 prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63 - 32 */ in cx23885_restart_video_queue()
691 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
696 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
724 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
731 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
738 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
751 (unsigned long)buf->risc.dma); in buffer_prepare()
771 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in buffer_queue()
[all …]
/drivers/media/pci/bt8xx/
Dbttv-risc.c47 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 …]
Dbttv-driver.c3374 static int bttv_risc_decode(u32 risc) in bttv_risc_decode() argument
3402 pr_cont("0x%08x [ %s", risc, in bttv_risc_decode()
3403 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in bttv_risc_decode()
3405 if (risc & (1 << (i + 12))) in bttv_risc_decode()
3407 pr_cont(" count=%d ]\n", risc & 0xfff); in bttv_risc_decode()
3408 return incr[risc >> 28] ? incr[risc >> 28] : 1; in bttv_risc_decode()
3412 struct btcx_riscmem *risc) in bttv_risc_disasm() argument
3417 btv->c.v4l2_dev.name, risc->cpu, (unsigned long)risc->dma); in bttv_risc_disasm()
3418 for (i = 0; i < (risc->size >> 2); i += n) { in bttv_risc_disasm()
3421 (unsigned long)(risc->dma + (i<<2))); in bttv_risc_disasm()
[all …]
DMakefile2 bttv-risc.o bttv-vbi.o bttv-i2c.o bttv-gpio.o \
Dbttvp.h251 int bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc,
260 int bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc,
/drivers/media/dvb-frontends/
Ddib9000.c88 } 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 …]

12