Lines Matching +full:2 +full:ppm

44 	struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 };  in l64781_writereg()
61 ret = i2c_transfer(state->i2c, msg, 2); in l64781_readreg()
63 if (ret != 2) return ret; in l64781_readreg()
113 static const u8 fec_tab[] = { 7, 0, 1, 2, 9, 3, 10, 4 }; in apply_frontend_param()
115 static const u8 qam_tab [] = { 2, 4, 0, 6 }; in apply_frontend_param()
116 static const u8 guard_tab [] = { 1, 2, 4, 8 }; in apply_frontend_param()
118 static const u32 ppm = 8000; in apply_frontend_param() local
120 /* u32 ddfs_offset_variable = 0x6000-((1000000UL+ppm)/ */ in apply_frontend_param()
179 ddfs_offset_fixed = 0x4000-(ppm<<16)/bw/1000000; in apply_frontend_param()
181 /* This works up to 20000 ppm, it overflows if too large ppm! */ in apply_frontend_param()
182 init_freq = (((8UL<<25) + (8UL<<19) / 25*ppm / (15625/25)) / in apply_frontend_param()
186 /* will work for high ppm only... */ in apply_frontend_param()
194 spi_bias /= 1000 + ppm/1000; in apply_frontend_param()
197 val0x04 = (p->transmission_mode << 2) | p->guard_interval; in apply_frontend_param()
203 val0x06 = (p->hierarchy << 2) | p->modulation; in apply_frontend_param()
249 case 2: in get_frontend()
256 switch((tmp >> 2) & 3) { in get_frontend()
275 case 2: in get_frontend()
294 case 2: in get_frontend()
315 case 2: in get_frontend()
321 switch((tmp >> 2) & 7) { in get_frontend()
328 case 2: in get_frontend()
455 /* With ppm=8000, it seems the DTR_SENSITIVITY will result in in l64781_init()
456 value of 2 with all possible bandwidths and guard in l64781_init()
518 if (i2c_transfer(state->i2c, msg, 2) != 2) { in l64781_attach()
546 dprintk("Read 2 returned unexpected value\n"); in l64781_attach()