Home
last modified time | relevance | path

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

12

/drivers/media/pci/cx25821/
Dcx25821-core.c366 cx_write(DEV_CNTRL2, 0x20); in cx25821_registers_init()
371 cx_write(PCI_INT_MSK, 0x2001FFFF); in cx25821_registers_init()
375 cx_write(RDR_TLCTL0, tmp); in cx25821_registers_init()
378 cx_write(PLL_A_INT_FRAC, 0x9807A58B); in cx25821_registers_init()
381 cx_write(PLL_A_POST_STAT_BIST, 0x8000019C); in cx25821_registers_init()
385 cx_write(PLL_A_INT_FRAC, tmp & 0x7FFFFFFF); in cx25821_registers_init()
388 cx_write(PLL_B_INT_FRAC, 0x9883A86F); in cx25821_registers_init()
391 cx_write(PLL_B_POST_STAT_BIST, 0x8000018D); in cx25821_registers_init()
395 cx_write(PLL_B_INT_FRAC, tmp & 0x7FFFFFFF); in cx25821_registers_init()
398 cx_write(PLL_C_INT_FRAC, 0x96A0EA3F); in cx25821_registers_init()
[all …]
Dcx25821-video-upstream.c49 cx_write(ch->ptr1_reg, 0); in cx25821_sram_channel_setup_upstream()
50 cx_write(ch->ptr2_reg, 0); in cx25821_sram_channel_setup_upstream()
51 cx_write(ch->cnt2_reg, 0); in cx25821_sram_channel_setup_upstream()
52 cx_write(ch->cnt1_reg, 0); in cx25821_sram_channel_setup_upstream()
67 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_upstream()
68 cx_write(cdt + 16 * i + 4, 0); in cx25821_sram_channel_setup_upstream()
69 cx_write(cdt + 16 * i + 8, 0); in cx25821_sram_channel_setup_upstream()
70 cx_write(cdt + 16 * i + 12, 0); in cx25821_sram_channel_setup_upstream()
74 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_upstream()
76 cx_write(ch->cmds_start + 4, 0); in cx25821_sram_channel_setup_upstream()
[all …]
Dcx25821-audio-upstream.c55 cx_write(ch->ptr1_reg, 0); in cx25821_sram_channel_setup_upstream_audio()
56 cx_write(ch->ptr2_reg, 0); in cx25821_sram_channel_setup_upstream_audio()
57 cx_write(ch->cnt2_reg, 0); in cx25821_sram_channel_setup_upstream_audio()
58 cx_write(ch->cnt1_reg, 0); in cx25821_sram_channel_setup_upstream_audio()
73 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_upstream_audio()
74 cx_write(cdt + 16 * i + 4, 0); in cx25821_sram_channel_setup_upstream_audio()
75 cx_write(cdt + 16 * i + 8, 0); in cx25821_sram_channel_setup_upstream_audio()
76 cx_write(cdt + 16 * i + 12, 0); in cx25821_sram_channel_setup_upstream_audio()
80 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_upstream_audio()
82 cx_write(ch->cmds_start + 4, 0); in cx25821_sram_channel_setup_upstream_audio()
[all …]
Dcx25821-i2c.c96 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes()
97 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); in i2c_sendbytes()
120 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
121 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
122 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
146 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
147 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
148 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
187 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
188 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); in i2c_readbytes()
[all …]
Dcx25821-alsa.c247 cx_write(AUD_A_LNGTH, buf->bpl); in _cx25821_start_audio_dma()
251 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in _cx25821_start_audio_dma()
256 cx_write(AUD_A_CFG, tmp | FLD_AUD_DST_PK_MODE | FLD_AUD_DST_ENABLE | in _cx25821_start_audio_dma()
267 cx_write(AUD_A_INT_MSK, FLD_AUD_DST_RISCI1 | FLD_AUD_DST_OF | in _cx25821_start_audio_dma()
271 cx_write(AUD_A_INT_STAT, ~0); in _cx25821_start_audio_dma()
333 cx_write(AUD_A_INT_STAT, status); in cx25821_aud_irq()
349 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in cx25821_aud_irq()
384 cx_write(PCI_INT_STAT, status); in cx25821_irq()
395 cx_write(PCI_INT_STAT, status); in cx25821_irq()
403 cx_write(PCI_INT_STAT, pci_status); in cx25821_irq()
Dcx25821-gpio.c52 cx_write(gpio_oe_reg, value); in cx25821_set_gpiopin_direction()
82 cx_write(gpio_reg, value); in cx25821_set_gpiopin_logicvalue()
Dcx25821-video.c86 cx_write(channel->gpcnt_ctl, 3); in cx25821_start_video_dma()
93 cx_write(channel->dma_ctl, 0x11); /* FIFO and RISC enable */ in cx25821_start_video_dma()
97 cx_write(VID_CH_MODE_SEL, tmp & 0xFFFFFE00); in cx25821_start_video_dma()
112 cx_write(channel->int_stat, status); in cx25821_video_irq()
300 cx_write(chan->sram_channels->dma_ctl, 0); /* FIFO and RISC disable */ in cx25821_stop_streaming()
744 cx_write(chan->sram_channels->int_stat, 0xffffffff); in cx25821_video_register()
/drivers/media/pci/cx88/
Dcx88-core.c349 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx88_sram_channel_setup()
352 cx_write(ch->cmds_start + 0, risc); in cx88_sram_channel_setup()
353 cx_write(ch->cmds_start + 4, cdt); in cx88_sram_channel_setup()
354 cx_write(ch->cmds_start + 8, (lines*16) >> 3); in cx88_sram_channel_setup()
355 cx_write(ch->cmds_start + 12, ch->ctrl_start); in cx88_sram_channel_setup()
356 cx_write(ch->cmds_start + 16, 64 >> 2); in cx88_sram_channel_setup()
358 cx_write(ch->cmds_start + i, 0); in cx88_sram_channel_setup()
361 cx_write(ch->ptr1_reg, ch->fifo_start); in cx88_sram_channel_setup()
362 cx_write(ch->ptr2_reg, cdt); in cx88_sram_channel_setup()
363 cx_write(ch->cnt1_reg, (bpl >> 3) -1); in cx88_sram_channel_setup()
[all …]
Dcx88-mpeg.c103 cx_write(MO_TS_LNGTH, dev->ts_packet_size); in cx8802_start_dma()
115 cx_write(TS_GEN_CNTRL, 0x0040 | dev->ts_gen_cntrl); in cx8802_start_dma()
117 cx_write(MO_PINMUX_IO, 0x00); in cx8802_start_dma()
118 cx_write(TS_HW_SOP_CNTRL, 0x47<<16|188<<4|0x01); in cx8802_start_dma()
124 cx_write(TS_SOP_STAT, 1<<13); in cx8802_start_dma()
127 cx_write(TS_SOP_STAT, 0x00); in cx8802_start_dma()
131 cx_write(MO_PINMUX_IO, 0x88); /* Enable MPEG parallel IO and video signal pins */ in cx8802_start_dma()
136 cx_write(MO_PINMUX_IO, 0x88); in cx8802_start_dma()
137 cx_write(TS_SOP_STAT, 0); in cx8802_start_dma()
138 cx_write(TS_VALERR_CNTRL, 0); in cx8802_start_dma()
[all …]
Dcx88-tvaudio.c119 cx_write(l[i].reg, l[i].val); in set_audio_registers()
128 cx_write(AUD_VOL_CTL, (1 << 6)); in set_audio_start()
131 cx_write(AUD_INIT, mode); in set_audio_start()
132 cx_write(AUD_INIT_LD, 0x0001); in set_audio_start()
133 cx_write(AUD_SOFT_RESET, 0x0001); in set_audio_start()
142 cx_write(AUD_RATE_THRES_DMD, 0x000000C0); in set_audio_finish()
146 cx_write(AUD_I2SINPUTCNTL, 4); in set_audio_finish()
147 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.c2985 cx_write(MO_GP0_IO, 0x101000); in cx88_dvico_xc2028_callback()
3010 cx_write(MO_GP1_IO, 0x030302); in cx88_xc3028_geniatech_tuner_callback()
3014 cx_write(MO_GP1_IO, 0x030301); in cx88_xc3028_geniatech_tuner_callback()
3017 cx_write(MO_GP1_IO, 0x101010); in cx88_xc3028_geniatech_tuner_callback()
3019 cx_write(MO_GP1_IO, 0x101000); in cx88_xc3028_geniatech_tuner_callback()
3021 cx_write(MO_GP1_IO, 0x101010); in cx88_xc3028_geniatech_tuner_callback()
3069 cx_write(MO_GP2_IO, 0xcf7); in cx88_pv_8000gt_callback()
3071 cx_write(MO_GP2_IO, 0xef5); in cx88_pv_8000gt_callback()
3073 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.c184 cx_write(MO_GPHST_SOFT_RST, 1); in host_setup()
186 cx_write(MO_GPHST_SOFT_RST, 0); in host_setup()
190 cx_write(MO_GPHST_WSC, 0x44444444U); in host_setup()
191 cx_write(MO_GPHST_XFR, 0); in host_setup()
192 cx_write(MO_GPHST_WDTH, 15); in host_setup()
193 cx_write(MO_GPHST_HDSHK, 0); in host_setup()
194 cx_write(MO_GPHST_MUX16, 0x44448888U); in host_setup()
195 cx_write(MO_GPHST_MODE, 0); in host_setup()
540 cx_write(MO_SRST_IO, 0); /* SYS_RSTO=0 */ in blackbird_initialize_codec()
541 cx_write(MO_SRST_IO, 1); /* SYS_RSTO=1 */ in blackbird_initialize_codec()
[all …]
Dcx88-video.c308 cx_write(MO_GP3_IO, INPUT(input).gpio3); in cx88_video_mux()
309 cx_write(MO_GP0_IO, INPUT(input).gpio0); in cx88_video_mux()
310 cx_write(MO_GP1_IO, INPUT(input).gpio1); in cx88_video_mux()
311 cx_write(MO_GP2_IO, INPUT(input).gpio2); in cx88_video_mux()
348 cx_write(AUD_I2SCNTL, 0x0); in cx88_video_mux()
369 cx_write(MO_COLOR_CTRL, dev->fmt->cxformat | ColorFormatGamma); in start_video_dma()
372 cx_write(MO_VIDY_GPCNTRL,GP_COUNT_CONTROL_RESET); in start_video_dma()
593 cx_write(MO_GP3_IO, core->board.radio.gpio3); in radio_open()
594 cx_write(MO_GP0_IO, core->board.radio.gpio0); in radio_open()
595 cx_write(MO_GP1_IO, core->board.radio.gpio1); in radio_open()
[all …]
Dcx88-alsa.c151 cx_write(MO_AUDD_LNGTH, buf->bpl); in _cx88_start_audio_dma()
154 cx_write(MO_AUDD_GPCNTRL, GP_COUNT_CONTROL_RESET); in _cx88_start_audio_dma()
162 cx_write(MO_AUD_INTMSK, AUD_INT_OPC_ERR | AUD_INT_DN_SYNC | in _cx88_start_audio_dma()
166 cx_write(MO_AUD_INTSTAT, ~0); in _cx88_start_audio_dma()
233 cx_write(MO_AUD_INTSTAT, status); in cx8801_aud_irq()
246 cx_write(MO_AUDD_GPCNTRL, GP_COUNT_CONTROL_RESET); in cx8801_aud_irq()
275 cx_write(MO_PCI_INTSTAT, status); in cx8801_irq()
712 cx_write(AUD_BAL_CTL, b); in snd_cx88_volume_put()
Dcx88-vp3054-i2c.c53 cx_write(MO_GP0_IO, 0x010000 | vp3054_i2c->state); in vp3054_bit_setscl()
70 cx_write(MO_GP0_IO, 0x020000 | vp3054_i2c->state); in vp3054_bit_setsda()
Dcx88-i2c.c64 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setscl()
76 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setsda()
Dcx88-dvb.c461 cx_write(MO_GP0_IO, 0x000006fb); in kworld_dvbs_100_set_voltage()
463 cx_write(MO_GP0_IO, 0x000006f9); in kworld_dvbs_100_set_voltage()
478 cx_write(MO_GP0_IO, 0x0000efff); in geniatech_dvbs_set_voltage()
519 cx_write(MO_GP0_IO, 0x00001220); in vp1027_set_voltage()
523 cx_write(MO_GP0_IO, 0x00001222); in vp1027_set_voltage()
527 cx_write(MO_GP0_IO, 0x00001230); in vp1027_set_voltage()
716 cx_write(MO_SRST_IO, 0); in cx24116_reset_device()
719 cx_write(MO_SRST_IO, 1); in cx24116_reset_device()
1697 cx_write(MO_SRST_IO, 1); in cx8802_dvb_advise_acquire()
1702 cx_write(MO_SRST_IO, 0); in cx8802_dvb_advise_acquire()
[all …]
Dcx88-vbi.c56 cx_write(MO_VBOS_CONTROL, ( (1 << 18) | // comb filter delay fixup in cx8800_start_vbi_dma()
61 cx_write(MO_VBI_GPCNTRL, GP_COUNT_CONTROL_RESET); in cx8800_start_vbi_dma()
/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.c449 cx_write(ch->ptr1_reg, 0); in cx23885_sram_channel_setup()
450 cx_write(ch->ptr2_reg, 0); in cx23885_sram_channel_setup()
451 cx_write(ch->cnt2_reg, 0); in cx23885_sram_channel_setup()
452 cx_write(ch->cnt1_reg, 0); in cx23885_sram_channel_setup()
466 cx_write(8 + 0, RISC_JUMP | RISC_CNT_RESET); in cx23885_sram_channel_setup()
467 cx_write(8 + 4, 12); in cx23885_sram_channel_setup()
468 cx_write(8 + 8, 0); in cx23885_sram_channel_setup()
474 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
475 cx_write(cdt + 16*i + 4, 0); in cx23885_sram_channel_setup()
476 cx_write(cdt + 16*i + 8, 0); in cx23885_sram_channel_setup()
[all …]
Dcx23885-i2c.c93 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes()
94 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); in i2c_sendbytes()
115 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
116 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
117 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
137 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
138 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
139 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
172 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
173 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); in i2c_readbytes()
[all …]
Dcx23885-cards.c1429 cx_write(MC417_CTL, 0x00000036); in cx23885_gpio_setup()
1430 cx_write(MC417_OEN, 0x00001000); in cx23885_gpio_setup()
1456 cx_write(MC417_CTL, 0x00000037);/* enable GPIO3-18 pins */ in cx23885_gpio_setup()
1458 cx_write(MC417_OEN, 0x00001000); in cx23885_gpio_setup()
1460 cx_write(MC417_RWD, 0x0000c300); in cx23885_gpio_setup()
1462 cx_write(GPIO_ISM, 0x00000000);/* INTERRUPTS active low*/ in cx23885_gpio_setup()
1554 cx_write(MC417_CTL, 0x00000037);/* enable GPIO-3..18 pins */ in cx23885_gpio_setup()
1556 cx_write(MC417_OEN, 0x00005000); in cx23885_gpio_setup()
1558 cx_write(MC417_RWD, 0x00000d00); in cx23885_gpio_setup()
1560 cx_write(GPIO_ISM, 0x00000000);/* INTERRUPTS active low*/ in cx23885_gpio_setup()
[all …]
Dcx23885-alsa.c180 cx_write(AUD_INT_A_LNGTH, buf->bpl); in cx23885_start_audio_dma()
183 cx_write(AUD_INT_A_MODE, 1); in cx23885_start_audio_dma()
186 cx_write(AUD_INT_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in cx23885_start_audio_dma()
194 cx_write(AUDIO_INT_INT_MSK, AUD_INT_OPC_ERR | AUD_INT_DN_SYNC | in cx23885_start_audio_dma()
198 cx_write(AUDIO_INT_INT_STAT, ~0); in cx23885_start_audio_dma()
246 cx_write(AUDIO_INT_INT_STAT, status); in cx23885_audio_irq()
258 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.c106 cx_write(VID_A_GPCNT_CTL, 3); in cx23885_start_vbi_dma()
107 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()

12