Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/media/video/cx88/
Dcx88-core.c371 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx88_sram_channel_setup()
374 cx_write(ch->cmds_start + 0, risc); in cx88_sram_channel_setup()
375 cx_write(ch->cmds_start + 4, cdt); in cx88_sram_channel_setup()
376 cx_write(ch->cmds_start + 8, (lines*16) >> 3); in cx88_sram_channel_setup()
377 cx_write(ch->cmds_start + 12, ch->ctrl_start); in cx88_sram_channel_setup()
378 cx_write(ch->cmds_start + 16, 64 >> 2); in cx88_sram_channel_setup()
380 cx_write(ch->cmds_start + i, 0); in cx88_sram_channel_setup()
383 cx_write(ch->ptr1_reg, ch->fifo_start); in cx88_sram_channel_setup()
384 cx_write(ch->ptr2_reg, cdt); in cx88_sram_channel_setup()
385 cx_write(ch->cnt1_reg, (bpl >> 3) -1); in cx88_sram_channel_setup()
[all …]
Dcx88-mpeg.c97 cx_write(MO_TS_LNGTH, buf->vb.width); in cx8802_start_dma()
109 cx_write(TS_GEN_CNTRL, 0x0040 | dev->ts_gen_cntrl); in cx8802_start_dma()
111 cx_write(MO_PINMUX_IO, 0x00); in cx8802_start_dma()
112 cx_write(TS_HW_SOP_CNTRL, 0x47<<16|188<<4|0x01); in cx8802_start_dma()
118 cx_write(TS_SOP_STAT, 1<<13); in cx8802_start_dma()
121 cx_write(TS_SOP_STAT, 0x00); in cx8802_start_dma()
125 cx_write(MO_PINMUX_IO, 0x88); /* Enable MPEG parallel IO and video signal pins */ 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.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.c2789 cx_write(MO_GP0_IO, 0x101000); in cx88_dvico_xc2028_callback()
2814 cx_write(MO_GP1_IO, 0x030302); in cx88_xc3028_geniatech_tuner_callback()
2818 cx_write(MO_GP1_IO, 0x030301); in cx88_xc3028_geniatech_tuner_callback()
2821 cx_write(MO_GP1_IO, 0x101010); in cx88_xc3028_geniatech_tuner_callback()
2823 cx_write(MO_GP1_IO, 0x101000); in cx88_xc3028_geniatech_tuner_callback()
2825 cx_write(MO_GP1_IO, 0x101010); in cx88_xc3028_geniatech_tuner_callback()
2856 cx_write(MO_GP2_IO, 0xcf7); in cx88_pv_8000gt_callback()
2858 cx_write(MO_GP2_IO, 0xef5); in cx88_pv_8000gt_callback()
2860 cx_write(MO_GP2_IO, 0xcf7); in cx88_pv_8000gt_callback()
2930 cx_write(MO_GP0_IO, 0x4ff); in cx88_xc2028_tuner_callback()
[all …]
Dcx88-alsa.c144 cx_write(MO_AUDD_LNGTH, buf->bpl); in _cx88_start_audio_dma()
147 cx_write(MO_AUDD_GPCNTRL, GP_COUNT_CONTROL_RESET); in _cx88_start_audio_dma()
155 cx_write(MO_AUD_INTMSK, AUD_INT_OPC_ERR | AUD_INT_DN_SYNC | in _cx88_start_audio_dma()
159 cx_write(MO_AUD_INTSTAT, ~0); in _cx88_start_audio_dma()
226 cx_write(MO_AUD_INTSTAT, status); in cx8801_aud_irq()
239 cx_write(MO_AUDD_GPCNTRL, GP_COUNT_CONTROL_RESET); in cx8801_aud_irq()
268 cx_write(MO_PCI_INTSTAT, status); in cx8801_irq()
640 cx_write(AUD_BAL_CTL, b); in snd_cx88_volume_put()
Dcx88-blackbird.c185 cx_write(MO_GPHST_SOFT_RST, 1); in host_setup()
187 cx_write(MO_GPHST_SOFT_RST, 0); in host_setup()
191 cx_write(MO_GPHST_WSC, 0x44444444U); in host_setup()
192 cx_write(MO_GPHST_XFR, 0); in host_setup()
193 cx_write(MO_GPHST_WDTH, 15); in host_setup()
194 cx_write(MO_GPHST_HDSHK, 0); in host_setup()
195 cx_write(MO_GPHST_MUX16, 0x44448888U); in host_setup()
196 cx_write(MO_GPHST_MODE, 0); in host_setup()
545 cx_write(MO_SRST_IO, 0); /* SYS_RSTO=0 */ in blackbird_initialize_codec()
546 cx_write(MO_SRST_IO, 1); /* SYS_RSTO=1 */ in blackbird_initialize_codec()
[all …]
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.c409 cx_write(MO_GP0_IO, 0x000006fb); in kworld_dvbs_100_set_voltage()
411 cx_write(MO_GP0_IO, 0x000006f9); in kworld_dvbs_100_set_voltage()
426 cx_write(MO_GP0_IO, 0x0000efff); in geniatech_dvbs_set_voltage()
467 cx_write(MO_GP0_IO, 0x00001220); in vp1027_set_voltage()
471 cx_write(MO_GP0_IO, 0x00001222); in vp1027_set_voltage()
475 cx_write(MO_GP0_IO, 0x00001230); in vp1027_set_voltage()
631 cx_write(MO_SRST_IO, 0); in cx24116_reset_device()
634 cx_write(MO_SRST_IO, 1); in cx24116_reset_device()
1564 cx_write(MO_SRST_IO, 1); in cx8802_dvb_advise_acquire()
1569 cx_write(MO_SRST_IO, 0); in cx8802_dvb_advise_acquire()
Dcx88-video.c400 cx_write(MO_GP3_IO, INPUT(input).gpio3); in cx88_video_mux()
401 cx_write(MO_GP0_IO, INPUT(input).gpio0); in cx88_video_mux()
402 cx_write(MO_GP1_IO, INPUT(input).gpio1); in cx88_video_mux()
403 cx_write(MO_GP2_IO, INPUT(input).gpio2); in cx88_video_mux()
441 cx_write(AUD_I2SCNTL, 0x0); in cx88_video_mux()
462 cx_write(MO_COLOR_CTRL, buf->fmt->cxformat | ColorFormatGamma); in start_video_dma()
465 cx_write(MO_VIDY_GPCNTRL,GP_COUNT_CONTROL_RESET); in start_video_dma()
805 cx_write(MO_GP3_IO, core->board.radio.gpio3); in video_open()
806 cx_write(MO_GP0_IO, core->board.radio.gpio0); in video_open()
807 cx_write(MO_GP1_IO, core->board.radio.gpio1); in video_open()
[all …]
Dcx88-input.c185 cx_write(MO_DDS_IO, 0x33F286 * ir_samplerate); /* samplerate */ in __cx88_ir_start()
186 cx_write(MO_DDSCFG_IO, 0x5); /* enable */ in __cx88_ir_start()
201 cx_write(MO_DDSCFG_IO, 0x0); in __cx88_ir_stop()
Dcx88-vbi.c59 cx_write(MO_VBOS_CONTROL, ( (1 << 18) | // comb filter delay fixup in cx8800_start_vbi_dma()
64 cx_write(MO_VBI_GPCNTRL, GP_COUNT_CONTROL_RESET); in cx8800_start_vbi_dma()
/linux-2.6.39/drivers/staging/cx25821/
Dcx25821-core.c395 cx_write(DEV_CNTRL2, 0x20); in cx25821_registers_init()
400 cx_write(PCI_INT_MSK, 0x2001FFFF); in cx25821_registers_init()
404 cx_write(RDR_TLCTL0, tmp); in cx25821_registers_init()
407 cx_write(PLL_A_INT_FRAC, 0x9807A58B); in cx25821_registers_init()
410 cx_write(PLL_A_POST_STAT_BIST, 0x8000019C); in cx25821_registers_init()
414 cx_write(PLL_A_INT_FRAC, tmp & 0x7FFFFFFF); in cx25821_registers_init()
417 cx_write(PLL_B_INT_FRAC, 0x9883A86F); in cx25821_registers_init()
420 cx_write(PLL_B_POST_STAT_BIST, 0x8000018D); in cx25821_registers_init()
424 cx_write(PLL_B_INT_FRAC, tmp & 0x7FFFFFFF); in cx25821_registers_init()
427 cx_write(PLL_C_INT_FRAC, 0x96A0EA3F); in cx25821_registers_init()
[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-video-upstream.c54 cx_write(ch->ptr1_reg, 0); in cx25821_sram_channel_setup_upstream()
55 cx_write(ch->ptr2_reg, 0); in cx25821_sram_channel_setup_upstream()
56 cx_write(ch->cnt2_reg, 0); in cx25821_sram_channel_setup_upstream()
57 cx_write(ch->cnt1_reg, 0); in cx25821_sram_channel_setup_upstream()
72 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_upstream()
73 cx_write(cdt + 16 * i + 4, 0); in cx25821_sram_channel_setup_upstream()
74 cx_write(cdt + 16 * i + 8, 0); in cx25821_sram_channel_setup_upstream()
75 cx_write(cdt + 16 * i + 12, 0); in cx25821_sram_channel_setup_upstream()
79 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_upstream()
81 cx_write(ch->cmds_start + 4, 0); in cx25821_sram_channel_setup_upstream()
[all …]
Dcx25821-i2c.c95 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes()
96 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); in i2c_sendbytes()
119 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
120 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
121 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
145 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
146 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
147 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
186 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
187 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); in i2c_readbytes()
[all …]
Dcx25821-video-upstream-ch2.c221 cx_write(sram_ch->int_msk, tmp & ~_intr_msk); in cx25821_stop_upstream_video_ch2()
225 cx_write(sram_ch->dma_ctl, tmp & ~(FLD_VID_FIFO_EN | FLD_VID_RISC_EN)); in cx25821_stop_upstream_video_ch2()
243 cx_write(VID_CH_MODE_SEL, tmp & 0xFFFFFE00); in cx25821_stop_upstream_video_ch2()
547 cx_write(channel->int_msk, int_msk_tmp & ~_intr_msk); in cx25821_video_upstream_irq_ch2()
548 cx_write(channel->int_stat, _intr_msk); in cx25821_video_upstream_irq_ch2()
603 cx_write(channel->int_msk, int_msk_tmp |= _intr_msk); in cx25821_video_upstream_irq_ch2()
652 cx_write(ch->vid_fmt_ctl, value); in cx25821_set_pixelengine_ch2()
658 cx_write(ch->vid_active_ctl1, width); in cx25821_set_pixelengine_ch2()
669 cx_write(ch->vid_active_ctl2, value); in cx25821_set_pixelengine_ch2()
671 cx_write(ch->vid_cdt_size, VID_CDT_SIZE >> 3); in cx25821_set_pixelengine_ch2()
[all …]
Dcx25821-alsa.c170 cx_write(AUD_A_LNGTH, buf->bpl); in _cx25821_start_audio_dma()
174 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in _cx25821_start_audio_dma()
179 cx_write(AUD_A_CFG, in _cx25821_start_audio_dma()
191 cx_write(AUD_A_INT_MSK, in _cx25821_start_audio_dma()
196 cx_write(AUD_A_INT_STAT, ~0); in _cx25821_start_audio_dma()
259 cx_write(AUD_A_INT_STAT, status); in cx25821_aud_irq()
278 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); in cx25821_aud_irq()
315 cx_write(PCI_INT_STAT, status); in cx25821_irq()
325 cx_write(PCI_INT_STAT, status); in cx25821_irq()
333 cx_write(PCI_INT_STAT, pci_status); in cx25821_irq()
Dcx25821-gpio.c51 cx_write(gpio_oe_reg, value); in cx25821_set_gpiopin_direction()
80 cx_write(gpio_reg, value); in cx25821_set_gpiopin_logicvalue()
/linux-2.6.39/drivers/media/video/cx23885/
Dcx23885-417.c296 cx_write(MC417_CTL, regval); in cx23885_mc417_init()
300 cx_write(MC417_OEN, regval); in cx23885_mc417_init()
304 cx_write(MC417_RWD, regval); in cx23885_mc417_init()
329 cx_write(MC417_OEN, MC417_MIRDY); in mc417_register_write()
334 cx_write(MC417_RWD, regval); in mc417_register_write()
338 cx_write(MC417_RWD, regval); in mc417_register_write()
343 cx_write(MC417_RWD, regval); in mc417_register_write()
345 cx_write(MC417_RWD, regval); in mc417_register_write()
350 cx_write(MC417_RWD, regval); in mc417_register_write()
352 cx_write(MC417_RWD, regval); in mc417_register_write()
[all …]
Dcx23885-core.c467 cx_write(ch->ptr1_reg, 0); in cx23885_sram_channel_setup()
468 cx_write(ch->ptr2_reg, 0); in cx23885_sram_channel_setup()
469 cx_write(ch->cnt2_reg, 0); in cx23885_sram_channel_setup()
470 cx_write(ch->cnt1_reg, 0); in cx23885_sram_channel_setup()
484 cx_write(8 + 0, RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); in cx23885_sram_channel_setup()
485 cx_write(8 + 4, 8); in cx23885_sram_channel_setup()
486 cx_write(8 + 8, 0); in cx23885_sram_channel_setup()
492 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
493 cx_write(cdt + 16*i + 4, 0); in cx23885_sram_channel_setup()
494 cx_write(cdt + 16*i + 8, 0); in cx23885_sram_channel_setup()
[all …]
Dcx23885-i2c.c97 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes()
98 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); in i2c_sendbytes()
119 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
120 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
121 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
141 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
142 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
143 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
176 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
177 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); in i2c_readbytes()
[all …]
Dcx23885-cards.c928 cx_write(MC417_CTL, 0x00000036); in cx23885_gpio_setup()
929 cx_write(MC417_OEN, 0x00001000); in cx23885_gpio_setup()
955 cx_write(MC417_CTL, 0x00000037);/* enable GPIO3-18 pins */ in cx23885_gpio_setup()
957 cx_write(MC417_OEN, 0x00001000); in cx23885_gpio_setup()
959 cx_write(MC417_RWD, 0x0000c300); in cx23885_gpio_setup()
961 cx_write(GPIO_ISM, 0x00000000);/* INTERRUPTS active low*/ in cx23885_gpio_setup()
1051 cx_write(MC417_CTL, 0x00000037);/* enable GPIO-3..18 pins */ in cx23885_gpio_setup()
1053 cx_write(MC417_OEN, 0x00005000); in cx23885_gpio_setup()
1055 cx_write(MC417_RWD, 0x00000d00); in cx23885_gpio_setup()
1057 cx_write(GPIO_ISM, 0x00000000);/* INTERRUPTS active low*/ in cx23885_gpio_setup()
[all …]
Dcimax2.c202 cx_write(MC417_OEN, NETUP_EN_ALL); in netup_ci_op_cam()
203 cx_write(MC417_RWD, NETUP_CTRL_OFF | in netup_ci_op_cam()
206 cx_write(MC417_RWD, NETUP_CTRL_OFF | in netup_ci_op_cam()
211 cx_write(MC417_OEN, NETUP_EN_ALL | NETUP_DATA); in netup_ci_op_cam()
213 cx_write(MC417_RWD, NETUP_CTRL_OFF | data); in netup_ci_op_cam()
Dcx23885-ioctl.c165 cx_write(reg->reg, reg->val); in cx23885_s_host_register()

12