Home
last modified time | relevance | path

Searched refs:cx_write (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/drivers/media/pci/cx25821/
Dcx25821-core.c362 cx_write(DEV_CNTRL2, 0x20); in cx25821_registers_init()
367 cx_write(PCI_INT_MSK, 0x2001FFFF); in cx25821_registers_init()
371 cx_write(RDR_TLCTL0, tmp); in cx25821_registers_init()
374 cx_write(PLL_A_INT_FRAC, 0x9807A58B); in cx25821_registers_init()
377 cx_write(PLL_A_POST_STAT_BIST, 0x8000019C); in cx25821_registers_init()
381 cx_write(PLL_A_INT_FRAC, tmp & 0x7FFFFFFF); in cx25821_registers_init()
384 cx_write(PLL_B_INT_FRAC, 0x9883A86F); in cx25821_registers_init()
387 cx_write(PLL_B_POST_STAT_BIST, 0x8000018D); in cx25821_registers_init()
391 cx_write(PLL_B_INT_FRAC, tmp & 0x7FFFFFFF); in cx25821_registers_init()
394 cx_write(PLL_C_INT_FRAC, 0x96A0EA3F); in cx25821_registers_init()
[all …]
Dcx25821-i2c.c92 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes()
93 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); in i2c_sendbytes()
116 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
117 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
118 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
142 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
143 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
144 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
183 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
184 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); in i2c_readbytes()
[all …]
Dcx25821-alsa.c243 cx_write(AUD_A_LNGTH, buf->bpl); in _cx25821_start_audio_dma()
247 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in _cx25821_start_audio_dma()
252 cx_write(AUD_A_CFG, tmp | FLD_AUD_DST_PK_MODE | FLD_AUD_DST_ENABLE | in _cx25821_start_audio_dma()
263 cx_write(AUD_A_INT_MSK, FLD_AUD_DST_RISCI1 | FLD_AUD_DST_OF | in _cx25821_start_audio_dma()
267 cx_write(AUD_A_INT_STAT, ~0); in _cx25821_start_audio_dma()
329 cx_write(AUD_A_INT_STAT, status); in cx25821_aud_irq()
345 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in cx25821_aud_irq()
380 cx_write(PCI_INT_STAT, status); in cx25821_irq()
391 cx_write(PCI_INT_STAT, status); in cx25821_irq()
399 cx_write(PCI_INT_STAT, pci_status); in cx25821_irq()
Dcx25821-gpio.c48 cx_write(gpio_oe_reg, value); in cx25821_set_gpiopin_direction()
78 cx_write(gpio_reg, value); in cx25821_set_gpiopin_logicvalue()
Dcx25821-video.c82 cx_write(channel->gpcnt_ctl, 3); in cx25821_start_video_dma()
89 cx_write(channel->dma_ctl, 0x11); /* FIFO and RISC enable */ in cx25821_start_video_dma()
93 cx_write(VID_CH_MODE_SEL, tmp & 0xFFFFFE00); in cx25821_start_video_dma()
108 cx_write(channel->int_stat, status); in cx25821_video_irq()
294 cx_write(chan->sram_channels->dma_ctl, 0); /* FIFO and RISC disable */ in cx25821_stop_streaming()
738 cx_write(chan->sram_channels->int_stat, 0xffffffff); in cx25821_video_register()
/Linux-v4.19/drivers/media/pci/cx88/
Dcx88-core.c365 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx88_sram_channel_setup()
368 cx_write(ch->cmds_start + 0, risc); in cx88_sram_channel_setup()
369 cx_write(ch->cmds_start + 4, cdt); in cx88_sram_channel_setup()
370 cx_write(ch->cmds_start + 8, (lines * 16) >> 3); in cx88_sram_channel_setup()
371 cx_write(ch->cmds_start + 12, ch->ctrl_start); in cx88_sram_channel_setup()
372 cx_write(ch->cmds_start + 16, 64 >> 2); in cx88_sram_channel_setup()
374 cx_write(ch->cmds_start + i, 0); in cx88_sram_channel_setup()
377 cx_write(ch->ptr1_reg, ch->fifo_start); in cx88_sram_channel_setup()
378 cx_write(ch->ptr2_reg, cdt); in cx88_sram_channel_setup()
379 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx88_sram_channel_setup()
[all …]
Dcx88-mpeg.c95 cx_write(MO_TS_LNGTH, dev->ts_packet_size); in cx8802_start_dma()
108 cx_write(TS_GEN_CNTRL, 0x0040 | dev->ts_gen_cntrl); in cx8802_start_dma()
110 cx_write(MO_PINMUX_IO, 0x00); in cx8802_start_dma()
111 cx_write(TS_HW_SOP_CNTRL, 0x47 << 16 | 188 << 4 | 0x01); in cx8802_start_dma()
117 cx_write(TS_SOP_STAT, 1 << 13); in cx8802_start_dma()
120 cx_write(TS_SOP_STAT, 0x00); in cx8802_start_dma()
125 cx_write(MO_PINMUX_IO, 0x88); in cx8802_start_dma()
130 cx_write(MO_PINMUX_IO, 0x88); in cx8802_start_dma()
131 cx_write(TS_SOP_STAT, 0); in cx8802_start_dma()
132 cx_write(TS_VALERR_CNTRL, 0); in cx8802_start_dma()
[all …]
Dcx88-tvaudio.c116 cx_write(l[i].reg, l[i].val); in set_audio_registers()
125 cx_write(AUD_VOL_CTL, (1 << 6)); in set_audio_start()
128 cx_write(AUD_INIT, mode); in set_audio_start()
129 cx_write(AUD_INIT_LD, 0x0001); in set_audio_start()
130 cx_write(AUD_SOFT_RESET, 0x0001); in set_audio_start()
139 cx_write(AUD_RATE_THRES_DMD, 0x000000C0); in set_audio_finish()
143 cx_write(AUD_I2SINPUTCNTL, 4); in set_audio_finish()
144 cx_write(AUD_BAUDRATE, 1); in set_audio_finish()
150 cx_write(AUD_I2SOUTPUTCNTL, 1); in set_audio_finish()
151 cx_write(AUD_I2SCNTL, 0); in set_audio_finish()
[all …]
Dcx88-cards.c2983 cx_write(MO_GP0_IO, 0x101000); in cx88_dvico_xc2028_callback()
3008 cx_write(MO_GP1_IO, 0x030302); in cx88_xc3028_geniatech_tuner_callback()
3012 cx_write(MO_GP1_IO, 0x030301); in cx88_xc3028_geniatech_tuner_callback()
3015 cx_write(MO_GP1_IO, 0x101010); in cx88_xc3028_geniatech_tuner_callback()
3017 cx_write(MO_GP1_IO, 0x101000); in cx88_xc3028_geniatech_tuner_callback()
3019 cx_write(MO_GP1_IO, 0x101010); in cx88_xc3028_geniatech_tuner_callback()
3068 cx_write(MO_GP2_IO, 0xcf7); in cx88_pv_8000gt_callback()
3070 cx_write(MO_GP2_IO, 0xef5); in cx88_pv_8000gt_callback()
3072 cx_write(MO_GP2_IO, 0xcf7); in cx88_pv_8000gt_callback()
3143 cx_write(MO_GP0_IO, 0x4ff); in cx88_xc2028_tuner_callback()
[all …]
Dcx88-blackbird.c201 cx_write(MO_GPHST_SOFT_RST, 1); in host_setup()
203 cx_write(MO_GPHST_SOFT_RST, 0); in host_setup()
207 cx_write(MO_GPHST_WSC, 0x44444444U); in host_setup()
208 cx_write(MO_GPHST_XFR, 0); in host_setup()
209 cx_write(MO_GPHST_WDTH, 15); in host_setup()
210 cx_write(MO_GPHST_HDSHK, 0); in host_setup()
211 cx_write(MO_GPHST_MUX16, 0x44448888U); in host_setup()
212 cx_write(MO_GPHST_MODE, 0); in host_setup()
569 cx_write(MO_SRST_IO, 0); /* SYS_RSTO=0 */ in blackbird_initialize_codec()
570 cx_write(MO_SRST_IO, 1); /* SYS_RSTO=1 */ in blackbird_initialize_codec()
[all …]
Dcx88-alsa.c136 cx_write(MO_AUDD_LNGTH, buf->bpl); in _cx88_start_audio_dma()
139 cx_write(MO_AUDD_GPCNTRL, GP_COUNT_CONTROL_RESET); in _cx88_start_audio_dma()
148 cx_write(MO_AUD_INTMSK, AUD_INT_OPC_ERR | AUD_INT_DN_SYNC | in _cx88_start_audio_dma()
152 cx_write(MO_AUD_INTSTAT, ~0); in _cx88_start_audio_dma()
224 cx_write(MO_AUD_INTSTAT, status); in cx8801_aud_irq()
237 cx_write(MO_AUDD_GPCNTRL, GP_COUNT_CONTROL_RESET); in cx8801_aud_irq()
266 cx_write(MO_PCI_INTSTAT, status); in cx8801_irq()
705 cx_write(AUD_BAL_CTL, b); in snd_cx88_volume_put()
Dcx88-vp3054-i2c.c46 cx_write(MO_GP0_IO, 0x010000 | vp3054_i2c->state); in vp3054_bit_setscl()
63 cx_write(MO_GP0_IO, 0x020000 | vp3054_i2c->state); in vp3054_bit_setsda()
Dcx88-video.c311 cx_write(MO_GP3_IO, INPUT(input).gpio3); in cx88_video_mux()
312 cx_write(MO_GP0_IO, INPUT(input).gpio0); in cx88_video_mux()
313 cx_write(MO_GP1_IO, INPUT(input).gpio1); in cx88_video_mux()
314 cx_write(MO_GP2_IO, INPUT(input).gpio2); in cx88_video_mux()
357 cx_write(AUD_I2SCNTL, 0x0); in cx88_video_mux()
378 cx_write(MO_COLOR_CTRL, dev->fmt->cxformat | ColorFormatGamma); in start_video_dma()
381 cx_write(MO_VIDY_GPCNTRL, GP_COUNT_CONTROL_RESET); in start_video_dma()
601 cx_write(MO_GP3_IO, core->board.radio.gpio3); in radio_open()
602 cx_write(MO_GP0_IO, core->board.radio.gpio0); in radio_open()
603 cx_write(MO_GP1_IO, core->board.radio.gpio1); in radio_open()
[all …]
Dcx88-i2c.c62 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setscl()
74 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setsda()
Dcx88-dvb.c460 cx_write(MO_GP0_IO, 0x000006fb); in kworld_dvbs_100_set_voltage()
462 cx_write(MO_GP0_IO, 0x000006f9); in kworld_dvbs_100_set_voltage()
477 cx_write(MO_GP0_IO, 0x0000efff); in geniatech_dvbs_set_voltage()
518 cx_write(MO_GP0_IO, 0x00001220); in vp1027_set_voltage()
522 cx_write(MO_GP0_IO, 0x00001222); in vp1027_set_voltage()
526 cx_write(MO_GP0_IO, 0x00001230); in vp1027_set_voltage()
710 cx_write(MO_SRST_IO, 0); in cx24116_reset_device()
713 cx_write(MO_SRST_IO, 1); in cx24116_reset_device()
1694 cx_write(MO_SRST_IO, 1); in cx8802_dvb_advise_acquire()
1699 cx_write(MO_SRST_IO, 0); in cx8802_dvb_advise_acquire()
[all …]
Dcx88-vbi.c61 cx_write(MO_VBOS_CONTROL, (1 << 18) | /* comb filter delay fixup */ in cx8800_start_vbi_dma()
66 cx_write(MO_VBI_GPCNTRL, GP_COUNT_CONTROL_RESET); in cx8800_start_vbi_dma()
Dcx88-input.c210 cx_write(MO_DDS_IO, 0x33F286 * ir_samplerate); /* samplerate */ in __cx88_ir_start()
211 cx_write(MO_DDSCFG_IO, 0x5); /* enable */ in __cx88_ir_start()
226 cx_write(MO_DDSCFG_IO, 0x0); in __cx88_ir_stop()
/Linux-v4.19/drivers/media/pci/cx23885/
Dcx23885-417.c292 cx_write(MC417_CTL, regval); in cx23885_mc417_init()
296 cx_write(MC417_OEN, regval); in cx23885_mc417_init()
300 cx_write(MC417_RWD, regval); in cx23885_mc417_init()
325 cx_write(MC417_OEN, MC417_MIRDY); in mc417_register_write()
330 cx_write(MC417_RWD, regval); in mc417_register_write()
334 cx_write(MC417_RWD, regval); in mc417_register_write()
339 cx_write(MC417_RWD, regval); in mc417_register_write()
341 cx_write(MC417_RWD, regval); in mc417_register_write()
346 cx_write(MC417_RWD, regval); in mc417_register_write()
348 cx_write(MC417_RWD, regval); in mc417_register_write()
[all …]
Dcx23885-core.c461 cx_write(ch->ptr1_reg, 0); in cx23885_sram_channel_setup()
462 cx_write(ch->ptr2_reg, 0); in cx23885_sram_channel_setup()
463 cx_write(ch->cnt2_reg, 0); in cx23885_sram_channel_setup()
464 cx_write(ch->cnt1_reg, 0); in cx23885_sram_channel_setup()
478 cx_write(8 + 0, RISC_JUMP | RISC_CNT_RESET); in cx23885_sram_channel_setup()
479 cx_write(8 + 4, 12); in cx23885_sram_channel_setup()
480 cx_write(8 + 8, 0); in cx23885_sram_channel_setup()
486 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
487 cx_write(cdt + 16*i + 4, 0); in cx23885_sram_channel_setup()
488 cx_write(cdt + 16*i + 8, 0); in cx23885_sram_channel_setup()
[all …]
Dcx23885-i2c.c94 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes()
95 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); in i2c_sendbytes()
116 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
117 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
118 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
138 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
139 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
140 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
173 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
174 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); in i2c_readbytes()
[all …]
Dcx23885-cards.c1608 cx_write(MC417_CTL, 0x00000036); in cx23885_gpio_setup()
1609 cx_write(MC417_OEN, 0x00001000); in cx23885_gpio_setup()
1635 cx_write(MC417_CTL, 0x00000037);/* enable GPIO3-18 pins */ in cx23885_gpio_setup()
1637 cx_write(MC417_OEN, 0x00001000); in cx23885_gpio_setup()
1639 cx_write(MC417_RWD, 0x0000c300); in cx23885_gpio_setup()
1641 cx_write(GPIO_ISM, 0x00000000);/* INTERRUPTS active low*/ in cx23885_gpio_setup()
1733 cx_write(MC417_CTL, 0x00000037);/* enable GPIO-3..18 pins */ in cx23885_gpio_setup()
1735 cx_write(MC417_OEN, 0x00005000); in cx23885_gpio_setup()
1737 cx_write(MC417_RWD, 0x00000d00); in cx23885_gpio_setup()
1739 cx_write(GPIO_ISM, 0x00000000);/* INTERRUPTS active low*/ in cx23885_gpio_setup()
[all …]
Dcx23885-alsa.c176 cx_write(AUD_INT_A_LNGTH, buf->bpl); in cx23885_start_audio_dma()
179 cx_write(AUD_INT_A_MODE, 1); in cx23885_start_audio_dma()
182 cx_write(AUD_INT_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in cx23885_start_audio_dma()
190 cx_write(AUDIO_INT_INT_MSK, AUD_INT_OPC_ERR | AUD_INT_DN_SYNC | in cx23885_start_audio_dma()
194 cx_write(AUDIO_INT_INT_STAT, ~0); in cx23885_start_audio_dma()
242 cx_write(AUDIO_INT_INT_STAT, status); in cx23885_audio_irq()
254 cx_write(AUD_INT_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in cx23885_audio_irq()
Dcimax2.c210 cx_write(MC417_OEN, NETUP_EN_ALL); in netup_ci_op_cam()
211 cx_write(MC417_RWD, NETUP_CTRL_OFF | in netup_ci_op_cam()
214 cx_write(MC417_RWD, NETUP_CTRL_OFF | in netup_ci_op_cam()
219 cx_write(MC417_OEN, NETUP_EN_ALL | NETUP_DATA); in netup_ci_op_cam()
221 cx_write(MC417_RWD, NETUP_CTRL_OFF | data); in netup_ci_op_cam()
Dcx23885-vbi.c107 cx_write(VID_A_VBI_CTRL, 3); in cx23885_start_vbi_dma()
108 cx_write(VBI_A_GPCNT_CTL, 3); in cx23885_start_vbi_dma()
Dcx23885-ioctl.c105 cx_write(reg->reg, reg->val); in cx23885_s_register()

12