Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 110) sorted by relevance

12345

/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
Dmali_pm_metrics.c59 ktime_t now; in mali_pm_record_job_status() local
65 now = ktime_get(); in mali_pm_record_job_status()
66 diff = ktime_sub(now, mdev->mali_metrics.time_period_start); in mali_pm_record_job_status()
70 mdev->mali_metrics.time_period_start = now; in mali_pm_record_job_status()
75 ktime_t now; in mali_pm_record_gpu_idle() local
83 now = ktime_get(); in mali_pm_record_gpu_idle()
88 diff = ktime_sub(now, mdev->mali_metrics.time_period_start_gp); in mali_pm_record_gpu_idle()
91 mdev->mali_metrics.time_period_start_gp = now; in mali_pm_record_gpu_idle()
95 diff = ktime_sub(now, mdev->mali_metrics.time_period_start); in mali_pm_record_gpu_idle()
98 mdev->mali_metrics.time_period_start = now; in mali_pm_record_gpu_idle()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
Dmali_pm_metrics.c61 ktime_t now; in mali_pm_record_job_status() local
67 now = ktime_get(); in mali_pm_record_job_status()
68 diff = ktime_sub(now, mdev->mali_metrics.time_period_start); in mali_pm_record_job_status()
72 mdev->mali_metrics.time_period_start = now; in mali_pm_record_job_status()
77 ktime_t now; in mali_pm_record_gpu_idle() local
85 now = ktime_get(); in mali_pm_record_gpu_idle()
90 diff = ktime_sub(now, mdev->mali_metrics.time_period_start_gp); in mali_pm_record_gpu_idle()
93 mdev->mali_metrics.time_period_start_gp = now; in mali_pm_record_gpu_idle()
97 diff = ktime_sub(now, mdev->mali_metrics.time_period_start); in mali_pm_record_gpu_idle()
100 mdev->mali_metrics.time_period_start = now; in mali_pm_record_gpu_idle()
[all …]
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/linux/
Dlinux.cpp172 struct timeval now, res; in expired() local
173 gettimeofday(&now, NULL); in expired()
174 timersub(&end_time, &now, &res); in expired()
184 struct timeval now; in countdown_ms() local
185 gettimeofday(&now, NULL); in countdown_ms()
188 timeradd(&now, &interval, &end_time); in countdown_ms()
194 struct timeval now; in countdown() local
195 gettimeofday(&now, NULL); in countdown()
197 timeradd(&now, &interval, &end_time); in countdown()
203 struct timeval now, res; in left_ms() local
[all …]
/device/soc/rockchip/common/sdk_linux/kernel/sched/
Dpelt.c220 static __always_inline int ___update_load_sum(u64 now, struct sched_avg *sa, unsigned long load, un… in ___update_load_sum() argument
225 delta = now - sa->last_update_time; in ___update_load_sum()
231 sa->last_update_time = now; in ___update_load_sum()
337 int __update_load_avg_blocked_se(u64 now, struct sched_entity *se) in __update_load_avg_blocked_se() argument
339 if (___update_load_sum(now, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se()
348 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se) in __update_load_avg_se() argument
350 if (___update_load_sum(now, &se->avg, !!se->on_rq, se_runnable(se), cfs_rq->curr == se)) { in __update_load_avg_se()
360 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq) in __update_load_avg_cfs_rq() argument
362 …if (___update_load_sum(now, &cfs_rq->avg, scale_load_down(cfs_rq->load.weight), cfs_rq->h_nr_runni… in __update_load_avg_cfs_rq()
383 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument
[all …]
/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/src/linux/
DMQTTLinux.c27 struct timeval now, res; in TimerIsExpired() local
28 gettimeofday(&now, NULL); in TimerIsExpired()
29 timersub(&timer->end_time, &now, &res); in TimerIsExpired()
36 struct timeval now; in TimerCountdownMS() local
37 gettimeofday(&now, NULL); in TimerCountdownMS()
39 timeradd(&now, &interval, &timer->end_time); in TimerCountdownMS()
52 struct timeval now; in TimerCountdown() local
53 gettimeofday(&now, NULL); in TimerCountdown()
55 timeradd(&now, &interval, &timer->end_time); in TimerCountdown()
61 struct timeval now, res; in TimerLeftMS() local
[all …]
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/samples/linux/
Dmain.cpp159 struct timeval now, res; in expired() local
160 gettimeofday(&now, NULL); in expired()
161 timersub(&end_time, &now, &res); in expired()
171 struct timeval now; in countdown_ms() local
172 gettimeofday(&now, NULL); in countdown_ms()
175 timeradd(&now, &interval, &end_time); in countdown_ms()
181 struct timeval now; in countdown() local
182 gettimeofday(&now, NULL); in countdown()
184 timeradd(&now, &interval, &end_time); in countdown()
190 struct timeval now, res; in left_ms() local
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/
Dmali_kbase_pm_metrics.c128 ktime_t now) in kbase_pm_get_dvfs_utilisation_calc() argument
134 diff = ktime_sub(now, kbdev->pm.backend.metrics.time_period_start); in kbase_pm_get_dvfs_utilisation_calc()
155 kbdev->pm.backend.metrics.time_period_start = now; in kbase_pm_get_dvfs_utilisation_calc()
163 ktime_t now) in kbase_pm_reset_dvfs_utilisation_unlocked() argument
172 kbdev->pm.backend.metrics.time_period_start = now; in kbase_pm_reset_dvfs_utilisation_unlocked()
192 ktime_t now = ktime_get(); in kbase_pm_get_dvfs_utilisation() local
196 kbase_pm_get_dvfs_utilisation_calc(kbdev, now); in kbase_pm_get_dvfs_utilisation()
204 kbase_pm_reset_dvfs_utilisation_unlocked(kbdev, now); in kbase_pm_get_dvfs_utilisation()
225 ktime_t now) in kbase_pm_get_dvfs_utilisation_old() argument
230 kbase_pm_get_dvfs_utilisation_calc(kbdev, now); in kbase_pm_get_dvfs_utilisation_old()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/
Dmali_kbase_pm_metrics.c120 static void kbase_pm_get_dvfs_utilisation_calc(struct kbase_device *kbdev, ktime_t now) in kbase_pm_get_dvfs_utilisation_calc() argument
126 diff = ktime_sub(now, kbdev->pm.backend.metrics.time_period_start); in kbase_pm_get_dvfs_utilisation_calc()
151 kbdev->pm.backend.metrics.time_period_start = now; in kbase_pm_get_dvfs_utilisation_calc()
158 static void kbase_pm_reset_dvfs_utilisation_unlocked(struct kbase_device *kbdev, ktime_t now) in kbase_pm_reset_dvfs_utilisation_unlocked() argument
165 kbdev->pm.backend.metrics.time_period_start = now; in kbase_pm_reset_dvfs_utilisation_unlocked()
184 ktime_t now = ktime_get(); in kbase_pm_get_dvfs_utilisation() local
188 kbase_pm_get_dvfs_utilisation_calc(kbdev, now); in kbase_pm_get_dvfs_utilisation()
196 kbase_pm_reset_dvfs_utilisation_unlocked(kbdev, now); in kbase_pm_get_dvfs_utilisation()
213 …_utilisation_old(struct kbase_device *kbdev, int *util_gl_share, int util_cl_share[2], ktime_t now) in kbase_pm_get_dvfs_utilisation_old() argument
218 kbase_pm_get_dvfs_utilisation_calc(kbdev, now); in kbase_pm_get_dvfs_utilisation_old()
[all …]
/device/soc/telink/b91/b91_ble_sdk/vendor/common/
Dblt_soft_timer.c66 u32 now = clock_time(); in blt_soft_timer_add() local
73 … blt_timer.timer[blt_timer.currentNum].t = now + blt_timer.timer[blt_timer.currentNum].interval; in blt_soft_timer_add()
142 u32 now = clock_time(); in blt_soft_timer_process() local
148 if (!blt_is_timer_expired(blt_timer.timer[0].t, now)) { in blt_soft_timer_process()
155 if (blt_is_timer_expired(blt_timer.timer[i].t, now)) { // timer trigger in blt_soft_timer_process()
163 blt_timer.timer[i].t = now + blt_timer.timer[i].interval; in blt_soft_timer_process()
167 blt_timer.timer[i].t = now + blt_timer.timer[i].interval; in blt_soft_timer_process()
178 if ((u32)(blt_timer.timer[0].t - now) < 3000 * SYSTEM_TIMER_TICK_1MS) { in blt_soft_timer_process()
Dblt_soft_timer.h47 static int inline blt_is_timer_expired(u32 t, u32 now) in blt_is_timer_expired() argument
49 return ((u32)(now + BLT_TIMER_SAFE_MARGIN_PRE - t) < BLT_TIMER_SAFE_MARGIN_POST); in blt_is_timer_expired()
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/
Dclk-half-divider.c13 static bool _is_best_half_div(unsigned long rate, unsigned long now, unsigned long best, unsigned l… in _is_best_half_div() argument
16 return abs(rate - now) <= abs(rate - best); in _is_best_half_div()
19 return now <= rate && now >= best; in _is_best_half_div()
38 unsigned long parent_rate, best = 0, now, maxdiv; in clk_half_divider_bestdiv() local
70 now = DIV_ROUND_UP_ULL(((u64)parent_rate * 0x2), (i * 0x2 + 0x3)); in clk_half_divider_bestdiv()
71 if (_is_best_half_div(rate, now, best, flags)) { in clk_half_divider_bestdiv()
74 best = now; in clk_half_divider_bestdiv()
/device/soc/esp/esp32/components/bootloader_support/src/
Dbootloader_random.c33 uint32_t start, now; in bootloader_fill_random() local
50 now = cpu_hal_get_cycle_count(); in bootloader_fill_random()
51 } while (now - start < 80 * 32 * 2); /* extra factor of 2 is precautionary */ in bootloader_fill_random()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
Ddrm_vblank.c960 …send_vblank_event(struct drm_device *dev, struct drm_pending_vblank_event *e, u64 seq, ktime_t now) in send_vblank_event() argument
967 tv = ktime_to_timespec64(now); in send_vblank_event()
981 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event()
992 drm_send_event_timestamp_locked(dev, &e->base, now); in send_vblank_event()
1062 ktime_t now; in drm_crtc_send_vblank_event() local
1065 seq = drm_vblank_count_and_time(dev, pipe, &now); in drm_crtc_send_vblank_event()
1069 now = ktime_get(); in drm_crtc_send_vblank_event()
1072 send_vblank_event(dev, e, seq, now); in drm_crtc_send_vblank_event()
1281 ktime_t now; in drm_crtc_vblank_off() local
1316 seq = drm_vblank_count_and_time(dev, pipe, &now); in drm_crtc_vblank_off()
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/
Drga_job.c355 ktime_t now = ktime_get(); in rga_job_done() local
362 rga_scheduler->timer.busy_time += ktime_us_delta(now, job->timestamp); in rga_job_done()
371 ktime_us_delta(now, job->running_time)); in rga_job_done()
373 job->running_time = now; in rga_job_done()
401 ktime_t now = ktime_get(); in rga_job_timeout_clean() local
407 (ktime_to_ms(ktime_sub(now, job->timestamp)) >= RGA_ASYNC_TIMEOUT_DELAY)) { in rga_job_timeout_clean()
516 ktime_t now; in rga_job_wait() local
536 now = ktime_get(); in rga_job_wait()
540 ktime_to_us(ktime_sub(now, job->running_time))); in rga_job_wait()
551 ktime_t now; in rga_input_fence_signaled() local
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/gpu/panfrost/
Dpanfrost_devfreq.c15 ktime_t now, last; in panfrost_devfreq_update_utilization() local
17 now = ktime_get(); in panfrost_devfreq_update_utilization()
21 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
23 pfdevfreq->idle_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
25 pfdevfreq->time_last_update = now; in panfrost_devfreq_update_utilization()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/
Dmali_kbase_pm_metrics.c185 ktime_t now; in kbase_pm_get_dvfs_utilisation_calc() local
202 now = ktime_get(); in kbase_pm_get_dvfs_utilisation_calc()
213 now, kbdev->pm.backend.metrics.time_period_start); in kbase_pm_get_dvfs_utilisation_calc()
283 kbdev->pm.backend.metrics.time_period_start = now; in kbase_pm_get_dvfs_utilisation_calc()
288 ktime_t now) in kbase_pm_get_dvfs_utilisation_calc() argument
294 diff = ktime_sub(now, kbdev->pm.backend.metrics.time_period_start); in kbase_pm_get_dvfs_utilisation_calc()
317 kbdev->pm.backend.metrics.time_period_start = now; in kbase_pm_get_dvfs_utilisation_calc()
508 ktime_t now; in kbase_pm_metrics_update() local
515 now = ktime_get(); in kbase_pm_metrics_update()
516 timestamp = &now; in kbase_pm_metrics_update()
/device/soc/rockchip/rk3568/hardware/rga/include/
DRgaMutex.h183 timespec now; in timedLock() local
184 clock_gettime(CLOCK_REALTIME, &now); in timedLock()
185 timeoutNs += now.tv_sec * 1000000000 + now.tv_nsec; // 1000000000:unit conversion in timedLock()
/device/soc/rockchip/rk3568/hardware/omx_il/osal/
DRockchip_OSAL_Event.c168 struct timeval now; in Rockchip_OSAL_SignalWait() local
179 gettimeofday(&now, NULL); in Rockchip_OSAL_SignalWait()
181 tv_us = now.tv_usec + ms * 1000; // 1000:time shift in Rockchip_OSAL_SignalWait()
182 timeout.tv_sec = now.tv_sec + tv_us / 1000000; // 1000000:time shift in Rockchip_OSAL_SignalWait()
/device/soc/rockchip/common/hardware/rga/include/
DRgaMutex.h177 timespec now; in timedLock() local
178 clock_gettime(CLOCK_REALTIME, &now); in timedLock()
179 timeoutNs += now.tv_sec * 1000000000 + now.tv_nsec; // 1000000000:unit conversion in timedLock()
/device/soc/rockchip/rk3588/hardware/rga/include/
DRgaMutex.h173 timespec now; in timedLock() local
174 clock_gettime(CLOCK_REALTIME, &now); in timedLock()
175 timeoutNs += now.tv_sec*1000000000 + now.tv_nsec; in timedLock()
/device/soc/rockchip/rk3399/hardware/rga/include/
DMutex.h183 timespec now; in timedLock() local
184 clock_gettime(CLOCK_REALTIME, &now); in timedLock()
185 timeoutNs += now.tv_sec * 1000000000 + now.tv_nsec; // 1000000000:unit conversion in timedLock()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/clk/
Dccu_mp.c47 unsigned long parent_rate, now; in ccu_mp_find_best_with_parent_adj() local
80 now = parent_rate / div; in ccu_mp_find_best_with_parent_adj()
82 if (now <= rate && now > best_rate) { in ccu_mp_find_best_with_parent_adj()
83 best_rate = now; in ccu_mp_find_best_with_parent_adj()
86 if (now == rate) in ccu_mp_find_best_with_parent_adj()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Dbcmsdh_sdmmc.c844 struct osl_timespec now, before; in sdioh_request_byte() local
1010 osl_do_gettimeofday(&now); in sdioh_request_byte()
1012 rw, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000)); in sdioh_request_byte()
1046 struct osl_timespec now, before; in sdioh_request_word() local
1112 osl_do_gettimeofday(&now); in sdioh_request_word()
1114 rw, nbytes, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000)); in sdioh_request_word()
1142 struct osl_timespec now, before; in sdioh_request_packet_chain() local
1324 osl_do_gettimeofday(&now); in sdioh_request_packet_chain()
1326 write, ttl_len, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000)); in sdioh_request_packet_chain()
1331 sd->sdio_spent_time_us = osl_do_gettimediff(&now, &before); in sdioh_request_packet_chain()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/
Dmali_kbase_pm_metrics.c121 static void kbase_pm_get_dvfs_utilisation_calc(struct kbase_device *kbdev, ktime_t now) in kbase_pm_get_dvfs_utilisation_calc() argument
128 diff = ktime_sub(now, kbdev->pm.backend.metrics.time_period_start); in kbase_pm_get_dvfs_utilisation_calc()
153 kbdev->pm.backend.metrics.time_period_start = now; in kbase_pm_get_dvfs_utilisation_calc()
290 ktime_t now; in kbase_pm_metrics_update() local
297 now = ktime_get(); in kbase_pm_metrics_update()
298 timestamp = &now; in kbase_pm_metrics_update()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Dbcmsdh_sdmmc.c852 struct timespec64 now, before; in sdioh_request_byte() local
1003 now = ktime_to_timespec64(ktime_get_boottime()); in sdioh_request_byte()
1005 rw, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000)); in sdioh_request_byte()
1031 struct timespec64 now, before; in sdioh_request_word() local
1109 now = ktime_to_timespec64(ktime_get_boottime()); in sdioh_request_word()
1111 rw, nbytes, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000)); in sdioh_request_word()
1139 struct timespec64 now, before; in sdioh_request_packet_chain() local
1327 now = ktime_to_timespec64(ktime_get_boottime()); in sdioh_request_packet_chain()
1329 write, ttl_len, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000)); in sdioh_request_packet_chain()
1343 struct timespec64 now, before; in sdioh_buffer_tofrom_bus() local
[all …]

12345