Lines Matching refs:pl_hdr

201 	struct ath_pktlog_hdr pl_hdr;  in process_tx_info()  local
244 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_tx_info()
247 pl_hdr.flags |= PKTLOG_HDR_SIZE_16; in process_tx_info()
248 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_tx_info()
251 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_tx_info()
254 pl_hdr.macId = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MAC_ID_OFFSET) & in process_tx_info()
257 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_tx_info()
259 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_tx_info()
260 pl_hdr.type_specific_data = in process_tx_info()
264 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_tx_info()
269 if (pl_hdr.log_type == PKTLOG_TYPE_TX_CTRL) { in process_tx_info()
270 size_t log_size = sizeof(frm_hdr) + pl_hdr.size; in process_tx_info()
273 log_size, &pl_hdr); in process_tx_info()
276 qdf_assert(pl_hdr.size < (370 * sizeof(u_int32_t))); in process_tx_info()
282 pl_hdr.size); in process_tx_info()
283 pl_hdr.size = log_size; in process_tx_info()
284 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, in process_tx_info()
288 if (pl_hdr.log_type == PKTLOG_TYPE_TX_STAT) { in process_tx_info()
290 size_t log_size = pl_hdr.size; in process_tx_info()
294 log_size, &pl_hdr); in process_tx_info()
299 pl_hdr.size); in process_tx_info()
301 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, in process_tx_info()
314 struct ath_pktlog_hdr pl_hdr; in process_tx_info() local
355 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_tx_info()
358 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_tx_info()
361 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_tx_info()
364 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_tx_info()
366 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_tx_info()
368 pktlog_hdr_set_specific_data(&pl_hdr, in process_tx_info()
374 if (pl_hdr.log_type == PKTLOG_TYPE_TX_FRM_HDR) { in process_tx_info()
376 process_ieee_hdr(fw_data->data + sizeof(pl_hdr)); in process_tx_info()
379 if (pl_hdr.log_type == PKTLOG_TYPE_TX_VIRT_ADDR) { in process_tx_info()
381 sizeof(pl_hdr))); in process_tx_info()
410 if (pl_hdr.log_type == PKTLOG_TYPE_TX_CTRL) { in process_tx_info()
417 &pl_hdr); in process_tx_info()
431 qdf_assert(pl_hdr.size < sizeof(txctl_log.priv.txdesc_ctl)); in process_tx_info()
432 pl_hdr.size = (pl_hdr.size > sizeof(txctl_log.priv.txdesc_ctl)) in process_tx_info()
434 pl_hdr.size; in process_tx_info()
436 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_tx_info()
443 pl_hdr.size); in process_tx_info()
447 pl_hdr.size = log_size; in process_tx_info()
448 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, in process_tx_info()
453 if (pl_hdr.log_type == PKTLOG_TYPE_TX_STAT) { in process_tx_info()
455 size_t log_size = pl_hdr.size; in process_tx_info()
459 log_size, &pl_hdr); in process_tx_info()
464 pl_hdr.size); in process_tx_info()
466 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, in process_tx_info()
470 if (pl_hdr.log_type == PKTLOG_TYPE_TX_MSDU_ID) { in process_tx_info()
482 log_size, &pl_hdr); in process_tx_info()
489 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, in process_tx_info()
502 struct ath_pktlog_hdr pl_hdr; in process_rx_info_remote() local
526 pl_hdr.flags = (1 << PKTLOG_FLG_FRM_TYPE_REMOTE_S); in process_rx_info_remote()
527 pl_hdr.missed_cnt = 0; in process_rx_info_remote()
529 pl_hdr.macId = r_data->mac_id; in process_rx_info_remote()
530 pl_hdr.log_type = PKTLOG_TYPE_RX_STAT; in process_rx_info_remote()
531 pl_hdr.flags |= PKTLOG_HDR_SIZE_16; in process_rx_info_remote()
533 pl_hdr.log_type = PKTLOG_TYPE_RX_STAT; in process_rx_info_remote()
535 pl_hdr.size = sizeof(*rx_desc) - in process_rx_info_remote()
538 pl_hdr.timestamp = in process_rx_info_remote()
540 pl_hdr.type_specific_data = 0xDEADAA; in process_rx_info_remote()
542 pl_hdr.timestamp = rx_desc->ppdu_end.tsf_timestamp; in process_rx_info_remote()
545 pktlog_hdr_set_specific_data(&pl_hdr, 0xDEADAA); in process_rx_info_remote()
548 log_size, &pl_hdr); in process_rx_info_remote()
550 sizeof(struct htt_host_fw_desc_base), pl_hdr.size); in process_rx_info_remote()
551 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, in process_rx_info_remote()
564 struct ath_pktlog_hdr pl_hdr; in process_rx_info() local
603 qdf_mem_zero(&pl_hdr, sizeof(pl_hdr)); in process_rx_info()
604 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_rx_info()
607 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_rx_info()
610 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_rx_info()
613 pl_hdr.macId = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MAC_ID_OFFSET) & in process_rx_info()
616 pl_hdr.flags |= PKTLOG_HDR_SIZE_16; in process_rx_info()
617 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_rx_info()
619 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_rx_info()
620 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_rx_info()
625 log_size = pl_hdr.size; in process_rx_info()
627 log_size, &pl_hdr); in process_rx_info()
630 pl_hdr.size); in process_rx_info()
631 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, rxstat_log.rx_desc); in process_rx_info()
641 struct ath_pktlog_hdr pl_hdr; in process_rx_info() local
677 qdf_mem_zero(&pl_hdr, sizeof(pl_hdr)); in process_rx_info()
678 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_rx_info()
681 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_rx_info()
684 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_rx_info()
687 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_rx_info()
689 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_rx_info()
690 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_rx_info()
695 log_size = pl_hdr.size; in process_rx_info()
697 log_size, &pl_hdr); in process_rx_info()
700 pl_hdr.size); in process_rx_info()
701 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, rxstat_log.rx_desc); in process_rx_info()
711 struct ath_pktlog_hdr pl_hdr; in process_rate_find() local
755 qdf_mem_zero(&pl_hdr, sizeof(pl_hdr)); in process_rate_find()
756 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_rate_find()
759 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_rate_find()
762 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_rate_find()
765 pl_hdr.macId = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MAC_ID_OFFSET) & in process_rate_find()
768 pl_hdr.flags |= PKTLOG_HDR_SIZE_16; in process_rate_find()
769 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_rate_find()
771 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_rate_find()
773 log_size = pl_hdr.size; in process_rate_find()
775 log_size, &pl_hdr); in process_rate_find()
777 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_rate_find()
783 pl_hdr.size); in process_rate_find()
784 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, rcf_log.rcFind); in process_rate_find()
793 struct ath_pktlog_hdr pl_hdr; in process_rate_find() local
835 qdf_mem_zero(&pl_hdr, sizeof(pl_hdr)); in process_rate_find()
836 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_rate_find()
839 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_rate_find()
842 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_rate_find()
845 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_rate_find()
847 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_rate_find()
849 log_size = pl_hdr.size; in process_rate_find()
851 log_size, &pl_hdr); in process_rate_find()
853 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_rate_find()
859 pl_hdr.size); in process_rate_find()
860 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, rcf_log.rcFind); in process_rate_find()
870 struct ath_pktlog_hdr pl_hdr; in process_rate_update() local
907 qdf_mem_zero(&pl_hdr, sizeof(pl_hdr)); in process_rate_update()
908 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_rate_update()
911 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_rate_update()
914 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_rate_update()
917 pl_hdr.macId = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MAC_ID_OFFSET) & in process_rate_update()
920 pl_hdr.flags |= PKTLOG_HDR_SIZE_16; in process_rate_update()
921 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_rate_update()
923 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_rate_update()
924 log_size = pl_hdr.size; in process_rate_update()
933 log_size, &pl_hdr); in process_rate_update()
934 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_rate_update()
941 pl_hdr.size); in process_rate_update()
942 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, rcu_log.txRateCtrl); in process_rate_update()
949 struct ath_pktlog_hdr pl_hdr; in process_rate_update() local
984 qdf_mem_zero(&pl_hdr, sizeof(pl_hdr)); in process_rate_update()
985 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_rate_update()
988 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_rate_update()
991 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_rate_update()
994 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_rate_update()
996 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_rate_update()
997 log_size = pl_hdr.size; in process_rate_update()
1006 log_size, &pl_hdr); in process_rate_update()
1007 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_rate_update()
1014 pl_hdr.size); in process_rate_update()
1015 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, rcu_log.txRateCtrl); in process_rate_update()
1024 struct ath_pktlog_hdr pl_hdr; in process_sw_event() local
1075 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_sw_event()
1078 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_sw_event()
1081 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_sw_event()
1084 pl_hdr.macId = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MAC_ID_OFFSET) & in process_sw_event()
1087 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_sw_event()
1089 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_sw_event()
1091 pl_hdr.type_specific_data = in process_sw_event()
1094 log_size = pl_hdr.size; in process_sw_event()
1096 log_size, &pl_hdr); in process_sw_event()
1097 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_sw_event()
1103 pl_hdr.size); in process_sw_event()
1105 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, sw_event.sw_event); in process_sw_event()
1113 struct ath_pktlog_hdr pl_hdr; in process_sw_event() local
1162 pl_hdr.flags = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_FLAGS_OFFSET) & in process_sw_event()
1165 pl_hdr.missed_cnt = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_MISSED_CNT_OFFSET) & in process_sw_event()
1168 pl_hdr.log_type = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_LOG_TYPE_OFFSET) & in process_sw_event()
1171 pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) & in process_sw_event()
1173 pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET); in process_sw_event()
1175 pktlog_hdr_set_specific_data(&pl_hdr, in process_sw_event()
1180 log_size = pl_hdr.size; in process_sw_event()
1182 log_size, &pl_hdr); in process_sw_event()
1183 if (sizeof(struct ath_pktlog_hdr) + pl_hdr.size > len) { in process_sw_event()
1189 pl_hdr.size); in process_sw_event()
1191 cds_pkt_stats_to_logger_thread(&pl_hdr, NULL, sw_event.sw_event); in process_sw_event()