intp 2221 drivers/input/mouse/cyapa_gen5.c s32 *intp; intp 2230 drivers/input/mouse/cyapa_gen5.c intp = (s32 *)buffer; intp 2278 drivers/input/mouse/cyapa_gen5.c if (intp) intp 2279 drivers/input/mouse/cyapa_gen5.c put_unaligned_le32(value, &intp[count]); intp 118 drivers/media/dvb-frontends/stv0900_core.c void stv0900_write_reg(struct stv0900_internal *intp, u16 reg_addr, intp 124 drivers/media/dvb-frontends/stv0900_core.c .addr = intp->i2c_addr, intp 134 drivers/media/dvb-frontends/stv0900_core.c ret = i2c_transfer(intp->i2c_adap, &i2cmsg, 1); intp 139 drivers/media/dvb-frontends/stv0900_core.c u8 stv0900_read_reg(struct stv0900_internal *intp, u16 reg) intp 146 drivers/media/dvb-frontends/stv0900_core.c .addr = intp->i2c_addr, intp 151 drivers/media/dvb-frontends/stv0900_core.c .addr = intp->i2c_addr, intp 158 drivers/media/dvb-frontends/stv0900_core.c ret = i2c_transfer(intp->i2c_adap, msg, 2); intp 180 drivers/media/dvb-frontends/stv0900_core.c void stv0900_write_bits(struct stv0900_internal *intp, u32 label, u8 val) intp 184 drivers/media/dvb-frontends/stv0900_core.c reg = stv0900_read_reg(intp, (label >> 16) & 0xffff); intp 190 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, (label >> 16) & 0xffff, reg); intp 194 drivers/media/dvb-frontends/stv0900_core.c u8 stv0900_get_bits(struct stv0900_internal *intp, u32 label) intp 201 drivers/media/dvb-frontends/stv0900_core.c val = stv0900_read_reg(intp, label >> 16); intp 207 drivers/media/dvb-frontends/stv0900_core.c static enum fe_stv0900_error stv0900_initialize(struct stv0900_internal *intp) intp 211 drivers/media/dvb-frontends/stv0900_core.c if (intp == NULL) intp 214 drivers/media/dvb-frontends/stv0900_core.c intp->chip_id = stv0900_read_reg(intp, R0900_MID); intp 216 drivers/media/dvb-frontends/stv0900_core.c if (intp->errs != STV0900_NO_ERROR) intp 217 drivers/media/dvb-frontends/stv0900_core.c return intp->errs; intp 220 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_DMDISTATE, 0x5c); intp 221 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_DMDISTATE, 0x5c); intp 223 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRCFG, 0x6c); intp 224 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRCFG, 0x6f); intp 225 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_I2CRPT, 0x20); intp 226 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_I2CRPT, 0x20); intp 227 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_NCOARSE, 0x13); intp 229 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_I2CCFG, 0x08); intp 231 drivers/media/dvb-frontends/stv0900_core.c switch (intp->clkmode) { intp 234 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_SYNTCTRL, 0x20 intp 235 drivers/media/dvb-frontends/stv0900_core.c | intp->clkmode); intp 239 drivers/media/dvb-frontends/stv0900_core.c i = 0x02 & stv0900_read_reg(intp, R0900_SYNTCTRL); intp 240 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_SYNTCTRL, 0x20 | i); intp 246 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, STV0900_InitVal[i][0], intp 249 drivers/media/dvb-frontends/stv0900_core.c if (stv0900_read_reg(intp, R0900_MID) >= 0x20) { intp 250 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSGENERAL, 0x0c); intp 252 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, STV0900_Cut20_AddOnVal[i][0], intp 256 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_FSPYCFG, 0x6c); intp 257 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_FSPYCFG, 0x6c); intp 259 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_PDELCTRL2, 0x01); intp 260 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_PDELCTRL2, 0x21); intp 262 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_PDELCTRL3, 0x20); intp 263 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_PDELCTRL3, 0x20); intp 265 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSTRES0, 0x80); intp 266 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSTRES0, 0x00); intp 271 drivers/media/dvb-frontends/stv0900_core.c static u32 stv0900_get_mclk_freq(struct stv0900_internal *intp, u32 ext_clk) intp 275 drivers/media/dvb-frontends/stv0900_core.c div = stv0900_get_bits(intp, F0900_M_DIV); intp 276 drivers/media/dvb-frontends/stv0900_core.c ad_div = ((stv0900_get_bits(intp, F0900_SELX1RATIO) == 1) ? 4 : 6); intp 285 drivers/media/dvb-frontends/stv0900_core.c static enum fe_stv0900_error stv0900_set_mclk(struct stv0900_internal *intp, u32 mclk) intp 289 drivers/media/dvb-frontends/stv0900_core.c if (intp == NULL) intp 292 drivers/media/dvb-frontends/stv0900_core.c if (intp->errs) intp 296 drivers/media/dvb-frontends/stv0900_core.c intp->quartz); intp 298 drivers/media/dvb-frontends/stv0900_core.c clk_sel = ((stv0900_get_bits(intp, F0900_SELX1RATIO) == 1) ? 4 : 6); intp 299 drivers/media/dvb-frontends/stv0900_core.c m_div = ((clk_sel * mclk) / intp->quartz) - 1; intp 300 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_M_DIV, m_div); intp 301 drivers/media/dvb-frontends/stv0900_core.c intp->mclk = stv0900_get_mclk_freq(intp, intp 302 drivers/media/dvb-frontends/stv0900_core.c intp->quartz); intp 310 drivers/media/dvb-frontends/stv0900_core.c m_div = intp->mclk / 704000; intp 311 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_F22TX, m_div); intp 312 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_F22RX, m_div); intp 314 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_F22TX, m_div); intp 315 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_F22RX, m_div); intp 317 drivers/media/dvb-frontends/stv0900_core.c if ((intp->errs)) intp 323 drivers/media/dvb-frontends/stv0900_core.c static u32 stv0900_get_err_count(struct stv0900_internal *intp, int cntr, intp 331 drivers/media/dvb-frontends/stv0900_core.c hsb = stv0900_get_bits(intp, ERR_CNT12); intp 332 drivers/media/dvb-frontends/stv0900_core.c msb = stv0900_get_bits(intp, ERR_CNT11); intp 333 drivers/media/dvb-frontends/stv0900_core.c lsb = stv0900_get_bits(intp, ERR_CNT10); intp 336 drivers/media/dvb-frontends/stv0900_core.c hsb = stv0900_get_bits(intp, ERR_CNT22); intp 337 drivers/media/dvb-frontends/stv0900_core.c msb = stv0900_get_bits(intp, ERR_CNT21); intp 338 drivers/media/dvb-frontends/stv0900_core.c lsb = stv0900_get_bits(intp, ERR_CNT20); intp 350 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 353 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, I2CT_ON, enable); intp 358 drivers/media/dvb-frontends/stv0900_core.c static void stv0900_set_ts_parallel_serial(struct stv0900_internal *intp, intp 365 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id >= 0x20) { intp 373 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSGENERAL, intp 378 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSGENERAL, intp 380 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, intp 382 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, intp 384 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 386 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 398 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 403 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 418 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSGENERAL1X, intp 423 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSGENERAL1X, intp 425 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, intp 427 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, intp 429 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TSSPEED, intp 431 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TSSPEED, intp 444 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSGENERAL1X, intp 449 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSGENERAL1X, intp 461 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_SERIAL, 0x00); intp 462 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_DVBCI, 0x00); intp 465 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_SERIAL, 0x00); intp 466 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_DVBCI, 0x01); intp 469 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_SERIAL, 0x01); intp 470 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_DVBCI, 0x00); intp 473 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_SERIAL, 0x01); intp 474 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TSFIFO_DVBCI, 0x01); intp 482 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_SERIAL, 0x00); intp 483 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_DVBCI, 0x00); intp 486 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_SERIAL, 0x00); intp 487 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_DVBCI, 0x01); intp 490 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_SERIAL, 0x01); intp 491 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_DVBCI, 0x00); intp 494 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_SERIAL, 0x01); intp 495 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TSFIFO_DVBCI, 0x01); intp 501 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_RST_HWARE, 1); intp 502 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_RST_HWARE, 0); intp 503 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_RST_HWARE, 1); intp 504 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_RST_HWARE, 0); intp 550 drivers/media/dvb-frontends/stv0900_core.c u32 stv0900_get_freq_auto(struct stv0900_internal *intp, int demod) intp 558 drivers/media/dvb-frontends/stv0900_core.c freq = (stv0900_get_bits(intp, TUN_RFFREQ2) << 10) + intp 559 drivers/media/dvb-frontends/stv0900_core.c (stv0900_get_bits(intp, TUN_RFFREQ1) << 2) + intp 560 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, TUN_RFFREQ0); intp 564 drivers/media/dvb-frontends/stv0900_core.c round = (stv0900_get_bits(intp, TUN_RFRESTE1) >> 2) + intp 565 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, TUN_RFRESTE0); intp 572 drivers/media/dvb-frontends/stv0900_core.c void stv0900_set_tuner_auto(struct stv0900_internal *intp, u32 Frequency, intp 581 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, TUN_RFFREQ2, (tunerFrequency >> 10)); intp 582 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, TUN_RFFREQ1, (tunerFrequency >> 2) & 0xff); intp 583 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, TUN_RFFREQ0, (tunerFrequency & 0x03)); intp 585 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, TUN_BW, Bandwidth / 2000000); intp 587 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, TNRLD, 1); intp 590 drivers/media/dvb-frontends/stv0900_core.c static s32 stv0900_get_rf_level(struct stv0900_internal *intp, intp 605 drivers/media/dvb-frontends/stv0900_core.c agc_gain = MAKEWORD(stv0900_get_bits(intp, AGCIQ_VALUE1), intp 606 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, AGCIQ_VALUE0)); intp 662 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 683 drivers/media/dvb-frontends/stv0900_core.c if (stv0900_get_bits(intp, LOCK_DEFINITIF)) { intp 688 drivers/media/dvb-frontends/stv0900_core.c regval += MAKEWORD(stv0900_get_bits(intp, intp 690 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, intp 728 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 738 drivers/media/dvb-frontends/stv0900_core.c err_val1 = stv0900_read_reg(intp, BBFCRCKO1); intp 739 drivers/media/dvb-frontends/stv0900_core.c err_val0 = stv0900_read_reg(intp, BBFCRCKO0); intp 743 drivers/media/dvb-frontends/stv0900_core.c err_val1 = stv0900_read_reg(intp, UPCRCKO1); intp 744 drivers/media/dvb-frontends/stv0900_core.c err_val0 = stv0900_read_reg(intp, UPCRCKO0); intp 768 drivers/media/dvb-frontends/stv0900_core.c static u32 stv0900_get_ber(struct stv0900_internal *intp, intp 774 drivers/media/dvb-frontends/stv0900_core.c demod_state = stv0900_get_bits(intp, HEADER_MODE); intp 786 drivers/media/dvb-frontends/stv0900_core.c ber += stv0900_get_err_count(intp, 0, demod); intp 790 drivers/media/dvb-frontends/stv0900_core.c if (stv0900_get_bits(intp, PRFVIT)) { intp 800 drivers/media/dvb-frontends/stv0900_core.c ber += stv0900_get_err_count(intp, 0, demod); intp 804 drivers/media/dvb-frontends/stv0900_core.c if (stv0900_get_bits(intp, PKTDELIN_LOCK)) { intp 825 drivers/media/dvb-frontends/stv0900_core.c int stv0900_get_demod_lock(struct stv0900_internal *intp, intp 834 drivers/media/dvb-frontends/stv0900_core.c dmd_state = stv0900_get_bits(intp, HEADER_MODE); intp 844 drivers/media/dvb-frontends/stv0900_core.c lock = stv0900_get_bits(intp, LOCK_DEFINITIF); intp 862 drivers/media/dvb-frontends/stv0900_core.c void stv0900_stop_all_s2_modcod(struct stv0900_internal *intp, intp 873 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, regflist + i, 0xff); intp 876 drivers/media/dvb-frontends/stv0900_core.c void stv0900_activate_s2_modcod(struct stv0900_internal *intp, intp 887 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id <= 0x11) { intp 890 drivers/media/dvb-frontends/stv0900_core.c mod_code = stv0900_read_reg(intp, PLHMODCOD); intp 916 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, reg_index, intp 919 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, reg_index, intp 923 drivers/media/dvb-frontends/stv0900_core.c } else if (intp->chip_id >= 0x12) { intp 925 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLST0 + reg_index, 0xff); intp 927 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLSTE, 0xff); intp 928 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLSTF, 0xcf); intp 930 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLST7 + reg_index, 0xcc); intp 936 drivers/media/dvb-frontends/stv0900_core.c void stv0900_activate_s2_modcod_single(struct stv0900_internal *intp, intp 943 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLST0, 0xff); intp 944 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLST1, 0xf0); intp 945 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLSTF, 0x0f); intp 947 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, MODCODLST2 + reg_index, 0); intp 956 drivers/media/dvb-frontends/stv0900_core.c void stv0900_start_search(struct stv0900_internal *intp, intp 962 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DEMOD_MODE, 0x1f); intp 963 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id == 0x10) intp 964 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CORRELEXP, 0xaa); intp 966 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id < 0x20) intp 967 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARHDR, 0x55); intp 969 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id <= 0x20) { intp 970 drivers/media/dvb-frontends/stv0900_core.c if (intp->symbol_rate[0] <= 5000000) { intp 971 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARCFG, 0x44); intp 972 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CFRUP1, 0x0f); intp 973 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CFRUP0, 0xff); intp 974 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CFRLOW1, 0xf0); intp 975 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CFRLOW0, 0x00); intp 976 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, RTCS2, 0x68); intp 978 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARCFG, 0xc4); intp 979 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, RTCS2, 0x44); intp 983 drivers/media/dvb-frontends/stv0900_core.c if (intp->symbol_rate[demod] <= 5000000) intp 984 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, RTCS2, 0x68); intp 986 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, RTCS2, 0x44); intp 988 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARCFG, 0x46); intp 989 drivers/media/dvb-frontends/stv0900_core.c if (intp->srch_algo[demod] == STV0900_WARM_START) { intp 991 drivers/media/dvb-frontends/stv0900_core.c freq /= (intp->mclk / 1000); intp 994 drivers/media/dvb-frontends/stv0900_core.c freq = (intp->srch_range[demod] / 2000); intp 995 drivers/media/dvb-frontends/stv0900_core.c if (intp->symbol_rate[demod] <= 5000000) intp 1001 drivers/media/dvb-frontends/stv0900_core.c freq /= (intp->mclk / 1000); intp 1005 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, CFR_UP1, MSB(freq_s16)); intp 1006 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, CFR_UP0, LSB(freq_s16)); intp 1008 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, CFR_LOW1, MSB(freq_s16)); intp 1009 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, CFR_LOW0, LSB(freq_s16)); intp 1012 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CFRINIT1, 0); intp 1013 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CFRINIT0, 0); intp 1015 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id >= 0x20) { intp 1016 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, EQUALCFG, 0x41); intp 1017 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, FFECFG, 0x41); intp 1019 drivers/media/dvb-frontends/stv0900_core.c if ((intp->srch_standard[demod] == STV0900_SEARCH_DVBS1) || intp 1020 drivers/media/dvb-frontends/stv0900_core.c (intp->srch_standard[demod] == STV0900_SEARCH_DSS) || intp 1021 drivers/media/dvb-frontends/stv0900_core.c (intp->srch_standard[demod] == STV0900_AUTO_SEARCH)) { intp 1022 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, VITSCALE, intp 1024 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, VAVSRVIT, 0x0); intp 1028 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, SFRSTEP, 0x00); intp 1029 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, TMGTHRISE, 0xe0); intp 1030 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, TMGTHFALL, 0xc0); intp 1031 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, SCAN_ENABLE, 0); intp 1032 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, CFR_AUTOSCAN, 0); intp 1033 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, S1S2_SEQUENTIAL, 0); intp 1034 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, RTC, 0x88); intp 1035 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id >= 0x20) { intp 1036 drivers/media/dvb-frontends/stv0900_core.c if (intp->symbol_rate[demod] < 2000000) { intp 1037 drivers/media/dvb-frontends/stv0900_core.c if (intp->chip_id <= 0x20) intp 1038 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARFREQ, 0x39); intp 1040 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARFREQ, 0x89); intp 1042 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARHDR, 0x40); intp 1043 drivers/media/dvb-frontends/stv0900_core.c } else if (intp->symbol_rate[demod] < 10000000) { intp 1044 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARFREQ, 0x4c); intp 1045 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARHDR, 0x20); intp 1047 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARFREQ, 0x4b); intp 1048 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARHDR, 0x20); intp 1052 drivers/media/dvb-frontends/stv0900_core.c if (intp->symbol_rate[demod] < 10000000) intp 1053 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARFREQ, 0xef); intp 1055 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, CARFREQ, 0xed); intp 1058 drivers/media/dvb-frontends/stv0900_core.c switch (intp->srch_algo[demod]) { intp 1060 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 1061 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, DMDISTATE, 0x18); intp 1064 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 1065 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, DMDISTATE, 0x15); intp 1258 drivers/media/dvb-frontends/stv0900_core.c enum fe_stv0900_error stv0900_st_dvbs2_single(struct stv0900_internal *intp, intp 1269 drivers/media/dvb-frontends/stv0900_core.c if ((intp->demod_mode != STV0900_DUAL) intp 1270 drivers/media/dvb-frontends/stv0900_core.c || (stv0900_get_bits(intp, F0900_DDEMOD) != 1)) { intp 1271 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_GENCFG, 0x1d); intp 1273 drivers/media/dvb-frontends/stv0900_core.c intp->demod_mode = STV0900_DUAL; intp 1275 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_FRESFEC, 1); intp 1276 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_FRESFEC, 0); intp 1279 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 1283 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 1287 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_MODCODLSTE, 0xff); intp 1288 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_MODCODLSTF, 0xcf); intp 1291 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 1295 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 1299 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_MODCODLSTE, 0xff); intp 1300 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_MODCODLSTF, 0xcf); intp 1306 drivers/media/dvb-frontends/stv0900_core.c stv0900_stop_all_s2_modcod(intp, STV0900_DEMOD_1); intp 1307 drivers/media/dvb-frontends/stv0900_core.c stv0900_activate_s2_modcod_single(intp, intp 1309 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_GENCFG, 0x06); intp 1311 drivers/media/dvb-frontends/stv0900_core.c stv0900_stop_all_s2_modcod(intp, STV0900_DEMOD_2); intp 1312 drivers/media/dvb-frontends/stv0900_core.c stv0900_activate_s2_modcod_single(intp, intp 1314 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_GENCFG, 0x04); intp 1317 drivers/media/dvb-frontends/stv0900_core.c intp->demod_mode = STV0900_SINGLE; intp 1319 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_FRESFEC, 1); intp 1320 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_FRESFEC, 0); intp 1321 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_ALGOSWRST, 1); intp 1322 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_ALGOSWRST, 0); intp 1323 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_ALGOSWRST, 1); intp 1324 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_ALGOSWRST, 0); intp 1337 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = NULL; intp 1386 drivers/media/dvb-frontends/stv0900_core.c intp = state->internal; intp 1388 drivers/media/dvb-frontends/stv0900_core.c intp->demod_mode = p_init->demod_mode; intp 1389 drivers/media/dvb-frontends/stv0900_core.c stv0900_st_dvbs2_single(intp, intp->demod_mode, STV0900_DEMOD_1); intp 1390 drivers/media/dvb-frontends/stv0900_core.c intp->chip_id = stv0900_read_reg(intp, R0900_MID); intp 1391 drivers/media/dvb-frontends/stv0900_core.c intp->rolloff = p_init->rolloff; intp 1392 drivers/media/dvb-frontends/stv0900_core.c intp->quartz = p_init->dmd_ref_clk; intp 1394 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_ROLLOFF_CONTROL, p_init->rolloff); intp 1395 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_ROLLOFF_CONTROL, p_init->rolloff); intp 1397 drivers/media/dvb-frontends/stv0900_core.c intp->ts_config = p_init->ts_config; intp 1398 drivers/media/dvb-frontends/stv0900_core.c if (intp->ts_config == NULL) intp 1399 drivers/media/dvb-frontends/stv0900_core.c stv0900_set_ts_parallel_serial(intp, intp 1403 drivers/media/dvb-frontends/stv0900_core.c for (i = 0; intp->ts_config[i].addr != 0xffff; i++) intp 1404 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, intp 1405 drivers/media/dvb-frontends/stv0900_core.c intp->ts_config[i].addr, intp 1406 drivers/media/dvb-frontends/stv0900_core.c intp->ts_config[i].val); intp 1408 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_RST_HWARE, 1); intp 1409 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_RST_HWARE, 0); intp 1410 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_RST_HWARE, 1); intp 1411 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_RST_HWARE, 0); intp 1414 drivers/media/dvb-frontends/stv0900_core.c intp->tuner_type[0] = p_init->tuner1_type; intp 1415 drivers/media/dvb-frontends/stv0900_core.c intp->tuner_type[1] = p_init->tuner2_type; intp 1419 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRCFG, 0x3c); intp 1420 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRCFG2, 0x86); intp 1421 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRCFG3, 0x18); intp 1422 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRXTAL, 27); /* 27MHz */ intp 1423 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRSTEPS, 0x05); intp 1424 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRGAIN, 0x17); intp 1425 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRADJ, 0x1f); intp 1426 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRCTL2, 0x0); intp 1427 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TUN_TYPE, 3); intp 1431 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TUN_TYPE, 6); intp 1435 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TUN_MADDRESS, p_init->tun1_maddress); intp 1438 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSTTNR1, 0x26); intp 1444 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P1_TNRLD, 1); /* hw tuner */ intp 1449 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRCFG, 0x3c); intp 1450 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRCFG2, 0x86); intp 1451 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRCFG3, 0x18); intp 1452 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRXTAL, 27); /* 27MHz */ intp 1453 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRSTEPS, 0x05); intp 1454 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRGAIN, 0x17); intp 1455 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRADJ, 0x1f); intp 1456 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRCTL2, 0x0); intp 1457 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TUN_TYPE, 3); intp 1461 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TUN_TYPE, 6); intp 1465 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TUN_MADDRESS, p_init->tun2_maddress); intp 1468 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_TSTTNR3, 0x26); intp 1474 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_P2_TNRLD, 1); /* hw tuner */ intp 1476 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P1_TUN_IQSWAP, p_init->tun1_iq_inv); intp 1477 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, F0900_P2_TUN_IQSWAP, p_init->tun2_iq_inv); intp 1478 drivers/media/dvb-frontends/stv0900_core.c stv0900_set_mclk(intp, 135000000); intp 1481 drivers/media/dvb-frontends/stv0900_core.c switch (intp->clkmode) { intp 1484 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_SYNTCTRL, 0x20 | intp->clkmode); intp 1487 drivers/media/dvb-frontends/stv0900_core.c selosci = 0x02 & stv0900_read_reg(intp, R0900_SYNTCTRL); intp 1488 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, R0900_SYNTCTRL, 0x20 | selosci); intp 1493 drivers/media/dvb-frontends/stv0900_core.c intp->mclk = stv0900_get_mclk_freq(intp, intp->quartz); intp 1494 drivers/media/dvb-frontends/stv0900_core.c if (intp->errs) intp 1500 drivers/media/dvb-frontends/stv0900_core.c static int stv0900_status(struct stv0900_internal *intp, intp 1508 drivers/media/dvb-frontends/stv0900_core.c demod_state = stv0900_get_bits(intp, HEADER_MODE); intp 1516 drivers/media/dvb-frontends/stv0900_core.c locked = stv0900_get_bits(intp, LOCK_DEFINITIF) && intp 1517 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, PKTDELIN_LOCK) && intp 1518 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, TSFIFO_LINEOK); intp 1521 drivers/media/dvb-frontends/stv0900_core.c locked = stv0900_get_bits(intp, LOCK_DEFINITIF) && intp 1522 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, LOCKEDVIT) && intp 1523 drivers/media/dvb-frontends/stv0900_core.c stv0900_get_bits(intp, TSFIFO_LINEOK); intp 1531 drivers/media/dvb-frontends/stv0900_core.c tsbitrate0_val = stv0900_read_reg(intp, TSBITRATE0); intp 1532 drivers/media/dvb-frontends/stv0900_core.c tsbitrate1_val = stv0900_read_reg(intp, TSBITRATE1); intp 1534 drivers/media/dvb-frontends/stv0900_core.c bitrate = (stv0900_get_mclk_freq(intp, intp->quartz)/1000000) intp 1543 drivers/media/dvb-frontends/stv0900_core.c static int stv0900_set_mis(struct stv0900_internal *intp, intp 1550 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, FILTER_EN, 0); intp 1553 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, FILTER_EN, 1); intp 1554 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, ISIENTRY, mis); intp 1555 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, ISIBITENA, 0xff); intp 1565 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 1570 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_signal_info p_result = intp->result[demod]; intp 1582 drivers/media/dvb-frontends/stv0900_core.c stv0900_set_mis(intp, demod, c->stream_id); intp 1597 drivers/media/dvb-frontends/stv0900_core.c intp->srch_standard[demod] = p_search.standard; intp 1598 drivers/media/dvb-frontends/stv0900_core.c intp->symbol_rate[demod] = p_search.symbol_rate; intp 1599 drivers/media/dvb-frontends/stv0900_core.c intp->srch_range[demod] = p_search.search_range; intp 1600 drivers/media/dvb-frontends/stv0900_core.c intp->freq[demod] = p_search.frequency; intp 1601 drivers/media/dvb-frontends/stv0900_core.c intp->srch_algo[demod] = p_search.search_algo; intp 1602 drivers/media/dvb-frontends/stv0900_core.c intp->srch_iq_inv[demod] = p_search.iq_inversion; intp 1603 drivers/media/dvb-frontends/stv0900_core.c intp->fec[demod] = p_search.fec; intp 1605 drivers/media/dvb-frontends/stv0900_core.c (intp->errs == STV0900_NO_ERROR)) { intp 1606 drivers/media/dvb-frontends/stv0900_core.c p_result.locked = intp->result[demod].locked; intp 1607 drivers/media/dvb-frontends/stv0900_core.c p_result.standard = intp->result[demod].standard; intp 1608 drivers/media/dvb-frontends/stv0900_core.c p_result.frequency = intp->result[demod].frequency; intp 1609 drivers/media/dvb-frontends/stv0900_core.c p_result.symbol_rate = intp->result[demod].symbol_rate; intp 1610 drivers/media/dvb-frontends/stv0900_core.c p_result.fec = intp->result[demod].fec; intp 1611 drivers/media/dvb-frontends/stv0900_core.c p_result.modcode = intp->result[demod].modcode; intp 1612 drivers/media/dvb-frontends/stv0900_core.c p_result.pilot = intp->result[demod].pilot; intp 1613 drivers/media/dvb-frontends/stv0900_core.c p_result.frame_len = intp->result[demod].frame_len; intp 1614 drivers/media/dvb-frontends/stv0900_core.c p_result.spectrum = intp->result[demod].spectrum; intp 1615 drivers/media/dvb-frontends/stv0900_core.c p_result.rolloff = intp->result[demod].rolloff; intp 1616 drivers/media/dvb-frontends/stv0900_core.c p_result.modulation = intp->result[demod].modulation; intp 1619 drivers/media/dvb-frontends/stv0900_core.c switch (intp->err[demod]) { intp 1668 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 1672 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, RST_HWARE, 1); intp 1674 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1682 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 1685 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISTX_MODE, state->config->diseqc_mode); intp 1686 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISEQC_RESET, 1); intp 1687 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISEQC_RESET, 0); intp 1702 drivers/media/dvb-frontends/stv0900_core.c static int stv0900_diseqc_send(struct stv0900_internal *intp , u8 *data, intp 1707 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DIS_PRECHARGE, 1); intp 1709 drivers/media/dvb-frontends/stv0900_core.c while (stv0900_get_bits(intp, FIFO_FULL)) intp 1711 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_reg(intp, DISTXDATA, data[i]); intp 1715 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DIS_PRECHARGE, 0); intp 1717 drivers/media/dvb-frontends/stv0900_core.c while ((stv0900_get_bits(intp, TX_IDLE) != 1) && (i < 10)) { intp 1740 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 1747 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISTX_MODE, 3);/* Unmodulated */ intp 1749 drivers/media/dvb-frontends/stv0900_core.c stv0900_diseqc_send(intp, &data, 1, state->demod); intp 1752 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISTX_MODE, 2);/* Modulated */ intp 1754 drivers/media/dvb-frontends/stv0900_core.c stv0900_diseqc_send(intp, &data, 1, state->demod); intp 1765 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 1771 drivers/media/dvb-frontends/stv0900_core.c while ((stv0900_get_bits(intp, RX_END) != 1) && (i < 10)) { intp 1776 drivers/media/dvb-frontends/stv0900_core.c if (stv0900_get_bits(intp, RX_END)) { intp 1777 drivers/media/dvb-frontends/stv0900_core.c reply->msg_len = stv0900_get_bits(intp, FIFO_BYTENBR); intp 1780 drivers/media/dvb-frontends/stv0900_core.c reply->msg[i] = stv0900_read_reg(intp, DISRXDATA); intp 1790 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 1798 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISTX_MODE, 0); intp 1799 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISEQC_RESET, 1); intp 1801 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISEQC_RESET, 0); intp 1806 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISTX_MODE, intp 1809 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISEQC_RESET, 1); intp 1810 drivers/media/dvb-frontends/stv0900_core.c stv0900_write_bits(intp, DISEQC_RESET, 0); intp 1855 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_internal *intp = state->internal; intp 1857 drivers/media/dvb-frontends/stv0900_core.c struct stv0900_signal_info p_result = intp->result[demod]; intp 387 drivers/media/dvb-frontends/stv0900_priv.h stv0900_get_freq_auto(struct stv0900_internal *intp, int demod); intp 390 drivers/media/dvb-frontends/stv0900_priv.h stv0900_set_tuner_auto(struct stv0900_internal *intp, u32 Frequency, intp 24 drivers/media/dvb-frontends/stv0900_sw.c int stv0900_check_signal_presence(struct stv0900_internal *intp, intp 33 drivers/media/dvb-frontends/stv0900_sw.c carr_offset = (stv0900_read_reg(intp, CFR2) << 8) intp 34 drivers/media/dvb-frontends/stv0900_sw.c | stv0900_read_reg(intp, CFR1); intp 36 drivers/media/dvb-frontends/stv0900_sw.c agc2_integr = (stv0900_read_reg(intp, AGC2I1) << 8) intp 37 drivers/media/dvb-frontends/stv0900_sw.c | stv0900_read_reg(intp, AGC2I0); intp 38 drivers/media/dvb-frontends/stv0900_sw.c max_carrier = intp->srch_range[demod] / 1000; intp 42 drivers/media/dvb-frontends/stv0900_sw.c max_carrier /= intp->mclk / 1000; intp 54 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_get_sw_loop_params(struct stv0900_internal *intp, intp 63 drivers/media/dvb-frontends/stv0900_sw.c srate = intp->symbol_rate[demod]; intp 64 drivers/media/dvb-frontends/stv0900_sw.c max_carrier = intp->srch_range[demod] / 1000; intp 66 drivers/media/dvb-frontends/stv0900_sw.c standard = intp->srch_standard[demod]; intp 69 drivers/media/dvb-frontends/stv0900_sw.c max_carrier /= intp->mclk / 1000; intp 75 drivers/media/dvb-frontends/stv0900_sw.c freq_inc /= intp->mclk >> 10; intp 121 drivers/media/dvb-frontends/stv0900_sw.c static int stv0900_search_carr_sw_loop(struct stv0900_internal *intp, intp 131 drivers/media/dvb-frontends/stv0900_sw.c max_carrier = intp->srch_range[demod] / 1000; intp 135 drivers/media/dvb-frontends/stv0900_sw.c max_carrier /= intp->mclk / 1000; intp 148 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1c); intp 149 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, (freqOffset / 256) & 0xff); intp 150 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, freqOffset & 0xff); intp 151 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x18); intp 152 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, ALGOSWRST, 1); intp 154 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id == 0x12) { intp 155 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 1); intp 156 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 168 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_demod_lock(intp, demod, Timeout); intp 169 drivers/media/dvb-frontends/stv0900_sw.c no_signal = stv0900_check_signal_presence(intp, demod); intp 177 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, ALGOSWRST, 0); intp 182 drivers/media/dvb-frontends/stv0900_sw.c static int stv0900_sw_algo(struct stv0900_internal *intp, intp 194 drivers/media/dvb-frontends/stv0900_sw.c stv0900_get_sw_loop_params(intp, &fqc_inc, &sft_stp_tout, intp 196 drivers/media/dvb-frontends/stv0900_sw.c switch (intp->srch_standard[demod]) { intp 199 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) intp 200 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x3b); intp 202 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0xef); intp 204 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDCFGMD, 0x49); intp 208 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) intp 209 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x79); intp 211 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x68); intp 213 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDCFGMD, 0x89); intp 219 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) { intp 220 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x3b); intp 221 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x79); intp 223 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0xef); intp 224 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x68); intp 227 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDCFGMD, 0xc9); intp 234 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_search_carr_sw_loop(intp, intp 240 drivers/media/dvb-frontends/stv0900_sw.c no_signal = stv0900_check_signal_presence(intp, demod); intp 246 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) { intp 247 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x49); intp 248 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x9e); intp 250 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0xed); intp 251 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x88); intp 254 drivers/media/dvb-frontends/stv0900_sw.c if ((stv0900_get_bits(intp, HEADER_MODE) == intp 258 drivers/media/dvb-frontends/stv0900_sw.c s2fw = stv0900_get_bits(intp, FLYWHEEL_CPT); intp 262 drivers/media/dvb-frontends/stv0900_sw.c s2fw = stv0900_get_bits(intp, intp 270 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) intp 271 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, intp 275 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, intp 279 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, intp 294 drivers/media/dvb-frontends/stv0900_sw.c static u32 stv0900_get_symbol_rate(struct stv0900_internal *intp, intp 300 drivers/media/dvb-frontends/stv0900_sw.c srate = (stv0900_get_bits(intp, SYMB_FREQ3) << 24) + intp 301 drivers/media/dvb-frontends/stv0900_sw.c (stv0900_get_bits(intp, SYMB_FREQ2) << 16) + intp 302 drivers/media/dvb-frontends/stv0900_sw.c (stv0900_get_bits(intp, SYMB_FREQ1) << 8) + intp 303 drivers/media/dvb-frontends/stv0900_sw.c (stv0900_get_bits(intp, SYMB_FREQ0)); intp 305 drivers/media/dvb-frontends/stv0900_sw.c srate, stv0900_get_bits(intp, SYMB_FREQ0), intp 306 drivers/media/dvb-frontends/stv0900_sw.c stv0900_get_bits(intp, SYMB_FREQ1), intp 307 drivers/media/dvb-frontends/stv0900_sw.c stv0900_get_bits(intp, SYMB_FREQ2), intp 308 drivers/media/dvb-frontends/stv0900_sw.c stv0900_get_bits(intp, SYMB_FREQ3)); intp 322 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_symbol_rate(struct stv0900_internal *intp, intp 342 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRINIT1, (symb >> 8) & 0x7f); intp 343 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRINIT1 + 1, (symb & 0xff)); intp 346 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_max_symbol_rate(struct stv0900_internal *intp, intp 366 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP1, (symb >> 8) & 0x7f); intp 367 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP1 + 1, (symb & 0xff)); intp 369 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP1, 0x7f); intp 370 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP1 + 1, 0xff); intp 374 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_min_symbol_rate(struct stv0900_internal *intp, intp 394 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRLOW1, (symb >> 8) & 0xff); intp 395 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRLOW1 + 1, (symb & 0xff)); intp 398 drivers/media/dvb-frontends/stv0900_sw.c static s32 stv0900_get_timing_offst(struct stv0900_internal *intp, intp 405 drivers/media/dvb-frontends/stv0900_sw.c timingoffset = (stv0900_read_reg(intp, TMGREG2) << 16) + intp 406 drivers/media/dvb-frontends/stv0900_sw.c (stv0900_read_reg(intp, TMGREG2 + 1) << 8) + intp 407 drivers/media/dvb-frontends/stv0900_sw.c (stv0900_read_reg(intp, TMGREG2 + 2)); intp 421 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_dvbs2_rolloff(struct stv0900_internal *intp, intp 426 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id == 0x10) { intp 427 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, MANUALSX_ROLLOFF, 1); intp 428 drivers/media/dvb-frontends/stv0900_sw.c rolloff = stv0900_read_reg(intp, MATSTR1) & 0x03; intp 429 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, ROLLOFF_CONTROL, rolloff); intp 430 drivers/media/dvb-frontends/stv0900_sw.c } else if (intp->chip_id <= 0x20) intp 431 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, MANUALSX_ROLLOFF, 0); intp 433 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, MANUALS2_ROLLOFF, 0); intp 456 drivers/media/dvb-frontends/stv0900_sw.c static int stv0900_check_timing_lock(struct stv0900_internal *intp, intp 466 drivers/media/dvb-frontends/stv0900_sw.c car_freq = stv0900_read_reg(intp, CARFREQ); intp 467 drivers/media/dvb-frontends/stv0900_sw.c tmg_th_high = stv0900_read_reg(intp, TMGTHRISE); intp 468 drivers/media/dvb-frontends/stv0900_sw.c tmg_th_low = stv0900_read_reg(intp, TMGTHFALL); intp 469 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHRISE, 0x20); intp 470 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHFALL, 0x0); intp 471 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_AUTOSCAN, 0); intp 472 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, RTC, 0x80); intp 473 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, RTCS2, 0x40); intp 474 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x0); intp 475 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, 0x0); intp 476 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, 0x0); intp 477 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, AGC2REF, 0x65); intp 478 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x18); intp 482 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_get_bits(intp, TMGLOCK_QUALITY) >= 2) intp 491 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, AGC2REF, 0x38); intp 492 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, RTC, 0x88); intp 493 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, RTCS2, 0x68); intp 494 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, car_freq); intp 495 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHRISE, tmg_th_high); intp 496 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHFALL, tmg_th_low); intp 505 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 520 drivers/media/dvb-frontends/stv0900_sw.c srate = intp->symbol_rate[d]; intp 521 drivers/media/dvb-frontends/stv0900_sw.c search_range = intp->srch_range[d]; intp 528 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_demod_lock(intp, d, locktimeout); intp 534 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_check_timing_lock(intp, d) == TRUE) { intp 535 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 536 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x15); intp 537 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_demod_lock(intp, d, demod_timeout); intp 544 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) { intp 581 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) { intp 582 drivers/media/dvb-frontends/stv0900_sw.c tuner_freq = intp->freq[d]; intp 583 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[d] = stv0900_carrier_width(intp->symbol_rate[d], intp 584 drivers/media/dvb-frontends/stv0900_sw.c intp->rolloff) + intp->symbol_rate[d]; intp 594 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) { intp 595 drivers/media/dvb-frontends/stv0900_sw.c if (intp->tuner_type[d] == 3) intp 596 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_tuner_auto(intp, tuner_freq, intp 597 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[d], demod); intp 599 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_tuner(fe, tuner_freq, intp->bw[d]); intp 601 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1c); intp 602 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, 0); intp 603 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, 0); intp 604 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 605 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x15); intp 607 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1c); intp 608 drivers/media/dvb-frontends/stv0900_sw.c freq = (tuner_freq * 65536) / (intp->mclk / 1000); intp 609 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_INIT1, MSB(freq)); intp 610 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_INIT0, LSB(freq)); intp 611 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 612 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x05); intp 615 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_demod_lock(intp, d, timeout); intp 672 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_viterbi_tracq(struct stv0900_internal *intp, intp 680 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0xd0); intp 681 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x7d); intp 682 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x53); intp 683 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x2f); intp 684 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x24); intp 685 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x1f); intp 688 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_viterbi_standard(struct stv0900_internal *intp, intp 698 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, FECM, 0x10); intp 699 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x3f); intp 703 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, FECM, 0x00); intp 707 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x2f); intp 710 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x01); intp 713 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x02); intp 716 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x04); intp 719 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x08); intp 722 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x20); intp 729 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, FECM, 0x80); intp 733 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x13); intp 736 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x01); intp 739 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x02); intp 742 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, PRVIT, 0x10); intp 751 drivers/media/dvb-frontends/stv0900_sw.c static enum fe_stv0900_fec stv0900_get_vit_fec(struct stv0900_internal *intp, intp 755 drivers/media/dvb-frontends/stv0900_sw.c s32 rate_fld = stv0900_get_bits(intp, VIT_CURPUN); intp 784 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_dvbs1_track_car_loop(struct stv0900_internal *intp, intp 788 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x30) { intp 790 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC, 0x2b); intp 791 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, BCLC, 0x1a); intp 793 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC, 0x0c); intp 794 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, BCLC, 0x1b); intp 796 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC, 0x2c); intp 797 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, BCLC, 0x1c); intp 801 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC, 0x1a); intp 802 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, BCLC, 0x09); intp 810 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 828 drivers/media/dvb-frontends/stv0900_sw.c srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); intp 829 drivers/media/dvb-frontends/stv0900_sw.c srate += stv0900_get_timing_offst(intp, srate, demod); intp 831 drivers/media/dvb-frontends/stv0900_sw.c switch (intp->result[demod].standard) { intp 835 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_standard[demod] == STV0900_AUTO_SEARCH) { intp 836 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS1_ENABLE, 1); intp 837 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS2_ENABLE, 0); intp 840 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, ROLLOFF_CONTROL, intp->rolloff); intp 841 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, MANUALSX_ROLLOFF, 1); intp 843 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id < 0x30) { intp 844 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ERRCTRL1, 0x75); intp 848 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_get_vit_fec(intp, demod) == STV0900_FEC_1_2) { intp 849 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, GAUSSR0, 0x98); intp 850 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CCIR0, 0x18); intp 852 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, GAUSSR0, 0x18); intp 853 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CCIR0, 0x18); intp 856 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ERRCTRL1, 0x75); intp 860 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS1_ENABLE, 0); intp 861 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS2_ENABLE, 1); intp 862 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC, 0); intp 863 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, BCLC, 0); intp 864 drivers/media/dvb-frontends/stv0900_sw.c if (intp->result[demod].frame_len == STV0900_LONG_FRAME) { intp 865 drivers/media/dvb-frontends/stv0900_sw.c foundModcod = stv0900_get_bits(intp, DEMOD_MODCOD); intp 866 drivers/media/dvb-frontends/stv0900_sw.c pilots = stv0900_get_bits(intp, DEMOD_TYPE) & 0x01; intp 870 drivers/media/dvb-frontends/stv0900_sw.c intp->chip_id); intp 872 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, aclc); intp 874 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, 0x2a); intp 875 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S28, aclc); intp 878 drivers/media/dvb-frontends/stv0900_sw.c if ((intp->demod_mode == STV0900_SINGLE) && intp 881 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, 0x2a); intp 882 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S216A, intp 885 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, 0x2a); intp 886 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S232A, intp 892 drivers/media/dvb-frontends/stv0900_sw.c modulation = intp->result[demod].modulation; intp 894 drivers/media/dvb-frontends/stv0900_sw.c modulation, intp->chip_id); intp 896 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, aclc); intp 898 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, 0x2a); intp 899 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S28, aclc); intp 901 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, 0x2a); intp 902 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S216A, aclc); intp 904 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S2Q, 0x2a); intp 905 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC2S232A, aclc); intp 910 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x11) { intp 911 drivers/media/dvb-frontends/stv0900_sw.c if (intp->demod_mode != STV0900_SINGLE) intp 912 drivers/media/dvb-frontends/stv0900_sw.c stv0900_activate_s2_modcod(intp, demod); intp 916 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ERRCTRL1, 0x67); intp 921 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS1_ENABLE, 1); intp 922 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS2_ENABLE, 1); intp 926 drivers/media/dvb-frontends/stv0900_sw.c freq1 = stv0900_read_reg(intp, CFR2); intp 927 drivers/media/dvb-frontends/stv0900_sw.c freq0 = stv0900_read_reg(intp, CFR1); intp 928 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_algo[demod] == STV0900_BLIND_SEARCH) { intp 929 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRSTEP, 0x00); intp 930 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, SCAN_ENABLE, 0); intp 931 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_AUTOSCAN, 0); intp 932 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGCFG2, 0xc1); intp 933 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, srate, demod); intp 935 drivers/media/dvb-frontends/stv0900_sw.c if (intp->result[demod].standard != STV0900_DVBS2_STANDARD) intp 936 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_dvbs1_track_car_loop(intp, demod, srate); intp 940 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) { intp 941 drivers/media/dvb-frontends/stv0900_sw.c if ((intp->srch_standard[demod] == STV0900_SEARCH_DVBS1) || intp 942 drivers/media/dvb-frontends/stv0900_sw.c (intp->srch_standard[demod] == intp 944 drivers/media/dvb-frontends/stv0900_sw.c (intp->srch_standard[demod] == intp 946 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, VAVSRVIT, 0x0a); intp 947 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, VITSCALE, 0x0); intp 951 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id < 0x20) intp 952 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARHDR, 0x08); intp 954 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id == 0x10) intp 955 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELEXP, 0x0a); intp 957 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, AGC2REF, 0x38); intp 959 drivers/media/dvb-frontends/stv0900_sw.c if ((intp->chip_id >= 0x20) || intp 961 drivers/media/dvb-frontends/stv0900_sw.c (intp->symbol_rate[demod] < 10000000)) { intp 962 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, freq1); intp 963 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, freq0); intp 964 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] = stv0900_carrier_width(srate, intp 965 drivers/media/dvb-frontends/stv0900_sw.c intp->rolloff) + 10000000; intp 967 drivers/media/dvb-frontends/stv0900_sw.c if ((intp->chip_id >= 0x20) || (blind_tun_sw == 1)) { intp 968 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_algo[demod] != STV0900_WARM_START) { intp 969 drivers/media/dvb-frontends/stv0900_sw.c if (intp->tuner_type[demod] == 3) intp 970 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_tuner_auto(intp, intp 971 drivers/media/dvb-frontends/stv0900_sw.c intp->freq[demod], intp 972 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod], intp 976 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod]); intp 980 drivers/media/dvb-frontends/stv0900_sw.c if ((intp->srch_algo[demod] == STV0900_BLIND_SEARCH) || intp 981 drivers/media/dvb-frontends/stv0900_sw.c (intp->symbol_rate[demod] < 10000000)) intp 989 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_get_demod_lock(intp, demod, timed / 2) == FALSE) { intp 990 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 991 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, freq1); intp 992 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, freq0); intp 993 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x18); intp 995 drivers/media/dvb-frontends/stv0900_sw.c while ((stv0900_get_demod_lock(intp, intp 999 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 1000 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, freq1); intp 1001 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, freq0); intp 1002 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x18); intp 1009 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) intp 1010 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x49); intp 1012 drivers/media/dvb-frontends/stv0900_sw.c if ((intp->result[demod].standard == STV0900_DVBS1_STANDARD) || intp 1013 drivers/media/dvb-frontends/stv0900_sw.c (intp->result[demod].standard == STV0900_DSS_STANDARD)) intp 1014 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_viterbi_tracq(intp, demod); intp 1018 drivers/media/dvb-frontends/stv0900_sw.c static int stv0900_get_fec_lock(struct stv0900_internal *intp, intp 1027 drivers/media/dvb-frontends/stv0900_sw.c dmd_state = stv0900_get_bits(intp, HEADER_MODE); intp 1037 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_bits(intp, PKTDELIN_LOCK); intp 1040 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_bits(intp, LOCKEDVIT); intp 1058 drivers/media/dvb-frontends/stv0900_sw.c static int stv0900_wait_for_lock(struct stv0900_internal *intp, intp 1067 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_demod_lock(intp, demod, dmd_timeout); intp 1070 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_fec_lock(intp, demod, fec_timeout); intp 1079 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_bits(intp, TSFIFO_LINEOK); intp 1100 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 1103 drivers/media/dvb-frontends/stv0900_sw.c int hdr_mode = stv0900_get_bits(intp, HEADER_MODE); intp 1110 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_get_bits(intp, DSS_DVB) == 1) intp 1125 drivers/media/dvb-frontends/stv0900_sw.c static s32 stv0900_get_carr_freq(struct stv0900_internal *intp, u32 mclk, intp 1134 drivers/media/dvb-frontends/stv0900_sw.c derot = (stv0900_get_bits(intp, CAR_FREQ2) << 16) + intp 1135 drivers/media/dvb-frontends/stv0900_sw.c (stv0900_get_bits(intp, CAR_FREQ1) << 8) + intp 1136 drivers/media/dvb-frontends/stv0900_sw.c (stv0900_get_bits(intp, CAR_FREQ0)); intp 1174 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 1177 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_signal_info *result = &intp->result[demod]; intp 1186 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_algo[d] == STV0900_BLIND_SEARCH) { intp 1187 drivers/media/dvb-frontends/stv0900_sw.c timing = stv0900_read_reg(intp, TMGREG2); intp 1189 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRSTEP, 0x5c); intp 1192 drivers/media/dvb-frontends/stv0900_sw.c timing = stv0900_read_reg(intp, TMGREG2); intp 1199 drivers/media/dvb-frontends/stv0900_sw.c if (intp->tuner_type[demod] == 3) intp 1200 drivers/media/dvb-frontends/stv0900_sw.c result->frequency = stv0900_get_freq_auto(intp, d); intp 1204 drivers/media/dvb-frontends/stv0900_sw.c offsetFreq = stv0900_get_carr_freq(intp, intp->mclk, d) / 1000; intp 1206 drivers/media/dvb-frontends/stv0900_sw.c result->symbol_rate = stv0900_get_symbol_rate(intp, intp->mclk, d); intp 1207 drivers/media/dvb-frontends/stv0900_sw.c srate_offset = stv0900_get_timing_offst(intp, result->symbol_rate, d); intp 1209 drivers/media/dvb-frontends/stv0900_sw.c result->fec = stv0900_get_vit_fec(intp, d); intp 1210 drivers/media/dvb-frontends/stv0900_sw.c result->modcode = stv0900_get_bits(intp, DEMOD_MODCOD); intp 1211 drivers/media/dvb-frontends/stv0900_sw.c result->pilot = stv0900_get_bits(intp, DEMOD_TYPE) & 0x01; intp 1212 drivers/media/dvb-frontends/stv0900_sw.c result->frame_len = ((u32)stv0900_get_bits(intp, DEMOD_TYPE)) >> 1; intp 1213 drivers/media/dvb-frontends/stv0900_sw.c result->rolloff = stv0900_get_bits(intp, ROLLOFF_STATUS); intp 1219 drivers/media/dvb-frontends/stv0900_sw.c result->spectrum = stv0900_get_bits(intp, SPECINV_DEMOD); intp 1233 drivers/media/dvb-frontends/stv0900_sw.c result->spectrum = stv0900_get_bits(intp, IQINV); intp 1240 drivers/media/dvb-frontends/stv0900_sw.c if ((intp->srch_algo[d] == STV0900_BLIND_SEARCH) || intp 1241 drivers/media/dvb-frontends/stv0900_sw.c (intp->symbol_rate[d] < 10000000)) { intp 1242 drivers/media/dvb-frontends/stv0900_sw.c offsetFreq = result->frequency - intp->freq[d]; intp 1243 drivers/media/dvb-frontends/stv0900_sw.c if (intp->tuner_type[demod] == 3) intp 1244 drivers/media/dvb-frontends/stv0900_sw.c intp->freq[d] = stv0900_get_freq_auto(intp, d); intp 1246 drivers/media/dvb-frontends/stv0900_sw.c intp->freq[d] = stv0900_get_tuner_freq(fe); intp 1248 drivers/media/dvb-frontends/stv0900_sw.c if (abs(offsetFreq) <= ((intp->srch_range[d] / 2000) + 500)) intp 1255 drivers/media/dvb-frontends/stv0900_sw.c } else if (abs(offsetFreq) <= ((intp->srch_range[d] / 2000) + 500)) intp 1267 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 1277 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = FALSE; intp 1279 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_get_bits(intp, HEADER_MODE) == STV0900_DVBS_FOUND) { intp 1280 drivers/media/dvb-frontends/stv0900_sw.c srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); intp 1281 drivers/media/dvb-frontends/stv0900_sw.c srate += stv0900_get_timing_offst(intp, srate, demod); intp 1282 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_algo[demod] == STV0900_BLIND_SEARCH) intp 1283 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, srate, demod); intp 1287 drivers/media/dvb-frontends/stv0900_sw.c freq1 = stv0900_read_reg(intp, CFR2); intp 1288 drivers/media/dvb-frontends/stv0900_sw.c freq0 = stv0900_read_reg(intp, CFR1); intp 1289 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_AUTOSCAN, 0); intp 1290 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, SPECINV_CONTROL, intp 1292 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1c); intp 1293 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, freq1); intp 1294 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, freq0); intp 1295 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x18); intp 1296 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_wait_for_lock(intp, demod, intp 1298 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = TRUE; intp 1302 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, SPECINV_CONTROL, intp 1304 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1c); intp 1305 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, freq1); intp 1306 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, freq0); intp 1307 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x18); intp 1308 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_wait_for_lock(intp, demod, intp 1310 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = TRUE; intp 1318 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = FALSE; intp 1323 drivers/media/dvb-frontends/stv0900_sw.c static u16 stv0900_blind_check_agc2_min_level(struct stv0900_internal *intp, intp 1334 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, AGC2REF, 0x38); intp 1335 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, SCAN_ENABLE, 0); intp 1336 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_AUTOSCAN, 0); intp 1338 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, AUTO_GUP, 1); intp 1339 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, AUTO_GLOW, 1); intp 1341 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDT0M, 0x0); intp 1343 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, 1000000, demod); intp 1344 drivers/media/dvb-frontends/stv0900_sw.c nb_steps = -1 + (intp->srch_range[demod] / 1000000); intp 1353 drivers/media/dvb-frontends/stv0900_sw.c freq_step = (1000000 << 8) / (intp->mclk >> 8); intp 1364 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x5C); intp 1365 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, (init_freq >> 8) & 0xff); intp 1366 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, init_freq & 0xff); intp 1367 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x58); intp 1372 drivers/media/dvb-frontends/stv0900_sw.c agc2level += (stv0900_read_reg(intp, AGC2I1) << 8) intp 1373 drivers/media/dvb-frontends/stv0900_sw.c | stv0900_read_reg(intp, AGC2I0); intp 1388 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 1401 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x30) intp 1406 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DEMOD_MODE, 0x1f); intp 1407 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGCFG, 0x12); intp 1408 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHRISE, 0xf0); intp 1409 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHFALL, 0xe0); intp 1410 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, SCAN_ENABLE, 1); intp 1411 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_AUTOSCAN, 1); intp 1412 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP1, 0x83); intp 1413 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP0, 0xc0); intp 1414 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRLOW1, 0x82); intp 1415 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRLOW0, 0xa0); intp 1416 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDT0M, 0x0); intp 1417 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, AGC2REF, 0x50); intp 1419 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x30) { intp 1420 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x99); intp 1421 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRSTEP, 0x98); intp 1422 drivers/media/dvb-frontends/stv0900_sw.c } else if (intp->chip_id >= 0x20) { intp 1423 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x6a); intp 1424 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRSTEP, 0x95); intp 1426 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0xed); intp 1427 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRSTEP, 0x73); intp 1430 drivers/media/dvb-frontends/stv0900_sw.c if (intp->symbol_rate[demod] <= 2000000) intp 1432 drivers/media/dvb-frontends/stv0900_sw.c else if (intp->symbol_rate[demod] <= 5000000) intp 1434 drivers/media/dvb-frontends/stv0900_sw.c else if (intp->symbol_rate[demod] <= 12000000) intp 1439 drivers/media/dvb-frontends/stv0900_sw.c nb_steps = -1 + ((intp->srch_range[demod] / 1000) / currier_step); intp 1447 drivers/media/dvb-frontends/stv0900_sw.c currier_step = (intp->srch_range[demod] / 1000) / 10; intp 1453 drivers/media/dvb-frontends/stv0900_sw.c tuner_freq = intp->freq[demod]; intp 1456 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x5f); intp 1457 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DEMOD_MODE, 0); intp 1462 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_get_bits(intp, TMGLOCK_QUALITY) >= 2) intp 1465 drivers/media/dvb-frontends/stv0900_sw.c agc2_integr += (stv0900_read_reg(intp, AGC2I1) << 8) | intp 1466 drivers/media/dvb-frontends/stv0900_sw.c stv0900_read_reg(intp, AGC2I0); intp 1470 drivers/media/dvb-frontends/stv0900_sw.c coarse_srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); intp 1488 drivers/media/dvb-frontends/stv0900_sw.c if (intp->tuner_type[demod] == 3) intp 1489 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_tuner_auto(intp, tuner_freq, intp 1490 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod], demod); intp 1493 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod]); intp 1500 drivers/media/dvb-frontends/stv0900_sw.c coarse_srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); intp 1508 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 1517 drivers/media/dvb-frontends/stv0900_sw.c coarse_srate = stv0900_get_symbol_rate(intp, intp->mclk, demod); intp 1522 drivers/media/dvb-frontends/stv0900_sw.c symbmax /= (intp->mclk / 1000); intp 1526 drivers/media/dvb-frontends/stv0900_sw.c symbmin /= (intp->mclk / 1000); intp 1529 drivers/media/dvb-frontends/stv0900_sw.c symb /= (intp->mclk / 1000); intp 1533 drivers/media/dvb-frontends/stv0900_sw.c symbmax /= (intp->mclk / 100); intp 1537 drivers/media/dvb-frontends/stv0900_sw.c symbmin /= (intp->mclk / 100); intp 1540 drivers/media/dvb-frontends/stv0900_sw.c symb /= (intp->mclk / 100); intp 1544 drivers/media/dvb-frontends/stv0900_sw.c coarse_freq = (stv0900_read_reg(intp, CFR2) << 8) intp 1545 drivers/media/dvb-frontends/stv0900_sw.c | stv0900_read_reg(intp, CFR1); intp 1547 drivers/media/dvb-frontends/stv0900_sw.c if (symbcomp < intp->symbol_rate[demod]) intp 1550 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x1f); intp 1551 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGCFG2, 0xc1); intp 1552 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHRISE, 0x20); intp 1553 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGTHFALL, 0x00); intp 1554 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGCFG, 0xd2); intp 1555 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, CFR_AUTOSCAN, 0); intp 1556 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, AGC2REF, 0x38); intp 1558 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x30) intp 1559 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x79); intp 1560 drivers/media/dvb-frontends/stv0900_sw.c else if (intp->chip_id >= 0x20) intp 1561 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0x49); intp 1563 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARFREQ, 0xed); intp 1565 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP1, (symbmax >> 8) & 0x7f); intp 1566 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRUP0, (symbmax & 0xff)); intp 1568 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRLOW1, (symbmin >> 8) & 0x7f); intp 1569 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRLOW0, (symbmin & 0xff)); intp 1571 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRINIT1, (symb >> 8) & 0xff); intp 1572 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, SFRINIT0, (symb & 0xff)); intp 1574 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDT0M, 0x20); intp 1575 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT1, (coarse_freq >> 8) & 0xff); intp 1576 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CFRINIT0, coarse_freq & 0xff); intp 1577 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x15); intp 1586 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 1605 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id < 0x20) { intp 1613 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) intp 1618 drivers/media/dvb-frontends/stv0900_sw.c agc2_int = stv0900_blind_check_agc2_min_level(intp, demod); intp 1624 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id == 0x10) intp 1625 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELEXP, 0xaa); intp 1627 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id < 0x20) intp 1628 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARHDR, 0x55); intp 1630 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARHDR, 0x20); intp 1632 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) intp 1633 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARCFG, 0xc4); intp 1635 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CARCFG, 0x6); intp 1637 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, RTCS2, 0x44); intp 1639 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) { intp 1640 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, EQUALCFG, 0x41); intp 1641 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, FFECFG, 0x41); intp 1642 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, VITSCALE, 0x82); intp 1643 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, VAVSRVIT, 0x0); intp 1649 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, KREFTMG, k_ref_tmg); intp 1658 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_demod_lock(intp, intp 1668 drivers/media/dvb-frontends/stv0900_sw.c agc2_int = (stv0900_read_reg(intp, AGC2I1) << 8) intp 1669 drivers/media/dvb-frontends/stv0900_sw.c | stv0900_read_reg(intp, AGC2I0); intp 1674 drivers/media/dvb-frontends/stv0900_sw.c dstatus2 = stv0900_read_reg(intp, DSTATUS2); intp 1694 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_viterbi_acq(struct stv0900_internal *intp, intp 1701 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x96); intp 1702 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x64); intp 1703 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x36); intp 1704 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x23); intp 1705 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x1e); intp 1706 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, vth_reg++, 0x19); intp 1709 drivers/media/dvb-frontends/stv0900_sw.c static void stv0900_set_search_standard(struct stv0900_internal *intp, intp 1715 drivers/media/dvb-frontends/stv0900_sw.c switch (intp->srch_standard[demod]) { intp 1731 drivers/media/dvb-frontends/stv0900_sw.c switch (intp->srch_standard[demod]) { intp 1734 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS1_ENABLE, 1); intp 1735 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS2_ENABLE, 0); intp 1736 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, STOP_CLKVIT, 0); intp 1737 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_dvbs1_track_car_loop(intp, intp 1739 drivers/media/dvb-frontends/stv0900_sw.c intp->symbol_rate[demod]); intp 1740 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CAR2CFG, 0x22); intp 1742 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_viterbi_acq(intp, demod); intp 1743 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_viterbi_standard(intp, intp 1744 drivers/media/dvb-frontends/stv0900_sw.c intp->srch_standard[demod], intp 1745 drivers/media/dvb-frontends/stv0900_sw.c intp->fec[demod], demod); intp 1749 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS1_ENABLE, 0); intp 1750 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS2_ENABLE, 1); intp 1751 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, STOP_CLKVIT, 1); intp 1752 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC, 0x1a); intp 1753 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, BCLC, 0x09); intp 1754 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) /*cut 1.x and 2.0*/ intp 1755 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CAR2CFG, 0x26); intp 1757 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CAR2CFG, 0x66); intp 1759 drivers/media/dvb-frontends/stv0900_sw.c if (intp->demod_mode != STV0900_SINGLE) { intp 1760 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x11) intp 1761 drivers/media/dvb-frontends/stv0900_sw.c stv0900_stop_all_s2_modcod(intp, demod); intp 1763 drivers/media/dvb-frontends/stv0900_sw.c stv0900_activate_s2_modcod(intp, demod); intp 1766 drivers/media/dvb-frontends/stv0900_sw.c stv0900_activate_s2_modcod_single(intp, demod); intp 1768 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_viterbi_tracq(intp, demod); intp 1773 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS1_ENABLE, 1); intp 1774 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, DVBS2_ENABLE, 1); intp 1775 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, STOP_CLKVIT, 0); intp 1776 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ACLC, 0x1a); intp 1777 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, BCLC, 0x09); intp 1778 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_dvbs1_track_car_loop(intp, intp 1780 drivers/media/dvb-frontends/stv0900_sw.c intp->symbol_rate[demod]); intp 1781 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) /*cut 1.x and 2.0*/ intp 1782 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CAR2CFG, 0x26); intp 1784 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CAR2CFG, 0x66); intp 1786 drivers/media/dvb-frontends/stv0900_sw.c if (intp->demod_mode != STV0900_SINGLE) { intp 1787 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x11) intp 1788 drivers/media/dvb-frontends/stv0900_sw.c stv0900_stop_all_s2_modcod(intp, demod); intp 1790 drivers/media/dvb-frontends/stv0900_sw.c stv0900_activate_s2_modcod(intp, demod); intp 1793 drivers/media/dvb-frontends/stv0900_sw.c stv0900_activate_s2_modcod_single(intp, demod); intp 1795 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_viterbi_tracq(intp, demod); intp 1796 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_viterbi_standard(intp, intp 1797 drivers/media/dvb-frontends/stv0900_sw.c intp->srch_standard[demod], intp 1798 drivers/media/dvb-frontends/stv0900_sw.c intp->fec[demod], demod); intp 1807 drivers/media/dvb-frontends/stv0900_sw.c struct stv0900_internal *intp = state->internal; intp 1821 drivers/media/dvb-frontends/stv0900_sw.c algo = intp->srch_algo[demod]; intp 1822 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 1); intp 1823 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDISTATE, 0x5c); intp 1824 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) { intp 1825 drivers/media/dvb-frontends/stv0900_sw.c if (intp->symbol_rate[demod] > 5000000) intp 1826 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x9e); intp 1828 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x82); intp 1830 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELABS, 0x88); intp 1833 drivers/media/dvb-frontends/stv0900_sw.c intp->symbol_rate[demod], intp 1834 drivers/media/dvb-frontends/stv0900_sw.c intp->srch_algo[demod]); intp 1836 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_algo[demod] == STV0900_BLIND_SEARCH) { intp 1837 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] = 2 * 36000000; intp 1839 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGCFG2, 0xc0); intp 1840 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELMANT, 0x70); intp 1842 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, 1000000, demod); intp 1844 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, DMDT0M, 0x20); intp 1845 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGCFG, 0xd2); intp 1847 drivers/media/dvb-frontends/stv0900_sw.c if (intp->symbol_rate[demod] < 2000000) intp 1848 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELMANT, 0x63); intp 1850 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, CORRELMANT, 0x70); intp 1852 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, AGC2REF, 0x38); intp 1854 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] = intp 1855 drivers/media/dvb-frontends/stv0900_sw.c stv0900_carrier_width(intp->symbol_rate[demod], intp 1856 drivers/media/dvb-frontends/stv0900_sw.c intp->rolloff); intp 1857 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id >= 0x20) { intp 1858 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, KREFTMG, 0x5a); intp 1860 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_algo[demod] == STV0900_COLD_START) { intp 1861 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] += 10000000; intp 1862 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] *= 15; intp 1863 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] /= 10; intp 1864 drivers/media/dvb-frontends/stv0900_sw.c } else if (intp->srch_algo[demod] == STV0900_WARM_START) intp 1865 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] += 10000000; intp 1868 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, KREFTMG, 0xc1); intp 1869 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] += 10000000; intp 1870 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] *= 15; intp 1871 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod] /= 10; intp 1874 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, TMGCFG2, 0xc1); intp 1876 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_symbol_rate(intp, intp->mclk, intp 1877 drivers/media/dvb-frontends/stv0900_sw.c intp->symbol_rate[demod], demod); intp 1878 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_max_symbol_rate(intp, intp->mclk, intp 1879 drivers/media/dvb-frontends/stv0900_sw.c intp->symbol_rate[demod], demod); intp 1880 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_min_symbol_rate(intp, intp->mclk, intp 1881 drivers/media/dvb-frontends/stv0900_sw.c intp->symbol_rate[demod], demod); intp 1882 drivers/media/dvb-frontends/stv0900_sw.c if (intp->symbol_rate[demod] >= 10000000) intp 1889 drivers/media/dvb-frontends/stv0900_sw.c if (intp->tuner_type[demod] == 3) intp 1890 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_tuner_auto(intp, intp->freq[demod], intp 1891 drivers/media/dvb-frontends/stv0900_sw.c intp->bw[demod], demod); intp 1893 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_tuner(fe, intp->freq[demod], intp->bw[demod]); intp 1895 drivers/media/dvb-frontends/stv0900_sw.c agc1_power = MAKEWORD(stv0900_get_bits(intp, AGCIQ_VALUE1), intp 1896 drivers/media/dvb-frontends/stv0900_sw.c stv0900_get_bits(intp, AGCIQ_VALUE0)); intp 1902 drivers/media/dvb-frontends/stv0900_sw.c aq_power += (stv0900_get_bits(intp, POWER_I) + intp 1903 drivers/media/dvb-frontends/stv0900_sw.c stv0900_get_bits(intp, POWER_Q)) / 2; intp 1909 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = FALSE; intp 1913 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, SPECINV_CONTROL, intp 1914 drivers/media/dvb-frontends/stv0900_sw.c intp->srch_iq_inv[demod]); intp 1915 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x20) /*cut 2.0*/ intp 1916 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, MANUALSX_ROLLOFF, 1); intp 1918 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, MANUALS2_ROLLOFF, 1); intp 1920 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_search_standard(intp, demod); intp 1922 drivers/media/dvb-frontends/stv0900_sw.c if (intp->srch_algo[demod] != STV0900_BLIND_SEARCH) intp 1923 drivers/media/dvb-frontends/stv0900_sw.c stv0900_start_search(intp, demod); intp 1929 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id == 0x12) { intp 1930 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1932 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 1); intp 1933 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1941 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_get_demod_lock(intp, demod, demod_timeout); intp 1945 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_check_timing_lock(intp, demod) == TRUE) intp 1946 drivers/media/dvb-frontends/stv0900_sw.c lock = stv0900_sw_algo(intp, demod); intp 1955 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id <= 0x11) { intp 1961 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1963 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1965 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 1); intp 1966 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1969 drivers/media/dvb-frontends/stv0900_sw.c } else if (intp->chip_id >= 0x20) { intp 1970 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1972 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 1); intp 1973 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RST_HWARE, 0); intp 1976 drivers/media/dvb-frontends/stv0900_sw.c if (stv0900_wait_for_lock(intp, demod, intp 1979 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = TRUE; intp 1980 drivers/media/dvb-frontends/stv0900_sw.c if (intp->result[demod].standard == intp 1982 drivers/media/dvb-frontends/stv0900_sw.c stv0900_set_dvbs2_rolloff(intp, demod); intp 1983 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RESET_UPKO_COUNT, 1); intp 1984 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_bits(intp, RESET_UPKO_COUNT, 0); intp 1985 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ERRCTRL1, 0x67); intp 1987 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ERRCTRL1, 0x75); intp 1990 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, FBERCPT4, 0); intp 1991 drivers/media/dvb-frontends/stv0900_sw.c stv0900_write_reg(intp, ERRCTRL2, 0xc1); intp 1995 drivers/media/dvb-frontends/stv0900_sw.c no_signal = stv0900_check_signal_presence(intp, demod); intp 1997 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = FALSE; intp 2004 drivers/media/dvb-frontends/stv0900_sw.c if (intp->chip_id > 0x11) { intp 2005 drivers/media/dvb-frontends/stv0900_sw.c intp->result[demod].locked = FALSE; intp 2009 drivers/media/dvb-frontends/stv0900_sw.c if ((stv0900_get_bits(intp, HEADER_MODE) == STV0900_DVBS_FOUND) && intp 2010 drivers/media/dvb-frontends/stv0900_sw.c (intp->srch_iq_inv[demod] <= STV0900_IQ_AUTO_NORMAL_FIRST)) intp 242 sound/core/control_compat.c s32 __user *intp = valuep; intp 244 sound/core/control_compat.c if (get_user(val, &intp[i])) intp 274 sound/core/control_compat.c s32 __user *intp = valuep; intp 277 sound/core/control_compat.c if (put_user(val, &intp[i]))