| /kernel/linux/linux-6.6/drivers/media/pci/cx18/ |
| D | cx18-scb.c | 13 void cx18_init_scb(struct cx18 *cx) in cx18_init_scb() argument 15 cx18_setup_page(cx, SCB_OFFSET); in cx18_init_scb() 16 cx18_memset_io(cx, cx->scb, 0, 0x10000); in cx18_init_scb() 18 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); in cx18_init_scb() 19 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); in cx18_init_scb() 20 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx->scb->hpu2cpu_irq); in cx18_init_scb() 21 cx18_writel(cx, IRQ_CPU_TO_HPU_ACK, &cx->scb->cpu2hpu_irq_ack); in cx18_init_scb() 22 cx18_writel(cx, IRQ_PPU_TO_CPU, &cx->scb->ppu2cpu_irq); in cx18_init_scb() 23 cx18_writel(cx, IRQ_CPU_TO_PPU_ACK, &cx->scb->cpu2ppu_irq_ack); in cx18_init_scb() 24 cx18_writel(cx, IRQ_EPU_TO_CPU, &cx->scb->epu2cpu_irq); in cx18_init_scb() [all …]
|
| D | cx18-driver.c | 282 static void cx18_iounmap(struct cx18 *cx) in cx18_iounmap() argument 284 if (!cx) in cx18_iounmap() 288 if (cx->enc_mem) { in cx18_iounmap() 290 iounmap(cx->enc_mem); in cx18_iounmap() 291 cx->enc_mem = NULL; in cx18_iounmap() 295 static void cx18_eeprom_dump(struct cx18 *cx, unsigned char *eedata, int len) in cx18_eeprom_dump() argument 310 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument 322 c->adapter = &cx->i2c_adap[0]; in cx18_read_eeprom() 328 switch (cx->card->type) { in cx18_read_eeprom() 337 cx18_eeprom_dump(cx, eedata, sizeof(eedata)); in cx18_read_eeprom() [all …]
|
| D | cx18-gpio.c | 38 static void gpio_write(struct cx18 *cx) in gpio_write() argument 40 u32 dir_lo = cx->gpio_dir & 0xffff; in gpio_write() 41 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write() 42 u32 dir_hi = cx->gpio_dir >> 16; in gpio_write() 43 u32 val_hi = cx->gpio_val >> 16; in gpio_write() 45 cx18_write_reg_expect(cx, dir_lo << 16, in gpio_write() 47 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, in gpio_write() 49 cx18_write_reg_expect(cx, dir_hi << 16, in gpio_write() 51 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, in gpio_write() 55 static void gpio_update(struct cx18 *cx, u32 mask, u32 data) in gpio_update() argument [all …]
|
| D | cx18-av-audio.c | 13 static int set_audclk_freq(struct cx18 *cx, u32 freq) in set_audclk_freq() argument 15 struct cx18_av_state *state = &cx->av_state; in set_audclk_freq() 63 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq() 67 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq() 71 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq() 75 cx18_av_write4(cx, 0x900, 0x0801f77f); in set_audclk_freq() 76 cx18_av_write4(cx, 0x904, 0x0801f77f); in set_audclk_freq() 77 cx18_av_write4(cx, 0x90c, 0x0801f77f); in set_audclk_freq() 80 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq() 83 cx18_av_write4(cx, 0x12c, 0x11202fff); in set_audclk_freq() [all …]
|
| D | cx18-io.h | 24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument 30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument 35 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument 39 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel() 40 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel() 46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument 52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument 57 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel() argument 61 cx18_writel_noretry(cx, val, addr); in cx18_writel() 62 if (val == cx18_readl(cx, addr)) in cx18_writel() [all …]
|
| D | cx18-i2c.c | 69 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, in cx18_i2c_new_ir() argument 73 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; in cx18_i2c_new_ir() 86 init_data->name = cx->card_name; in cx18_i2c_new_ir() 95 int cx18_i2c_register(struct cx18 *cx, unsigned idx) in cx18_i2c_register() argument 99 struct i2c_adapter *adap = &cx->i2c_adap[bus]; in cx18_i2c_register() 105 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() 106 adap, type, 0, cx->card_i2c->radio); in cx18_i2c_register() 109 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() 110 adap, type, 0, cx->card_i2c->demod); in cx18_i2c_register() 113 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() [all …]
|
| D | cx18-ioctl.c | 56 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap() local 57 struct cx18_stream *s = &cx->streams[id->type]; in cx18_g_fmt_vid_cap() 60 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap() 61 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap() 80 struct cx18 *cx = id->cx; in cx18_try_fmt_vid_cap() local 88 h = min(h, cx->is_50hz ? 576 : 480); in cx18_try_fmt_vid_cap() 89 h = max(h, (cx->is_50hz ? 576 : 480) / 8); in cx18_try_fmt_vid_cap() 125 struct cx18 *cx = id->cx; in cx18_s_fmt_vid_cap() local 129 struct cx18_stream *s = &cx->streams[id->type]; in cx18_s_fmt_vid_cap() 139 if (cx->cxhdl.width == w && cx->cxhdl.height == h && in cx18_s_fmt_vid_cap() [all …]
|
| D | cx18-io.c | 13 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) in cx18_memset_io() argument 21 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io() 26 cx18_writew(cx, val2, dst); in cx18_memset_io() 31 cx18_writel(cx, val4, dst); in cx18_memset_io() 36 cx18_writew(cx, val2, dst); in cx18_memset_io() 41 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io() 44 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable() argument 46 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); in cx18_sw1_irq_enable() 47 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) | val; in cx18_sw1_irq_enable() 48 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_enable() [all …]
|
| D | cx18-firmware.c | 87 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) in load_cpu_fw_direct() argument 95 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_cpu_fw_direct() 104 cx18_setup_page(cx, i); in load_cpu_fw_direct() 107 cx18_raw_writel(cx, *src, dst); in load_cpu_fw_direct() 108 if (cx18_raw_readl(cx, dst) != *src) { in load_cpu_fw_direct() 111 cx18_setup_page(cx, 0); in load_cpu_fw_direct() 118 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) in load_cpu_fw_direct() 122 cx18_setup_page(cx, SCB_OFFSET); in load_cpu_fw_direct() 126 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, in load_apu_fw_direct() argument 139 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_apu_fw_direct() [all …]
|
| D | cx18-streams.c | 108 struct cx18 *cx = s->cx; in cx18_queue_setup() local 116 szimage = cx->cxhdl.height * 720 * 3 / 2; in cx18_queue_setup() 118 szimage = cx->cxhdl.height * 720 * 2; in cx18_queue_setup() 155 struct cx18 *cx = s->cx; in cx18_buf_prepare() local 163 size = cx->cxhdl.height * 720 * 3 / 2; in cx18_buf_prepare() 165 size = cx->cxhdl.height * 720 * 2; in cx18_buf_prepare() 235 static int cx18_stream_init(struct cx18 *cx, int type) in cx18_stream_init() argument 237 struct cx18_stream *s = &cx->streams[type]; in cx18_stream_init() 244 s->cx = cx; in cx18_stream_init() 251 s->buffers = cx->stream_buffers[type]; in cx18_stream_init() [all …]
|
| D | cx18-fileops.c | 32 struct cx18 *cx = id->cx; in cx18_claim_stream() local 33 struct cx18_stream *s = &cx->streams[type]; in cx18_claim_stream() 73 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_claim_stream() 74 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) in cx18_claim_stream() 75 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_claim_stream() 91 struct cx18 *cx = s->cx; in cx18_release_stream() local 125 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_release_stream() 132 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_release_stream() 146 static void cx18_dualwatch(struct cx18 *cx) in cx18_dualwatch() argument 152 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch() [all …]
|
| D | cx18-av-core.c | 15 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value) in cx18_av_write() argument 20 u32 x = cx18_read_reg(cx, reg); in cx18_av_write() 23 cx18_write_reg(cx, x, reg); in cx18_av_write() 27 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask) in cx18_av_write_expect() argument 31 u32 x = cx18_read_reg(cx, reg); in cx18_av_write_expect() 34 cx18_write_reg_expect(cx, x, reg, in cx18_av_write_expect() 39 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value) in cx18_av_write4() argument 41 cx18_write_reg(cx, value, 0xc40000 + addr); in cx18_av_write4() 46 cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval, u32 mask) in cx18_av_write4_expect() argument 48 cx18_write_reg_expect(cx, value, 0xc40000 + addr, eval, mask); in cx18_av_write4_expect() [all …]
|
| D | cx18-mailbox.c | 105 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument 204 static void cx18_mdl_send_to_alsa(struct cx18 *cx, struct cx18_stream *s, in cx18_mdl_send_to_alsa() argument 219 cx->pcm_announce_callback(cx->alsa, buf->buf, in cx18_mdl_send_to_alsa() 227 cx->pcm_announce_callback(cx->alsa, buf->buf, buf->bytesused); in cx18_mdl_send_to_alsa() 231 static void epu_dma_done(struct cx18 *cx, struct cx18_in_work_order *order) in epu_dma_done() argument 242 s = cx18_handle_to_stream(cx, handle); in epu_dma_done() 301 if (cx->pcm_announce_callback != NULL) { in epu_dma_done() 302 cx18_mdl_send_to_alsa(cx, s, mdl); in epu_dma_done() 313 cx18_stream_rotate_idx_mdls(cx); in epu_dma_done() 319 wake_up(&cx->dma_waitq); in epu_dma_done() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
| D | cx18-scb.c | 13 void cx18_init_scb(struct cx18 *cx) in cx18_init_scb() argument 15 cx18_setup_page(cx, SCB_OFFSET); in cx18_init_scb() 16 cx18_memset_io(cx, cx->scb, 0, 0x10000); in cx18_init_scb() 18 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); in cx18_init_scb() 19 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); in cx18_init_scb() 20 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx->scb->hpu2cpu_irq); in cx18_init_scb() 21 cx18_writel(cx, IRQ_CPU_TO_HPU_ACK, &cx->scb->cpu2hpu_irq_ack); in cx18_init_scb() 22 cx18_writel(cx, IRQ_PPU_TO_CPU, &cx->scb->ppu2cpu_irq); in cx18_init_scb() 23 cx18_writel(cx, IRQ_CPU_TO_PPU_ACK, &cx->scb->cpu2ppu_irq_ack); in cx18_init_scb() 24 cx18_writel(cx, IRQ_EPU_TO_CPU, &cx->scb->epu2cpu_irq); in cx18_init_scb() [all …]
|
| D | cx18-driver.c | 283 static void cx18_iounmap(struct cx18 *cx) in cx18_iounmap() argument 285 if (!cx) in cx18_iounmap() 289 if (cx->enc_mem) { in cx18_iounmap() 291 iounmap(cx->enc_mem); in cx18_iounmap() 292 cx->enc_mem = NULL; in cx18_iounmap() 296 static void cx18_eeprom_dump(struct cx18 *cx, unsigned char *eedata, int len) in cx18_eeprom_dump() argument 311 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument 323 c->adapter = &cx->i2c_adap[0]; in cx18_read_eeprom() 329 switch (cx->card->type) { in cx18_read_eeprom() 338 cx18_eeprom_dump(cx, eedata, sizeof(eedata)); in cx18_read_eeprom() [all …]
|
| D | cx18-gpio.c | 38 static void gpio_write(struct cx18 *cx) in gpio_write() argument 40 u32 dir_lo = cx->gpio_dir & 0xffff; in gpio_write() 41 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write() 42 u32 dir_hi = cx->gpio_dir >> 16; in gpio_write() 43 u32 val_hi = cx->gpio_val >> 16; in gpio_write() 45 cx18_write_reg_expect(cx, dir_lo << 16, in gpio_write() 47 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, in gpio_write() 49 cx18_write_reg_expect(cx, dir_hi << 16, in gpio_write() 51 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, in gpio_write() 55 static void gpio_update(struct cx18 *cx, u32 mask, u32 data) in gpio_update() argument [all …]
|
| D | cx18-av-audio.c | 13 static int set_audclk_freq(struct cx18 *cx, u32 freq) in set_audclk_freq() argument 15 struct cx18_av_state *state = &cx->av_state; in set_audclk_freq() 63 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq() 67 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq() 71 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq() 75 cx18_av_write4(cx, 0x900, 0x0801f77f); in set_audclk_freq() 76 cx18_av_write4(cx, 0x904, 0x0801f77f); in set_audclk_freq() 77 cx18_av_write4(cx, 0x90c, 0x0801f77f); in set_audclk_freq() 80 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq() 83 cx18_av_write4(cx, 0x12c, 0x11202fff); in set_audclk_freq() [all …]
|
| D | cx18-io.h | 24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument 30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument 35 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument 39 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel() 40 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel() 46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument 52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument 57 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel() argument 61 cx18_writel_noretry(cx, val, addr); in cx18_writel() 62 if (val == cx18_readl(cx, addr)) in cx18_writel() [all …]
|
| D | cx18-i2c.c | 69 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, in cx18_i2c_new_ir() argument 73 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; in cx18_i2c_new_ir() 86 init_data->name = cx->card_name; in cx18_i2c_new_ir() 95 int cx18_i2c_register(struct cx18 *cx, unsigned idx) in cx18_i2c_register() argument 99 struct i2c_adapter *adap = &cx->i2c_adap[bus]; in cx18_i2c_register() 105 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() 106 adap, type, 0, cx->card_i2c->radio); in cx18_i2c_register() 109 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() 110 adap, type, 0, cx->card_i2c->demod); in cx18_i2c_register() 113 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() [all …]
|
| D | cx18-ioctl.c | 138 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap() local 139 struct cx18_stream *s = &cx->streams[id->type]; in cx18_g_fmt_vid_cap() 142 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap() 143 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap() 161 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap() local 168 vbifmt->start[0] = cx->vbi.start[0]; in cx18_g_fmt_vbi_cap() 169 vbifmt->start[1] = cx->vbi.start[1]; in cx18_g_fmt_vbi_cap() 170 vbifmt->count[0] = vbifmt->count[1] = cx->vbi.count; in cx18_g_fmt_vbi_cap() 180 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_sliced_vbi_cap() local 195 if (v4l2_subdev_call(cx->sd_av, vbi, g_sliced_fmt, &fmt->fmt.sliced)) in cx18_g_fmt_sliced_vbi_cap() [all …]
|
| D | cx18-io.c | 13 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) in cx18_memset_io() argument 21 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io() 26 cx18_writew(cx, val2, dst); in cx18_memset_io() 31 cx18_writel(cx, val4, dst); in cx18_memset_io() 36 cx18_writew(cx, val2, dst); in cx18_memset_io() 41 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io() 44 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable() argument 46 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); in cx18_sw1_irq_enable() 47 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) | val; in cx18_sw1_irq_enable() 48 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_enable() [all …]
|
| D | cx18-firmware.c | 87 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) in load_cpu_fw_direct() argument 95 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_cpu_fw_direct() 104 cx18_setup_page(cx, i); in load_cpu_fw_direct() 107 cx18_raw_writel(cx, *src, dst); in load_cpu_fw_direct() 108 if (cx18_raw_readl(cx, dst) != *src) { in load_cpu_fw_direct() 111 cx18_setup_page(cx, 0); in load_cpu_fw_direct() 118 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) in load_cpu_fw_direct() 122 cx18_setup_page(cx, SCB_OFFSET); in load_cpu_fw_direct() 126 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, in load_apu_fw_direct() argument 139 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_apu_fw_direct() [all …]
|
| D | cx18-streams.c | 110 struct cx18 *cx = s->cx; in cx18_prepare_buffer() local 126 buf->tvnorm != cx->std) { in cx18_prepare_buffer() 131 buf->tvnorm = cx->std; in cx18_prepare_buffer() 153 buf->tvnorm = cx->std; in cx18_prepare_buffer() 185 struct cx18 *cx = s->cx; in buffer_setup() local 187 *size = 2 * cx->cxhdl.width * cx->cxhdl.height; in buffer_setup() 207 struct cx18 *cx = s->cx; in buffer_prepare() local 210 cx->cxhdl.width, cx->cxhdl.height, field); in buffer_prepare() 241 static void cx18_stream_init(struct cx18 *cx, int type) in cx18_stream_init() argument 243 struct cx18_stream *s = &cx->streams[type]; in cx18_stream_init() [all …]
|
| D | cx18-fileops.c | 32 struct cx18 *cx = id->cx; in cx18_claim_stream() local 33 struct cx18_stream *s = &cx->streams[type]; in cx18_claim_stream() 73 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_claim_stream() 74 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) in cx18_claim_stream() 75 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_claim_stream() 91 struct cx18 *cx = s->cx; in cx18_release_stream() local 125 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_release_stream() 132 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_release_stream() 146 static void cx18_dualwatch(struct cx18 *cx) in cx18_dualwatch() argument 152 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch() [all …]
|
| D | cx18-av-core.c | 15 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value) in cx18_av_write() argument 20 u32 x = cx18_read_reg(cx, reg); in cx18_av_write() 23 cx18_write_reg(cx, x, reg); in cx18_av_write() 27 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask) in cx18_av_write_expect() argument 31 u32 x = cx18_read_reg(cx, reg); in cx18_av_write_expect() 34 cx18_write_reg_expect(cx, x, reg, in cx18_av_write_expect() 39 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value) in cx18_av_write4() argument 41 cx18_write_reg(cx, value, 0xc40000 + addr); in cx18_av_write4() 46 cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval, u32 mask) in cx18_av_write4_expect() argument 48 cx18_write_reg_expect(cx, value, 0xc40000 + addr, eval, mask); in cx18_av_write4_expect() [all …]
|