Lines Matching refs:gp_hif_rtpm_ctx

51 static struct hif_rtpm_ctx *gp_hif_rtpm_ctx;  variable
89 return qdf_atomic_read(&gp_hif_rtpm_ctx->dev->power.usage_count); in hif_rtpm_read_usage_count()
130 int pm_state = qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_log_debug_stats()
140 gp_hif_rtpm_ctx->stats.last_busy_ts); in hif_rtpm_log_debug_stats()
143 gp_hif_rtpm_ctx->stats.request_resume_ts); in hif_rtpm_log_debug_stats()
147 gp_hif_rtpm_ctx->stats.request_resume_id); in hif_rtpm_log_debug_stats()
150 gp_hif_rtpm_ctx->stats.last_busy_marker); in hif_rtpm_log_debug_stats()
155 gp_hif_rtpm_ctx->clients[HIF_RTPM_ID_DP]->last_busy_cnt, in hif_rtpm_log_debug_stats()
156 gp_hif_rtpm_ctx->clients[HIF_RTPM_ID_DP]->last_busy_ts); in hif_rtpm_log_debug_stats()
160 gp_hif_rtpm_ctx->clients[HIF_RTPM_ID_CE]->last_busy_cnt, in hif_rtpm_log_debug_stats()
161 gp_hif_rtpm_ctx->clients[HIF_RTPM_ID_CE]->last_busy_ts); in hif_rtpm_log_debug_stats()
163 HIF_RTPM_STATS(type, &index, s, gp_hif_rtpm_ctx, last_busy_id); in hif_rtpm_log_debug_stats()
168 gp_hif_rtpm_ctx->stats.suspend_ts); in hif_rtpm_log_debug_stats()
171 HIF_RTPM_STATS(type, &index, s, gp_hif_rtpm_ctx, resume_count); in hif_rtpm_log_debug_stats()
172 HIF_RTPM_STATS(type, &index, s, gp_hif_rtpm_ctx, suspend_count); in hif_rtpm_log_debug_stats()
173 HIF_RTPM_STATS(type, &index, s, gp_hif_rtpm_ctx, suspend_err_count); in hif_rtpm_log_debug_stats()
181 client = gp_hif_rtpm_ctx->clients[i]; in hif_rtpm_log_debug_stats()
195 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_log_debug_stats()
196 if (list_empty(&gp_hif_rtpm_ctx->prevent_list)) { in hif_rtpm_log_debug_stats()
197 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_log_debug_stats()
202 list_for_each_entry(ctx, &gp_hif_rtpm_ctx->prevent_list, list) { in hif_rtpm_log_debug_stats()
206 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_log_debug_stats()
257 gp_hif_rtpm_ctx->pm_dentry = qdf_debugfs_create_entry(CNSS_RUNTIME_FILE, in hif_rtpm_debugfs_create()
271 qdf_debugfs_remove_file(gp_hif_rtpm_ctx->pm_dentry); in hif_rtpm_debugfs_remove()
314 gp_hif_rtpm_ctx->busy_hist[i] = NULL; in hif_rtpm_alloc_last_busy_hist()
318 gp_hif_rtpm_ctx->busy_hist[i] = in hif_rtpm_alloc_last_busy_hist()
320 if (!gp_hif_rtpm_ctx->busy_hist[i]) in hif_rtpm_alloc_last_busy_hist()
333 qdf_mem_free(gp_hif_rtpm_ctx->busy_hist[i]); in hif_rtpm_free_last_busy_hist()
339 gp_hif_rtpm_ctx = &g_hif_rtpm_ctx; in hif_rtpm_open()
340 gp_hif_rtpm_ctx->dev = scn->qdf_dev->dev; in hif_rtpm_open()
341 qdf_spinlock_create(&gp_hif_rtpm_ctx->runtime_lock); in hif_rtpm_open()
342 qdf_spinlock_create(&gp_hif_rtpm_ctx->runtime_suspend_lock); in hif_rtpm_open()
343 qdf_spinlock_create(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_open()
344 qdf_atomic_init(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_open()
345 qdf_atomic_set(&gp_hif_rtpm_ctx->pm_state, HIF_RTPM_STATE_NONE); in hif_rtpm_open()
346 qdf_atomic_init(&gp_hif_rtpm_ctx->monitor_wake_intr); in hif_rtpm_open()
347 INIT_LIST_HEAD(&gp_hif_rtpm_ctx->prevent_list); in hif_rtpm_open()
348 gp_hif_rtpm_ctx->client_count = 0; in hif_rtpm_open()
349 gp_hif_rtpm_ctx->pending_job = 0; in hif_rtpm_open()
372 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_sanitize_exit()
374 &gp_hif_rtpm_ctx->prevent_list, list) { in hif_rtpm_sanitize_exit()
377 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_sanitize_exit()
381 client = gp_hif_rtpm_ctx->clients[i]; in hif_rtpm_sanitize_exit()
391 gp_hif_rtpm_ctx->dev); in hif_rtpm_sanitize_exit()
395 gp_hif_rtpm_ctx->clients[i] = NULL; in hif_rtpm_sanitize_exit()
411 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_sanitize_ssr_exit()
413 &gp_hif_rtpm_ctx->prevent_list, list) { in hif_rtpm_sanitize_ssr_exit()
416 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_sanitize_ssr_exit()
429 qdf_mem_set(gp_hif_rtpm_ctx, sizeof(*gp_hif_rtpm_ctx), 0); in hif_rtpm_close()
430 gp_hif_rtpm_ctx = NULL; in hif_rtpm_close()
438 gp_hif_rtpm_ctx->enable_rpm = scn->hif_config.enable_runtime_pm; in hif_set_enable_rpm()
445 if (!gp_hif_rtpm_ctx->enable_rpm) { in hif_rtpm_start()
459 qdf_atomic_set(&gp_hif_rtpm_ctx->pm_state, HIF_RTPM_STATE_ON); in hif_rtpm_start()
460 hif_rtpm_init(gp_hif_rtpm_ctx->dev, scn->hif_config.runtime_pm_delay); in hif_rtpm_start()
461 gp_hif_rtpm_ctx->cfg_delay = scn->hif_config.runtime_pm_delay; in hif_rtpm_start()
462 gp_hif_rtpm_ctx->delay = gp_hif_rtpm_ctx->cfg_delay; in hif_rtpm_start()
470 if (!gp_hif_rtpm_ctx->enable_rpm) in hif_rtpm_stop()
477 hif_rtpm_exit(gp_hif_rtpm_ctx->dev); in hif_rtpm_stop()
481 qdf_atomic_set(&gp_hif_rtpm_ctx->pm_state, HIF_RTPM_STATE_NONE); in hif_rtpm_stop()
489 if (qdf_unlikely(!gp_hif_rtpm_ctx)) { in hif_rtpm_register()
494 if (id >= HIF_RTPM_ID_MAX || gp_hif_rtpm_ctx->clients[id]) { in hif_rtpm_register()
508 gp_hif_rtpm_ctx->clients[id] = client; in hif_rtpm_register()
509 gp_hif_rtpm_ctx->client_count++; in hif_rtpm_register()
519 if (qdf_unlikely(!gp_hif_rtpm_ctx)) { in hif_rtpm_deregister()
524 if (id >= HIF_RTPM_ID_MAX || !gp_hif_rtpm_ctx->clients[id]) { in hif_rtpm_deregister()
529 client = gp_hif_rtpm_ctx->clients[id]; in hif_rtpm_deregister()
539 __hif_rtpm_put_noidle(gp_hif_rtpm_ctx->dev); in hif_rtpm_deregister()
543 gp_hif_rtpm_ctx->clients[id] = NULL; in hif_rtpm_deregister()
555 __hif_rtpm_set_autosuspend_delay(gp_hif_rtpm_ctx->dev, delay); in hif_rtpm_set_autosuspend_delay()
556 gp_hif_rtpm_ctx->delay = delay; in hif_rtpm_set_autosuspend_delay()
564 if (gp_hif_rtpm_ctx->delay == gp_hif_rtpm_ctx->cfg_delay) { in hif_rtpm_restore_autosuspend_delay()
566 gp_hif_rtpm_ctx->delay); in hif_rtpm_restore_autosuspend_delay()
570 __hif_rtpm_set_autosuspend_delay(gp_hif_rtpm_ctx->dev, in hif_rtpm_restore_autosuspend_delay()
571 gp_hif_rtpm_ctx->cfg_delay); in hif_rtpm_restore_autosuspend_delay()
572 gp_hif_rtpm_ctx->delay = gp_hif_rtpm_ctx->cfg_delay; in hif_rtpm_restore_autosuspend_delay()
573 hif_info_rl("RTPM delay set: %d ms", gp_hif_rtpm_ctx->delay); in hif_rtpm_restore_autosuspend_delay()
580 return gp_hif_rtpm_ctx->delay; in hif_rtpm_get_autosuspend_delay()
587 if (qdf_unlikely(!gp_hif_rtpm_ctx)) { in hif_runtime_lock_init()
613 if (gp_hif_rtpm_ctx) { in hif_runtime_lock_deinit()
614 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_runtime_lock_deinit()
616 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_runtime_lock_deinit()
631 if (qdf_unlikely(!gp_hif_rtpm_ctx)) in hif_rtpm_enabled()
634 if (gp_hif_rtpm_ctx->enable_rpm) in hif_rtpm_enabled()
637 return __hif_rtpm_enabled(gp_hif_rtpm_ctx->dev); in hif_rtpm_enabled()
649 if (id >= HIF_RTPM_ID_MAX || !gp_hif_rtpm_ctx->clients[id]) { in hif_rtpm_get()
654 client = gp_hif_rtpm_ctx->clients[id]; in hif_rtpm_get()
659 ret = __hif_rtpm_get(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
662 ret = __hif_rtpm_get_sync(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
665 __hif_rtpm_get_noresume(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
675 qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state), in hif_rtpm_get()
677 __hif_rtpm_put_noidle(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
684 pm_state = qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_get()
686 ret = __hif_rtpm_get(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
693 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_rtpm_get()
694 pm_state = qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_get()
696 __hif_rtpm_put_noidle(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
697 gp_hif_rtpm_ctx->stats.request_resume_ts = in hif_rtpm_get()
699 gp_hif_rtpm_ctx->stats.request_resume_id = id; in hif_rtpm_get()
704 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_rtpm_get()
707 qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state), in hif_rtpm_get()
709 __hif_rtpm_put_noidle(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
716 __hif_rtpm_request_resume(gp_hif_rtpm_ctx->dev); in hif_rtpm_get()
717 gp_hif_rtpm_ctx->stats.request_resume_ts = in hif_rtpm_get()
719 gp_hif_rtpm_ctx->stats.request_resume_id = id; in hif_rtpm_get()
741 if (id >= HIF_RTPM_ID_MAX || !gp_hif_rtpm_ctx->clients[id]) { in hif_rtpm_put()
746 client = gp_hif_rtpm_ctx->clients[id]; in hif_rtpm_put()
749 if (usage_count == 2 && !gp_hif_rtpm_ctx->enable_rpm) { in hif_rtpm_put()
761 __hif_rtpm_put_auto(gp_hif_rtpm_ctx->dev); in hif_rtpm_put()
764 __hif_rtpm_put_noidle(gp_hif_rtpm_ctx->dev); in hif_rtpm_put()
767 __hif_rtpm_put_sync_suspend(gp_hif_rtpm_ctx->dev); in hif_rtpm_put()
774 __hif_rtpm_mark_last_busy(gp_hif_rtpm_ctx->dev); in hif_rtpm_put()
778 gp_hif_rtpm_ctx->stats.last_busy_ts = client->put_ts; in hif_rtpm_put()
797 ret = __hif_rtpm_get(gp_hif_rtpm_ctx->dev); in __hif_pm_runtime_prevent_suspend()
807 gp_hif_rtpm_ctx->stats.runtime_get_err++; in __hif_pm_runtime_prevent_suspend()
809 qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state), in __hif_pm_runtime_prevent_suspend()
813 list_add_tail(&lock->list, &gp_hif_rtpm_ctx->prevent_list); in __hif_pm_runtime_prevent_suspend()
815 gp_hif_rtpm_ctx->prevent_cnt++; in __hif_pm_runtime_prevent_suspend()
816 gp_hif_rtpm_ctx->stats.prevent_suspend++; in __hif_pm_runtime_prevent_suspend()
834 if (gp_hif_rtpm_ctx->prevent_cnt == 0 || !lock->active) in __hif_pm_runtime_allow_suspend()
843 if (usage_count == 2 && !gp_hif_rtpm_ctx->enable_rpm) { in __hif_pm_runtime_allow_suspend()
853 ret = __hif_rtpm_put_auto(gp_hif_rtpm_ctx->dev); in __hif_pm_runtime_allow_suspend()
857 gp_hif_rtpm_ctx->prevent_cnt--; in __hif_pm_runtime_allow_suspend()
858 gp_hif_rtpm_ctx->stats.allow_suspend++; in __hif_pm_runtime_allow_suspend()
870 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_pm_runtime_prevent_suspend()
872 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_pm_runtime_prevent_suspend()
874 if (qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state) >= in hif_pm_runtime_prevent_suspend()
897 ret = __hif_rtpm_get_sync(gp_hif_rtpm_ctx->dev); in __hif_pm_runtime_prevent_suspend_sync()
907 gp_hif_rtpm_ctx->stats.runtime_get_err++; in __hif_pm_runtime_prevent_suspend_sync()
909 qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state), in __hif_pm_runtime_prevent_suspend_sync()
913 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in __hif_pm_runtime_prevent_suspend_sync()
914 list_add_tail(&lock->list, &gp_hif_rtpm_ctx->prevent_list); in __hif_pm_runtime_prevent_suspend_sync()
916 gp_hif_rtpm_ctx->prevent_cnt++; in __hif_pm_runtime_prevent_suspend_sync()
917 gp_hif_rtpm_ctx->stats.prevent_suspend++; in __hif_pm_runtime_prevent_suspend_sync()
918 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in __hif_pm_runtime_prevent_suspend_sync()
936 if (qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state) >= in hif_pm_runtime_prevent_suspend_sync()
955 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_pm_runtime_allow_suspend()
957 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_pm_runtime_allow_suspend()
971 dev = gp_hif_rtpm_ctx->dev; in hif_rtpm_sync_resume()
972 pm_state = qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_sync_resume()
978 gp_hif_rtpm_ctx->stats.resume_count++; in hif_rtpm_sync_resume()
979 gp_hif_rtpm_ctx->stats.resume_ts = qdf_get_log_timestamp(); in hif_rtpm_sync_resume()
980 gp_hif_rtpm_ctx->stats.last_busy_ts = in hif_rtpm_sync_resume()
981 gp_hif_rtpm_ctx->stats.resume_ts; in hif_rtpm_sync_resume()
991 __hif_rtpm_request_resume(gp_hif_rtpm_ctx->dev); in hif_rtpm_request_resume()
1000 state = qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_check_and_request_resume()
1005 __hif_rtpm_request_resume(gp_hif_rtpm_ctx->dev); in hif_rtpm_check_and_request_resume()
1006 gp_hif_rtpm_ctx->stats.request_resume_ts = in hif_rtpm_check_and_request_resume()
1008 gp_hif_rtpm_ctx->stats.request_resume_id = HIF_RTPM_ID_RESERVED; in hif_rtpm_check_and_request_resume()
1014 return qdf_atomic_read(&gp_hif_rtpm_ctx->monitor_wake_intr); in hif_rtpm_get_monitor_wake_intr()
1019 qdf_atomic_set(&gp_hif_rtpm_ctx->monitor_wake_intr, val); in hif_rtpm_set_monitor_wake_intr()
1025 struct hif_rtpm_ctx *rtpm_ctx = gp_hif_rtpm_ctx; in hif_rtpm_display_last_busy_hist()
1054 hist = gp_hif_rtpm_ctx->busy_hist[i]; in hif_rtpm_display_last_busy_hist()
1074 if (!scn || !gp_hif_rtpm_ctx->busy_hist[ce_id]) in hif_rtpm_record_ce_last_busy_evt()
1077 hist = gp_hif_rtpm_ctx->busy_hist[ce_id]; in hif_rtpm_record_ce_last_busy_evt()
1086 __hif_rtpm_mark_last_busy(gp_hif_rtpm_ctx->dev); in hif_rtpm_mark_last_busy()
1087 gp_hif_rtpm_ctx->stats.last_busy_ts = qdf_get_log_timestamp(); in hif_rtpm_mark_last_busy()
1088 gp_hif_rtpm_ctx->stats.last_busy_id = id; in hif_rtpm_mark_last_busy()
1089 gp_hif_rtpm_ctx->stats.last_busy_marker = (void *)_RET_IP_; in hif_rtpm_mark_last_busy()
1090 if (gp_hif_rtpm_ctx->clients[id]) { in hif_rtpm_mark_last_busy()
1091 gp_hif_rtpm_ctx->clients[id]->last_busy_cnt++; in hif_rtpm_mark_last_busy()
1092 gp_hif_rtpm_ctx->clients[id]->last_busy_ts = in hif_rtpm_mark_last_busy()
1093 gp_hif_rtpm_ctx->stats.last_busy_ts; in hif_rtpm_mark_last_busy()
1101 if (!gp_hif_rtpm_ctx->clients[client_id]) in hif_rtpm_set_client_job()
1104 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_rtpm_set_client_job()
1105 pm_state = qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_set_client_job()
1107 gp_hif_rtpm_ctx->clients[client_id]->hif_rtpm_cbk) in hif_rtpm_set_client_job()
1108 gp_hif_rtpm_ctx->clients[client_id]->hif_rtpm_cbk(); in hif_rtpm_set_client_job()
1110 qdf_set_bit(client_id, &gp_hif_rtpm_ctx->pending_job); in hif_rtpm_set_client_job()
1111 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_rtpm_set_client_job()
1123 for (i = 0; i < gp_hif_rtpm_ctx->client_count; i++) { in hif_rtpm_pending_job()
1124 if (qdf_test_and_clear_bit(i, &gp_hif_rtpm_ctx->pending_job)) { in hif_rtpm_pending_job()
1125 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_rtpm_pending_job()
1126 if (gp_hif_rtpm_ctx->clients[i]->hif_rtpm_cbk) in hif_rtpm_pending_job()
1127 gp_hif_rtpm_ctx->clients[i]->hif_rtpm_cbk(); in hif_rtpm_pending_job()
1128 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_rtpm_pending_job()
1146 qdf_spin_lock(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_print_prevent_list()
1147 prevent_list_count = gp_hif_rtpm_ctx->prevent_cnt; in hif_rtpm_print_prevent_list()
1149 list_for_each_entry(ctx, &gp_hif_rtpm_ctx->prevent_list, list) in hif_rtpm_print_prevent_list()
1154 qdf_spin_unlock(&gp_hif_rtpm_ctx->prevent_list_lock); in hif_rtpm_print_prevent_list()
1163 client = gp_hif_rtpm_ctx->clients[i]; in hif_rtpm_print_prevent_list()
1178 if (!gp_hif_rtpm_ctx || !gp_hif_rtpm_ctx->enable_rpm) in hif_rtpm_is_suspend_allowed()
1189 qdf_spin_lock_irqsave(&gp_hif_rtpm_ctx->runtime_suspend_lock); in hif_rtpm_suspend_lock()
1194 qdf_spin_unlock_irqrestore(&gp_hif_rtpm_ctx->runtime_suspend_lock); in hif_rtpm_suspend_unlock()
1206 qdf_atomic_set(&gp_hif_rtpm_ctx->pm_state, state); in hif_rtpm_set_state()
1211 return qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state); in hif_rtpm_get_state()
1221 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_pre_runtime_suspend()
1226 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_pre_runtime_suspend()
1228 gp_hif_rtpm_ctx->stats.suspend_err_count++; in hif_pre_runtime_suspend()
1229 gp_hif_rtpm_ctx->stats.suspend_err_ts = qdf_get_log_timestamp(); in hif_pre_runtime_suspend()
1234 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_pre_runtime_suspend()
1242 gp_hif_rtpm_ctx->stats.suspend_count++; in hif_process_runtime_suspend_success()
1243 gp_hif_rtpm_ctx->stats.suspend_ts = qdf_get_log_timestamp(); in hif_process_runtime_suspend_success()
1248 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_process_runtime_suspend_failure()
1251 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_process_runtime_suspend_failure()
1253 gp_hif_rtpm_ctx->stats.suspend_err_count++; in hif_process_runtime_suspend_failure()
1254 gp_hif_rtpm_ctx->stats.suspend_err_ts = qdf_get_log_timestamp(); in hif_process_runtime_suspend_failure()
1255 gp_hif_rtpm_ctx->stats.last_busy_ts = qdf_get_log_timestamp(); in hif_process_runtime_suspend_failure()
1261 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_pre_runtime_resume()
1264 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_pre_runtime_resume()
1269 qdf_spin_lock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_process_runtime_resume_linkup()
1272 qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->runtime_lock); in hif_process_runtime_resume_linkup()
1278 gp_hif_rtpm_ctx->stats.resume_count++; in hif_process_runtime_resume_success()
1279 gp_hif_rtpm_ctx->stats.resume_ts = qdf_get_log_timestamp(); in hif_process_runtime_resume_success()
1280 gp_hif_rtpm_ctx->stats.last_busy_ts = gp_hif_rtpm_ctx->stats.resume_ts; in hif_process_runtime_resume_success()