Lines Matching +full:0 +full:x29

36 	} while (0)
40 0x04, 0x00, 0x4a, 0x79, 0x04, 0x00, 0xff, 0xea,
41 0x48, 0x42, 0x79, 0x60, 0x70, 0x52, 0x9a, 0x10,
42 0x0e, 0x10, 0xf2, 0xa7, 0x93, 0x0b, 0x05, 0xc8,
43 0x9d, 0x00, 0x42, 0x80, 0x00, 0x60, 0x40, 0x00,
44 0x00, 0x75, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00,
45 0x00, 0x00, 0x00, 0x00
53 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in tda8083_writereg()
61 return (ret != 1) ? -1 : 0; in tda8083_writereg()
67 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = &reg1, .len =… in tda8083_readregs()
76 return ret == 2 ? 0 : -1; in tda8083_readregs()
93 return 0; in tda8083_set_inversion()
101 return tda8083_writereg (state, 0x07, 0xff); in tda8083_set_fec()
104 return tda8083_writereg (state, 0x07, 1 << (FEC_8_9 - fec)); in tda8083_set_fec()
117 index = tda8083_readreg(state, 0x0e) & 0x07; in tda8083_get_fec()
133 filter = 0; in tda8083_set_symbolrate()
150 tda8083_writereg (state, 0x05, filter); in tda8083_set_symbolrate()
151 tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff); in tda8083_set_symbolrate()
152 tda8083_writereg (state, 0x03, (ratio >> 8) & 0xff); in tda8083_set_symbolrate()
153 tda8083_writereg (state, 0x04, (ratio ) & 0xff); in tda8083_set_symbolrate()
155 tda8083_writereg (state, 0x00, 0x3c); in tda8083_set_symbolrate()
156 tda8083_writereg (state, 0x00, 0x04); in tda8083_set_symbolrate()
166 !(tda8083_readreg(state, 0x02) & 0x80)) in tda8083_wait_diseqc_fifo()
175 tda8083_writereg (state, 0x26, 0xf1); in tda8083_set_tone()
179 return tda8083_writereg (state, 0x29, 0x00); in tda8083_set_tone()
181 return tda8083_writereg (state, 0x29, 0x80); in tda8083_set_tone()
192 return tda8083_writereg (state, 0x20, 0x00); in tda8083_set_voltage()
194 return tda8083_writereg (state, 0x20, 0x11); in tda8083_set_voltage()
205 tda8083_writereg (state, 0x29, (5 << 2)); /* send burst A */ in tda8083_send_diseqc_burst()
208 tda8083_writereg (state, 0x29, (7 << 2)); /* send B */ in tda8083_send_diseqc_burst()
216 return 0; in tda8083_send_diseqc_burst()
225 tda8083_writereg (state, 0x29, (m->msg_len - 3) | (1 << 2)); /* enable */ in tda8083_send_diseqc_msg()
227 for (i=0; i<m->msg_len; i++) in tda8083_send_diseqc_msg()
228 tda8083_writereg (state, 0x23 + i, m->msg[i]); in tda8083_send_diseqc_msg()
230 tda8083_writereg (state, 0x29, (m->msg_len - 3) | (3 << 2)); /* send!! */ in tda8083_send_diseqc_msg()
234 return 0; in tda8083_send_diseqc_msg()
242 u8 signal = ~tda8083_readreg (state, 0x01); in tda8083_read_status()
243 u8 sync = tda8083_readreg (state, 0x02); in tda8083_read_status()
245 *status = 0; in tda8083_read_status()
250 if (sync & 0x01) in tda8083_read_status()
253 if (sync & 0x02) in tda8083_read_status()
256 if (sync & 0x10) in tda8083_read_status()
259 if (sync & 0x20) /* frontend can not lock */ in tda8083_read_status()
262 if ((sync & 0x1f) == 0x1f) in tda8083_read_status()
265 return 0; in tda8083_read_status()
274 if ((ret = tda8083_readregs(state, 0x0b, buf, sizeof(buf)))) in tda8083_read_ber()
277 *ber = ((buf[0] & 0x1f) << 16) | (buf[1] << 8) | buf[2]; in tda8083_read_ber()
279 return 0; in tda8083_read_ber()
286 u8 signal = ~tda8083_readreg (state, 0x01); in tda8083_read_signal_strength()
289 return 0; in tda8083_read_signal_strength()
296 u8 _snr = tda8083_readreg (state, 0x08); in tda8083_read_snr()
299 return 0; in tda8083_read_snr()
306 *ucblocks = tda8083_readreg(state, 0x0f); in tda8083_read_ucblocks()
307 if (*ucblocks == 0xff) in tda8083_read_ucblocks()
308 *ucblocks = 0xffffffff; in tda8083_read_ucblocks()
310 return 0; in tda8083_read_ucblocks()
320 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); in tda8083_set_frontend()
327 tda8083_writereg (state, 0x00, 0x3c); in tda8083_set_frontend()
328 tda8083_writereg (state, 0x00, 0x04); in tda8083_set_frontend()
330 return 0; in tda8083_set_frontend()
340 p->inversion = (tda8083_readreg (state, 0x0e) & 0x80) ? in tda8083_get_frontend()
345 return 0; in tda8083_get_frontend()
352 tda8083_writereg (state, 0x00, 0x02); in tda8083_sleep()
353 return 0; in tda8083_sleep()
361 for (i=0; i<44; i++) in tda8083_init()
364 tda8083_writereg (state, 0x00, 0x3c); in tda8083_init()
365 tda8083_writereg (state, 0x00, 0x04); in tda8083_init()
367 return 0; in tda8083_init()
376 tda8083_writereg (state, 0x00, 0x3c); in tda8083_diseqc_send_burst()
377 tda8083_writereg (state, 0x00, 0x04); in tda8083_diseqc_send_burst()
379 return 0; in tda8083_diseqc_send_burst()
388 tda8083_writereg (state, 0x00, 0x3c); in tda8083_diseqc_set_tone()
389 tda8083_writereg (state, 0x00, 0x04); in tda8083_diseqc_set_tone()
391 return 0; in tda8083_diseqc_set_tone()
400 tda8083_writereg (state, 0x00, 0x3c); in tda8083_diseqc_set_voltage()
401 tda8083_writereg (state, 0x00, 0x04); in tda8083_diseqc_set_voltage()
403 return 0; in tda8083_diseqc_set_voltage()
428 if ((tda8083_readreg(state, 0x00)) != 0x05) goto error; in tda8083_attach()