Lines Matching refs:ch_info_ev
5555 u32 len, struct wmi_chan_info_event *ch_info_ev) in ath11k_pull_chan_info_ev() argument
5575 ch_info_ev->err_code = ev->err_code; in ath11k_pull_chan_info_ev()
5576 ch_info_ev->freq = ev->freq; in ath11k_pull_chan_info_ev()
5577 ch_info_ev->cmd_flags = ev->cmd_flags; in ath11k_pull_chan_info_ev()
5578 ch_info_ev->noise_floor = ev->noise_floor; in ath11k_pull_chan_info_ev()
5579 ch_info_ev->rx_clear_count = ev->rx_clear_count; in ath11k_pull_chan_info_ev()
5580 ch_info_ev->cycle_count = ev->cycle_count; in ath11k_pull_chan_info_ev()
5581 ch_info_ev->chan_tx_pwr_range = ev->chan_tx_pwr_range; in ath11k_pull_chan_info_ev()
5582 ch_info_ev->chan_tx_pwr_tp = ev->chan_tx_pwr_tp; in ath11k_pull_chan_info_ev()
5583 ch_info_ev->rx_frame_count = ev->rx_frame_count; in ath11k_pull_chan_info_ev()
5584 ch_info_ev->tx_frame_cnt = ev->tx_frame_cnt; in ath11k_pull_chan_info_ev()
5585 ch_info_ev->mac_clk_mhz = ev->mac_clk_mhz; in ath11k_pull_chan_info_ev()
5586 ch_info_ev->vdev_id = ev->vdev_id; in ath11k_pull_chan_info_ev()
7277 struct wmi_chan_info_event ch_info_ev = {0}; in ath11k_chan_info_event() local
7284 if (ath11k_pull_chan_info_ev(ab, skb->data, skb->len, &ch_info_ev) != 0) { in ath11k_chan_info_event()
7291 ch_info_ev.vdev_id, ch_info_ev.err_code, ch_info_ev.freq, in ath11k_chan_info_event()
7292 ch_info_ev.cmd_flags, ch_info_ev.noise_floor, in ath11k_chan_info_event()
7293 ch_info_ev.rx_clear_count, ch_info_ev.cycle_count, in ath11k_chan_info_event()
7294 ch_info_ev.mac_clk_mhz); in ath11k_chan_info_event()
7296 if (ch_info_ev.cmd_flags == WMI_CHAN_INFO_END_RESP) { in ath11k_chan_info_event()
7302 ar = ath11k_mac_get_ar_by_vdev_id(ab, ch_info_ev.vdev_id); in ath11k_chan_info_event()
7305 ch_info_ev.vdev_id); in ath11k_chan_info_event()
7321 idx = freq_to_idx(ar, ch_info_ev.freq); in ath11k_chan_info_event()
7324 ch_info_ev.freq, idx); in ath11k_chan_info_event()
7331 if (ch_info_ev.mac_clk_mhz) in ath11k_chan_info_event()
7332 cc_freq_hz = (ch_info_ev.mac_clk_mhz * 1000); in ath11k_chan_info_event()
7334 if (ch_info_ev.cmd_flags == WMI_CHAN_INFO_START_RESP) { in ath11k_chan_info_event()
7337 survey->noise = ch_info_ev.noise_floor; in ath11k_chan_info_event()
7340 survey->time = div_u64(ch_info_ev.cycle_count, cc_freq_hz); in ath11k_chan_info_event()
7341 survey->time_busy = div_u64(ch_info_ev.rx_clear_count, cc_freq_hz); in ath11k_chan_info_event()