Lines Matching refs:now_us
415 uint64_t now_us, uint64_t expected_delta) in update_scheduling_stats() argument
420 stats->last_update_us = now_us; in update_scheduling_stats()
426 if (deadline_us < now_us) { in update_scheduling_stats()
428 uint64_t delta_us = now_us - deadline_us; in update_scheduling_stats()
435 stats->total_scheduling_time_us += now_us - last_us; in update_scheduling_stats()
437 } else if (deadline_us > now_us) { in update_scheduling_stats()
439 uint64_t delta_us = deadline_us - now_us; in update_scheduling_stats()
446 stats->total_scheduling_time_us += now_us - last_us; in update_scheduling_stats()
451 stats->total_scheduling_time_us += now_us - last_us; in update_scheduling_stats()
462 static void log_tstamps_us(char *comment, uint64_t now_us) in log_tstamps_us() argument
465 … APPL_TRACE_DEBUG("[%s] ts %08llu, diff : %08llu, queue sz %d", comment, now_us, now_us - prev_us, in log_tstamps_us()
467 prev_us = now_us; in log_tstamps_us()
2638 UINT64 now_us = time_now_us(); in btif_get_num_aa_frame_iteration() local
2640 us_this_tick = (now_us - last_frame_us); in btif_get_num_aa_frame_iteration()
2641 last_frame_us = now_us; in btif_get_num_aa_frame_iteration()
2782 uint64_t now_us = time_now_us(); in btif_media_aa_readbuf() local
2786 btif_media_cb.stats.tx_queue_last_readbuf_us = now_us; in btif_media_aa_readbuf()
2790 now_us, BTIF_SINK_MEDIA_TIME_TICK_MS * 1000); in btif_media_aa_readbuf()
3229 uint64_t now_us = time_now_us(); in btif_debug_a2dp_dump() local
3246 (unsigned long long)(now_us - enqueue_stats->last_update_us) / 1000 : 0, in btif_debug_a2dp_dump()
3248 (unsigned long long)(now_us - dequeue_stats->last_update_us) / 1000 : 0, in btif_debug_a2dp_dump()
3250 (unsigned long long)(now_us - stats->tx_queue_last_readbuf_us) / 1000 : 0); in btif_debug_a2dp_dump()
3287 (unsigned long long)(now_us - stats->tx_queue_last_flushed_us) / 1000 : 0, in btif_debug_a2dp_dump()
3289 (unsigned long long)(now_us - stats->tx_queue_last_dropouts_us)/ 1000 : 0); in btif_debug_a2dp_dump()
3301 (unsigned long long)(now_us - stats->media_read_last_underflow_us) / 1000 : 0, in btif_debug_a2dp_dump()
3303 (unsigned long long)(now_us - stats->media_read_last_underrun_us) / 1000 : 0); in btif_debug_a2dp_dump()
3364 uint64_t now_us = time_now_us(); in btif_update_a2dp_metrics() local
3376 (now_us - stats->session_start_us) / (1000 * 1000); in btif_update_a2dp_metrics()