Lines Matching +full:0 +full:x0fffff
14 struct i2c_client *client = priv->client[0]; in cxd2820r_set_frontend_c()
21 { 0x00080, 0x01, 0xff }, in cxd2820r_set_frontend_c()
22 { 0x00081, 0x05, 0xff }, in cxd2820r_set_frontend_c()
23 { 0x00085, 0x07, 0xff }, in cxd2820r_set_frontend_c()
24 { 0x00088, 0x01, 0xff }, in cxd2820r_set_frontend_c()
26 { 0x00082, 0x20, 0x60 }, in cxd2820r_set_frontend_c()
27 { 0x1016a, 0x48, 0xff }, in cxd2820r_set_frontend_c()
28 { 0x100a5, 0x00, 0x01 }, in cxd2820r_set_frontend_c()
29 { 0x10020, 0x06, 0x07 }, in cxd2820r_set_frontend_c()
30 { 0x10059, 0x50, 0xff }, in cxd2820r_set_frontend_c()
31 { 0x10087, 0x0c, 0x3c }, in cxd2820r_set_frontend_c()
32 { 0x1008b, 0x07, 0xff }, in cxd2820r_set_frontend_c()
33 { 0x1001f, priv->if_agc_polarity << 7, 0x80 }, in cxd2820r_set_frontend_c()
34 { 0x10070, priv->ts_mode, 0xff }, in cxd2820r_set_frontend_c()
35 { 0x10071, !priv->ts_clk_inv << 4, 0x10 }, in cxd2820r_set_frontend_c()
67 utmp = 0x4000 - DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x4000, CXD2820R_CLK); in cxd2820r_set_frontend_c()
68 buf[0] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_c()
69 buf[1] = (utmp >> 0) & 0xff; in cxd2820r_set_frontend_c()
70 ret = regmap_bulk_write(priv->regmap[1], 0x0042, buf, 2); in cxd2820r_set_frontend_c()
74 ret = regmap_write(priv->regmap[0], 0x00ff, 0x08); in cxd2820r_set_frontend_c()
78 ret = regmap_write(priv->regmap[0], 0x00fe, 0x01); in cxd2820r_set_frontend_c()
92 struct i2c_client *client = priv->client[0]; in cxd2820r_get_frontend_c()
99 ret = regmap_bulk_read(priv->regmap[1], 0x001a, buf, 2); in cxd2820r_get_frontend_c()
103 c->symbol_rate = 2500 * ((buf[0] & 0x0f) << 8 | buf[1]); in cxd2820r_get_frontend_c()
105 ret = regmap_read(priv->regmap[1], 0x0019, &utmp); in cxd2820r_get_frontend_c()
109 switch ((utmp >> 0) & 0x07) { in cxd2820r_get_frontend_c()
110 case 0: in cxd2820r_get_frontend_c()
127 switch ((utmp >> 7) & 0x01) { in cxd2820r_get_frontend_c()
128 case 0: in cxd2820r_get_frontend_c()
145 struct i2c_client *client = priv->client[0]; in cxd2820r_read_status_c()
152 ret = regmap_bulk_read(priv->regmap[1], 0x0088, &buf[0], 1); in cxd2820r_read_status_c()
155 ret = regmap_bulk_read(priv->regmap[1], 0x0073, &buf[1], 1); in cxd2820r_read_status_c()
159 utmp1 = (buf[0] >> 0) & 0x01; in cxd2820r_read_status_c()
160 utmp2 = (buf[1] >> 3) & 0x01; in cxd2820r_read_status_c()
169 *status = 0; in cxd2820r_read_status_c()
179 ret = regmap_bulk_read(priv->regmap[1], 0x0049, buf, 2); in cxd2820r_read_status_c()
183 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_c()
185 /* Scale value to 0x0000-0xffff */ in cxd2820r_read_status_c()
189 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_c()
190 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_c()
193 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
200 ret = regmap_read(priv->regmap[1], 0x0019, &utmp); in cxd2820r_read_status_c()
204 if (((utmp >> 0) & 0x03) % 2) { in cxd2820r_read_status_c()
212 ret = regmap_read(priv->regmap[1], 0x004d, &utmp); in cxd2820r_read_status_c()
221 cnr = 0; in cxd2820r_read_status_c()
224 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_c()
225 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_c()
228 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
237 ret = regmap_bulk_read(priv->regmap[1], 0x0076, buf, 3); in cxd2820r_read_status_c()
241 if ((buf[2] >> 7) & 0x01) { in cxd2820r_read_status_c()
243 buf[0] << 0; in cxd2820r_read_status_c()
244 post_bit_error &= 0x0fffff; in cxd2820r_read_status_c()
247 post_bit_error = 0; in cxd2820r_read_status_c()
251 post_bit_error = 0; in cxd2820r_read_status_c()
256 ret = regmap_write(priv->regmap[1], 0x0079, 0x01); in cxd2820r_read_status_c()
265 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in cxd2820r_read_status_c()
266 c->post_bit_error.stat[0].uvalue = priv->post_bit_error; in cxd2820r_read_status_c()
269 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
281 struct i2c_client *client = priv->client[0]; in cxd2820r_init_c()
286 ret = regmap_write(priv->regmap[0], 0x0085, 0x07); in cxd2820r_init_c()
299 struct i2c_client *client = priv->client[0]; in cxd2820r_sleep_c()
302 { 0x000ff, 0x1f, 0xff }, in cxd2820r_sleep_c()
303 { 0x00085, 0x00, 0xff }, in cxd2820r_sleep_c()
304 { 0x00088, 0x01, 0xff }, in cxd2820r_sleep_c()
305 { 0x00081, 0x00, 0xff }, in cxd2820r_sleep_c()
306 { 0x00080, 0x00, 0xff }, in cxd2820r_sleep_c()
327 s->step_size = 0; /* no zigzag */ in cxd2820r_get_tune_settings_c()
328 s->max_drift = 0; in cxd2820r_get_tune_settings_c()
330 return 0; in cxd2820r_get_tune_settings_c()