Lines Matching refs:identity
182 struct dib0090_identity identity; member
206 struct dib0090_identity identity; member
347 struct dib0090_identity *identity = &state->identity; in dib0090_identify() local
351 identity->p1g = 0; in dib0090_identify()
352 identity->in_soc = 0; in dib0090_identify()
359 identity->version = v & 0xff; in dib0090_identify()
360 identity->product = (v >> 8) & 0xf; in dib0090_identify()
362 if (identity->product != KROSUS) in dib0090_identify()
365 if ((identity->version & 0x3) == SOC) { in dib0090_identify()
366 identity->in_soc = 1; in dib0090_identify()
367 switch (identity->version) { in dib0090_identify()
370 identity->p1g = 1; in dib0090_identify()
374 identity->p1g = 1; in dib0090_identify()
378 identity->p1g = 1; in dib0090_identify()
382 identity->p1g = 1; in dib0090_identify()
388 switch ((identity->version >> 5) & 0x7) { in dib0090_identify()
405 switch (identity->version & 0x1f) { in dib0090_identify()
408 identity->p1g = 1; in dib0090_identify()
412 identity->p1g = 1; in dib0090_identify()
438 struct dib0090_identity *identity = &state->identity; in dib0090_fw_identify() local
441 identity->p1g = 0; in dib0090_fw_identify()
442 identity->in_soc = 0; in dib0090_fw_identify()
449 identity->version = v & 0xff; in dib0090_fw_identify()
450 identity->product = (v >> 8) & 0xf; in dib0090_fw_identify()
452 if (identity->product != KROSUS) in dib0090_fw_identify()
455 if ((identity->version & 0x3) == SOC) { in dib0090_fw_identify()
456 identity->in_soc = 1; in dib0090_fw_identify()
457 switch (identity->version) { in dib0090_fw_identify()
460 identity->p1g = 1; in dib0090_fw_identify()
464 identity->p1g = 1; in dib0090_fw_identify()
468 identity->p1g = 1; in dib0090_fw_identify()
472 identity->p1g = 1; in dib0090_fw_identify()
478 switch ((identity->version >> 5) & 0x7) { in dib0090_fw_identify()
495 switch (identity->version & 0x1f) { in dib0090_fw_identify()
498 identity->p1g = 1; in dib0090_fw_identify()
502 identity->p1g = 1; in dib0090_fw_identify()
1103 if (state->identity.in_soc) { in dib0090_pwm_gain_reset()
1105 … if (state->identity.version == SOC_8090_P1G_11R1 || state->identity.version == SOC_8090_P1G_21R1) in dib0090_pwm_gain_reset()
1107 else if (state->identity.version == SOC_7090_P1G_11R1 in dib0090_pwm_gain_reset()
1108 || state->identity.version == SOC_7090_P1G_21R1) { in dib0090_pwm_gain_reset()
1125 if (state->identity.in_soc) { in dib0090_pwm_gain_reset()
1134 if (state->identity.in_soc) { in dib0090_pwm_gain_reset()
1135 … if (state->identity.version == SOC_8090_P1G_11R1 || state->identity.version == SOC_8090_P1G_21R1) in dib0090_pwm_gain_reset()
1137 …else if (state->identity.version == SOC_7090_P1G_11R1 || state->identity.version == SOC_7090_P1G_2… in dib0090_pwm_gain_reset()
1169 if (state->identity.in_soc) in dib0090_get_slow_adc_val()
1195 if (state->current_band == BAND_VHF && !state->identity.p1g) { in dib0090_gain_control()
1201 if (state->current_band == BAND_CBAND && !state->identity.p1g) { in dib0090_gain_control()
1206 …if ((state->current_band == BAND_CBAND || state->current_band == BAND_VHF) && state->identity.p1g)… in dib0090_gain_control()
1242 if (wbd_error < 0 && state->rf_gain_limit > 0 && !state->identity.p1g) { in dib0090_gain_control()
1423 if ((!state->identity.p1g) || (!state->identity.in_soc) in dib0090_update_rframp_7090()
1424 || ((state->identity.version != SOC_7090_P1G_21R1) in dib0090_update_rframp_7090()
1425 && (state->identity.version != SOC_7090_P1G_11R1))) { in dib0090_update_rframp_7090()
1534 if ((state->identity.version == P1D_E_F) || in dib0090_set_EFUSE()
1535 (state->identity.version == P1G) || (e2 == 0xffff)) { in dib0090_set_EFUSE()
1576 if (!(state->identity.version & 0x1)) /* it is P1B - reset is already done */ in dib0090_reset()
1580 if (!state->identity.in_soc) { in dib0090_reset()
1589 if (state->identity.in_soc) in dib0090_reset()
1592 if (state->identity.p1g) in dib0090_reset()
1596 if (((state->identity.version & 0x1f) >= P1D_E_F) || (state->identity.in_soc)) in dib0090_reset()
1715 if (state->identity.p1g) in dib0090_dc_offset_calibration()
1861 if (state->identity.in_soc) { in dib0090_set_bandwidth()
2072 if ((!state->identity.p1g) || (!state->identity.in_soc) in dib0090_update_tuning_table_7090()
2073 || ((state->identity.version != SOC_7090_P1G_21R1) in dib0090_update_tuning_table_7090()
2074 && (state->identity.version != SOC_7090_P1G_11R1))) { in dib0090_update_tuning_table_7090()
2105 if (state->identity.version == SOC_8090_P1G_11R1 || state->identity.version == SOC_8090_P1G_21R1) in dib0090_captrim_search()
2115 if (!state->identity.p1g || force_soft_search) in dib0090_captrim_search()
2120 if (!state->identity.p1g || force_soft_search) { in dib0090_captrim_search()
2130 if (state->identity.p1g && !force_soft_search) { in dib0090_captrim_search()
2140 if (state->identity.in_soc) in dib0090_captrim_search()
2146 if (state->identity.p1g && !force_soft_search) { in dib0090_captrim_search()
2159 …if (state->rest == 0 || state->identity.in_soc) { /* Just for 8090P SOCS where auto captrim HW bug… in dib0090_captrim_search()
2292 if (state->config->use_pwm_agc && state->identity.in_soc) { in dib0090_tune()
2333 if (state->identity.p1g) in dib0090_tune()
2336 tmp = (state->identity.version >> 5) & 0x7; in dib0090_tune()
2338 if (state->identity.in_soc) { in dib0090_tune()
2364 if (state->identity.p1g) in dib0090_tune()
2370 if (state->identity.p1g) in dib0090_tune()
2423 if (state->identity.p1g) { /* Bias is done automatically in P1G */ in dib0090_tune()
2424 if (state->identity.in_soc) { in dib0090_tune()
2425 if (state->identity.version == SOC_8090_P1G_11R1) in dib0090_tune()
2436 if (state->identity.in_soc) in dib0090_tune()
2438 else if (state->identity.p1g || (Rest == 0)) in dib0090_tune()
2451 if (state->identity.in_soc) in dib0090_tune()
2508 if ((tune->tuner_enable == EN_CAB) && state->identity.p1g) { in dib0090_tune()