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

12

/drivers/media/video/
H A Dbtcx-risc.h16 struct btcx_riscmem *risc,
19 struct btcx_riscmem *risc);
H A Dbtcx-risc.c3 btcx-risc.c
5 bt848/bt878/cx2388x risc code generator.
33 #include "btcx-risc.h"
44 /* allocate/free risc memory */
49 struct btcx_riscmem *risc)
51 if (NULL == risc->cpu)
56 memcnt, (unsigned long)risc->dma);
58 pci_free_consistent(pci, risc->size, risc->cpu, risc
48 btcx_riscmem_free(struct pci_dev *pci, struct btcx_riscmem *risc) argument
62 btcx_riscmem_alloc(struct pci_dev *pci, struct btcx_riscmem *risc, unsigned int size) argument
[all...]
H A DMakefile130 obj-$(CONFIG_VIDEO_BTCX) += btcx-risc.o
/drivers/media/video/cx25821/
H A Dcx25821-core.c334 static int cx25821_risc_decode(u32 risc) argument
366 risc, instr[risc >> 28] ? instr[risc >> 28] : "INVALID");
368 if (risc & (1 << (i + 12)))
371 pr_cont(" count=%d ]\n", risc & 0xfff);
372 return incr[risc >> 28] ? incr[risc >> 28] : 1;
469 unsigned int bpl, u32 risc)
511 cx_write(ch->cmds_start + 0, risc);
467 cx25821_sram_channel_setup(struct cx25821_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc) argument
536 cx25821_sram_channel_setup_audio(struct cx25821_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc) argument
621 u32 risc; local
685 u32 risc, value, tmp; local
1137 cx25821_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) argument
1247 cx25821_risc_databuffer_audio(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) argument
1281 cx25821_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc, u32 reg, u32 mask, u32 value) argument
[all...]
H A Dcx25821.h42 #include "btcx-risc.h"
172 struct btcx_riscmem risc; member in struct:cx25821_buffer
557 u32 risc);
559 extern int cx25821_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
566 struct btcx_riscmem *risc,
572 extern int cx25821_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
585 unsigned int bpl, u32 risc);
609 unsigned int bpl, u32 risc);
H A Dcx25821-alsa.c67 struct btcx_riscmem risc; member in struct:cx25821_audio_buffer
167 buf->risc.dma);
199 /* Turn on audio downstream fifo and risc enable 0x101 */
261 /* risc op code error */
263 pr_warn("WARNING %s/1: Audio risc op code error\n", dev->name);
341 btcx_riscmem_free(chip->pci, &chip->buf->risc);
473 ret = cx25821_risc_databuffer_audio(chip->pci, &buf->risc, dma->sglist,
481 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC);
482 buf->risc.jmp[1] = cpu_to_le32(buf->risc
[all...]
H A Dcx25821-video.c293 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma);
355 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
356 prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63 - 32 */
403 /* risc op code error */
405 pr_warn("%s, %s: video risc op code error\n",
630 cx25821_risc_buffer(dev->pci, &buf->risc,
635 cx25821_risc_buffer(dev->pci, &buf->risc,
645 cx25821_risc_buffer(dev->pci, &buf->risc,
651 cx25821_risc_buffer(dev->pci, &buf->risc,
[all...]
H A Dcx25821-audio-upstream.c49 unsigned int bpl, u32 risc)
80 cx_write(ch->cmds_start + 0, risc);
122 * the risc engine will enable the FIFO */
230 /* Turn OFF risc and fifo enable in AUD_DMA_CNTRL */
47 cx25821_sram_channel_setup_upstream_audio(struct cx25821_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc) argument
H A Dcx25821-video-upstream.c48 unsigned int bpl, u32 risc)
79 cx_write(ch->cmds_start + 0, risc);
163 * For the upstream video channel, the risc engine will enable
262 /* Turn OFF risc and fifo enable */
46 cx25821_sram_channel_setup_upstream(struct cx25821_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc) argument
/drivers/media/video/cx88/
H A Dcx88-core.c128 int cx88_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc, argument
143 /* estimate risc mem: worst case is one write per page border +
149 if ((rc = btcx_riscmem_alloc(pci,risc,instructions*8)) < 0)
152 /* write risc instructions */
153 rp = risc->cpu;
162 risc->jmp = rp;
163 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof (*risc->cpu) > risc
167 cx88_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) argument
194 cx88_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc, u32 reg, u32 mask, u32 value) argument
355 cx88_sram_channel_setup(struct cx88_core *core, const struct sram_channel *ch, unsigned int bpl, u32 risc) argument
395 cx88_risc_decode(u32 risc) argument
450 u32 risc; local
[all...]
H A Dcx88-vbi.c57 buf->vb.width, buf->risc.dma);
135 buf, buf->vb.i, (unsigned long)buf->risc.dma);
179 cx88_risc_buffer(dev->pci, &buf->risc,
203 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC);
204 buf->risc.jmp[1] = cpu_to_le32(q->stopper.dma);
220 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
H A Dcx88.h38 #include "btcx-risc.h"
325 struct btcx_riscmem risc; member in struct:cx88_buffer
613 cx88_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
618 cx88_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc,
622 cx88_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
628 struct btcx_riscmem *risc);
631 unsigned int bpl, u32 risc);
H A Dcx88-mpeg.c96 dev->ts_packet_size, buf->risc.dma);
236 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
278 cx88_risc_databuffer(dev->pci, &buf->risc,
297 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC);
298 buf->risc.jmp[1] = cpu_to_le32(cx88q->stopper.dma);
316 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
337 buf, buf->vb.i, reason, (unsigned long)buf->risc.dma);
396 /* risc o
[all...]
H A Dcx88-alsa.c60 struct btcx_riscmem risc; member in struct:cx88_audio_buffer
143 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma);
233 /* risc op code error */
235 printk(KERN_WARNING "%s/1: Audio risc op code error\n",core->name);
297 btcx_riscmem_free(chip->pci,&chip->buf->risc);
420 ret = cx88_risc_databuffer(chip->pci, &buf->risc, dma->sglist,
426 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC);
427 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
H A Dcx88-video.c493 buf->bpl, buf->risc.dma);
578 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
643 cx88_risc_buffer(dev->pci, &buf->risc,
648 cx88_risc_buffer(dev->pci, &buf->risc,
653 cx88_risc_buffer(dev->pci, &buf->risc,
659 cx88_risc_buffer(dev->pci, &buf->risc,
666 cx88_risc_buffer(dev->pci, &buf->risc,
679 (unsigned long)buf->risc.dma);
700 buf->risc
[all...]
/drivers/media/video/bt8xx/
H A DMakefile6 bttv-risc.o bttv-vbi.o bttv-i2c.o bttv-gpio.o \
H A Dbttv-risc.c3 bttv-risc.c -- interfaces to other kernel modules
5 bttv risc code handling
44 /* risc code generators */
47 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, argument
58 /* estimate risc mem: worst case is one write per page border +
66 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0)
70 rp = risc->cpu;
120 risc->jmp = rp;
121 BUG_ON((risc->jmp - risc
126 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int yoffset, unsigned int ybpl, unsigned int ypadding, unsigned int ylines, unsigned int uoffset, unsigned int voffset, unsigned int hshift, unsigned int vshift, unsigned int cpadding) argument
246 bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, const struct bttv_format *fmt, struct bttv_overlay *ov, int skip_even, int skip_odd) argument
554 bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, int irqflags) argument
[all...]
H A Dbttvp.h46 #include "btcx-risc.h"
246 /* bttv-risc.c */
248 /* risc code generators - capture */
249 int bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc,
255 /* control dma register + risc main loop */
258 int bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc,
458 /* risc memory management data
H A Dbttv-driver.c1781 /* alloc risc memory */
3593 static int bttv_risc_decode(u32 risc) argument
3621 pr_cont("0x%08x [ %s", risc,
3622 instr[risc >> 28] ? instr[risc >> 28] : "INVALID");
3624 if (risc & (1 << (i + 12)))
3626 pr_cont(" count=%d ]\n", risc & 0xfff);
3627 return incr[risc >> 28] ? incr[risc >> 28] : 1;
3631 struct btcx_riscmem *risc)
3630 bttv_risc_disasm(struct bttv *btv, struct btcx_riscmem *risc) argument
3939 is_active(struct btcx_riscmem *risc, u32 rc) argument
[all...]
/drivers/media/video/cx23885/
H A Dcx23885-vbi.c117 buf->vb.width, buf->risc.dma);
176 buf, buf->vb.i, (unsigned long)buf->risc.dma);
224 cx23885_risc_vbibuffer(dev->pci, &buf->risc,
249 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC);
250 buf->risc.jmp[1] = cpu_to_le32(q->stopper.dma);
251 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */
268 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
269 prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63-32 */
H A Dcx23885-core.c383 static int cx23885_risc_decode(u32 risc) argument
414 printk("0x%08x [ %s", risc,
415 instr[risc >> 28] ? instr[risc >> 28] : "INVALID");
417 if (risc & (1 << (i + 12)))
419 printk(" count=%d ]\n", risc & 0xfff);
420 return incr[risc >> 28] ? incr[risc >> 28] : 1;
460 unsigned int bpl, u32 risc)
503 cx_write(ch->cmds_start + 0, risc);
458 cx23885_sram_channel_setup(struct cx23885_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc) argument
549 u32 risc; local
592 cx23885_risc_disasm(struct cx23885_tsport *port, struct btcx_riscmem *risc) argument
1142 cx23885_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) argument
1184 cx23885_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) argument
1217 cx23885_risc_vbibuffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) argument
1265 cx23885_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc, u32 reg, u32 mask, u32 value) argument
[all...]
H A Dcx23885-alsa.c103 buf->risc.dma);
174 /* risc op code error */
176 printk(KERN_WARNING "%s/1: Audio risc op code error\n",
204 btcx_riscmem_free(chip->pci, &chip->buf->risc);
331 ret = cx23885_risc_databuffer(chip->pci, &buf->risc, dma->sglist,
337 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC);
338 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
339 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */
H A Dcx23885.h35 #include "btcx-risc.h"
190 struct btcx_riscmem risc; member in struct:cx23885_buffer
332 struct btcx_riscmem risc; member in struct:cx23885_audio_buffer
509 unsigned int bpl, u32 risc);
514 extern int cx23885_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
517 extern int cx23885_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
523 struct btcx_riscmem *risc, struct scatterlist *sglist,
631 struct btcx_riscmem *risc,
H A Dcx23885-video.c554 /* Stop the dma/fifo before we tamper with it's risc programs */
559 buf->bpl, buf->risc.dma);
620 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
621 prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63 - 32 */
686 cx23885_risc_buffer(dev->pci, &buf->risc,
691 cx23885_risc_buffer(dev->pci, &buf->risc,
708 dprintk(1, "%s() Creating TFF/NTSC risc\n",
714 dprintk(1, "%s() Creating BFF/PAL/SECAM risc\n",
719 cx23885_risc_buffer(dev->pci, &buf->risc,
[all...]
/drivers/media/dvb/frontends/
H A Ddib9000.c95 } risc; member in union:dib9000_state::__anon1511
241 if (state->platform.risc.fw_is_running && (reg < 1024))
325 if (state->platform.risc.fw_is_running && (reg < 1024)) {
430 state->platform.risc.memcmd = -1; /* if it was called directly reset it - to force a future setup-call to set it */
435 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd & 0x7f];
437 if (state->platform.risc.memcmd == cmd && /* same command */
441 state->platform.risc.memcmd = cmd;
446 if (!state->platform.risc.fw_is_running)
449 if (DibAcquireLock(&state->platform.risc.mem_lock) < 0) {
455 DibReleaseLock(&state->platform.risc
[all...]

Completed in 219 milliseconds

12