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()
2391 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in init_hi() local
2396 ext_attr = (struct drxj_data *) demod->my_ext_attr; in init_hi()
2409 ext_attr->hi_cfg_timing_div = in init_hi()
2412 if ((ext_attr->hi_cfg_timing_div) > SIO_HI_RA_RAM_PAR_2_CFG_DIV__M) in init_hi()
2413 ext_attr->hi_cfg_timing_div = SIO_HI_RA_RAM_PAR_2_CFG_DIV__M; in init_hi()
2417 ext_attr->hi_cfg_bridge_delay = in init_hi()
2421 if ((ext_attr->hi_cfg_bridge_delay) > SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M) in init_hi()
2422 ext_attr->hi_cfg_bridge_delay = SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M; in init_hi()
2424 ext_attr->hi_cfg_bridge_delay += ((ext_attr->hi_cfg_bridge_delay) << in init_hi()
2429 ext_attr->hi_cfg_wake_up_key = DRXJ_WAKE_UP_KEY; in init_hi()
2431 ext_attr->hi_cfg_ctrl = (SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE); in init_hi()
2433 ext_attr->hi_cfg_transmit = SIO_HI_RA_RAM_PAR_6__PRE; in init_hi()
2476 struct drxj_data *ext_attr = (struct drxj_data *) NULL; in get_device_capabilities() local
2484 ext_attr = (struct drxj_data *) demod->my_ext_attr; in get_device_capabilities()
2532 ext_attr->mfx = (u8) ((sio_top_jtagid_lo >> 29) & 0xF); in get_device_capabilities()
2553 ext_attr->has_lna = true; in get_device_capabilities()
2554 ext_attr->has_ntsc = false; in get_device_capabilities()
2555 ext_attr->has_btsc = false; in get_device_capabilities()
2556 ext_attr->has_oob = false; in get_device_capabilities()
2557 ext_attr->has_smatx = true; in get_device_capabilities()
2558 ext_attr->has_smarx = false; in get_device_capabilities()
2559 ext_attr->has_gpio = false; in get_device_capabilities()
2560 ext_attr->has_irqn = false; in get_device_capabilities()
2563 ext_attr->has_lna = false; in get_device_capabilities()
2564 ext_attr->has_ntsc = false; in get_device_capabilities()
2565 ext_attr->has_btsc = false; in get_device_capabilities()
2566 ext_attr->has_oob = false; in get_device_capabilities()
2567 ext_attr->has_smatx = true; in get_device_capabilities()
2568 ext_attr->has_smarx = false; in get_device_capabilities()
2569 ext_attr->has_gpio = false; in get_device_capabilities()
2570 ext_attr->has_irqn = false; in get_device_capabilities()
2573 ext_attr->has_lna = true; in get_device_capabilities()
2574 ext_attr->has_ntsc = true; in get_device_capabilities()
2575 ext_attr->has_btsc = false; in get_device_capabilities()
2576 ext_attr->has_oob = false; in get_device_capabilities()
2577 ext_attr->has_smatx = true; in get_device_capabilities()
2578 ext_attr->has_smarx = true; in get_device_capabilities()
2579 ext_attr->has_gpio = true; in get_device_capabilities()
2580 ext_attr->has_irqn = false; in get_device_capabilities()
2583 ext_attr->has_lna = false; in get_device_capabilities()
2584 ext_attr->has_ntsc = true; in get_device_capabilities()
2585 ext_attr->has_btsc = false; in get_device_capabilities()
2586 ext_attr->has_oob = false; in get_device_capabilities()
2587 ext_attr->has_smatx = true; in get_device_capabilities()
2588 ext_attr->has_smarx = true; in get_device_capabilities()
2589 ext_attr->has_gpio = true; in get_device_capabilities()
2590 ext_attr->has_irqn = false; in get_device_capabilities()
2593 ext_attr->has_lna = true; in get_device_capabilities()
2594 ext_attr->has_ntsc = true; in get_device_capabilities()
2595 ext_attr->has_btsc = true; in get_device_capabilities()
2596 ext_attr->has_oob = false; in get_device_capabilities()
2597 ext_attr->has_smatx = true; in get_device_capabilities()
2598 ext_attr->has_smarx = true; in get_device_capabilities()
2599 ext_attr->has_gpio = true; in get_device_capabilities()
2600 ext_attr->has_irqn = false; in get_device_capabilities()
2603 ext_attr->has_lna = false; in get_device_capabilities()
2604 ext_attr->has_ntsc = true; in get_device_capabilities()
2605 ext_attr->has_btsc = true; in get_device_capabilities()
2606 ext_attr->has_oob = false; in get_device_capabilities()
2607 ext_attr->has_smatx = true; in get_device_capabilities()
2608 ext_attr->has_smarx = true; in get_device_capabilities()
2609 ext_attr->has_gpio = true; in get_device_capabilities()
2610 ext_attr->has_irqn = false; in get_device_capabilities()
2613 ext_attr->has_lna = true; in get_device_capabilities()
2614 ext_attr->has_ntsc = false; in get_device_capabilities()
2615 ext_attr->has_btsc = false; in get_device_capabilities()
2616 ext_attr->has_oob = true; in get_device_capabilities()
2617 ext_attr->has_smatx = true; in get_device_capabilities()
2618 ext_attr->has_smarx = true; in get_device_capabilities()
2619 ext_attr->has_gpio = true; in get_device_capabilities()
2620 ext_attr->has_irqn = true; in get_device_capabilities()
2623 ext_attr->has_lna = false; in get_device_capabilities()
2624 ext_attr->has_ntsc = true; in get_device_capabilities()
2625 ext_attr->has_btsc = true; in get_device_capabilities()
2626 ext_attr->has_oob = true; in get_device_capabilities()
2627 ext_attr->has_smatx = true; in get_device_capabilities()
2628 ext_attr->has_smarx = true; in get_device_capabilities()
2629 ext_attr->has_gpio = true; in get_device_capabilities()
2630 ext_attr->has_irqn = true; in get_device_capabilities()
2633 ext_attr->has_lna = true; in get_device_capabilities()
2634 ext_attr->has_ntsc = true; in get_device_capabilities()
2635 ext_attr->has_btsc = true; in get_device_capabilities()
2636 ext_attr->has_oob = true; in get_device_capabilities()
2637 ext_attr->has_smatx = true; in get_device_capabilities()
2638 ext_attr->has_smarx = true; in get_device_capabilities()
2639 ext_attr->has_gpio = true; in get_device_capabilities()
2640 ext_attr->has_irqn = true; in get_device_capabilities()
2643 ext_attr->has_lna = false; in get_device_capabilities()
2644 ext_attr->has_ntsc = true; in get_device_capabilities()
2645 ext_attr->has_btsc = true; in get_device_capabilities()
2646 ext_attr->has_oob = true; in get_device_capabilities()
2647 ext_attr->has_smatx = true; in get_device_capabilities()
2648 ext_attr->has_smarx = true; in get_device_capabilities()
2649 ext_attr->has_gpio = true; in get_device_capabilities()
2650 ext_attr->has_irqn = true; in get_device_capabilities()
2731 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_set_cfg_mpeg_output() local
2753 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_mpeg_output()
2759 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2774 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2821 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
2843 (ext_attr->curr_symbol_rate / 8) * nr_bits * 188; in ctrl_set_cfg_mpeg_output()
2915 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2921 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
2950 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2956 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
3022 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
3035 if (ext_attr->curr_symbol_rate >= in ctrl_set_cfg_mpeg_output()
3087 if (ext_attr->mpeg_output_clock_rate != DRXJ_MPEGOUTPUT_CLOCK_RATE_AUTO) in ctrl_set_cfg_mpeg_output()
3088 fec_oc_dto_period = ext_attr->mpeg_output_clock_rate - 1; in ctrl_set_cfg_mpeg_output()
3373 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in set_mpegtei_handling() local
3381 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_mpegtei_handling()
3405 if (ext_attr->disable_te_ihandling) { in set_mpegtei_handling()
3446 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in bit_reverse_mpeg_output() local
3452 ext_attr = (struct drxj_data *) demod->my_ext_attr; in bit_reverse_mpeg_output()
3463 if (ext_attr->bit_reverse_mpeg_outout) in bit_reverse_mpeg_output()
3489 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in set_mpeg_start_width() local
3496 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_mpeg_start_width()
3507 if (ext_attr->mpeg_start_width == DRXJ_MPEG_START_WIDTH_8CLKCYC) in set_mpeg_start_width()
3537 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_set_uio_cfg() local
3543 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_uio_cfg()
3555 if (!ext_attr->has_smatx) in ctrl_set_uio_cfg()
3561 ext_attr->uio_sma_tx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3564 ext_attr->uio_sma_tx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3579 if (!ext_attr->has_smarx) in ctrl_set_uio_cfg()
3584 ext_attr->uio_sma_rx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3587 ext_attr->uio_sma_rx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3603 if (!ext_attr->has_gpio) in ctrl_set_uio_cfg()
3608 ext_attr->uio_gpio_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3611 ext_attr->uio_gpio_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3627 if (!ext_attr->has_irqn) in ctrl_set_uio_cfg()
3631 ext_attr->uio_irqn_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3640 ext_attr->uio_irqn_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3675 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_uio_write() local
3683 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_uio_write()
3695 if (!ext_attr->has_smatx) in ctrl_uio_write()
3697 if ((ext_attr->uio_sma_tx_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3698 && (ext_attr->uio_sma_tx_mode != DRX_UIO_MODE_FIRMWARE_SAW)) { in ctrl_uio_write()
3735 if (!ext_attr->has_smarx) in ctrl_uio_write()
3737 if (ext_attr->uio_sma_rx_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3774 if (!ext_attr->has_gpio) in ctrl_uio_write()
3776 if (ext_attr->uio_gpio_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3813 if (!ext_attr->has_irqn) in ctrl_uio_write()
3816 if (ext_attr->uio_irqn_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3918 struct drxj_data *ext_attr = NULL; in smart_ant_init() local
3925 ext_attr = (struct drxj_data *) demod->my_ext_attr; in smart_ant_init()
3939 if (ext_attr->smart_ant_inverted) { in smart_ant_init()
4391 struct drxj_data *ext_attr = NULL; in init_agc() local
4413 ext_attr = (struct drxj_data *) demod->my_ext_attr; in init_agc()
4415 switch (ext_attr->standard) { in init_agc()
4493 p_agc_if_settings = &(ext_attr->vsb_if_agc_cfg); in init_agc()
4494 p_agc_rf_settings = &(ext_attr->vsb_rf_agc_cfg); in init_agc()
4561 p_agc_if_settings = &(ext_attr->qam_if_agc_cfg); in init_agc()
4562 p_agc_rf_settings = &(ext_attr->qam_rf_agc_cfg); in init_agc()
4769 struct drxj_data *ext_attr = demod->my_ext_attr; in set_frequency() local
4785 rf_mirror = (ext_attr->mirror == DRX_MIRROR_YES) ? true : false; in set_frequency()
4791 switch (ext_attr->standard) { in set_frequency()
4846 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in set_frequency()
4847 ext_attr->pos_image = (bool) (rf_mirror ^ tuner_mirror ^ select_pos_image); in set_frequency()
4871 struct drxj_data *ext_attr = NULL; in get_acc_pkt_err() local
4874 ext_attr = (struct drxj_data *) demod->my_ext_attr; in get_acc_pkt_err()
4882 if (ext_attr->reset_pkt_err_acc) { in get_acc_pkt_err()
4885 ext_attr->reset_pkt_err_acc = false; in get_acc_pkt_err()
4917 struct drxj_data *ext_attr = NULL; in set_agc_rf() local
4926 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_rf()
4937 if ((ext_attr->standard == agc_settings->standard) || in set_agc_rf()
4938 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_rf()
4940 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_rf()
4967 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_rf()
4969 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_rf()
4998 p_agc_settings = &(ext_attr->vsb_if_agc_cfg); in set_agc_rf()
5000 p_agc_settings = &(ext_attr->qam_if_agc_cfg); in set_agc_rf()
5002 p_agc_settings = &(ext_attr->atv_if_agc_cfg); in set_agc_rf()
5102 ext_attr->vsb_rf_agc_cfg = *agc_settings; in set_agc_rf()
5108 ext_attr->qam_rf_agc_cfg = *agc_settings; in set_agc_rf()
5131 struct drxj_data *ext_attr = NULL; in set_agc_if() local
5140 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_if()
5151 if ((ext_attr->standard == agc_settings->standard) || in set_agc_if()
5152 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_if()
5154 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_if()
5181 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_if()
5183 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_if()
5212 p_agc_settings = &(ext_attr->vsb_rf_agc_cfg); in set_agc_if()
5214 p_agc_settings = &(ext_attr->qam_rf_agc_cfg); in set_agc_if()
5216 p_agc_settings = &(ext_attr->atv_rf_agc_cfg); in set_agc_if()
5331 ext_attr->vsb_if_agc_cfg = *agc_settings; in set_agc_if()
5337 ext_attr->qam_if_agc_cfg = *agc_settings; in set_agc_if()
5722 struct drxj_data *ext_attr = NULL; in set_vsb() local
5758 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_vsb()
5825 ext_attr->iqm_rc_rate_ofs = 0x00AD0D79; in set_vsb()
5826 rc = drxdap_fasi_write_reg32(dev_addr, IQM_RC_RATE_OFS_LO__A, ext_attr->iqm_rc_rate_ofs, 0); in set_vsb()
6042 if (!ext_attr->has_lna) { in set_vsb()
6067 rc = set_agc_if(demod, &(ext_attr->vsb_if_agc_cfg), false); in set_vsb()
6072 rc = set_agc_rf(demod, &(ext_attr->vsb_rf_agc_cfg), false); in set_vsb()
6082 vsb_pga_cfg.gain = ext_attr->vsb_pga_cfg; in set_vsb()
6089 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->vsb_pre_saw_cfg)); in set_vsb()
6481 struct drxj_data *ext_attr = NULL; /* Global data container for DRXJ specific data */ in set_qam_measurement() local
6495 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_measurement()
6497 fec_bits_desired = ext_attr->fec_bits_desired; in set_qam_measurement()
6498 fec_rs_prescale = ext_attr->fec_rs_prescale; in set_qam_measurement()
6527 switch (ext_attr->standard) { in set_qam_measurement()
6539 ext_attr->fec_rs_plen = fec_rs_plen; /* for getSigQual */ in set_qam_measurement()
6546 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_measurement()
6554 switch (ext_attr->standard) { in set_qam_measurement()
6591 ext_attr->fec_rs_period = (u16) fec_rs_period; in set_qam_measurement()
6592 ext_attr->fec_rs_prescale = fec_rs_prescale; in set_qam_measurement()
6609 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_measurement()
6618 fec_vd_plen = ext_attr->fec_vd_plen; in set_qam_measurement()
6619 qam_vd_prescale = ext_attr->qam_vd_prescale; in set_qam_measurement()
6660 ext_attr->qam_vd_period = (u16) qam_vd_period; in set_qam_measurement()
6661 ext_attr->qam_vd_prescale = qam_vd_prescale; in set_qam_measurement()
7862 struct drxj_data *ext_attr = NULL; in set_qam() local
8000 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam()
8004 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8044 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8048 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8052 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8152 ext_attr->iqm_rc_rate_ofs = iqm_rc_rate; in set_qam()
8186 if (!ext_attr->has_lna) { in set_qam()
8267 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8473 rc = set_agc_if(demod, &(ext_attr->qam_if_agc_cfg), false); in set_qam()
8478 rc = set_agc_rf(demod, &(ext_attr->qam_rf_agc_cfg), false); in set_qam()
8488 qam_pga_cfg.gain = ext_attr->qam_pga_cfg; in set_qam()
8495 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->qam_pre_saw_cfg)); in set_qam()
8503 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8514 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8543 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8680 struct drxj_data *ext_attr = demod->my_ext_attr; in qam_flip_spec() local
8770 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in qam_flip_spec()
8771 ext_attr->pos_image = (ext_attr->pos_image) ? false : true; in qam_flip_spec()
8874 struct drxj_data *ext_attr = demod->my_ext_attr; in qam64auto() local
8945 ext_attr->mirror = DRX_MIRROR_YES; in qam64auto()
9022 struct drxj_data *ext_attr = demod->my_ext_attr; in qam256auto() local
9062 ext_attr->mirror = DRX_MIRROR_YES; in qam256auto()
9103 struct drxj_data *ext_attr = NULL; in set_qam_channel() local
9109 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_channel()
9119 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_channel()
9122 ext_attr->constellation = channel->constellation; in set_qam_channel()
9124 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9126 ext_attr->mirror = channel->mirror; in set_qam_channel()
9146 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_channel()
9153 ext_attr->constellation = DRX_CONSTELLATION_QAM256; in set_qam_channel()
9155 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9157 ext_attr->mirror = channel->mirror; in set_qam_channel()
9178 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9180 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9182 ext_attr->mirror = channel->mirror; in set_qam_channel()
9228 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam_channel()
9232 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9236 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9238 ext_attr->mirror = channel->mirror; in set_qam_channel()
9466 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_get_qam_sig_quality() local
9470 enum drx_modulation constellation = ext_attr->constellation; in ctrl_get_qam_sig_quality()
9520 fec_rs_period = ext_attr->fec_rs_period; in ctrl_get_qam_sig_quality()
9521 fec_rs_prescale = ext_attr->fec_rs_prescale; in ctrl_get_qam_sig_quality()
9522 rs_bit_cnt = fec_rs_period * fec_rs_prescale * ext_attr->fec_rs_plen; in ctrl_get_qam_sig_quality()
9523 qam_vd_period = ext_attr->qam_vd_period; in ctrl_get_qam_sig_quality()
9524 qam_vd_prescale = ext_attr->qam_vd_prescale; in ctrl_get_qam_sig_quality()
9525 vd_bit_cnt = qam_vd_period * qam_vd_prescale * ext_attr->fec_vd_plen; in ctrl_get_qam_sig_quality()
9635 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in ctrl_get_qam_sig_quality()
9846 struct drxj_data *ext_attr = NULL; in power_down_aud() local
9850 ext_attr = (struct drxj_data *) demod->my_ext_attr; in power_down_aud()
9858 ext_attr->aud_data.audio_is_active = false; in power_down_aud()
9928 struct drxj_data *ext_attr = NULL; in ctrl_set_oob() local
9951 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_oob()
9952 mirror_freq_spect_oob = ext_attr->mirror_freq_spect_oob; in ctrl_set_oob()
9978 ext_attr->oob_power_on = false; in ctrl_set_oob()
9990 u16 *trk_filtercfg = ext_attr->oob_trk_filter_cfg; in ctrl_set_oob()
10154 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_LOPOW_W__A, ext_attr->oob_lo_pow, 0); in ctrl_set_oob()
10410 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_STHR_W__A, ext_attr->oob_pre_saw, 0); in ctrl_set_oob()
10416 ext_attr->oob_power_on = true; in ctrl_set_oob()
10450 struct drxj_data *ext_attr = NULL; in ctrl_set_channel() local
10464 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_channel()
10465 standard = ext_attr->standard; in ctrl_set_channel()
10587 if ((ext_attr->uio_sma_tx_mode) == DRX_UIO_MODE_FIRMWARE_SAW) { in ctrl_set_channel()
10625 ext_attr->mirror = DRX_MIRROR_NO; in ctrl_set_channel()
10627 ext_attr->mirror = channel->mirror; in ctrl_set_channel()
10656 ext_attr->reset_pkt_err_acc = true; in ctrl_set_channel()
10683 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_sig_quality() local
10686 enum drx_standard standard = ext_attr->standard; in ctrl_sig_quality()
10795 struct drxj_data *ext_attr = NULL; in ctrl_lock_status() local
10812 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_lock_status()
10813 standard = ext_attr->standard; in ctrl_lock_status()
10884 struct drxj_data *ext_attr = NULL; in ctrl_set_standard() local
10892 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_standard()
10893 prev_standard = ext_attr->standard; in ctrl_set_standard()
10929 ext_attr->standard = *standard; in ctrl_set_standard()
10954 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10962 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10968 static void drxj_reset_mode(struct drxj_data *ext_attr) in drxj_reset_mode() argument
10971 if (ext_attr->has_lna) { in drxj_reset_mode()
10974 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10975 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10976 ext_attr->qam_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10978 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10979 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10980 ext_attr->vsb_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10984 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10985 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10986 ext_attr->qam_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10987 ext_attr->qam_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10988 ext_attr->qam_if_agc_cfg.speed = 3; in drxj_reset_mode()
10989 ext_attr->qam_if_agc_cfg.top = 1297; in drxj_reset_mode()
10990 ext_attr->qam_pga_cfg = 140; in drxj_reset_mode()
10992 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10993 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10994 ext_attr->vsb_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10995 ext_attr->vsb_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10996 ext_attr->vsb_if_agc_cfg.speed = 3; in drxj_reset_mode()
10997 ext_attr->vsb_if_agc_cfg.top = 1024; in drxj_reset_mode()
10998 ext_attr->vsb_pga_cfg = 140; in drxj_reset_mode()
11003 ext_attr->qam_rf_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
11004 ext_attr->qam_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
11005 ext_attr->qam_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
11006 ext_attr->qam_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
11007 ext_attr->qam_rf_agc_cfg.speed = 3; in drxj_reset_mode()
11008 ext_attr->qam_rf_agc_cfg.top = 9500; in drxj_reset_mode()
11009 ext_attr->qam_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
11010 ext_attr->qam_pre_saw_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
11011 ext_attr->qam_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11012 ext_attr->qam_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11015 ext_attr->vsb_rf_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11016 ext_attr->vsb_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
11017 ext_attr->vsb_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
11018 ext_attr->vsb_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
11019 ext_attr->vsb_rf_agc_cfg.speed = 3; in drxj_reset_mode()
11020 ext_attr->vsb_rf_agc_cfg.top = 9500; in drxj_reset_mode()
11021 ext_attr->vsb_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
11022 ext_attr->vsb_pre_saw_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11023 ext_attr->vsb_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11024 ext_attr->vsb_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11043 struct drxj_data *ext_attr = (struct drxj_data *) NULL; in ctrl_power_mode() local
11049 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_power_mode()
11093 drxj_reset_mode(ext_attr); in ctrl_power_mode()
11106 switch (ext_attr->standard) { in ctrl_power_mode()
11130 rc = power_down_atv(demod, ext_attr->standard, true); in ctrl_power_mode()
11143 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_power_mode()
11166 ext_attr->hi_cfg_ctrl |= SIO_HI_RA_RAM_PAR_5_CFG_SLEEP_ZZZ; in ctrl_power_mode()
11201 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_pre_saw() local
11205 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_pre_saw()
11214 if ((ext_attr->standard == pre_saw->standard) || in ctrl_set_cfg_pre_saw()
11215 (DRXJ_ISQAMSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11217 (DRXJ_ISATVSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11229 ext_attr->vsb_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11235 ext_attr->qam_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11264 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_afe_gain() local
11273 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_afe_gain()
11299 if (ext_attr->standard == afe_gain->standard) { in ctrl_set_cfg_afe_gain()
11310 ext_attr->vsb_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11316 ext_attr->qam_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11353 struct drxj_data *ext_attr = NULL; in drxj_open() local
11374 ext_attr = (struct drxj_data *) demod->my_ext_attr; in drxj_open()
11501 drxj_reset_mode(ext_attr); in drxj_open()
11502 ext_attr->standard = DRX_STANDARD_UNKNOWN; in drxj_open()
11547 ext_attr->aud_data = drxj_default_aud_data_g; in drxj_open()
12245 struct drxj_data *ext_attr = demod->my_ext_attr; in drx39xxj_set_lna() local
12248 if (!ext_attr->has_lna) { in drx39xxj_set_lna()