Lines Matching refs:ext_attr
2235 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in hi_cfg_command() local
2240 ext_attr = (struct drxj_data *) demod->my_ext_attr; in hi_cfg_command()
2244 hi_cmd.param2 = ext_attr->hi_cfg_timing_div; in hi_cfg_command()
2245 hi_cmd.param3 = ext_attr->hi_cfg_bridge_delay; in hi_cfg_command()
2246 hi_cmd.param4 = ext_attr->hi_cfg_wake_up_key; in hi_cfg_command()
2247 hi_cmd.param5 = ext_attr->hi_cfg_ctrl; in hi_cfg_command()
2248 hi_cmd.param6 = ext_attr->hi_cfg_transmit; in hi_cfg_command()
2257 ext_attr->hi_cfg_ctrl &= (~(SIO_HI_RA_RAM_PAR_5_CFG_SLEEP_ZZZ)); in hi_cfg_command()
2390 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in init_hi() local
2395 ext_attr = (struct drxj_data *) demod->my_ext_attr; in init_hi()
2408 ext_attr->hi_cfg_timing_div = in init_hi()
2411 if ((ext_attr->hi_cfg_timing_div) > SIO_HI_RA_RAM_PAR_2_CFG_DIV__M) in init_hi()
2412 ext_attr->hi_cfg_timing_div = SIO_HI_RA_RAM_PAR_2_CFG_DIV__M; in init_hi()
2416 ext_attr->hi_cfg_bridge_delay = in init_hi()
2420 if ((ext_attr->hi_cfg_bridge_delay) > SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M) in init_hi()
2421 ext_attr->hi_cfg_bridge_delay = SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M; in init_hi()
2423 ext_attr->hi_cfg_bridge_delay += ((ext_attr->hi_cfg_bridge_delay) << in init_hi()
2428 ext_attr->hi_cfg_wake_up_key = DRXJ_WAKE_UP_KEY; in init_hi()
2430 ext_attr->hi_cfg_ctrl = (SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE); in init_hi()
2432 ext_attr->hi_cfg_transmit = SIO_HI_RA_RAM_PAR_6__PRE; in init_hi()
2475 struct drxj_data *ext_attr = (struct drxj_data *) NULL; in get_device_capabilities() local
2483 ext_attr = (struct drxj_data *) demod->my_ext_attr; in get_device_capabilities()
2531 ext_attr->mfx = (u8) ((sio_top_jtagid_lo >> 29) & 0xF); in get_device_capabilities()
2552 ext_attr->has_lna = true; in get_device_capabilities()
2553 ext_attr->has_ntsc = false; in get_device_capabilities()
2554 ext_attr->has_btsc = false; in get_device_capabilities()
2555 ext_attr->has_oob = false; in get_device_capabilities()
2556 ext_attr->has_smatx = true; in get_device_capabilities()
2557 ext_attr->has_smarx = false; in get_device_capabilities()
2558 ext_attr->has_gpio = false; in get_device_capabilities()
2559 ext_attr->has_irqn = false; in get_device_capabilities()
2562 ext_attr->has_lna = false; in get_device_capabilities()
2563 ext_attr->has_ntsc = false; in get_device_capabilities()
2564 ext_attr->has_btsc = false; in get_device_capabilities()
2565 ext_attr->has_oob = false; in get_device_capabilities()
2566 ext_attr->has_smatx = true; in get_device_capabilities()
2567 ext_attr->has_smarx = false; in get_device_capabilities()
2568 ext_attr->has_gpio = false; in get_device_capabilities()
2569 ext_attr->has_irqn = false; in get_device_capabilities()
2572 ext_attr->has_lna = true; in get_device_capabilities()
2573 ext_attr->has_ntsc = true; in get_device_capabilities()
2574 ext_attr->has_btsc = false; in get_device_capabilities()
2575 ext_attr->has_oob = false; in get_device_capabilities()
2576 ext_attr->has_smatx = true; in get_device_capabilities()
2577 ext_attr->has_smarx = true; in get_device_capabilities()
2578 ext_attr->has_gpio = true; in get_device_capabilities()
2579 ext_attr->has_irqn = false; in get_device_capabilities()
2582 ext_attr->has_lna = false; in get_device_capabilities()
2583 ext_attr->has_ntsc = true; in get_device_capabilities()
2584 ext_attr->has_btsc = false; in get_device_capabilities()
2585 ext_attr->has_oob = false; in get_device_capabilities()
2586 ext_attr->has_smatx = true; in get_device_capabilities()
2587 ext_attr->has_smarx = true; in get_device_capabilities()
2588 ext_attr->has_gpio = true; in get_device_capabilities()
2589 ext_attr->has_irqn = false; in get_device_capabilities()
2592 ext_attr->has_lna = true; in get_device_capabilities()
2593 ext_attr->has_ntsc = true; in get_device_capabilities()
2594 ext_attr->has_btsc = true; in get_device_capabilities()
2595 ext_attr->has_oob = false; in get_device_capabilities()
2596 ext_attr->has_smatx = true; in get_device_capabilities()
2597 ext_attr->has_smarx = true; in get_device_capabilities()
2598 ext_attr->has_gpio = true; in get_device_capabilities()
2599 ext_attr->has_irqn = false; in get_device_capabilities()
2602 ext_attr->has_lna = false; in get_device_capabilities()
2603 ext_attr->has_ntsc = true; in get_device_capabilities()
2604 ext_attr->has_btsc = true; in get_device_capabilities()
2605 ext_attr->has_oob = false; in get_device_capabilities()
2606 ext_attr->has_smatx = true; in get_device_capabilities()
2607 ext_attr->has_smarx = true; in get_device_capabilities()
2608 ext_attr->has_gpio = true; in get_device_capabilities()
2609 ext_attr->has_irqn = false; in get_device_capabilities()
2612 ext_attr->has_lna = true; in get_device_capabilities()
2613 ext_attr->has_ntsc = false; in get_device_capabilities()
2614 ext_attr->has_btsc = false; in get_device_capabilities()
2615 ext_attr->has_oob = true; in get_device_capabilities()
2616 ext_attr->has_smatx = true; in get_device_capabilities()
2617 ext_attr->has_smarx = true; in get_device_capabilities()
2618 ext_attr->has_gpio = true; in get_device_capabilities()
2619 ext_attr->has_irqn = true; in get_device_capabilities()
2622 ext_attr->has_lna = false; in get_device_capabilities()
2623 ext_attr->has_ntsc = true; in get_device_capabilities()
2624 ext_attr->has_btsc = true; in get_device_capabilities()
2625 ext_attr->has_oob = true; in get_device_capabilities()
2626 ext_attr->has_smatx = true; in get_device_capabilities()
2627 ext_attr->has_smarx = true; in get_device_capabilities()
2628 ext_attr->has_gpio = true; in get_device_capabilities()
2629 ext_attr->has_irqn = true; in get_device_capabilities()
2632 ext_attr->has_lna = true; in get_device_capabilities()
2633 ext_attr->has_ntsc = true; in get_device_capabilities()
2634 ext_attr->has_btsc = true; in get_device_capabilities()
2635 ext_attr->has_oob = true; in get_device_capabilities()
2636 ext_attr->has_smatx = true; in get_device_capabilities()
2637 ext_attr->has_smarx = true; in get_device_capabilities()
2638 ext_attr->has_gpio = true; in get_device_capabilities()
2639 ext_attr->has_irqn = true; in get_device_capabilities()
2642 ext_attr->has_lna = false; in get_device_capabilities()
2643 ext_attr->has_ntsc = true; in get_device_capabilities()
2644 ext_attr->has_btsc = true; in get_device_capabilities()
2645 ext_attr->has_oob = true; in get_device_capabilities()
2646 ext_attr->has_smatx = true; in get_device_capabilities()
2647 ext_attr->has_smarx = true; in get_device_capabilities()
2648 ext_attr->has_gpio = true; in get_device_capabilities()
2649 ext_attr->has_irqn = true; in get_device_capabilities()
2730 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_set_cfg_mpeg_output() local
2752 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_mpeg_output()
2758 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2773 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2820 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
2842 (ext_attr->curr_symbol_rate / 8) * nr_bits * 188; in ctrl_set_cfg_mpeg_output()
2914 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2920 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
2949 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2955 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
3021 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
3034 if (ext_attr->curr_symbol_rate >= in ctrl_set_cfg_mpeg_output()
3086 if (ext_attr->mpeg_output_clock_rate != DRXJ_MPEGOUTPUT_CLOCK_RATE_AUTO) in ctrl_set_cfg_mpeg_output()
3087 fec_oc_dto_period = ext_attr->mpeg_output_clock_rate - 1; in ctrl_set_cfg_mpeg_output()
3372 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in set_mpegtei_handling() local
3380 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_mpegtei_handling()
3404 if (ext_attr->disable_te_ihandling) { in set_mpegtei_handling()
3445 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in bit_reverse_mpeg_output() local
3451 ext_attr = (struct drxj_data *) demod->my_ext_attr; in bit_reverse_mpeg_output()
3462 if (ext_attr->bit_reverse_mpeg_outout) in bit_reverse_mpeg_output()
3488 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in set_mpeg_start_width() local
3495 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_mpeg_start_width()
3506 if (ext_attr->mpeg_start_width == DRXJ_MPEG_START_WIDTH_8CLKCYC) in set_mpeg_start_width()
3536 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_set_uio_cfg() local
3542 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_uio_cfg()
3554 if (!ext_attr->has_smatx) in ctrl_set_uio_cfg()
3560 ext_attr->uio_sma_tx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3563 ext_attr->uio_sma_tx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3578 if (!ext_attr->has_smarx) in ctrl_set_uio_cfg()
3583 ext_attr->uio_sma_rx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3586 ext_attr->uio_sma_rx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3601 if (!ext_attr->has_gpio) in ctrl_set_uio_cfg()
3606 ext_attr->uio_gpio_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3609 ext_attr->uio_gpio_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3624 if (!ext_attr->has_irqn) in ctrl_set_uio_cfg()
3628 ext_attr->uio_irqn_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3637 ext_attr->uio_irqn_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3671 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_uio_write() local
3679 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_uio_write()
3691 if (!ext_attr->has_smatx) in ctrl_uio_write()
3693 if ((ext_attr->uio_sma_tx_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3694 && (ext_attr->uio_sma_tx_mode != DRX_UIO_MODE_FIRMWARE_SAW)) { in ctrl_uio_write()
3731 if (!ext_attr->has_smarx) in ctrl_uio_write()
3733 if (ext_attr->uio_sma_rx_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3770 if (!ext_attr->has_gpio) in ctrl_uio_write()
3772 if (ext_attr->uio_gpio_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3809 if (!ext_attr->has_irqn) in ctrl_uio_write()
3812 if (ext_attr->uio_irqn_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3914 struct drxj_data *ext_attr = NULL; in smart_ant_init() local
3921 ext_attr = (struct drxj_data *) demod->my_ext_attr; in smart_ant_init()
3935 if (ext_attr->smart_ant_inverted) { in smart_ant_init()
4387 struct drxj_data *ext_attr = NULL; in init_agc() local
4409 ext_attr = (struct drxj_data *) demod->my_ext_attr; in init_agc()
4411 switch (ext_attr->standard) { in init_agc()
4489 p_agc_if_settings = &(ext_attr->vsb_if_agc_cfg); in init_agc()
4490 p_agc_rf_settings = &(ext_attr->vsb_rf_agc_cfg); in init_agc()
4557 p_agc_if_settings = &(ext_attr->qam_if_agc_cfg); in init_agc()
4558 p_agc_rf_settings = &(ext_attr->qam_rf_agc_cfg); in init_agc()
4765 struct drxj_data *ext_attr = demod->my_ext_attr; in set_frequency() local
4781 rf_mirror = (ext_attr->mirror == DRX_MIRROR_YES) ? true : false; in set_frequency()
4787 switch (ext_attr->standard) { in set_frequency()
4842 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in set_frequency()
4843 ext_attr->pos_image = (bool) (rf_mirror ^ tuner_mirror ^ select_pos_image); in set_frequency()
4867 struct drxj_data *ext_attr = NULL; in get_acc_pkt_err() local
4870 ext_attr = (struct drxj_data *) demod->my_ext_attr; in get_acc_pkt_err()
4878 if (ext_attr->reset_pkt_err_acc) { in get_acc_pkt_err()
4881 ext_attr->reset_pkt_err_acc = false; in get_acc_pkt_err()
4913 struct drxj_data *ext_attr = NULL; in set_agc_rf() local
4922 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_rf()
4933 if ((ext_attr->standard == agc_settings->standard) || in set_agc_rf()
4934 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_rf()
4936 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_rf()
4963 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_rf()
4965 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_rf()
4994 p_agc_settings = &(ext_attr->vsb_if_agc_cfg); in set_agc_rf()
4996 p_agc_settings = &(ext_attr->qam_if_agc_cfg); in set_agc_rf()
4998 p_agc_settings = &(ext_attr->atv_if_agc_cfg); in set_agc_rf()
5098 ext_attr->vsb_rf_agc_cfg = *agc_settings; in set_agc_rf()
5104 ext_attr->qam_rf_agc_cfg = *agc_settings; in set_agc_rf()
5127 struct drxj_data *ext_attr = NULL; in set_agc_if() local
5136 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_if()
5147 if ((ext_attr->standard == agc_settings->standard) || in set_agc_if()
5148 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_if()
5150 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_if()
5177 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_if()
5179 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_if()
5208 p_agc_settings = &(ext_attr->vsb_rf_agc_cfg); in set_agc_if()
5210 p_agc_settings = &(ext_attr->qam_rf_agc_cfg); in set_agc_if()
5212 p_agc_settings = &(ext_attr->atv_rf_agc_cfg); in set_agc_if()
5327 ext_attr->vsb_if_agc_cfg = *agc_settings; in set_agc_if()
5333 ext_attr->qam_if_agc_cfg = *agc_settings; in set_agc_if()
5718 struct drxj_data *ext_attr = NULL; in set_vsb() local
5754 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_vsb()
5821 ext_attr->iqm_rc_rate_ofs = 0x00AD0D79; in set_vsb()
5822 rc = drxdap_fasi_write_reg32(dev_addr, IQM_RC_RATE_OFS_LO__A, ext_attr->iqm_rc_rate_ofs, 0); in set_vsb()
6038 if (!ext_attr->has_lna) { in set_vsb()
6063 rc = set_agc_if(demod, &(ext_attr->vsb_if_agc_cfg), false); in set_vsb()
6068 rc = set_agc_rf(demod, &(ext_attr->vsb_rf_agc_cfg), false); in set_vsb()
6078 vsb_pga_cfg.gain = ext_attr->vsb_pga_cfg; in set_vsb()
6085 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->vsb_pre_saw_cfg)); in set_vsb()
6477 struct drxj_data *ext_attr = NULL; /* Global data container for DRXJ specific data */ in set_qam_measurement() local
6491 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_measurement()
6493 fec_bits_desired = ext_attr->fec_bits_desired; in set_qam_measurement()
6494 fec_rs_prescale = ext_attr->fec_rs_prescale; in set_qam_measurement()
6523 switch (ext_attr->standard) { in set_qam_measurement()
6535 ext_attr->fec_rs_plen = fec_rs_plen; /* for getSigQual */ in set_qam_measurement()
6542 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_measurement()
6550 switch (ext_attr->standard) { in set_qam_measurement()
6587 ext_attr->fec_rs_period = (u16) fec_rs_period; in set_qam_measurement()
6588 ext_attr->fec_rs_prescale = fec_rs_prescale; in set_qam_measurement()
6605 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_measurement()
6614 fec_vd_plen = ext_attr->fec_vd_plen; in set_qam_measurement()
6615 qam_vd_prescale = ext_attr->qam_vd_prescale; in set_qam_measurement()
6656 ext_attr->qam_vd_period = (u16) qam_vd_period; in set_qam_measurement()
6657 ext_attr->qam_vd_prescale = qam_vd_prescale; in set_qam_measurement()
7858 struct drxj_data *ext_attr = NULL; in set_qam() local
7996 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam()
8000 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8040 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8044 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8048 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8148 ext_attr->iqm_rc_rate_ofs = iqm_rc_rate; in set_qam()
8182 if (!ext_attr->has_lna) { in set_qam()
8263 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8469 rc = set_agc_if(demod, &(ext_attr->qam_if_agc_cfg), false); in set_qam()
8474 rc = set_agc_rf(demod, &(ext_attr->qam_rf_agc_cfg), false); in set_qam()
8484 qam_pga_cfg.gain = ext_attr->qam_pga_cfg; in set_qam()
8491 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->qam_pre_saw_cfg)); in set_qam()
8499 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8510 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8539 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8676 struct drxj_data *ext_attr = demod->my_ext_attr; in qam_flip_spec() local
8766 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in qam_flip_spec()
8767 ext_attr->pos_image = (ext_attr->pos_image) ? false : true; in qam_flip_spec()
8870 struct drxj_data *ext_attr = demod->my_ext_attr; in qam64auto() local
8941 ext_attr->mirror = DRX_MIRROR_YES; in qam64auto()
9018 struct drxj_data *ext_attr = demod->my_ext_attr; in qam256auto() local
9058 ext_attr->mirror = DRX_MIRROR_YES; in qam256auto()
9099 struct drxj_data *ext_attr = NULL; in set_qam_channel() local
9105 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_channel()
9115 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_channel()
9118 ext_attr->constellation = channel->constellation; in set_qam_channel()
9120 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9122 ext_attr->mirror = channel->mirror; in set_qam_channel()
9142 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_channel()
9149 ext_attr->constellation = DRX_CONSTELLATION_QAM256; in set_qam_channel()
9151 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9153 ext_attr->mirror = channel->mirror; in set_qam_channel()
9174 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9176 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9178 ext_attr->mirror = channel->mirror; in set_qam_channel()
9224 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam_channel()
9228 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9232 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9234 ext_attr->mirror = channel->mirror; in set_qam_channel()
9462 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_get_qam_sig_quality() local
9466 enum drx_modulation constellation = ext_attr->constellation; in ctrl_get_qam_sig_quality()
9516 fec_rs_period = ext_attr->fec_rs_period; in ctrl_get_qam_sig_quality()
9517 fec_rs_prescale = ext_attr->fec_rs_prescale; in ctrl_get_qam_sig_quality()
9518 rs_bit_cnt = fec_rs_period * fec_rs_prescale * ext_attr->fec_rs_plen; in ctrl_get_qam_sig_quality()
9519 qam_vd_period = ext_attr->qam_vd_period; in ctrl_get_qam_sig_quality()
9520 qam_vd_prescale = ext_attr->qam_vd_prescale; in ctrl_get_qam_sig_quality()
9521 vd_bit_cnt = qam_vd_period * qam_vd_prescale * ext_attr->fec_vd_plen; in ctrl_get_qam_sig_quality()
9631 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in ctrl_get_qam_sig_quality()
9842 struct drxj_data *ext_attr = NULL; in power_down_aud() local
9846 ext_attr = (struct drxj_data *) demod->my_ext_attr; in power_down_aud()
9854 ext_attr->aud_data.audio_is_active = false; in power_down_aud()
9924 struct drxj_data *ext_attr = NULL; in ctrl_set_oob() local
9947 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_oob()
9948 mirror_freq_spect_oob = ext_attr->mirror_freq_spect_oob; in ctrl_set_oob()
9974 ext_attr->oob_power_on = false; in ctrl_set_oob()
9986 u16 *trk_filtercfg = ext_attr->oob_trk_filter_cfg; in ctrl_set_oob()
10150 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_LOPOW_W__A, ext_attr->oob_lo_pow, 0); in ctrl_set_oob()
10406 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_STHR_W__A, ext_attr->oob_pre_saw, 0); in ctrl_set_oob()
10412 ext_attr->oob_power_on = true; in ctrl_set_oob()
10446 struct drxj_data *ext_attr = NULL; in ctrl_set_channel() local
10460 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_channel()
10461 standard = ext_attr->standard; in ctrl_set_channel()
10583 if ((ext_attr->uio_sma_tx_mode) == DRX_UIO_MODE_FIRMWARE_SAW) { in ctrl_set_channel()
10621 ext_attr->mirror = DRX_MIRROR_NO; in ctrl_set_channel()
10623 ext_attr->mirror = channel->mirror; in ctrl_set_channel()
10652 ext_attr->reset_pkt_err_acc = true; in ctrl_set_channel()
10679 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_sig_quality() local
10682 enum drx_standard standard = ext_attr->standard; in ctrl_sig_quality()
10791 struct drxj_data *ext_attr = NULL; in ctrl_lock_status() local
10808 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_lock_status()
10809 standard = ext_attr->standard; in ctrl_lock_status()
10880 struct drxj_data *ext_attr = NULL; in ctrl_set_standard() local
10888 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_standard()
10889 prev_standard = ext_attr->standard; in ctrl_set_standard()
10925 ext_attr->standard = *standard; in ctrl_set_standard()
10950 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10957 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10963 static void drxj_reset_mode(struct drxj_data *ext_attr) in drxj_reset_mode() argument
10966 if (ext_attr->has_lna) { in drxj_reset_mode()
10969 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10970 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10971 ext_attr->qam_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10973 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10974 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10975 ext_attr->vsb_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10979 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10980 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10981 ext_attr->qam_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10982 ext_attr->qam_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10983 ext_attr->qam_if_agc_cfg.speed = 3; in drxj_reset_mode()
10984 ext_attr->qam_if_agc_cfg.top = 1297; in drxj_reset_mode()
10985 ext_attr->qam_pga_cfg = 140; in drxj_reset_mode()
10987 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10988 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10989 ext_attr->vsb_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10990 ext_attr->vsb_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10991 ext_attr->vsb_if_agc_cfg.speed = 3; in drxj_reset_mode()
10992 ext_attr->vsb_if_agc_cfg.top = 1024; in drxj_reset_mode()
10993 ext_attr->vsb_pga_cfg = 140; in drxj_reset_mode()
10998 ext_attr->qam_rf_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10999 ext_attr->qam_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
11000 ext_attr->qam_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
11001 ext_attr->qam_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
11002 ext_attr->qam_rf_agc_cfg.speed = 3; in drxj_reset_mode()
11003 ext_attr->qam_rf_agc_cfg.top = 9500; in drxj_reset_mode()
11004 ext_attr->qam_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
11005 ext_attr->qam_pre_saw_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
11006 ext_attr->qam_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11007 ext_attr->qam_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11010 ext_attr->vsb_rf_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11011 ext_attr->vsb_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
11012 ext_attr->vsb_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
11013 ext_attr->vsb_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
11014 ext_attr->vsb_rf_agc_cfg.speed = 3; in drxj_reset_mode()
11015 ext_attr->vsb_rf_agc_cfg.top = 9500; in drxj_reset_mode()
11016 ext_attr->vsb_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
11017 ext_attr->vsb_pre_saw_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11018 ext_attr->vsb_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11019 ext_attr->vsb_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11038 struct drxj_data *ext_attr = (struct drxj_data *) NULL; in ctrl_power_mode() local
11044 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_power_mode()
11087 drxj_reset_mode(ext_attr); in ctrl_power_mode()
11100 switch (ext_attr->standard) { in ctrl_power_mode()
11124 rc = power_down_atv(demod, ext_attr->standard, true); in ctrl_power_mode()
11137 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_power_mode()
11160 ext_attr->hi_cfg_ctrl |= SIO_HI_RA_RAM_PAR_5_CFG_SLEEP_ZZZ; in ctrl_power_mode()
11195 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_pre_saw() local
11199 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_pre_saw()
11208 if ((ext_attr->standard == pre_saw->standard) || in ctrl_set_cfg_pre_saw()
11209 (DRXJ_ISQAMSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11211 (DRXJ_ISATVSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11223 ext_attr->vsb_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11229 ext_attr->qam_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11258 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_afe_gain() local
11267 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_afe_gain()
11293 if (ext_attr->standard == afe_gain->standard) { in ctrl_set_cfg_afe_gain()
11304 ext_attr->vsb_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11310 ext_attr->qam_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11347 struct drxj_data *ext_attr = NULL; in drxj_open() local
11368 ext_attr = (struct drxj_data *) demod->my_ext_attr; in drxj_open()
11495 drxj_reset_mode(ext_attr); in drxj_open()
11496 ext_attr->standard = DRX_STANDARD_UNKNOWN; in drxj_open()
11541 ext_attr->aud_data = drxj_default_aud_data_g; in drxj_open()
12238 struct drxj_data *ext_attr = demod->my_ext_attr; in drx39xxj_set_lna() local
12241 if (!ext_attr->has_lna) { in drx39xxj_set_lna()