Lines Matching +full:1 +full:c
5 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
15 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_set_frontend_t() local
48 c->delivery_system, c->modulation, c->frequency, in cxd2820r_set_frontend_t()
49 c->bandwidth_hz, c->inversion); in cxd2820r_set_frontend_t()
51 switch (c->bandwidth_hz) { in cxd2820r_set_frontend_t()
57 bw_i = 1; in cxd2820r_set_frontend_t()
58 bw_param = 1; in cxd2820r_set_frontend_t()
94 buf[1] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_t()
127 struct dtv_frontend_properties *c) in cxd2820r_get_frontend_t() argument
143 c->modulation = QPSK; in cxd2820r_get_frontend_t()
145 case 1: in cxd2820r_get_frontend_t()
146 c->modulation = QAM_16; in cxd2820r_get_frontend_t()
149 c->modulation = QAM_64; in cxd2820r_get_frontend_t()
153 switch ((buf[1] >> 1) & 0x03) { in cxd2820r_get_frontend_t()
155 c->transmission_mode = TRANSMISSION_MODE_2K; in cxd2820r_get_frontend_t()
157 case 1: in cxd2820r_get_frontend_t()
158 c->transmission_mode = TRANSMISSION_MODE_8K; in cxd2820r_get_frontend_t()
162 switch ((buf[1] >> 3) & 0x03) { in cxd2820r_get_frontend_t()
164 c->guard_interval = GUARD_INTERVAL_1_32; in cxd2820r_get_frontend_t()
166 case 1: in cxd2820r_get_frontend_t()
167 c->guard_interval = GUARD_INTERVAL_1_16; in cxd2820r_get_frontend_t()
170 c->guard_interval = GUARD_INTERVAL_1_8; in cxd2820r_get_frontend_t()
173 c->guard_interval = GUARD_INTERVAL_1_4; in cxd2820r_get_frontend_t()
179 c->hierarchy = HIERARCHY_NONE; in cxd2820r_get_frontend_t()
181 case 1: in cxd2820r_get_frontend_t()
182 c->hierarchy = HIERARCHY_1; in cxd2820r_get_frontend_t()
185 c->hierarchy = HIERARCHY_2; in cxd2820r_get_frontend_t()
188 c->hierarchy = HIERARCHY_4; in cxd2820r_get_frontend_t()
194 c->code_rate_HP = FEC_1_2; in cxd2820r_get_frontend_t()
196 case 1: in cxd2820r_get_frontend_t()
197 c->code_rate_HP = FEC_2_3; in cxd2820r_get_frontend_t()
200 c->code_rate_HP = FEC_3_4; in cxd2820r_get_frontend_t()
203 c->code_rate_HP = FEC_5_6; in cxd2820r_get_frontend_t()
206 c->code_rate_HP = FEC_7_8; in cxd2820r_get_frontend_t()
210 switch ((buf[1] >> 5) & 0x07) { in cxd2820r_get_frontend_t()
212 c->code_rate_LP = FEC_1_2; in cxd2820r_get_frontend_t()
214 case 1: in cxd2820r_get_frontend_t()
215 c->code_rate_LP = FEC_2_3; in cxd2820r_get_frontend_t()
218 c->code_rate_LP = FEC_3_4; in cxd2820r_get_frontend_t()
221 c->code_rate_LP = FEC_5_6; in cxd2820r_get_frontend_t()
224 c->code_rate_LP = FEC_7_8; in cxd2820r_get_frontend_t()
234 c->inversion = INVERSION_OFF; in cxd2820r_get_frontend_t()
236 case 1: in cxd2820r_get_frontend_t()
237 c->inversion = INVERSION_ON; in cxd2820r_get_frontend_t()
251 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_read_status_t() local
257 ret = regmap_bulk_read(priv->regmap[0], 0x0010, &buf[0], 1); in cxd2820r_read_status_t()
260 ret = regmap_bulk_read(priv->regmap[0], 0x0073, &buf[1], 1); in cxd2820r_read_status_t()
265 utmp2 = (buf[1] >> 3) & 0x01; in cxd2820r_read_status_t()
267 if (utmp1 == 6 && utmp2 == 1) { in cxd2820r_read_status_t()
270 } else if (utmp1 == 6 || utmp2 == 1) { in cxd2820r_read_status_t()
288 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_t()
293 c->strength.len = 1; in cxd2820r_read_status_t()
294 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_t()
295 c->strength.stat[0].uvalue = strength; in cxd2820r_read_status_t()
297 c->strength.len = 1; in cxd2820r_read_status_t()
298 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
309 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_t()
313 * 10000, (1 << 24)); in cxd2820r_read_status_t()
317 c->cnr.len = 1; in cxd2820r_read_status_t()
318 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_t()
319 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_t()
321 c->cnr.len = 1; in cxd2820r_read_status_t()
322 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
336 post_bit_error = buf[2] << 16 | buf[1] << 8 | in cxd2820r_read_status_t()
358 c->post_bit_error.len = 1; in cxd2820r_read_status_t()
359 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in cxd2820r_read_status_t()
360 c->post_bit_error.stat[0].uvalue = priv->post_bit_error; in cxd2820r_read_status_t()
362 c->post_bit_error.len = 1; in cxd2820r_read_status_t()
363 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
422 s->max_drift = (fe->ops.info.frequency_stepsize_hz * 2) + 1; in cxd2820r_get_tune_settings_t()