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()
4382 struct drxj_data *ext_attr = NULL; in init_agc() local
4404 ext_attr = (struct drxj_data *) demod->my_ext_attr; in init_agc()
4406 switch (ext_attr->standard) { in init_agc()
4484 p_agc_if_settings = &(ext_attr->vsb_if_agc_cfg); in init_agc()
4485 p_agc_rf_settings = &(ext_attr->vsb_rf_agc_cfg); in init_agc()
4552 p_agc_if_settings = &(ext_attr->qam_if_agc_cfg); in init_agc()
4553 p_agc_rf_settings = &(ext_attr->qam_rf_agc_cfg); in init_agc()
4760 struct drxj_data *ext_attr = demod->my_ext_attr; in set_frequency() local
4776 rf_mirror = (ext_attr->mirror == DRX_MIRROR_YES) ? true : false; in set_frequency()
4782 switch (ext_attr->standard) { in set_frequency()
4837 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in set_frequency()
4838 ext_attr->pos_image = (bool) (rf_mirror ^ tuner_mirror ^ select_pos_image); in set_frequency()
4862 struct drxj_data *ext_attr = NULL; in get_acc_pkt_err() local
4865 ext_attr = (struct drxj_data *) demod->my_ext_attr; in get_acc_pkt_err()
4873 if (ext_attr->reset_pkt_err_acc) { in get_acc_pkt_err()
4876 ext_attr->reset_pkt_err_acc = false; in get_acc_pkt_err()
4908 struct drxj_data *ext_attr = NULL; in set_agc_rf() local
4917 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_rf()
4928 if ((ext_attr->standard == agc_settings->standard) || in set_agc_rf()
4929 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_rf()
4931 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_rf()
4958 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_rf()
4960 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_rf()
4989 p_agc_settings = &(ext_attr->vsb_if_agc_cfg); in set_agc_rf()
4991 p_agc_settings = &(ext_attr->qam_if_agc_cfg); in set_agc_rf()
4993 p_agc_settings = &(ext_attr->atv_if_agc_cfg); in set_agc_rf()
5093 ext_attr->vsb_rf_agc_cfg = *agc_settings; in set_agc_rf()
5099 ext_attr->qam_rf_agc_cfg = *agc_settings; in set_agc_rf()
5122 struct drxj_data *ext_attr = NULL; in set_agc_if() local
5131 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_if()
5142 if ((ext_attr->standard == agc_settings->standard) || in set_agc_if()
5143 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_if()
5145 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_if()
5172 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_if()
5174 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_if()
5203 p_agc_settings = &(ext_attr->vsb_rf_agc_cfg); in set_agc_if()
5205 p_agc_settings = &(ext_attr->qam_rf_agc_cfg); in set_agc_if()
5207 p_agc_settings = &(ext_attr->atv_rf_agc_cfg); in set_agc_if()
5322 ext_attr->vsb_if_agc_cfg = *agc_settings; in set_agc_if()
5328 ext_attr->qam_if_agc_cfg = *agc_settings; in set_agc_if()
5713 struct drxj_data *ext_attr = NULL; in set_vsb() local
5749 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_vsb()
5816 ext_attr->iqm_rc_rate_ofs = 0x00AD0D79; in set_vsb()
5817 rc = drxdap_fasi_write_reg32(dev_addr, IQM_RC_RATE_OFS_LO__A, ext_attr->iqm_rc_rate_ofs, 0); in set_vsb()
6033 if (!ext_attr->has_lna) { in set_vsb()
6058 rc = set_agc_if(demod, &(ext_attr->vsb_if_agc_cfg), false); in set_vsb()
6063 rc = set_agc_rf(demod, &(ext_attr->vsb_rf_agc_cfg), false); in set_vsb()
6073 vsb_pga_cfg.gain = ext_attr->vsb_pga_cfg; in set_vsb()
6080 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->vsb_pre_saw_cfg)); in set_vsb()
6472 struct drxj_data *ext_attr = NULL; /* Global data container for DRXJ specific data */ in set_qam_measurement() local
6486 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_measurement()
6488 fec_bits_desired = ext_attr->fec_bits_desired; in set_qam_measurement()
6489 fec_rs_prescale = ext_attr->fec_rs_prescale; in set_qam_measurement()
6518 switch (ext_attr->standard) { in set_qam_measurement()
6530 ext_attr->fec_rs_plen = fec_rs_plen; /* for getSigQual */ in set_qam_measurement()
6537 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_measurement()
6545 switch (ext_attr->standard) { in set_qam_measurement()
6582 ext_attr->fec_rs_period = (u16) fec_rs_period; in set_qam_measurement()
6583 ext_attr->fec_rs_prescale = fec_rs_prescale; in set_qam_measurement()
6600 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_measurement()
6609 fec_vd_plen = ext_attr->fec_vd_plen; in set_qam_measurement()
6610 qam_vd_prescale = ext_attr->qam_vd_prescale; in set_qam_measurement()
6651 ext_attr->qam_vd_period = (u16) qam_vd_period; in set_qam_measurement()
6652 ext_attr->qam_vd_prescale = qam_vd_prescale; in set_qam_measurement()
7853 struct drxj_data *ext_attr = NULL; in set_qam() local
7991 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam()
7995 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8035 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8039 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8043 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8143 ext_attr->iqm_rc_rate_ofs = iqm_rc_rate; in set_qam()
8177 if (!ext_attr->has_lna) { in set_qam()
8258 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8464 rc = set_agc_if(demod, &(ext_attr->qam_if_agc_cfg), false); in set_qam()
8469 rc = set_agc_rf(demod, &(ext_attr->qam_rf_agc_cfg), false); in set_qam()
8479 qam_pga_cfg.gain = ext_attr->qam_pga_cfg; in set_qam()
8486 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->qam_pre_saw_cfg)); in set_qam()
8494 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8505 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8534 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8671 struct drxj_data *ext_attr = demod->my_ext_attr; in qam_flip_spec() local
8761 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in qam_flip_spec()
8762 ext_attr->pos_image = (ext_attr->pos_image) ? false : true; in qam_flip_spec()
8865 struct drxj_data *ext_attr = demod->my_ext_attr; in qam64auto() local
8936 ext_attr->mirror = DRX_MIRROR_YES; in qam64auto()
9013 struct drxj_data *ext_attr = demod->my_ext_attr; in qam256auto() local
9053 ext_attr->mirror = DRX_MIRROR_YES; in qam256auto()
9094 struct drxj_data *ext_attr = NULL; in set_qam_channel() local
9100 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_channel()
9110 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_channel()
9113 ext_attr->constellation = channel->constellation; in set_qam_channel()
9115 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9117 ext_attr->mirror = channel->mirror; in set_qam_channel()
9137 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_channel()
9144 ext_attr->constellation = DRX_CONSTELLATION_QAM256; in set_qam_channel()
9146 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9148 ext_attr->mirror = channel->mirror; in set_qam_channel()
9169 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9171 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9173 ext_attr->mirror = channel->mirror; in set_qam_channel()
9219 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam_channel()
9223 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9227 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9229 ext_attr->mirror = channel->mirror; in set_qam_channel()
9457 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_get_qam_sig_quality() local
9461 enum drx_modulation constellation = ext_attr->constellation; in ctrl_get_qam_sig_quality()
9511 fec_rs_period = ext_attr->fec_rs_period; in ctrl_get_qam_sig_quality()
9512 fec_rs_prescale = ext_attr->fec_rs_prescale; in ctrl_get_qam_sig_quality()
9513 rs_bit_cnt = fec_rs_period * fec_rs_prescale * ext_attr->fec_rs_plen; in ctrl_get_qam_sig_quality()
9514 qam_vd_period = ext_attr->qam_vd_period; in ctrl_get_qam_sig_quality()
9515 qam_vd_prescale = ext_attr->qam_vd_prescale; in ctrl_get_qam_sig_quality()
9516 vd_bit_cnt = qam_vd_period * qam_vd_prescale * ext_attr->fec_vd_plen; in ctrl_get_qam_sig_quality()
9626 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in ctrl_get_qam_sig_quality()
9837 struct drxj_data *ext_attr = NULL; in power_down_aud() local
9841 ext_attr = (struct drxj_data *) demod->my_ext_attr; in power_down_aud()
9849 ext_attr->aud_data.audio_is_active = false; in power_down_aud()
9919 struct drxj_data *ext_attr = NULL; in ctrl_set_oob() local
9942 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_oob()
9943 mirror_freq_spect_oob = ext_attr->mirror_freq_spect_oob; in ctrl_set_oob()
9969 ext_attr->oob_power_on = false; in ctrl_set_oob()
9981 u16 *trk_filtercfg = ext_attr->oob_trk_filter_cfg; in ctrl_set_oob()
10145 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_LOPOW_W__A, ext_attr->oob_lo_pow, 0); in ctrl_set_oob()
10401 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_STHR_W__A, ext_attr->oob_pre_saw, 0); in ctrl_set_oob()
10407 ext_attr->oob_power_on = true; in ctrl_set_oob()
10441 struct drxj_data *ext_attr = NULL; in ctrl_set_channel() local
10455 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_channel()
10456 standard = ext_attr->standard; in ctrl_set_channel()
10578 if ((ext_attr->uio_sma_tx_mode) == DRX_UIO_MODE_FIRMWARE_SAW) { in ctrl_set_channel()
10616 ext_attr->mirror = DRX_MIRROR_NO; in ctrl_set_channel()
10618 ext_attr->mirror = channel->mirror; in ctrl_set_channel()
10647 ext_attr->reset_pkt_err_acc = true; in ctrl_set_channel()
10674 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_sig_quality() local
10677 enum drx_standard standard = ext_attr->standard; in ctrl_sig_quality()
10786 struct drxj_data *ext_attr = NULL; in ctrl_lock_status() local
10803 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_lock_status()
10804 standard = ext_attr->standard; in ctrl_lock_status()
10875 struct drxj_data *ext_attr = NULL; in ctrl_set_standard() local
10883 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_standard()
10884 prev_standard = ext_attr->standard; in ctrl_set_standard()
10920 ext_attr->standard = *standard; in ctrl_set_standard()
10945 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10953 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10959 static void drxj_reset_mode(struct drxj_data *ext_attr) in drxj_reset_mode() argument
10962 if (ext_attr->has_lna) { in drxj_reset_mode()
10965 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10966 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10967 ext_attr->qam_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10969 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10970 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10971 ext_attr->vsb_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10975 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10976 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10977 ext_attr->qam_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10978 ext_attr->qam_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10979 ext_attr->qam_if_agc_cfg.speed = 3; in drxj_reset_mode()
10980 ext_attr->qam_if_agc_cfg.top = 1297; in drxj_reset_mode()
10981 ext_attr->qam_pga_cfg = 140; in drxj_reset_mode()
10983 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10984 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10985 ext_attr->vsb_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10986 ext_attr->vsb_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10987 ext_attr->vsb_if_agc_cfg.speed = 3; in drxj_reset_mode()
10988 ext_attr->vsb_if_agc_cfg.top = 1024; in drxj_reset_mode()
10989 ext_attr->vsb_pga_cfg = 140; in drxj_reset_mode()
10994 ext_attr->qam_rf_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10995 ext_attr->qam_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10996 ext_attr->qam_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10997 ext_attr->qam_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10998 ext_attr->qam_rf_agc_cfg.speed = 3; in drxj_reset_mode()
10999 ext_attr->qam_rf_agc_cfg.top = 9500; in drxj_reset_mode()
11000 ext_attr->qam_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
11001 ext_attr->qam_pre_saw_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
11002 ext_attr->qam_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11003 ext_attr->qam_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11006 ext_attr->vsb_rf_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11007 ext_attr->vsb_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
11008 ext_attr->vsb_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
11009 ext_attr->vsb_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
11010 ext_attr->vsb_rf_agc_cfg.speed = 3; in drxj_reset_mode()
11011 ext_attr->vsb_rf_agc_cfg.top = 9500; in drxj_reset_mode()
11012 ext_attr->vsb_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
11013 ext_attr->vsb_pre_saw_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11014 ext_attr->vsb_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11015 ext_attr->vsb_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11034 struct drxj_data *ext_attr = (struct drxj_data *) NULL; in ctrl_power_mode() local
11040 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_power_mode()
11084 drxj_reset_mode(ext_attr); in ctrl_power_mode()
11097 switch (ext_attr->standard) { in ctrl_power_mode()
11121 rc = power_down_atv(demod, ext_attr->standard, true); in ctrl_power_mode()
11134 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_power_mode()
11157 ext_attr->hi_cfg_ctrl |= SIO_HI_RA_RAM_PAR_5_CFG_SLEEP_ZZZ; in ctrl_power_mode()
11192 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_pre_saw() local
11196 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_pre_saw()
11205 if ((ext_attr->standard == pre_saw->standard) || in ctrl_set_cfg_pre_saw()
11206 (DRXJ_ISQAMSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11208 (DRXJ_ISATVSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11220 ext_attr->vsb_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11226 ext_attr->qam_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11255 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_afe_gain() local
11264 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_afe_gain()
11290 if (ext_attr->standard == afe_gain->standard) { in ctrl_set_cfg_afe_gain()
11301 ext_attr->vsb_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11307 ext_attr->qam_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11344 struct drxj_data *ext_attr = NULL; in drxj_open() local
11365 ext_attr = (struct drxj_data *) demod->my_ext_attr; in drxj_open()
11492 drxj_reset_mode(ext_attr); in drxj_open()
11493 ext_attr->standard = DRX_STANDARD_UNKNOWN; in drxj_open()
11538 ext_attr->aud_data = drxj_default_aud_data_g; in drxj_open()
12236 struct drxj_data *ext_attr = demod->my_ext_attr; in drx39xxj_set_lna() local
12239 if (!ext_attr->has_lna) { in drx39xxj_set_lna()