Lines Matching refs:gwlan_logging

237 struct wlan_logging gwlan_logging;  variable
262 qdf_minidump_log(&gwlan_logging, sizeof(gwlan_logging), in allocate_log_msg_buffer()
265 qdf_ssr_driver_dump_register_region("gwlan_logging", &gwlan_logging, in allocate_log_msg_buffer()
266 sizeof(gwlan_logging)); in allocate_log_msg_buffer()
277 qdf_minidump_remove(&gwlan_logging, sizeof(gwlan_logging), in free_log_msg_buffer()
287 ptr = &gwlan_logging.pcur_node->logbuf[sizeof(tAniHdr)]; in wlan_queue_logmsg_for_app()
288 ptr[gwlan_logging.pcur_node->filled_length] = '\0'; in wlan_queue_logmsg_for_app()
290 *(unsigned short *)(gwlan_logging.pcur_node->logbuf) = in wlan_queue_logmsg_for_app()
292 *(unsigned short *)(gwlan_logging.pcur_node->logbuf + 2) = in wlan_queue_logmsg_for_app()
293 gwlan_logging.pcur_node->filled_length; in wlan_queue_logmsg_for_app()
294 list_add_tail(&gwlan_logging.pcur_node->node, in wlan_queue_logmsg_for_app()
295 &gwlan_logging.filled_list); in wlan_queue_logmsg_for_app()
297 if (!list_empty(&gwlan_logging.free_list)) { in wlan_queue_logmsg_for_app()
299 gwlan_logging.pcur_node = in wlan_queue_logmsg_for_app()
300 (struct log_msg *)(gwlan_logging.free_list.next); in wlan_queue_logmsg_for_app()
301 list_del_init(gwlan_logging.free_list.next); in wlan_queue_logmsg_for_app()
302 } else if (!list_empty(&gwlan_logging.filled_list)) { in wlan_queue_logmsg_for_app()
307 gwlan_logging.pcur_node = in wlan_queue_logmsg_for_app()
308 (struct log_msg *)(gwlan_logging.filled_list.next); in wlan_queue_logmsg_for_app()
309 ++gwlan_logging.drop_count; in wlan_queue_logmsg_for_app()
310 list_del_init(gwlan_logging.filled_list.next); in wlan_queue_logmsg_for_app()
315 gwlan_logging.pcur_node->filled_length = 0; in wlan_queue_logmsg_for_app()
431 if (!gwlan_logging.is_active) { in wlan_log_to_user()
439 spin_lock_irqsave(&gwlan_logging.spin_lock, flags); in wlan_log_to_user()
441 if (!gwlan_logging.pcur_node) { in wlan_log_to_user()
442 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in wlan_log_to_user()
446 pfilled_length = &gwlan_logging.pcur_node->filled_length; in wlan_log_to_user()
453 pfilled_length = &gwlan_logging.pcur_node->filled_length; in wlan_log_to_user()
456 ptr = &gwlan_logging.pcur_node->logbuf[sizeof(tAniHdr)]; in wlan_log_to_user()
480 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in wlan_log_to_user()
484 set_bit(HOST_LOG_DRIVER_MSG, &gwlan_logging.eventFlag); in wlan_log_to_user()
485 wake_up_interruptible(&gwlan_logging.wait_queue); in wlan_log_to_user()
488 if (gwlan_logging.console_log_levels & BIT(log_level)) in wlan_log_to_user()
534 cds_pktlog.seq_no = gwlan_logging.pkt_stats_msg_idx++; in pkt_stats_fill_headers()
620 while (!list_empty(&gwlan_logging.pkt_stat_filled_list) in pktlog_send_per_pkt_stats_to_user()
621 && !gwlan_logging.exit) { in pktlog_send_per_pkt_stats_to_user()
627 gwlan_logging.drop_count); in pktlog_send_per_pkt_stats_to_user()
634 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, flags); in pktlog_send_per_pkt_stats_to_user()
637 (gwlan_logging.pkt_stat_filled_list.next); in pktlog_send_per_pkt_stats_to_user()
638 list_del_init(gwlan_logging.pkt_stat_filled_list.next); in pktlog_send_per_pkt_stats_to_user()
639 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, flags); in pktlog_send_per_pkt_stats_to_user()
650 ++gwlan_logging.pkt_stat_drop_cnt); in pktlog_send_per_pkt_stats_to_user()
662 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, flags); in pktlog_send_per_pkt_stats_to_user()
665 &gwlan_logging.pkt_stat_free_list); in pktlog_send_per_pkt_stats_to_user()
666 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, flags); in pktlog_send_per_pkt_stats_to_user()
694 while (!list_empty(&gwlan_logging.filled_list) in send_filled_buffers_to_user()
695 && !gwlan_logging.exit) { in send_filled_buffers_to_user()
702 gwlan_logging.drop_count); in send_filled_buffers_to_user()
710 spin_lock_irqsave(&gwlan_logging.spin_lock, flags); in send_filled_buffers_to_user()
713 (gwlan_logging.filled_list.next); in send_filled_buffers_to_user()
714 list_del_init(gwlan_logging.filled_list.next); in send_filled_buffers_to_user()
715 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in send_filled_buffers_to_user()
724 spin_lock_irqsave(&gwlan_logging.spin_lock, flags); in send_filled_buffers_to_user()
726 &gwlan_logging.free_list); in send_filled_buffers_to_user()
727 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in send_filled_buffers_to_user()
728 qdf_err("drop_count = %u", ++gwlan_logging.drop_count); in send_filled_buffers_to_user()
744 spin_lock_irqsave(&gwlan_logging.spin_lock, flags); in send_filled_buffers_to_user()
745 list_add_tail(&plog_msg->node, &gwlan_logging.free_list); in send_filled_buffers_to_user()
746 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in send_filled_buffers_to_user()
750 if (ret < 0 && (!(gwlan_logging.drop_count % 0x40))) { in send_filled_buffers_to_user()
752 ret, ++gwlan_logging.drop_count); in send_filled_buffers_to_user()
819 qdf_event_set(&gwlan_logging.flush_log_completion); in wlan_logging_set_flush_log_completion()
824 qdf_event_reset(&gwlan_logging.flush_log_completion); in wlan_logging_wait_for_flush_log_completion()
827 &gwlan_logging.flush_log_completion, in wlan_logging_wait_for_flush_log_completion()
833 qdf_spin_lock(&gwlan_logging.flush_timer_lock); in setup_flush_timer()
834 if (!gwlan_logging.is_flush_timer_initialized || in setup_flush_timer()
835 (gwlan_logging.flush_timer_period == 0)) { in setup_flush_timer()
836 qdf_spin_unlock(&gwlan_logging.flush_timer_lock); in setup_flush_timer()
839 qdf_timer_mod(&gwlan_logging.flush_timer, in setup_flush_timer()
840 gwlan_logging.flush_timer_period); in setup_flush_timer()
841 qdf_spin_unlock(&gwlan_logging.flush_timer_lock); in setup_flush_timer()
892 gwlan_logging.start_ts = qdf_get_log_timestamp(); in wlan_logging_thread()
894 while (!gwlan_logging.exit) { in wlan_logging_thread()
897 wait_event_interruptible(gwlan_logging.wait_queue, in wlan_logging_thread()
899 (&gwlan_logging.filled_list) in wlan_logging_thread()
902 &gwlan_logging.eventFlag) in wlan_logging_thread()
905 &gwlan_logging.eventFlag) in wlan_logging_thread()
908 &gwlan_logging.eventFlag) in wlan_logging_thread()
911 &gwlan_logging.eventFlag) in wlan_logging_thread()
912 || gwlan_logging.exit)); in wlan_logging_thread()
919 if (gwlan_logging.exit) in wlan_logging_thread()
924 &gwlan_logging.eventFlag)) { in wlan_logging_thread()
938 &gwlan_logging.eventFlag)) { in wlan_logging_thread()
945 &gwlan_logging.eventFlag) && in wlan_logging_thread()
946 gwlan_logging.is_flush_complete) { in wlan_logging_thread()
948 &gwlan_logging.eventFlag); in wlan_logging_thread()
958 &gwlan_logging.eventFlag) && in wlan_logging_thread()
959 gwlan_logging.is_flush_complete) { in wlan_logging_thread()
961 &gwlan_logging.eventFlag); in wlan_logging_thread()
971 &gwlan_logging.eventFlag)) { in wlan_logging_thread()
977 if (gwlan_logging.is_flush_complete == true) { in wlan_logging_thread()
978 gwlan_logging.is_flush_complete = false; in wlan_logging_thread()
985 gwlan_logging.is_flush_complete = true; in wlan_logging_thread()
987 spin_lock_irqsave(&gwlan_logging.spin_lock, in wlan_logging_thread()
990 spin_unlock_irqrestore(&gwlan_logging.spin_lock, in wlan_logging_thread()
993 &gwlan_logging.eventFlag); in wlan_logging_thread()
995 &gwlan_logging.eventFlag); in wlan_logging_thread()
997 &gwlan_logging.eventFlag); in wlan_logging_thread()
999 &gwlan_logging.wait_queue); in wlan_logging_thread()
1006 &gwlan_logging.eventFlag); in wlan_logging_thread()
1009 gwlan_logging.exit_ts = qdf_get_log_timestamp(); in wlan_logging_thread()
1010 kthread_complete_and_exit(&gwlan_logging.shutdown_comp, 0); in wlan_logging_thread()
1017 gwlan_logging.is_active = active; in wlan_logging_set_active()
1022 gwlan_logging.console_log_levels = console_log_levels; in wlan_set_console_log_levels()
1040 if (!gwlan_logging.is_active) { in wlan_logging_set_flush_timer()
1045 qdf_spin_lock(&gwlan_logging.flush_timer_lock); in wlan_logging_set_flush_timer()
1046 if (!gwlan_logging.is_flush_timer_initialized) { in wlan_logging_set_flush_timer()
1047 qdf_spin_unlock(&gwlan_logging.flush_timer_lock); in wlan_logging_set_flush_timer()
1050 gwlan_logging.flush_timer_period = milliseconds; in wlan_logging_set_flush_timer()
1052 qdf_timer_mod(&gwlan_logging.flush_timer, in wlan_logging_set_flush_timer()
1053 gwlan_logging.flush_timer_period); in wlan_logging_set_flush_timer()
1055 qdf_spin_unlock(&gwlan_logging.flush_timer_lock); in wlan_logging_set_flush_timer()
1080 while (!list_empty(&gwlan_logging.panic_list)) { in wlan_logging_dump_last_logs()
1082 (gwlan_logging.panic_list.next); in wlan_logging_dump_last_logs()
1083 list_del_init(gwlan_logging.panic_list.next); in wlan_logging_dump_last_logs()
1100 spin_lock_irqsave(&gwlan_logging.spin_lock, flags); in wlan_logging_dump_last_logs()
1102 &gwlan_logging.free_list); in wlan_logging_dump_last_logs()
1103 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in wlan_logging_dump_last_logs()
1120 spin_lock_irqsave(&gwlan_logging.spin_lock, flags); in wlan_logging_panic_handler()
1122 while (!list_empty(&gwlan_logging.filled_list)) { in wlan_logging_panic_handler()
1124 (gwlan_logging.filled_list.next); in wlan_logging_panic_handler()
1125 list_del_init(gwlan_logging.filled_list.next); in wlan_logging_panic_handler()
1127 &gwlan_logging.panic_list); in wlan_logging_panic_handler()
1130 if (gwlan_logging.pcur_node && in wlan_logging_panic_handler()
1131 gwlan_logging.pcur_node->filled_length) { in wlan_logging_panic_handler()
1132 plog_msg = gwlan_logging.pcur_node; in wlan_logging_panic_handler()
1135 list_add_tail(&gwlan_logging.pcur_node->node, in wlan_logging_panic_handler()
1136 &gwlan_logging.panic_list); in wlan_logging_panic_handler()
1137 if (!list_empty(&gwlan_logging.free_list)) { in wlan_logging_panic_handler()
1138 gwlan_logging.pcur_node = in wlan_logging_panic_handler()
1139 (struct log_msg *)(gwlan_logging.free_list.next); in wlan_logging_panic_handler()
1140 list_del_init(gwlan_logging.free_list.next); in wlan_logging_panic_handler()
1141 gwlan_logging.pcur_node->filled_length = 0; in wlan_logging_panic_handler()
1143 gwlan_logging.pcur_node = NULL; in wlan_logging_panic_handler()
1145 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in wlan_logging_panic_handler()
1160 if (gwlan_logging.is_active && in wlan_logging_notifier_init()
1176 if (gwlan_logging.is_active && in wlan_logging_notifier_deinit()
1187 qdf_spinlock_create(&gwlan_logging.flush_timer_lock); in flush_timer_init()
1188 qdf_timer_init(NULL, &gwlan_logging.flush_timer, in flush_timer_init()
1191 gwlan_logging.is_flush_timer_initialized = true; in flush_timer_init()
1192 gwlan_logging.flush_timer_period = 0; in flush_timer_init()
1197 gwlan_logging.is_flush_timer_initialized = false; in flush_timer_deinit()
1198 qdf_spin_lock(&gwlan_logging.flush_timer_lock); in flush_timer_deinit()
1199 qdf_timer_stop(&gwlan_logging.flush_timer); in flush_timer_deinit()
1200 qdf_timer_free(&gwlan_logging.flush_timer); in flush_timer_deinit()
1201 qdf_spin_unlock(&gwlan_logging.flush_timer_lock); in flush_timer_deinit()
1202 qdf_spinlock_destroy(&gwlan_logging.flush_timer_lock); in flush_timer_deinit()
1211 spin_lock_init(&gwlan_logging.spin_lock); in wlan_logging_sock_init_svc()
1212 spin_lock_init(&gwlan_logging.pkt_stats_lock); in wlan_logging_sock_init_svc()
1214 gwlan_logging.console_log_levels = 0; in wlan_logging_sock_init_svc()
1215 gwlan_logging.num_buf = MAX_LOGMSG_COUNT; in wlan_logging_sock_init_svc()
1216 gwlan_logging.buffer_length = MAX_LOGMSG_LENGTH; in wlan_logging_sock_init_svc()
1223 spin_lock_irqsave(&gwlan_logging.spin_lock, irq_flag); in wlan_logging_sock_init_svc()
1224 INIT_LIST_HEAD(&gwlan_logging.free_list); in wlan_logging_sock_init_svc()
1225 INIT_LIST_HEAD(&gwlan_logging.filled_list); in wlan_logging_sock_init_svc()
1226 INIT_LIST_HEAD(&gwlan_logging.panic_list); in wlan_logging_sock_init_svc()
1228 for (i = 0; i < gwlan_logging.num_buf; i++) { in wlan_logging_sock_init_svc()
1229 list_add(&gplog_msg[i].node, &gwlan_logging.free_list); in wlan_logging_sock_init_svc()
1232 gwlan_logging.pcur_node = (struct log_msg *) in wlan_logging_sock_init_svc()
1233 (gwlan_logging.free_list.next); in wlan_logging_sock_init_svc()
1234 list_del_init(gwlan_logging.free_list.next); in wlan_logging_sock_init_svc()
1235 spin_unlock_irqrestore(&gwlan_logging.spin_lock, irq_flag); in wlan_logging_sock_init_svc()
1249 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1250 gwlan_logging.pkt_stats_msg_idx = 0; in wlan_logging_sock_init_svc()
1251 INIT_LIST_HEAD(&gwlan_logging.pkt_stat_free_list); in wlan_logging_sock_init_svc()
1252 INIT_LIST_HEAD(&gwlan_logging.pkt_stat_filled_list); in wlan_logging_sock_init_svc()
1253 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1265 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1267 &gwlan_logging.pkt_stat_free_list); in wlan_logging_sock_init_svc()
1268 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1270 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1271 gwlan_logging.pkt_stats_pcur_node = (struct pkt_stats_msg *) in wlan_logging_sock_init_svc()
1272 (gwlan_logging.pkt_stat_free_list.next); in wlan_logging_sock_init_svc()
1273 list_del_init(gwlan_logging.pkt_stat_free_list.next); in wlan_logging_sock_init_svc()
1274 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1277 init_waitqueue_head(&gwlan_logging.wait_queue); in wlan_logging_sock_init_svc()
1278 gwlan_logging.exit = false; in wlan_logging_sock_init_svc()
1279 clear_bit(HOST_LOG_DRIVER_MSG, &gwlan_logging.eventFlag); in wlan_logging_sock_init_svc()
1280 clear_bit(HOST_LOG_PER_PKT_STATS, &gwlan_logging.eventFlag); in wlan_logging_sock_init_svc()
1281 clear_bit(HOST_LOG_FW_FLUSH_COMPLETE, &gwlan_logging.eventFlag); in wlan_logging_sock_init_svc()
1282 clear_bit(HOST_LOG_DRIVER_CONNECTIVITY_MSG, &gwlan_logging.eventFlag); in wlan_logging_sock_init_svc()
1283 clear_bit(HOST_LOG_CHIPSET_STATS, &gwlan_logging.eventFlag); in wlan_logging_sock_init_svc()
1284 clear_bit(FW_LOG_CHIPSET_STATS, &gwlan_logging.eventFlag); in wlan_logging_sock_init_svc()
1286 init_completion(&gwlan_logging.shutdown_comp); in wlan_logging_sock_init_svc()
1287 gwlan_logging.thread = kthread_create(wlan_logging_thread, NULL, in wlan_logging_sock_init_svc()
1289 if (IS_ERR(gwlan_logging.thread)) { in wlan_logging_sock_init_svc()
1293 wake_up_process(gwlan_logging.thread); in wlan_logging_sock_init_svc()
1294 gwlan_logging.wakup_ts = qdf_get_log_timestamp(); in wlan_logging_sock_init_svc()
1296 gwlan_logging.is_active = true; in wlan_logging_sock_init_svc()
1297 gwlan_logging.is_flush_complete = false; in wlan_logging_sock_init_svc()
1299 status = qdf_event_create(&gwlan_logging.flush_log_completion); in wlan_logging_sock_init_svc()
1313 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1314 gwlan_logging.pkt_stats_pcur_node = NULL; in wlan_logging_sock_init_svc()
1315 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_init_svc()
1320 spin_lock_irqsave(&gwlan_logging.spin_lock, irq_flag); in wlan_logging_sock_init_svc()
1321 gwlan_logging.pcur_node = NULL; in wlan_logging_sock_init_svc()
1322 spin_unlock_irqrestore(&gwlan_logging.spin_lock, irq_flag); in wlan_logging_sock_init_svc()
1333 if (!gwlan_logging.pcur_node) in wlan_logging_sock_deinit_svc()
1336 qdf_event_destroy(&gwlan_logging.flush_log_completion); in wlan_logging_sock_deinit_svc()
1338 gwlan_logging.reinitcompletion_ts = qdf_get_log_timestamp(); in wlan_logging_sock_deinit_svc()
1339 INIT_COMPLETION(gwlan_logging.shutdown_comp); in wlan_logging_sock_deinit_svc()
1341 gwlan_logging.exit = true; in wlan_logging_sock_deinit_svc()
1343 gwlan_logging.set_exit_ts = qdf_get_log_timestamp(); in wlan_logging_sock_deinit_svc()
1345 gwlan_logging.is_active = false; in wlan_logging_sock_deinit_svc()
1349 gwlan_logging.is_flush_complete = false; in wlan_logging_sock_deinit_svc()
1350 clear_bit(HOST_LOG_DRIVER_MSG, &gwlan_logging.eventFlag); in wlan_logging_sock_deinit_svc()
1351 clear_bit(HOST_LOG_PER_PKT_STATS, &gwlan_logging.eventFlag); in wlan_logging_sock_deinit_svc()
1352 clear_bit(HOST_LOG_FW_FLUSH_COMPLETE, &gwlan_logging.eventFlag); in wlan_logging_sock_deinit_svc()
1353 clear_bit(HOST_LOG_DRIVER_CONNECTIVITY_MSG, &gwlan_logging.eventFlag); in wlan_logging_sock_deinit_svc()
1354 clear_bit(HOST_LOG_CHIPSET_STATS, &gwlan_logging.eventFlag); in wlan_logging_sock_deinit_svc()
1355 clear_bit(FW_LOG_CHIPSET_STATS, &gwlan_logging.eventFlag); in wlan_logging_sock_deinit_svc()
1356 wake_up_interruptible(&gwlan_logging.wait_queue); in wlan_logging_sock_deinit_svc()
1357 wait_for_completion(&gwlan_logging.shutdown_comp); in wlan_logging_sock_deinit_svc()
1359 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_deinit_svc()
1360 gwlan_logging.pkt_stats_pcur_node = NULL; in wlan_logging_sock_deinit_svc()
1361 gwlan_logging.pkt_stats_msg_idx = 0; in wlan_logging_sock_deinit_svc()
1362 gwlan_logging.pkt_stat_drop_cnt = 0; in wlan_logging_sock_deinit_svc()
1367 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, irq_flag); in wlan_logging_sock_deinit_svc()
1374 spin_lock_irqsave(&gwlan_logging.spin_lock, irq_flag); in wlan_logging_sock_deinit_svc()
1375 gwlan_logging.pcur_node = NULL; in wlan_logging_sock_deinit_svc()
1376 spin_unlock_irqrestore(&gwlan_logging.spin_lock, irq_flag); in wlan_logging_sock_deinit_svc()
1394 if (gwlan_logging.is_active == false) in wlan_logging_set_per_pkt_stats()
1397 set_bit(HOST_LOG_PER_PKT_STATS, &gwlan_logging.eventFlag); in wlan_logging_set_per_pkt_stats()
1398 wake_up_interruptible(&gwlan_logging.wait_queue); in wlan_logging_set_per_pkt_stats()
1403 if (gwlan_logging.is_active == false) in wlan_logging_set_connectivity_log()
1406 set_bit(HOST_LOG_DRIVER_CONNECTIVITY_MSG, &gwlan_logging.eventFlag); in wlan_logging_set_connectivity_log()
1407 wake_up_interruptible(&gwlan_logging.wait_queue); in wlan_logging_set_connectivity_log()
1421 if (!gwlan_logging.is_active) in wlan_logging_set_fw_flush_complete()
1424 set_bit(HOST_LOG_FW_FLUSH_COMPLETE, &gwlan_logging.eventFlag); in wlan_logging_set_fw_flush_complete()
1425 wake_up_interruptible(&gwlan_logging.wait_queue); in wlan_logging_set_fw_flush_complete()
1440 if (gwlan_logging.flush_timer_period == 0) in wlan_flush_host_logs_for_fatal()
1442 spin_lock_irqsave(&gwlan_logging.spin_lock, flags); in wlan_flush_host_logs_for_fatal()
1444 spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags); in wlan_flush_host_logs_for_fatal()
1445 set_bit(HOST_LOG_DRIVER_MSG, &gwlan_logging.eventFlag); in wlan_flush_host_logs_for_fatal()
1446 wake_up_interruptible(&gwlan_logging.wait_queue); in wlan_flush_host_logs_for_fatal()
1467 list_add_tail(&gwlan_logging.pkt_stats_pcur_node->node, in wlan_get_pkt_stats_free_node()
1468 &gwlan_logging.pkt_stat_filled_list); in wlan_get_pkt_stats_free_node()
1470 if (!list_empty(&gwlan_logging.pkt_stat_free_list)) { in wlan_get_pkt_stats_free_node()
1472 gwlan_logging.pkt_stats_pcur_node = in wlan_get_pkt_stats_free_node()
1473 (struct pkt_stats_msg *)(gwlan_logging.pkt_stat_free_list.next); in wlan_get_pkt_stats_free_node()
1474 list_del_init(gwlan_logging.pkt_stat_free_list.next); in wlan_get_pkt_stats_free_node()
1475 } else if (!list_empty(&gwlan_logging.pkt_stat_filled_list)) { in wlan_get_pkt_stats_free_node()
1479 gwlan_logging.pkt_stats_pcur_node = in wlan_get_pkt_stats_free_node()
1481 (gwlan_logging.pkt_stat_filled_list.next); in wlan_get_pkt_stats_free_node()
1482 ++gwlan_logging.pkt_stat_drop_cnt; in wlan_get_pkt_stats_free_node()
1486 (!(gwlan_logging.pkt_stat_drop_cnt % 0x40))) { in wlan_get_pkt_stats_free_node()
1488 gwlan_logging.pkt_stat_drop_cnt); in wlan_get_pkt_stats_free_node()
1490 list_del_init(gwlan_logging.pkt_stat_filled_list.next); in wlan_get_pkt_stats_free_node()
1495 skb_trim(gwlan_logging.pkt_stats_pcur_node->skb, 0); in wlan_get_pkt_stats_free_node()
1531 spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, flags); in wlan_pkt_stats_to_logger_thread()
1533 if (!gwlan_logging.pkt_stats_pcur_node) { in wlan_pkt_stats_to_logger_thread()
1534 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, flags); in wlan_pkt_stats_to_logger_thread()
1542 skb_tailroom(gwlan_logging.pkt_stats_pcur_node->skb)) { in wlan_pkt_stats_to_logger_thread()
1547 ptr = gwlan_logging.pkt_stats_pcur_node->skb; in wlan_pkt_stats_to_logger_thread()
1571 spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, flags); in wlan_pkt_stats_to_logger_thread()
1575 set_bit(HOST_LOG_PER_PKT_STATS, &gwlan_logging.eventFlag); in wlan_pkt_stats_to_logger_thread()
1576 wake_up_interruptible(&gwlan_logging.wait_queue); in wlan_pkt_stats_to_logger_thread()
1868 set_bit(HOST_LOG_CHIPSET_STATS, &gwlan_logging.eventFlag); in wlan_set_chipset_stats_bit()
1869 set_bit(FW_LOG_CHIPSET_STATS, &gwlan_logging.eventFlag); in wlan_set_chipset_stats_bit()