Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/media/pci/cx25821/
Dcx25821-core.c299 static int cx25821_risc_decode(u32 risc) in cx25821_risc_decode() argument
331 risc, instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx25821_risc_decode()
333 if (risc & (1 << (i + 12))) in cx25821_risc_decode()
336 pr_cont(" count=%d ]\n", risc & 0xfff); in cx25821_risc_decode()
337 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx25821_risc_decode()
419 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument
461 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup()
487 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument
525 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_audio()
570 u32 risc; in cx25821_sram_channel_dump() local
[all …]
Dcx25821-alsa.c53 struct cx25821_riscmem risc; member
231 buf->risc.dma); in _cx25821_start_audio_dma()
398 struct cx25821_riscmem *risc = &chip->buf->risc; in dsp_buffer_free() local
405 dma_free_coherent(&chip->pci->dev, risc->size, risc->cpu, risc->dma); in dsp_buffer_free()
534 ret = cx25821_risc_databuffer_audio(chip->pci, &buf->risc, buf->sglist, in snd_cx25821_hw_params()
542 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in snd_cx25821_hw_params()
543 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx25821_hw_params()
544 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx25821_hw_params()
Dcx25821-video.c66 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma()
179 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
184 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
193 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
199 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
205 ret = cx25821_risc_buffer(dev->pci, &buf->risc, in cx25821_buffer_prepare()
219 (unsigned long)buf->risc.dma); in cx25821_buffer_prepare()
245 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in cx25821_buffer_queue()
246 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx25821_buffer_queue()
247 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in cx25821_buffer_queue()
[all …]
Dcx25821.h118 struct cx25821_riscmem risc; member
392 u32 risc);
395 struct cx25821_riscmem *risc,
397 extern int cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc,
404 struct cx25821_riscmem *risc,
421 unsigned int bpl, u32 risc);
/linux-6.1.9/drivers/media/pci/cx88/
Dcx88-vbi.c59 VBI_LINE_LENGTH, buf->risc.dma); in cx8800_start_vbi_dma()
147 return cx88_risc_buffer(dev->pci, &buf->risc, sgt->sgl, in buffer_prepare()
158 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local
160 if (risc->cpu) in buffer_finish()
161 dma_free_coherent(&dev->pci->dev, risc->size, risc->cpu, in buffer_finish()
162 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()
[all …]
Dcx88-core.c130 int cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, in cx88_risc_buffer() argument
153 risc->size = instructions * 8; in cx88_risc_buffer()
154 risc->dma = 0; in cx88_risc_buffer()
155 risc->cpu = dma_alloc_coherent(&pci->dev, risc->size, &risc->dma, in cx88_risc_buffer()
157 if (!risc->cpu) in cx88_risc_buffer()
161 rp = risc->cpu; in cx88_risc_buffer()
171 risc->jmp = rp; in cx88_risc_buffer()
172 WARN_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx88_risc_buffer()
177 int cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, in cx88_risc_databuffer() argument
192 risc->size = instructions * 8; in cx88_risc_databuffer()
[all …]
Dcx88-mpeg.c83 dev->ts_packet_size, buf->risc.dma); in cx8802_start_dma()
221 struct cx88_riscmem *risc = &buf->risc; in cx8802_buf_prepare() local
228 rc = cx88_risc_databuffer(dev->pci, risc, sgt->sgl, in cx8802_buf_prepare()
231 if (risc->cpu) in cx8802_buf_prepare()
232 dma_free_coherent(&dev->pci->dev, risc->size, in cx8802_buf_prepare()
233 risc->cpu, risc->dma); in cx8802_buf_prepare()
234 memset(risc, 0, sizeof(*risc)); in cx8802_buf_prepare()
248 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); in cx8802_buf_queue()
249 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx8802_buf_queue()
250 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); in cx8802_buf_queue()
[all …]
Dcx88-alsa.c46 struct cx88_riscmem risc; member
123 cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma); in _cx88_start_audio_dma()
352 struct cx88_riscmem *risc = &chip->buf->risc; in dsp_buffer_free() local
359 if (risc->cpu) in dsp_buffer_free()
360 dma_free_coherent(&chip->pci->dev, risc->size, risc->cpu, in dsp_buffer_free()
361 risc->dma); in dsp_buffer_free()
484 ret = cx88_risc_databuffer(chip->pci, &buf->risc, buf->sglist, in snd_cx88_hw_params()
490 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in snd_cx88_hw_params()
491 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx88_hw_params()
Dcx88-video.c357 buf->bpl, buf->risc.dma); in start_video_dma()
449 ret = cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
454 ret = cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
459 ret = cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
466 ret = cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
474 ret = cx88_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
484 (unsigned long)buf->risc.dma); in buffer_prepare()
493 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() local
495 if (risc->cpu) in buffer_finish()
496 dma_free_coherent(&dev->pci->dev, risc->size, risc->cpu, in buffer_finish()
[all …]
Dcx88.h321 struct cx88_riscmem risc; member
622 cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc,
627 cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc,
632 struct cx88_riscmem *risc);
635 unsigned int bpl, u32 risc);
/linux-6.1.9/drivers/media/pci/bt8xx/
Dbtcx-risc.c42 struct btcx_riscmem *risc) in btcx_riscmem_free() argument
44 if (NULL == risc->cpu) in btcx_riscmem_free()
49 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free()
51 dma_free_coherent(&pci->dev, risc->size, risc->cpu, risc->dma); in btcx_riscmem_free()
52 memset(risc,0,sizeof(*risc)); in btcx_riscmem_free()
56 struct btcx_riscmem *risc, in btcx_riscmem_alloc() argument
62 if (NULL != risc->cpu && risc->size < size) in btcx_riscmem_alloc()
63 btcx_riscmem_free(pci,risc); in btcx_riscmem_alloc()
64 if (NULL == risc->cpu) { in btcx_riscmem_alloc()
68 risc->cpu = cpu; in btcx_riscmem_alloc()
[all …]
Dbttv-risc.c35 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument
54 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed()
58 rp = risc->cpu; in bttv_risc_packed()
108 risc->jmp = rp; in bttv_risc_packed()
109 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_packed()
114 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument
137 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar()
141 rp = risc->cpu; in bttv_risc_planar()
229 risc->jmp = rp; in bttv_risc_planar()
230 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in bttv_risc_planar()
[all …]
Dbtcx-risc.h15 struct btcx_riscmem *risc,
18 struct btcx_riscmem *risc);
DMakefile3 bttv-risc.o bttv-vbi.o bttv-i2c.o bttv-gpio.o \
4 bttv-input.o bttv-audio-hook.o btcx-risc.o
/linux-6.1.9/drivers/media/pci/cx23885/
Dcx23885-core.c384 static int cx23885_risc_decode(u32 risc) in cx23885_risc_decode() argument
415 printk(KERN_DEBUG "0x%08x [ %s", risc, in cx23885_risc_decode()
416 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx23885_risc_decode()
418 if (risc & (1 << (i + 12))) in cx23885_risc_decode()
420 pr_cont(" count=%d ]\n", risc & 0xfff); in cx23885_risc_decode()
421 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx23885_risc_decode()
456 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument
499 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup()
545 u32 risc; in cx23885_sram_channel_dump() local
556 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump()
[all …]
Dcx23885-vbi.c94 VBI_LINE_LENGTH, buf->risc.dma); in cx23885_start_vbi_dma()
144 cx23885_risc_vbibuffer(dev->pci, &buf->risc, in buffer_prepare()
192 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue()
193 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue()
194 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue()
195 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in buffer_queue()
205 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in buffer_queue()
211 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in buffer_queue()
Dcx23885-alsa.c165 buf->risc.dma); in cx23885_start_audio_dma()
261 struct cx23885_riscmem *risc; in dsp_buffer_free() local
268 risc = &chip->buf->risc; in dsp_buffer_free()
269 dma_free_coherent(&chip->pci->dev, risc->size, risc->cpu, risc->dma); in dsp_buffer_free()
393 ret = cx23885_risc_databuffer(chip->pci, &buf->risc, buf->sglist, in snd_cx23885_hw_params()
399 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP|RISC_IRQ1|RISC_CNT_INC); in snd_cx23885_hw_params()
400 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in snd_cx23885_hw_params()
401 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in snd_cx23885_hw_params()
Dcx23885-video.c315 buf->bpl, buf->risc.dma); in cx23885_start_video_dma()
361 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
366 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
394 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
401 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
408 cx23885_risc_buffer(dev->pci, &buf->risc, in buffer_prepare()
420 (unsigned long)buf->risc.dma); in buffer_prepare()
465 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue()
466 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue()
467 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue()
[all …]
Dcx23885.h178 struct cx23885_riscmem risc; member
325 struct cx23885_riscmem risc; member
511 unsigned int bpl, u32 risc);
516 extern int cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc,
522 struct cx23885_riscmem *risc, struct scatterlist *sglist,
622 struct cx23885_riscmem *risc,
/linux-6.1.9/drivers/media/pci/tw68/
Dtw68-risc.c180 static void tw68_risc_decode(u32 risc, u32 addr)
197 p = RISC_OP(risc);
198 if (!(risc & 0x80000000) || !instr[p].name) {
199 pr_debug("0x%08x [ INVALID ]\n", risc);
203 risc, instr[p].name, (risc >> 27) & 1);
205 pr_debug(" Type=%d", (risc >> 24) & 7);
208 (risc >> 12) & 0xfff, risc & 0xfff);
DMakefile2 tw68-objs := tw68-core.o tw68-video.o tw68-risc.o
/linux-6.1.9/drivers/media/dvb-frontends/
Ddib9000.c93 } risc; member
239 if (state->platform.risc.fw_is_running && (reg < 1024)) in dib9000_read16_attr()
323 if (state->platform.risc.fw_is_running && (reg < 1024)) { in dib9000_write16_attr()
428 …state->platform.risc.memcmd = -1; /* if it was called directly reset it - to force a future setup-… in dib9000_risc_mem_setup_cmd()
433 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd & 0x7f]; in dib9000_risc_mem_setup()
435 if (state->platform.risc.memcmd == cmd && /* same command */ in dib9000_risc_mem_setup()
439 state->platform.risc.memcmd = cmd; in dib9000_risc_mem_setup()
444 if (!state->platform.risc.fw_is_running) in dib9000_risc_mem_read()
447 if (mutex_lock_interruptible(&state->platform.risc.mem_lock) < 0) { in dib9000_risc_mem_read()
453 mutex_unlock(&state->platform.risc.mem_lock); in dib9000_risc_mem_read()
[all …]
/linux-6.1.9/drivers/media/common/
Dbtcx-risc.h17 struct btcx_riscmem *risc,
20 struct btcx_riscmem *risc);
/linux-6.1.9/sound/pci/
Dbt87x.c215 __le32 *risc; in snd_bt87x_create_risc() local
222 risc = (__le32 *)chip->dma_risc.area; in snd_bt87x_create_risc()
224 *risc++ = cpu_to_le32(RISC_SYNC | RISC_SYNC_FM1); in snd_bt87x_create_risc()
225 *risc++ = cpu_to_le32(0); in snd_bt87x_create_risc()
246 *risc++ = cpu_to_le32(cmd); in snd_bt87x_create_risc()
248 *risc++ = cpu_to_le32(addr); in snd_bt87x_create_risc()
253 *risc++ = cpu_to_le32(RISC_SYNC | RISC_SYNC_VRO); in snd_bt87x_create_risc()
254 *risc++ = cpu_to_le32(0); in snd_bt87x_create_risc()
255 *risc++ = cpu_to_le32(RISC_JUMP); in snd_bt87x_create_risc()
256 *risc++ = cpu_to_le32(chip->dma_risc.addr); in snd_bt87x_create_risc()
/linux-6.1.9/Documentation/scsi/
Dwd719x.rst14 This script downloads and extracts the firmware, creating wd719x-risc.bin and
22 dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336

12