Lines Matching full:cx

22 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw)  in cx18_av_verifyfw()  argument
24 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_verifyfw()
32 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
36 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, dl_control); in cx18_av_verifyfw()
37 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
42 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
55 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
63 int cx18_av_loadfw(struct cx18 *cx) in cx18_av_loadfw() argument
65 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_loadfw()
73 if (request_firmware(&fw, FWFILE, &cx->pci_dev->dev) != 0) { in cx18_av_loadfw()
81 cx18_av_write4_expect(cx, CXADEC_CHIP_CTRL, 0x00010000, in cx18_av_loadfw()
83 cx18_av_write_expect(cx, CXADEC_STD_DET_CTL, 0xf6, 0xf6, 0xff); in cx18_av_loadfw()
86 cx18_av_write4_expect(cx, 0x8100, 0x00010000, in cx18_av_loadfw()
90 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, 0x0F000000); in cx18_av_loadfw()
103 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, in cx18_av_loadfw()
106 value = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_loadfw()
130 cx18_av_write4_expect(cx, CXADEC_DL_CTL, in cx18_av_loadfw()
135 if (cx18_av_verifyfw(cx, fw) == 0) in cx18_av_loadfw()
136 cx18_av_write4_expect(cx, CXADEC_DL_CTL, in cx18_av_loadfw()
140 cx18_av_and_or4(cx, CXADEC_PIN_CTRL1, ~0, 0x78000); in cx18_av_loadfw()
147 cx18_av_write4(cx, CXADEC_I2S_IN_CTL, 0x000000A0); in cx18_av_loadfw()
156 cx18_av_write4(cx, CXADEC_I2S_OUT_CTL, 0x000001A0); in cx18_av_loadfw()
160 cx18_av_write4(cx, CXADEC_PIN_CFG3, 0x5600B687); in cx18_av_loadfw()
162 cx18_av_write4_expect(cx, CXADEC_STD_DET_CTL, 0x000000F6, 0x000000F6, in cx18_av_loadfw()
169 cx18_av_write4(cx, 0x09CC, 1); in cx18_av_loadfw()
171 v = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_av_loadfw()
174 cx18_write_reg_expect(cx, v & 0xFFFFFBFF, CX18_AUDIO_ENABLE, in cx18_av_loadfw()
178 v = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_av_loadfw()
184 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_av_loadfw()
191 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_av_loadfw()
196 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_av_loadfw()
200 v = cx18_av_read4(cx, CXADEC_STD_DET_CTL); in cx18_av_loadfw()
204 cx18_av_write4_expect(cx, CXADEC_STD_DET_CTL, v, v, 0x3F00FFFF); in cx18_av_loadfw()