Lines Matching refs:ext_attr

2226 	struct drxj_data *ext_attr = (struct drxj_data *) (NULL);  in hi_cfg_command()  local
2231 ext_attr = (struct drxj_data *) demod->my_ext_attr; in hi_cfg_command()
2235 hi_cmd.param2 = ext_attr->hi_cfg_timing_div; in hi_cfg_command()
2236 hi_cmd.param3 = ext_attr->hi_cfg_bridge_delay; in hi_cfg_command()
2237 hi_cmd.param4 = ext_attr->hi_cfg_wake_up_key; in hi_cfg_command()
2238 hi_cmd.param5 = ext_attr->hi_cfg_ctrl; in hi_cfg_command()
2239 hi_cmd.param6 = ext_attr->hi_cfg_transmit; in hi_cfg_command()
2248 ext_attr->hi_cfg_ctrl &= (~(SIO_HI_RA_RAM_PAR_5_CFG_SLEEP_ZZZ)); in hi_cfg_command()
2382 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in init_hi() local
2387 ext_attr = (struct drxj_data *) demod->my_ext_attr; in init_hi()
2400 ext_attr->hi_cfg_timing_div = in init_hi()
2403 if ((ext_attr->hi_cfg_timing_div) > SIO_HI_RA_RAM_PAR_2_CFG_DIV__M) in init_hi()
2404 ext_attr->hi_cfg_timing_div = SIO_HI_RA_RAM_PAR_2_CFG_DIV__M; in init_hi()
2408 ext_attr->hi_cfg_bridge_delay = in init_hi()
2412 if ((ext_attr->hi_cfg_bridge_delay) > SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M) in init_hi()
2413 ext_attr->hi_cfg_bridge_delay = SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M; in init_hi()
2415 ext_attr->hi_cfg_bridge_delay += ((ext_attr->hi_cfg_bridge_delay) << in init_hi()
2420 ext_attr->hi_cfg_wake_up_key = DRXJ_WAKE_UP_KEY; in init_hi()
2422 ext_attr->hi_cfg_ctrl = (SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE); in init_hi()
2424 ext_attr->hi_cfg_transmit = SIO_HI_RA_RAM_PAR_6__PRE; in init_hi()
2467 struct drxj_data *ext_attr = (struct drxj_data *) NULL; in get_device_capabilities() local
2475 ext_attr = (struct drxj_data *) demod->my_ext_attr; in get_device_capabilities()
2523 ext_attr->mfx = (u8) ((sio_top_jtagid_lo >> 29) & 0xF); in get_device_capabilities()
2544 ext_attr->has_lna = true; in get_device_capabilities()
2545 ext_attr->has_ntsc = false; in get_device_capabilities()
2546 ext_attr->has_btsc = false; in get_device_capabilities()
2547 ext_attr->has_oob = false; in get_device_capabilities()
2548 ext_attr->has_smatx = true; in get_device_capabilities()
2549 ext_attr->has_smarx = false; in get_device_capabilities()
2550 ext_attr->has_gpio = false; in get_device_capabilities()
2551 ext_attr->has_irqn = false; in get_device_capabilities()
2554 ext_attr->has_lna = false; in get_device_capabilities()
2555 ext_attr->has_ntsc = false; in get_device_capabilities()
2556 ext_attr->has_btsc = false; in get_device_capabilities()
2557 ext_attr->has_oob = false; in get_device_capabilities()
2558 ext_attr->has_smatx = true; in get_device_capabilities()
2559 ext_attr->has_smarx = false; in get_device_capabilities()
2560 ext_attr->has_gpio = false; in get_device_capabilities()
2561 ext_attr->has_irqn = false; in get_device_capabilities()
2564 ext_attr->has_lna = true; in get_device_capabilities()
2565 ext_attr->has_ntsc = true; in get_device_capabilities()
2566 ext_attr->has_btsc = false; in get_device_capabilities()
2567 ext_attr->has_oob = false; in get_device_capabilities()
2568 ext_attr->has_smatx = true; in get_device_capabilities()
2569 ext_attr->has_smarx = true; in get_device_capabilities()
2570 ext_attr->has_gpio = true; in get_device_capabilities()
2571 ext_attr->has_irqn = false; in get_device_capabilities()
2574 ext_attr->has_lna = false; in get_device_capabilities()
2575 ext_attr->has_ntsc = true; in get_device_capabilities()
2576 ext_attr->has_btsc = false; in get_device_capabilities()
2577 ext_attr->has_oob = false; in get_device_capabilities()
2578 ext_attr->has_smatx = true; in get_device_capabilities()
2579 ext_attr->has_smarx = true; in get_device_capabilities()
2580 ext_attr->has_gpio = true; in get_device_capabilities()
2581 ext_attr->has_irqn = false; in get_device_capabilities()
2584 ext_attr->has_lna = true; in get_device_capabilities()
2585 ext_attr->has_ntsc = true; in get_device_capabilities()
2586 ext_attr->has_btsc = true; in get_device_capabilities()
2587 ext_attr->has_oob = false; in get_device_capabilities()
2588 ext_attr->has_smatx = true; in get_device_capabilities()
2589 ext_attr->has_smarx = true; in get_device_capabilities()
2590 ext_attr->has_gpio = true; in get_device_capabilities()
2591 ext_attr->has_irqn = false; in get_device_capabilities()
2594 ext_attr->has_lna = false; in get_device_capabilities()
2595 ext_attr->has_ntsc = true; in get_device_capabilities()
2596 ext_attr->has_btsc = true; in get_device_capabilities()
2597 ext_attr->has_oob = false; in get_device_capabilities()
2598 ext_attr->has_smatx = true; in get_device_capabilities()
2599 ext_attr->has_smarx = true; in get_device_capabilities()
2600 ext_attr->has_gpio = true; in get_device_capabilities()
2601 ext_attr->has_irqn = false; in get_device_capabilities()
2604 ext_attr->has_lna = true; in get_device_capabilities()
2605 ext_attr->has_ntsc = false; in get_device_capabilities()
2606 ext_attr->has_btsc = false; in get_device_capabilities()
2607 ext_attr->has_oob = true; in get_device_capabilities()
2608 ext_attr->has_smatx = true; in get_device_capabilities()
2609 ext_attr->has_smarx = true; in get_device_capabilities()
2610 ext_attr->has_gpio = true; in get_device_capabilities()
2611 ext_attr->has_irqn = true; in get_device_capabilities()
2614 ext_attr->has_lna = false; in get_device_capabilities()
2615 ext_attr->has_ntsc = true; in get_device_capabilities()
2616 ext_attr->has_btsc = true; in get_device_capabilities()
2617 ext_attr->has_oob = true; in get_device_capabilities()
2618 ext_attr->has_smatx = true; in get_device_capabilities()
2619 ext_attr->has_smarx = true; in get_device_capabilities()
2620 ext_attr->has_gpio = true; in get_device_capabilities()
2621 ext_attr->has_irqn = true; in get_device_capabilities()
2624 ext_attr->has_lna = true; in get_device_capabilities()
2625 ext_attr->has_ntsc = true; in get_device_capabilities()
2626 ext_attr->has_btsc = true; in get_device_capabilities()
2627 ext_attr->has_oob = true; in get_device_capabilities()
2628 ext_attr->has_smatx = true; in get_device_capabilities()
2629 ext_attr->has_smarx = true; in get_device_capabilities()
2630 ext_attr->has_gpio = true; in get_device_capabilities()
2631 ext_attr->has_irqn = true; in get_device_capabilities()
2634 ext_attr->has_lna = false; in get_device_capabilities()
2635 ext_attr->has_ntsc = true; in get_device_capabilities()
2636 ext_attr->has_btsc = true; in get_device_capabilities()
2637 ext_attr->has_oob = true; in get_device_capabilities()
2638 ext_attr->has_smatx = true; in get_device_capabilities()
2639 ext_attr->has_smarx = true; in get_device_capabilities()
2640 ext_attr->has_gpio = true; in get_device_capabilities()
2641 ext_attr->has_irqn = true; in get_device_capabilities()
2722 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_set_cfg_mpeg_output() local
2744 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_mpeg_output()
2750 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2765 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2812 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
2834 (ext_attr->curr_symbol_rate / 8) * nr_bits * 188; in ctrl_set_cfg_mpeg_output()
2906 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2912 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
2941 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
2947 switch (ext_attr->constellation) { in ctrl_set_cfg_mpeg_output()
3013 switch (ext_attr->standard) { in ctrl_set_cfg_mpeg_output()
3026 if (ext_attr->curr_symbol_rate >= in ctrl_set_cfg_mpeg_output()
3078 if (ext_attr->mpeg_output_clock_rate != DRXJ_MPEGOUTPUT_CLOCK_RATE_AUTO) in ctrl_set_cfg_mpeg_output()
3079 fec_oc_dto_period = ext_attr->mpeg_output_clock_rate - 1; in ctrl_set_cfg_mpeg_output()
3364 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in set_mpegtei_handling() local
3372 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_mpegtei_handling()
3396 if (ext_attr->disable_te_ihandling) { in set_mpegtei_handling()
3437 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in bit_reverse_mpeg_output() local
3443 ext_attr = (struct drxj_data *) demod->my_ext_attr; in bit_reverse_mpeg_output()
3454 if (ext_attr->bit_reverse_mpeg_outout) in bit_reverse_mpeg_output()
3480 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in set_mpeg_start_width() local
3487 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_mpeg_start_width()
3498 if (ext_attr->mpeg_start_width == DRXJ_MPEG_START_WIDTH_8CLKCYC) in set_mpeg_start_width()
3528 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_set_uio_cfg() local
3534 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_uio_cfg()
3546 if (!ext_attr->has_smatx) in ctrl_set_uio_cfg()
3552 ext_attr->uio_sma_tx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3555 ext_attr->uio_sma_tx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3570 if (!ext_attr->has_smarx) in ctrl_set_uio_cfg()
3575 ext_attr->uio_sma_rx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3578 ext_attr->uio_sma_rx_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3593 if (!ext_attr->has_gpio) in ctrl_set_uio_cfg()
3598 ext_attr->uio_gpio_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3601 ext_attr->uio_gpio_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3616 if (!ext_attr->has_irqn) in ctrl_set_uio_cfg()
3620 ext_attr->uio_irqn_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3629 ext_attr->uio_irqn_mode = uio_cfg->mode; in ctrl_set_uio_cfg()
3663 struct drxj_data *ext_attr = (struct drxj_data *) (NULL); in ctrl_uio_write() local
3671 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_uio_write()
3683 if (!ext_attr->has_smatx) in ctrl_uio_write()
3685 if ((ext_attr->uio_sma_tx_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3686 && (ext_attr->uio_sma_tx_mode != DRX_UIO_MODE_FIRMWARE_SAW)) { in ctrl_uio_write()
3723 if (!ext_attr->has_smarx) in ctrl_uio_write()
3725 if (ext_attr->uio_sma_rx_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3762 if (!ext_attr->has_gpio) in ctrl_uio_write()
3764 if (ext_attr->uio_gpio_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3801 if (!ext_attr->has_irqn) in ctrl_uio_write()
3804 if (ext_attr->uio_irqn_mode != DRX_UIO_MODE_READWRITE) in ctrl_uio_write()
3906 struct drxj_data *ext_attr = NULL; in smart_ant_init() local
3913 ext_attr = (struct drxj_data *) demod->my_ext_attr; in smart_ant_init()
3927 if (ext_attr->smart_ant_inverted) { in smart_ant_init()
4379 struct drxj_data *ext_attr = NULL; in init_agc() local
4401 ext_attr = (struct drxj_data *) demod->my_ext_attr; in init_agc()
4403 switch (ext_attr->standard) { in init_agc()
4481 p_agc_if_settings = &(ext_attr->vsb_if_agc_cfg); in init_agc()
4482 p_agc_rf_settings = &(ext_attr->vsb_rf_agc_cfg); in init_agc()
4549 p_agc_if_settings = &(ext_attr->qam_if_agc_cfg); in init_agc()
4550 p_agc_rf_settings = &(ext_attr->qam_rf_agc_cfg); in init_agc()
4757 struct drxj_data *ext_attr = demod->my_ext_attr; in set_frequency() local
4773 rf_mirror = ext_attr->mirror == DRX_MIRROR_YES; in set_frequency()
4779 switch (ext_attr->standard) { in set_frequency()
4834 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in set_frequency()
4835 ext_attr->pos_image = (bool) (rf_mirror ^ tuner_mirror ^ select_pos_image); in set_frequency()
4859 struct drxj_data *ext_attr = NULL; in get_acc_pkt_err() local
4862 ext_attr = (struct drxj_data *) demod->my_ext_attr; in get_acc_pkt_err()
4870 if (ext_attr->reset_pkt_err_acc) { in get_acc_pkt_err()
4873 ext_attr->reset_pkt_err_acc = false; in get_acc_pkt_err()
4905 struct drxj_data *ext_attr = NULL; in set_agc_rf() local
4914 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_rf()
4925 if ((ext_attr->standard == agc_settings->standard) || in set_agc_rf()
4926 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_rf()
4928 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_rf()
4955 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_rf()
4957 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_rf()
4986 p_agc_settings = &(ext_attr->vsb_if_agc_cfg); in set_agc_rf()
4988 p_agc_settings = &(ext_attr->qam_if_agc_cfg); in set_agc_rf()
4990 p_agc_settings = &(ext_attr->atv_if_agc_cfg); in set_agc_rf()
5090 ext_attr->vsb_rf_agc_cfg = *agc_settings; in set_agc_rf()
5096 ext_attr->qam_rf_agc_cfg = *agc_settings; in set_agc_rf()
5119 struct drxj_data *ext_attr = NULL; in set_agc_if() local
5128 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_agc_if()
5139 if ((ext_attr->standard == agc_settings->standard) || in set_agc_if()
5140 (DRXJ_ISQAMSTD(ext_attr->standard) && in set_agc_if()
5142 (DRXJ_ISATVSTD(ext_attr->standard) && in set_agc_if()
5169 if (ext_attr->standard == DRX_STANDARD_8VSB) in set_agc_if()
5171 else if (DRXJ_ISQAMSTD(ext_attr->standard)) in set_agc_if()
5200 p_agc_settings = &(ext_attr->vsb_rf_agc_cfg); in set_agc_if()
5202 p_agc_settings = &(ext_attr->qam_rf_agc_cfg); in set_agc_if()
5204 p_agc_settings = &(ext_attr->atv_rf_agc_cfg); in set_agc_if()
5319 ext_attr->vsb_if_agc_cfg = *agc_settings; in set_agc_if()
5325 ext_attr->qam_if_agc_cfg = *agc_settings; in set_agc_if()
5710 struct drxj_data *ext_attr = NULL; in set_vsb() local
5746 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_vsb()
5813 ext_attr->iqm_rc_rate_ofs = 0x00AD0D79; in set_vsb()
5814 rc = drxdap_fasi_write_reg32(dev_addr, IQM_RC_RATE_OFS_LO__A, ext_attr->iqm_rc_rate_ofs, 0); in set_vsb()
6030 if (!ext_attr->has_lna) { in set_vsb()
6055 rc = set_agc_if(demod, &(ext_attr->vsb_if_agc_cfg), false); in set_vsb()
6060 rc = set_agc_rf(demod, &(ext_attr->vsb_rf_agc_cfg), false); in set_vsb()
6070 vsb_pga_cfg.gain = ext_attr->vsb_pga_cfg; in set_vsb()
6077 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->vsb_pre_saw_cfg)); in set_vsb()
6469 struct drxj_data *ext_attr = NULL; /* Global data container for DRXJ specific data */ in set_qam_measurement() local
6483 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_measurement()
6485 fec_bits_desired = ext_attr->fec_bits_desired; in set_qam_measurement()
6486 fec_rs_prescale = ext_attr->fec_rs_prescale; in set_qam_measurement()
6515 switch (ext_attr->standard) { in set_qam_measurement()
6527 ext_attr->fec_rs_plen = fec_rs_plen; /* for getSigQual */ in set_qam_measurement()
6534 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_measurement()
6542 switch (ext_attr->standard) { in set_qam_measurement()
6579 ext_attr->fec_rs_period = (u16) fec_rs_period; in set_qam_measurement()
6580 ext_attr->fec_rs_prescale = fec_rs_prescale; in set_qam_measurement()
6597 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_measurement()
6606 fec_vd_plen = ext_attr->fec_vd_plen; in set_qam_measurement()
6607 qam_vd_prescale = ext_attr->qam_vd_prescale; in set_qam_measurement()
6648 ext_attr->qam_vd_period = (u16) qam_vd_period; in set_qam_measurement()
6649 ext_attr->qam_vd_prescale = qam_vd_prescale; in set_qam_measurement()
7850 struct drxj_data *ext_attr = NULL; in set_qam() local
7988 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam()
7992 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8032 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8036 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8040 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8140 ext_attr->iqm_rc_rate_ofs = iqm_rc_rate; in set_qam()
8174 if (!ext_attr->has_lna) { in set_qam()
8255 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8461 rc = set_agc_if(demod, &(ext_attr->qam_if_agc_cfg), false); in set_qam()
8466 rc = set_agc_rf(demod, &(ext_attr->qam_rf_agc_cfg), false); in set_qam()
8476 qam_pga_cfg.gain = ext_attr->qam_pga_cfg; in set_qam()
8483 rc = ctrl_set_cfg_pre_saw(demod, &(ext_attr->qam_pre_saw_cfg)); in set_qam()
8491 if (ext_attr->standard == DRX_STANDARD_ITU_A) { in set_qam()
8502 } else if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam()
8531 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam()
8668 struct drxj_data *ext_attr = demod->my_ext_attr; in qam_flip_spec() local
8758 ext_attr->iqm_fs_rate_ofs = iqm_fs_rate_ofs; in qam_flip_spec()
8759 ext_attr->pos_image = !ext_attr->pos_image; in qam_flip_spec()
8862 struct drxj_data *ext_attr = demod->my_ext_attr; in qam64auto() local
8933 ext_attr->mirror = DRX_MIRROR_YES; in qam64auto()
9010 struct drxj_data *ext_attr = demod->my_ext_attr; in qam256auto() local
9050 ext_attr->mirror = DRX_MIRROR_YES; in qam256auto()
9091 struct drxj_data *ext_attr = NULL; in set_qam_channel() local
9097 ext_attr = (struct drxj_data *) demod->my_ext_attr; in set_qam_channel()
9107 if (ext_attr->standard != DRX_STANDARD_ITU_B) in set_qam_channel()
9110 ext_attr->constellation = channel->constellation; in set_qam_channel()
9112 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9114 ext_attr->mirror = channel->mirror; in set_qam_channel()
9134 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in set_qam_channel()
9141 ext_attr->constellation = DRX_CONSTELLATION_QAM256; in set_qam_channel()
9143 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9145 ext_attr->mirror = channel->mirror; in set_qam_channel()
9166 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9168 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9170 ext_attr->mirror = channel->mirror; in set_qam_channel()
9216 } else if (ext_attr->standard == DRX_STANDARD_ITU_C) { in set_qam_channel()
9220 ext_attr->constellation = DRX_CONSTELLATION_QAM64; in set_qam_channel()
9224 ext_attr->mirror = DRX_MIRROR_NO; in set_qam_channel()
9226 ext_attr->mirror = channel->mirror; in set_qam_channel()
9454 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_get_qam_sig_quality() local
9458 enum drx_modulation constellation = ext_attr->constellation; in ctrl_get_qam_sig_quality()
9508 fec_rs_period = ext_attr->fec_rs_period; in ctrl_get_qam_sig_quality()
9509 fec_rs_prescale = ext_attr->fec_rs_prescale; in ctrl_get_qam_sig_quality()
9510 rs_bit_cnt = fec_rs_period * fec_rs_prescale * ext_attr->fec_rs_plen; in ctrl_get_qam_sig_quality()
9511 qam_vd_period = ext_attr->qam_vd_period; in ctrl_get_qam_sig_quality()
9512 qam_vd_prescale = ext_attr->qam_vd_prescale; in ctrl_get_qam_sig_quality()
9513 vd_bit_cnt = qam_vd_period * qam_vd_prescale * ext_attr->fec_vd_plen; in ctrl_get_qam_sig_quality()
9624 if (ext_attr->standard == DRX_STANDARD_ITU_B) { in ctrl_get_qam_sig_quality()
9835 struct drxj_data *ext_attr = NULL; in power_down_aud() local
9839 ext_attr = (struct drxj_data *) demod->my_ext_attr; in power_down_aud()
9847 ext_attr->aud_data.audio_is_active = false; in power_down_aud()
9917 struct drxj_data *ext_attr = NULL; in ctrl_set_oob() local
9940 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_oob()
9941 mirror_freq_spect_oob = ext_attr->mirror_freq_spect_oob; in ctrl_set_oob()
9967 ext_attr->oob_power_on = false; in ctrl_set_oob()
9979 u16 *trk_filtercfg = ext_attr->oob_trk_filter_cfg; in ctrl_set_oob()
10143 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_LOPOW_W__A, ext_attr->oob_lo_pow, 0); in ctrl_set_oob()
10399 rc = drxj_dap_write_reg16(dev_addr, ORX_NSU_AOX_STHR_W__A, ext_attr->oob_pre_saw, 0); in ctrl_set_oob()
10405 ext_attr->oob_power_on = true; in ctrl_set_oob()
10439 struct drxj_data *ext_attr = NULL; in ctrl_set_channel() local
10453 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_channel()
10454 standard = ext_attr->standard; in ctrl_set_channel()
10576 if ((ext_attr->uio_sma_tx_mode) == DRX_UIO_MODE_FIRMWARE_SAW) { in ctrl_set_channel()
10614 ext_attr->mirror = DRX_MIRROR_NO; in ctrl_set_channel()
10616 ext_attr->mirror = channel->mirror; in ctrl_set_channel()
10645 ext_attr->reset_pkt_err_acc = true; in ctrl_set_channel()
10672 struct drxj_data *ext_attr = demod->my_ext_attr; in ctrl_sig_quality() local
10675 enum drx_standard standard = ext_attr->standard; in ctrl_sig_quality()
10784 struct drxj_data *ext_attr = NULL; in ctrl_lock_status() local
10801 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_lock_status()
10802 standard = ext_attr->standard; in ctrl_lock_status()
10873 struct drxj_data *ext_attr = NULL; in ctrl_set_standard() local
10881 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_standard()
10882 prev_standard = ext_attr->standard; in ctrl_set_standard()
10919 ext_attr->standard = *standard; in ctrl_set_standard()
10944 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10951 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_set_standard()
10957 static void drxj_reset_mode(struct drxj_data *ext_attr) in drxj_reset_mode() argument
10960 if (ext_attr->has_lna) { in drxj_reset_mode()
10963 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10964 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10965 ext_attr->qam_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10967 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10968 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_OFF; in drxj_reset_mode()
10969 ext_attr->vsb_pga_cfg = 140 + (11 * 13); in drxj_reset_mode()
10973 ext_attr->qam_if_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10974 ext_attr->qam_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10975 ext_attr->qam_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10976 ext_attr->qam_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10977 ext_attr->qam_if_agc_cfg.speed = 3; in drxj_reset_mode()
10978 ext_attr->qam_if_agc_cfg.top = 1297; in drxj_reset_mode()
10979 ext_attr->qam_pga_cfg = 140; in drxj_reset_mode()
10981 ext_attr->vsb_if_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
10982 ext_attr->vsb_if_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10983 ext_attr->vsb_if_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10984 ext_attr->vsb_if_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10985 ext_attr->vsb_if_agc_cfg.speed = 3; in drxj_reset_mode()
10986 ext_attr->vsb_if_agc_cfg.top = 1024; in drxj_reset_mode()
10987 ext_attr->vsb_pga_cfg = 140; in drxj_reset_mode()
10992 ext_attr->qam_rf_agc_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
10993 ext_attr->qam_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
10994 ext_attr->qam_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
10995 ext_attr->qam_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
10996 ext_attr->qam_rf_agc_cfg.speed = 3; in drxj_reset_mode()
10997 ext_attr->qam_rf_agc_cfg.top = 9500; in drxj_reset_mode()
10998 ext_attr->qam_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
10999 ext_attr->qam_pre_saw_cfg.standard = DRX_STANDARD_ITU_B; in drxj_reset_mode()
11000 ext_attr->qam_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11001 ext_attr->qam_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11004 ext_attr->vsb_rf_agc_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11005 ext_attr->vsb_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO; in drxj_reset_mode()
11006 ext_attr->vsb_rf_agc_cfg.min_output_level = 0; in drxj_reset_mode()
11007 ext_attr->vsb_rf_agc_cfg.max_output_level = 0x7FFF; in drxj_reset_mode()
11008 ext_attr->vsb_rf_agc_cfg.speed = 3; in drxj_reset_mode()
11009 ext_attr->vsb_rf_agc_cfg.top = 9500; in drxj_reset_mode()
11010 ext_attr->vsb_rf_agc_cfg.cut_off_current = 4000; in drxj_reset_mode()
11011 ext_attr->vsb_pre_saw_cfg.standard = DRX_STANDARD_8VSB; in drxj_reset_mode()
11012 ext_attr->vsb_pre_saw_cfg.reference = 0x07; in drxj_reset_mode()
11013 ext_attr->vsb_pre_saw_cfg.use_pre_saw = true; in drxj_reset_mode()
11032 struct drxj_data *ext_attr = (struct drxj_data *) NULL; in ctrl_power_mode() local
11038 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_power_mode()
11081 drxj_reset_mode(ext_attr); in ctrl_power_mode()
11094 switch (ext_attr->standard) { in ctrl_power_mode()
11118 rc = power_down_atv(demod, ext_attr->standard, true); in ctrl_power_mode()
11131 ext_attr->standard = DRX_STANDARD_UNKNOWN; in ctrl_power_mode()
11154 ext_attr->hi_cfg_ctrl |= SIO_HI_RA_RAM_PAR_5_CFG_SLEEP_ZZZ; in ctrl_power_mode()
11189 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_pre_saw() local
11193 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_pre_saw()
11202 if ((ext_attr->standard == pre_saw->standard) || in ctrl_set_cfg_pre_saw()
11203 (DRXJ_ISQAMSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11205 (DRXJ_ISATVSTD(ext_attr->standard) && in ctrl_set_cfg_pre_saw()
11217 ext_attr->vsb_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11223 ext_attr->qam_pre_saw_cfg = *pre_saw; in ctrl_set_cfg_pre_saw()
11252 struct drxj_data *ext_attr = NULL; in ctrl_set_cfg_afe_gain() local
11261 ext_attr = (struct drxj_data *) demod->my_ext_attr; in ctrl_set_cfg_afe_gain()
11287 if (ext_attr->standard == afe_gain->standard) { in ctrl_set_cfg_afe_gain()
11298 ext_attr->vsb_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11304 ext_attr->qam_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
11341 struct drxj_data *ext_attr = NULL; in drxj_open() local
11362 ext_attr = (struct drxj_data *) demod->my_ext_attr; in drxj_open()
11490 drxj_reset_mode(ext_attr); in drxj_open()
11491 ext_attr->standard = DRX_STANDARD_UNKNOWN; in drxj_open()
11536 ext_attr->aud_data = drxj_default_aud_data_g; in drxj_open()
12230 struct drxj_data *ext_attr = demod->my_ext_attr; in drx39xxj_set_lna() local
12233 if (!ext_attr->has_lna) { in drx39xxj_set_lna()