Lines Matching refs:il

95 il4965_sens_energy_cck(struct il_priv *il, u32 norm_fa, u32 rx_enable_time,  in il4965_sens_energy_cck()  argument
120 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_energy_cck()
122 data = &(il->sensitivity_data); in il4965_sens_energy_cck()
292 il4965_sens_auto_corr_ofdm(struct il_priv *il, u32 norm_fa, u32 rx_enable_time) in il4965_sens_auto_corr_ofdm() argument
299 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_auto_corr_ofdm()
301 data = &(il->sensitivity_data); in il4965_sens_auto_corr_ofdm()
355 il4965_prepare_legacy_sensitivity_tbl(struct il_priv *il, in il4965_prepare_legacy_sensitivity_tbl() argument
393 il4965_sensitivity_write(struct il_priv *il) in il4965_sensitivity_write() argument
404 data = &(il->sensitivity_data); in il4965_sensitivity_write()
408 il4965_prepare_legacy_sensitivity_tbl(il, data, &cmd.table[0]); in il4965_sensitivity_write()
415 (&cmd.table[0], &(il->sensitivity_tbl[0]), in il4965_sensitivity_write()
422 memcpy(&(il->sensitivity_tbl[0]), &(cmd.table[0]), in il4965_sensitivity_write()
425 return il_send_cmd(il, &cmd_out); in il4965_sensitivity_write()
429 il4965_init_sensitivity(struct il_priv *il) in il4965_init_sensitivity() argument
434 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_init_sensitivity()
436 if (il->disable_sens_cal) in il4965_init_sensitivity()
442 data = &(il->sensitivity_data); in il4965_init_sensitivity()
479 ret |= il4965_sensitivity_write(il); in il4965_init_sensitivity()
484 il4965_sensitivity_calibration(struct il_priv *il, void *resp) in il4965_sensitivity_calibration() argument
499 if (il->disable_sens_cal) in il4965_sensitivity_calibration()
502 data = &(il->sensitivity_data); in il4965_sensitivity_calibration()
504 if (!il_is_any_associated(il)) { in il4965_sensitivity_calibration()
509 spin_lock_irqsave(&il->lock, flags); in il4965_sensitivity_calibration()
517 spin_unlock_irqrestore(&il->lock, flags); in il4965_sensitivity_calibration()
538 spin_unlock_irqrestore(&il->lock, flags); in il4965_sensitivity_calibration()
585 il4965_sens_auto_corr_ofdm(il, norm_fa_ofdm, rx_enable_time); in il4965_sensitivity_calibration()
586 il4965_sens_energy_cck(il, norm_fa_cck, rx_enable_time, &statis); in il4965_sensitivity_calibration()
588 il4965_sensitivity_write(il); in il4965_sensitivity_calibration()
606 il4965_find_disconn_antenna(struct il_priv *il, u32 * average_sig, in il4965_find_disconn_antenna() argument
618 il->cfg->chain_noise_num_beacons; in il4965_find_disconn_antenna()
621 il->cfg->chain_noise_num_beacons; in il4965_find_disconn_antenna()
624 il->cfg->chain_noise_num_beacons; in il4965_find_disconn_antenna()
674 active_chains &= il->hw_params.valid_rx_ant; in il4965_find_disconn_antenna()
681 if (!(il->hw_params.valid_tx_ant & ant_msk)) in il4965_find_disconn_antenna()
688 if (num_tx_chains == il->hw_params.tx_chains_num && in il4965_find_disconn_antenna()
695 il4965_find_first_chain(il->cfg->valid_tx_ant); in il4965_find_disconn_antenna()
704 if (active_chains != il->hw_params.valid_rx_ant && in il4965_find_disconn_antenna()
705 active_chains != il->chain_noise_data.active_chains) in il4965_find_disconn_antenna()
708 il->hw_params.valid_rx_ant); in il4965_find_disconn_antenna()
716 il4965_gain_computation(struct il_priv *il, u32 * average_noise, in il4965_gain_computation() argument
721 struct il_chain_noise_data *data = &il->chain_noise_data; in il4965_gain_computation()
756 ret = il_send_cmd_pdu(il, C_PHY_CALIBRATION, sizeof(cmd), &cmd); in il4965_gain_computation()
775 il4965_chain_noise_calibration(struct il_priv *il, void *stat_resp) in il4965_chain_noise_calibration() argument
797 if (il->disable_chain_noise_cal) in il4965_chain_noise_calibration()
800 data = &(il->chain_noise_data); in il4965_chain_noise_calibration()
812 spin_lock_irqsave(&il->lock, flags); in il4965_chain_noise_calibration()
818 spin_unlock_irqrestore(&il->lock, flags); in il4965_chain_noise_calibration()
822 rxon_band24 = !!(il->staging.flags & RXON_FLG_BAND_24G_MSK); in il4965_chain_noise_calibration()
823 rxon_chnum = le16_to_cpu(il->staging.channel); in il4965_chain_noise_calibration()
836 spin_unlock_irqrestore(&il->lock, flags); in il4965_chain_noise_calibration()
855 spin_unlock_irqrestore(&il->lock, flags); in il4965_chain_noise_calibration()
877 if (data->beacon_count != il->cfg->chain_noise_num_beacons) in il4965_chain_noise_calibration()
881 il4965_find_disconn_antenna(il, average_sig, data); in il4965_chain_noise_calibration()
885 data->chain_noise_a / il->cfg->chain_noise_num_beacons; in il4965_chain_noise_calibration()
887 data->chain_noise_b / il->cfg->chain_noise_num_beacons; in il4965_chain_noise_calibration()
889 data->chain_noise_c / il->cfg->chain_noise_num_beacons; in il4965_chain_noise_calibration()
907 il4965_gain_computation(il, average_noise, min_average_noise_antenna_i, in il4965_chain_noise_calibration()
909 il4965_find_first_chain(il->cfg->valid_rx_ant)); in il4965_chain_noise_calibration()
914 if (il->ops->update_chain_flags) in il4965_chain_noise_calibration()
915 il->ops->update_chain_flags(il); in il4965_chain_noise_calibration()
918 il_power_update_mode(il, false); in il4965_chain_noise_calibration()
922 il4965_reset_run_time_calib(struct il_priv *il) in il4965_reset_run_time_calib() argument
925 memset(&(il->sensitivity_data), 0, sizeof(struct il_sensitivity_data)); in il4965_reset_run_time_calib()
926 memset(&(il->chain_noise_data), 0, sizeof(struct il_chain_noise_data)); in il4965_reset_run_time_calib()
928 il->chain_noise_data.delta_gain_code[i] = in il4965_reset_run_time_calib()
933 il_send_stats_request(il, CMD_ASYNC, true); in il4965_reset_run_time_calib()