/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/ |
H A D | btcx-risc.c | 4 btcx-risc.c 6 bt848/bt878/cx2388x risc code generator. 23 #include "btcx-risc.h" 37 /* allocate/free risc memory */ 42 struct btcx_riscmem *risc) in btcx_riscmem_free() 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 in btcx_riscmem_free() 41 btcx_riscmem_free(struct pci_dev *pci, struct btcx_riscmem *risc) btcx_riscmem_free() argument 55 btcx_riscmem_alloc(struct pci_dev *pci, struct btcx_riscmem *risc, unsigned int size) btcx_riscmem_alloc() argument [all...] |
H A D | bttv-risc.c | 4 bttv-risc.c -- interfaces to other kernel modules 6 bttv risc code handling 32 /* risc code generators */ 35 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument 46 /* estimate risc mem: worst case is one write per page border + in bttv_risc_packed() 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 WARN_ON((risc->jmp - risc in bttv_risc_packed() 114 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) bttv_risc_planar() argument 481 bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, int irqflags) bttv_risc_hook() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/ |
H A D | cx25821-core.c | 299 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() 426 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() 468 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup() 424 cx25821_sram_channel_setup(struct cx25821_dev *dev, const struct sram_channel *ch, unsigned int bpl, u32 risc) cx25821_sram_channel_setup() argument 492 cx25821_sram_channel_setup_audio(struct cx25821_dev *dev, const struct sram_channel *ch, unsigned int bpl, u32 risc) cx25821_sram_channel_setup_audio() argument 577 u32 risc; cx25821_sram_channel_dump() local 640 u32 risc, value, tmp; cx25821_sram_channel_dump_audio() local 972 cx25821_riscmem_alloc(struct pci_dev *pci, struct cx25821_riscmem *risc, unsigned int size) cx25821_riscmem_alloc() argument 1057 cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) cx25821_risc_buffer() argument 1167 cx25821_risc_databuffer_audio(struct pci_dev *pci, struct cx25821_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) cx25821_risc_databuffer_audio() argument [all...] |
H A D | cx25821-video.c | 66 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma() 97 /* risc op code error */ in cx25821_video_irq() 99 pr_warn("%s, %s: video risc op code error\n", in cx25821_video_irq() 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 in cx25821_buffer_queue() [all...] |
H A D | cx25821-alsa.c | 53 struct cx25821_riscmem risc; member 232 buf->risc.dma); in _cx25821_start_audio_dma() 264 /* Turn on audio downstream fifo and risc enable 0x101 */ in _cx25821_start_audio_dma() 326 /* risc op code error */ in cx25821_aud_irq() 328 pr_warn("WARNING %s/1: Audio risc op code error\n", dev->name); in cx25821_aud_irq() 399 struct cx25821_riscmem *risc = &chip->buf->risc; in dsp_buffer_free() local 406 pci_free_consistent(chip->pci, risc->size, risc->cpu, risc in dsp_buffer_free() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/cx25821/ |
H A D | cx25821-core.c | 299 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() 461 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup() 417 cx25821_sram_channel_setup(struct cx25821_dev *dev, const struct sram_channel *ch, unsigned int bpl, u32 risc) cx25821_sram_channel_setup() argument 485 cx25821_sram_channel_setup_audio(struct cx25821_dev *dev, const struct sram_channel *ch, unsigned int bpl, u32 risc) cx25821_sram_channel_setup_audio() argument 570 u32 risc; cx25821_sram_channel_dump() local 633 u32 risc, value, tmp; cx25821_sram_channel_dump_audio() local 965 cx25821_riscmem_alloc(struct pci_dev *pci, struct cx25821_riscmem *risc, unsigned int size) cx25821_riscmem_alloc() argument 1050 cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) cx25821_risc_buffer() argument 1160 cx25821_risc_databuffer_audio(struct pci_dev *pci, struct cx25821_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) cx25821_risc_databuffer_audio() argument [all...] |
H A D | cx25821-video.c | 66 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma() 97 /* risc op code error */ in cx25821_video_irq() 99 pr_warn("%s, %s: video risc op code error\n", in cx25821_video_irq() 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 in cx25821_buffer_queue() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 130 int cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, in cx88_risc_buffer() argument 145 * estimate risc mem: worst case is one write per page border + in cx88_risc_buffer() 153 risc->size = instructions * 8; in cx88_risc_buffer() 154 risc->dma = 0; in cx88_risc_buffer() 155 risc->cpu = pci_zalloc_consistent(pci, risc->size, &risc->dma); in cx88_risc_buffer() 156 if (!risc->cpu) in cx88_risc_buffer() 159 /* write risc instructions */ in cx88_risc_buffer() 160 rp = risc in cx88_risc_buffer() 176 cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) cx88_risc_databuffer() argument 340 cx88_sram_channel_setup(struct cx88_core *core, const struct sram_channel *ch, unsigned int bpl, u32 risc) cx88_sram_channel_setup() argument 381 cx88_risc_decode(u32 risc) cx88_risc_decode() argument 435 u32 risc; cx88_sram_channel_dump() local [all...] |
H A D | cx88-vbi.c | 59 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 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in buffer_finish() 162 memset(risc, 0, sizeof(*risc)); in buffer_finish() [all...] |
H A D | cx88-mpeg.c | 83 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 pci_free_consistent(dev->pci, 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() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 130 int cx88_risc_buffer(struct pci_dev *pci, struct cx88_riscmem *risc, in cx88_risc_buffer() argument 145 * estimate risc mem: worst case is one write per page border + in cx88_risc_buffer() 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() 160 /* write risc instructions */ in cx88_risc_buffer() 161 rp = risc in cx88_risc_buffer() 177 cx88_risc_databuffer(struct pci_dev *pci, struct cx88_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) cx88_risc_databuffer() argument 342 cx88_sram_channel_setup(struct cx88_core *core, const struct sram_channel *ch, unsigned int bpl, u32 risc) cx88_sram_channel_setup() argument 383 cx88_risc_decode(u32 risc) cx88_risc_decode() argument 437 u32 risc; cx88_sram_channel_dump() local [all...] |
H A D | cx88-vbi.c | 59 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() [all...] |
H A D | cx88-mpeg.c | 83 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() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
H A D | btcx-risc.c | 4 btcx-risc.c 6 bt848/bt878/cx2388x risc code generator. 23 #include "btcx-risc.h" 37 /* allocate/free risc memory */ 42 struct btcx_riscmem *risc) in btcx_riscmem_free() 44 if (NULL == risc->cpu) in btcx_riscmem_free() 49 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free() 51 pci_free_consistent(pci, risc->size, risc->cpu, risc in btcx_riscmem_free() 41 btcx_riscmem_free(struct pci_dev *pci, struct btcx_riscmem *risc) btcx_riscmem_free() argument 55 btcx_riscmem_alloc(struct pci_dev *pci, struct btcx_riscmem *risc, unsigned int size) btcx_riscmem_alloc() argument [all...] |
H A D | bttv-risc.c | 4 bttv-risc.c -- interfaces to other kernel modules 6 bttv risc code handling 32 /* risc code generators */ 35 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument 46 /* estimate risc mem: worst case is one write per page border + in bttv_risc_packed() 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 in bttv_risc_packed() 114 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) bttv_risc_planar() argument 235 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) bttv_risc_overlay() argument 544 bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, int irqflags) bttv_risc_hook() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/cx23885/ |
H A D | cx23885-core.c | 38 * encountered is "mpeg risc op code error". Only Ryzen platforms employ 384 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() 454 cx23885_sram_channel_setup(struct cx23885_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc) cx23885_sram_channel_setup() argument 545 u32 risc; cx23885_sram_channel_dump() local 588 cx23885_risc_disasm(struct cx23885_tsport *port, struct cx23885_riscmem *risc) cx23885_risc_disasm() argument 1198 cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) cx23885_risc_buffer() argument 1241 cx23885_risc_databuffer(struct pci_dev *pci, struct cx23885_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) cx23885_risc_databuffer() argument 1275 cx23885_risc_vbibuffer(struct pci_dev *pci, struct cx23885_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) cx23885_risc_vbibuffer() argument 1326 struct cx23885_riscmem *risc = &buf->risc; cx23885_free_buffer() local [all...] |
H A D | cx23885-vbi.c | 94 VBI_LINE_LENGTH, buf->risc.dma); in cx23885_start_vbi_dma() 144 cx23885_risc_vbibuffer(dev->pci, &buf->risc, in buffer_prepare() 162 * The risc program for each buffer works as follows: it starts with a simple 167 * This is the risc program of the first buffer to be queued if the active list 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 in buffer_queue() [all...] |
H A D | cx23885-alsa.c | 165 buf->risc.dma); in cx23885_start_audio_dma() 236 /* risc op code error */ in cx23885_audio_irq() 238 pr_warn("%s/1: Audio risc op code error\n", in cx23885_audio_irq() 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, bu in snd_cx23885_hw_params() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cx23885/ |
H A D | cx23885-core.c | 38 * encountered is "mpeg risc op code error". Only Ryzen platforms employ 384 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() 454 cx23885_sram_channel_setup(struct cx23885_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc) cx23885_sram_channel_setup() argument 545 u32 risc; cx23885_sram_channel_dump() local 588 cx23885_risc_disasm(struct cx23885_tsport *port, struct cx23885_riscmem *risc) cx23885_risc_disasm() argument 1198 cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) cx23885_risc_buffer() argument 1240 cx23885_risc_databuffer(struct pci_dev *pci, struct cx23885_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) cx23885_risc_databuffer() argument 1273 cx23885_risc_vbibuffer(struct pci_dev *pci, struct cx23885_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) cx23885_risc_vbibuffer() argument 1323 struct cx23885_riscmem *risc = &buf->risc; cx23885_free_buffer() local [all...] |
H A D | cx23885-vbi.c | 94 VBI_LINE_LENGTH, buf->risc.dma); in cx23885_start_vbi_dma() 144 cx23885_risc_vbibuffer(dev->pci, &buf->risc, in buffer_prepare() 162 * The risc program for each buffer works as follows: it starts with a simple 167 * This is the risc program of the first buffer to be queued if the active list 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 in buffer_queue() [all...] |
H A D | cx23885-alsa.c | 165 buf->risc.dma); in cx23885_start_audio_dma() 236 /* risc op code error */ in cx23885_audio_irq() 238 pr_warn("%s/1: Audio risc op code error\n", in cx23885_audio_irq() 261 struct cx23885_riscmem *risc; in dsp_buffer_free() local 268 risc = &chip->buf->risc; in dsp_buffer_free() 269 pci_free_consistent(chip->pci, risc->size, risc->cpu, risc->dma); in dsp_buffer_free() 393 ret = cx23885_risc_databuffer(chip->pci, &buf->risc, bu in snd_cx23885_hw_params() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/tw68/ |
H A D | tw68-risc.c | 24 * @rp: pointer to current risc program position 120 * @top_offset: offset within the risc program area for the 122 * @bottom_offset: offset within the risc program area for the 146 * estimate risc mem: worst case is one write per page border + in tw68_risc_buffer() 158 /* write risc instructions */ in tw68_risc_buffer() 170 /* assure risc buffer hasn't overflowed */ in tw68_risc_buffer() 179 static void tw68_risc_decode(u32 risc, u32 addr) 196 p = RISC_OP(risc); 197 if (!(risc & 0x80000000) || !instr[p].name) { 198 pr_debug("0x%08x [ INVALID ]\n", risc); [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/tw68/ |
H A D | tw68-risc.c | 24 * @rp: pointer to current risc program position 120 * @top_offset: offset within the risc program area for the 122 * @bottom_offset: offset within the risc program area for the 146 * estimate risc mem: worst case is one write per page border + in tw68_risc_buffer() 159 /* write risc instructions */ in tw68_risc_buffer() 171 /* assure risc buffer hasn't overflowed */ in tw68_risc_buffer() 180 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); [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | dib9000.c | 93 } 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-call to set it */ 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 in dib9000_risc_mem_read() [all...] |
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
H A D | dib9000.c | 93 } 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-call to set it */ 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 in dib9000_risc_mem_read() [all...] |