Lines Matching refs:meta

77 				      struct enh_cfr_metadata *meta,  in target_if_snr_to_signal_strength()  argument
85 meta->chain_rssi[i] = (int8_t)ppdu->per_chain_rssi[i]; in target_if_snr_to_signal_strength()
89 meta->chain_rssi[i] = in target_if_snr_to_signal_strength()
476 struct enh_cfr_metadata *meta = &header->u.meta_enh; in dump_metadata() local
510 meta->status, in dump_metadata()
511 meta->capture_bw, in dump_metadata()
512 meta->channel_bw, in dump_metadata()
513 meta->phy_mode, in dump_metadata()
514 meta->prim20_chan, in dump_metadata()
515 meta->center_freq1, in dump_metadata()
516 meta->center_freq2, in dump_metadata()
517 meta->capture_mode, in dump_metadata()
518 meta->capture_type, in dump_metadata()
519 meta->sts_count, in dump_metadata()
520 meta->num_rx_chain, in dump_metadata()
521 meta->timestamp, in dump_metadata()
522 meta->length, in dump_metadata()
523 meta->is_mu_ppdu, in dump_metadata()
524 meta->num_mu_users); in dump_metadata()
526 if (meta->is_mu_ppdu) { in dump_metadata()
527 for (user_id = 0; user_id < meta->num_mu_users; user_id++) { in dump_metadata()
528 usermac = meta->peer_addr.mu_peer_addr[user_id]; in dump_metadata()
534 QDF_MAC_ADDR_REF(meta->peer_addr.su_peer_addr)); in dump_metadata()
540 meta->chain_rssi[chain_id]); in dump_metadata()
546 meta->chain_phase[chain_id]); in dump_metadata()
551 meta->rtt_cfo_measurement); in dump_metadata()
552 cfr_debug("rx_start_ts = %u\n", meta->rx_start_ts); in dump_metadata()
557 meta->agc_gain[chain_id]); in dump_metadata()
560 meta->agc_gain_tbl_index[chain_id]); in dump_metadata()
563 cfr_debug("mcs_rate = %u\n", meta->mcs_rate); in dump_metadata()
564 cfr_debug("gi_type = %u\n", meta->gi_type); in dump_metadata()
995 struct enh_cfr_metadata *meta, in populate_enh_chain_phase() argument
1011 meta->chain_phase[chain] = INVALID_PHASE_DELTA; in populate_enh_chain_phase()
1024 tbl_idx = meta->agc_gain_tbl_index[chain]; in populate_enh_chain_phase()
1033 if (!tbl_idx && (meta->agc_gain[chain] == in populate_enh_chain_phase()
1036 meta->chain_phase[chain] = in populate_enh_chain_phase()
1044 if (meta->agc_gain[chain] <= gain_array[grp_stp_idx]) { in populate_enh_chain_phase()
1061 meta->chain_phase[chain] = INVALID_PHASE_DELTA; in populate_enh_chain_phase()
1063 meta->chain_phase[chain] = in populate_enh_chain_phase()
1093 struct enh_cfr_metadata *meta, in populate_enh_chain_phase() argument
1100 meta->chain_phase[chain] = INVALID_PHASE_DELTA; in populate_enh_chain_phase()
1107 struct enh_cfr_metadata *meta, in populate_chain_phase() argument
1122 meta->chain_phase[i - 1] = INVALID_PHASE_DELTA; in populate_chain_phase()
1125 meta->chain_phase[i] = INVALID_PHASE_DELTA; in populate_chain_phase()
1135 gain = meta->agc_gain[i]; in populate_chain_phase()
1155 meta->chain_phase[i - 1] = in populate_chain_phase()
1159 meta->chain_phase[i] = INVALID_PHASE_DELTA; in populate_chain_phase()
1163 meta->chain_phase[i - 1] = in populate_chain_phase()
1168 meta->chain_phase[i] = ((pcfr->ibf_cal_val[i] + in populate_chain_phase()
1202 struct enh_cfr_metadata *meta = NULL; in target_if_cfr_rx_tlv_process() local
1322 meta = &header->u.meta_enh; in target_if_cfr_rx_tlv_process()
1326 meta->status = 1; in target_if_cfr_rx_tlv_process()
1327 meta->phy_mode = ch_phymode; in target_if_cfr_rx_tlv_process()
1328 meta->prim20_chan = ch_freq; in target_if_cfr_rx_tlv_process()
1329 meta->center_freq1 = ch_cfreq1; in target_if_cfr_rx_tlv_process()
1330 meta->center_freq2 = ch_cfreq2; in target_if_cfr_rx_tlv_process()
1331 meta->capture_mode = 0; in target_if_cfr_rx_tlv_process()
1333 meta->timestamp = cdp_rx_ppdu->timestamp; in target_if_cfr_rx_tlv_process()
1334 meta->is_mu_ppdu = (cdp_rx_ppdu->u.ppdu_type == CDP_RX_TYPE_SU) ? 0 : 1; in target_if_cfr_rx_tlv_process()
1335 meta->num_mu_users = (meta->is_mu_ppdu) ? (cdp_rx_ppdu->num_users) : 0; in target_if_cfr_rx_tlv_process()
1337 meta->rtt_cfo_measurement = cfr_info->rtt_cfo_measurement; in target_if_cfr_rx_tlv_process()
1338 meta->rx_start_ts = cfr_info->rx_start_ts; in target_if_cfr_rx_tlv_process()
1350 meta->agc_gain[i] = get_gain_db(gain_info[i]); in target_if_cfr_rx_tlv_process()
1351 meta->agc_gain_tbl_index[i] = get_gain_table_idx(gain_info[i]); in target_if_cfr_rx_tlv_process()
1353 meta->agc_gain_tbl_index[i], in target_if_cfr_rx_tlv_process()
1356 if (!is_valid_gain_table_idx(meta->agc_gain_tbl_index[i], in target_if_cfr_rx_tlv_process()
1362 if (meta->agc_gain[i] > max_agc_gain) in target_if_cfr_rx_tlv_process()
1363 meta->agc_gain[i] = max_agc_gain; in target_if_cfr_rx_tlv_process()
1368 meta->chain_phase[i] = INVALID_PHASE_DELTA; in target_if_cfr_rx_tlv_process()
1378 meta, invalid_gain_table_idx); in target_if_cfr_rx_tlv_process()
1381 meta, invalid_gain_table_idx); in target_if_cfr_rx_tlv_process()
1385 meta->mcs_rate = cfr_info->mcs_rate; in target_if_cfr_rx_tlv_process()
1386 meta->gi_type = cfr_info->gi_type; in target_if_cfr_rx_tlv_process()
1387 meta->sig_info.ltf_size = cdp_rx_ppdu->u.ltf_size; in target_if_cfr_rx_tlv_process()
1388 meta->sig_info.stbc = cdp_rx_ppdu->u.stbc; in target_if_cfr_rx_tlv_process()
1389 meta->sig_info.sgi = (cdp_rx_ppdu->u.gi == CDP_SGI_0_4_US) ? 1 : 0; in target_if_cfr_rx_tlv_process()
1390 meta->sig_info.dcm = cdp_rx_ppdu->u.dcm; in target_if_cfr_rx_tlv_process()
1391 meta->sig_info.coding = cdp_rx_ppdu->u.ldpc; in target_if_cfr_rx_tlv_process()
1392 meta->sig_info.beamformed = cdp_rx_ppdu->beamformed; in target_if_cfr_rx_tlv_process()
1394 if (meta->num_mu_users > pcfr->max_mu_users) in target_if_cfr_rx_tlv_process()
1395 meta->num_mu_users = pcfr->max_mu_users; in target_if_cfr_rx_tlv_process()
1397 target_if_snr_to_signal_strength(target_type, meta, cdp_rx_ppdu); in target_if_cfr_rx_tlv_process()
1400 for (i = 0 ; i < meta->num_mu_users; i++) { in target_if_cfr_rx_tlv_process()
1402 qdf_mem_copy(meta->peer_addr.mu_peer_addr[i], in target_if_cfr_rx_tlv_process()
1489 struct enh_cfr_metadata *meta = NULL; in enh_cfr_dbr_event_handler() local
1574 meta = &header->u.meta_enh; in enh_cfr_dbr_event_handler()
1575 meta->channel_bw = dma_hdr.upload_pkt_bw; in enh_cfr_dbr_event_handler()
1576 meta->num_rx_chain = NUM_CHAINS_FW_TO_HOST(dma_hdr.num_chains); in enh_cfr_dbr_event_handler()
1577 meta->length = length; in enh_cfr_dbr_event_handler()
1580 meta->capture_type = capture_type; in enh_cfr_dbr_event_handler()
1581 meta->sts_count = (dma_hdr.nss + 1); in enh_cfr_dbr_event_handler()
1584 peer_macaddr = meta->peer_addr.su_peer_addr; in enh_cfr_dbr_event_handler()