Home
last modified time | relevance | path

Searched refs:now (Results 1 - 25 of 41) sorted by relevance

12

/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A 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()
128 ktime_t now; mali_pm_record_gpu_active() local
175 mali_pm_get_dvfs_utilisation_calc(struct mali_device *mdev, ktime_t now) mali_pm_get_dvfs_utilisation_calc() argument
191 mali_pm_reset_dvfs_utilisation_unlocked(struct mali_device *mdev, ktime_t now) mali_pm_reset_dvfs_utilisation_unlocked() argument
219 ktime_t now = ktime_get(); mali_pm_get_dvfs_utilisation() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A 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()
126 ktime_t now; mali_pm_record_gpu_active() local
174 mali_pm_get_dvfs_utilisation_calc(struct mali_device *mdev, ktime_t now) mali_pm_get_dvfs_utilisation_calc() argument
190 mali_pm_reset_dvfs_utilisation_unlocked(struct mali_device *mdev, ktime_t now) mali_pm_reset_dvfs_utilisation_unlocked() argument
219 ktime_t now = ktime_get(); mali_pm_get_dvfs_utilisation() local
[all...]
/device/soc/rockchip/common/sdk_linux/kernel/sched/
H A Dpelt.c130 * ... |---x---|------| ... |------|-----x (now)
200 * (now) (~1ms ago) (~2ms ago)
220 static __always_inline int ___update_load_sum(u64 now, struct sched_avg *sa, unsigned long load, unsigned long runnable, 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, struc argument
383 update_rt_rq_load_avg(u64 now, struct rq *rq, int running) update_rt_rq_load_avg() argument
405 update_dl_rq_load_avg(u64 now, struct rq *rq, int running) update_dl_rq_load_avg() argument
432 update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity) update_thermal_load_avg() argument
[all...]
H A Dfair.c370 * The branch is now connected to its tree so we can in list_add_leaf_cfs_rq()
865 update_cfs_rq_load_avg(now, cfs_rq); in post_init_entity_util_avg()
897 u64 now = rq_clock_task(rq_of(cfs_rq)); in update_curr() local
904 delta_exec = now - curr->exec_start; in update_curr()
909 curr->exec_start = now; in update_curr()
1738 * Clear previous best_cpu/rq numa-migrate flag, since task now in task_numa_assign()
2329 u64 runtime, delta, now; in numa_get_avg_runtime() local
2331 now = p->se.exec_start; in numa_get_avg_runtime()
2336 *period = now - p->last_task_numa_placement; in numa_get_avg_runtime()
2348 p->last_task_numa_placement = now; in numa_get_avg_runtime()
2827 unsigned long migrate, next_scan, now = jiffies; task_numa_work() local
3021 u64 period, now; task_tick_numa() local
3774 update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) update_cfs_rq_load_avg() argument
3928 u64 now = cfs_rq_clock_pelt(cfs_rq); update_load_avg() local
8404 u64 now = rq_clock_pelt(rq); fair_update_blocked_others() local
8503 unsigned long now = jiffies; update_cfs_rq_h_load() local
10812 unsigned long now = jiffies; nohz_balancer_kick() local
11066 unsigned long now = jiffies; _nohz_idle_balance() local
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/
H A 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 int kbase_pm_get_dvfs_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()
266 ktime_t now; kbase_pm_get_dvfs_action() local
360 ktime_t now; kbase_pm_metrics_update() local
[all...]
H A Dmali_kbase_pm_internal.h510 * @now: Pointer to the timestamp of the change, or NULL to use current time
514 void kbase_pm_metrics_update(struct kbase_device *kbdev, ktime_t *now);
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_pm_metrics.c128 ktime_t now) in kbase_pm_get_dvfs_utilisation_calc()
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()
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()
230 kbase_pm_get_dvfs_utilisation_calc(kbdev, now); in kbase_pm_get_dvfs_utilisation_old()
127 kbase_pm_get_dvfs_utilisation_calc(struct kbase_device *kbdev, ktime_t now) kbase_pm_get_dvfs_utilisation_calc() argument
162 kbase_pm_reset_dvfs_utilisation_unlocked(struct kbase_device *kbdev, ktime_t now) kbase_pm_reset_dvfs_utilisation_unlocked() argument
222 kbase_pm_get_dvfs_utilisation_old(struct kbase_device *kbdev, int *util_gl_share, int util_cl_share[2], ktime_t now) kbase_pm_get_dvfs_utilisation_old() argument
284 ktime_t now; kbase_pm_get_dvfs_action() local
384 ktime_t now; kbase_pm_metrics_update() local
[all...]
H A Dmali_kbase_pm_internal.h522 * @now: Pointer to the timestamp of the change, or NULL to use current time
527 ktime_t *now);
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/
H A Dclk-half-divider.c13 static bool _is_best_half_div(unsigned long rate, unsigned long now, unsigned long best, unsigned long flags) 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/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_vblank.c248 * interrupt and assign 0 for now, to mark the vblanktimestamp as invalid. in drm_reset_vblank_timestamp()
359 * for now, to mark the vblanktimestamp as invalid. in drm_update_vblank_count()
960 static void 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; drm_crtc_vblank_off() local
1611 ktime_t now; drm_queue_vblank_event() local
1709 ktime_t now; drm_wait_vblank_reply() local
1861 ktime_t now; drm_handle_vblank_events() local
1996 ktime_t now; drm_crtc_get_sequence_ioctl() local
2053 ktime_t now; drm_crtc_queue_sequence_ioctl() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A 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()
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()
287 kbase_pm_get_dvfs_utilisation_calc(struct kbase_device *kbdev, ktime_t now) kbase_pm_get_dvfs_utilisation_calc() argument
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/
H A 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/soc/rockchip/common/hardware/rga/include/
H A 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/rk3399/hardware/rga/include/
H A 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/soc/rockchip/rk3568/hardware/omx_il/osal/
H A 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/rk3568/hardware/rga/include/
H A 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/rk3588/hardware/rga/include/
H A 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/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/
H A 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()
H A Dmali_kbase_pm_internal.h557 * @now: Pointer to the timestamp of the change, or NULL to use current time
561 void kbase_pm_metrics_update(struct kbase_device *kbdev, ktime_t *now);
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A 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()
1345 struct osl_timespec now, before; sdioh_buffer_tofrom_bus() local
1410 struct osl_timespec now, before; sdioh_request_buffer() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/
H A Dnet.h289 * Set sendqueue_basetime in the given context object @p ctx to @p now. This
293 unsigned int coap_adjust_basetime(coap_context_t *ctx, coap_tick_t now);
666 * @param now Current time.
676 coap_tick_t now
683 * @param now Current time
685 void coap_read(coap_context_t *ctx, coap_tick_t now);
708 * Any now timed out delayed packet is transmitted, along with any packets
720 * @param now Current time.
727 coap_io_prepare_epoll(coap_context_t *ctx, coap_tick_t now);
H A Dcoap_session.h156 * Notify session transport has just connected and CSM exchange can now start.
356 * @param now The current time in ticks.
360 const struct coap_packet_t *packet, coap_tick_t now);
370 * @param now The current time in ticks.
375 coap_tick_t now);
H A Dcoap_dtls.h452 * @param now The current time in ticks.
457 coap_tick_t now);
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/backend/
H A Dmali_kbase_ipa_counter_common_csf.c266 ktime_t now, diff; in kbase_ipa_counter_dynamic_coeff() local
284 now = ktime_get(); in kbase_ipa_counter_dynamic_coeff()
285 diff = ktime_sub(now, kbdev->ipa.last_sample_time); in kbase_ipa_counter_dynamic_coeff()
288 kbdev->ipa.last_sample_time = now; in kbase_ipa_counter_dynamic_coeff()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa.c38 * required to reset the counter values every now and then.
120 /* We're done with model_dt_node now, so drop the reference taken in in kbase_ipa_model_add_param_s32()
173 /* We're done with model_dt_node now, so drop the reference taken in in kbase_ipa_model_add_param_string()
445 * protected mode or not, the event can be now reset (if GPU is not in get_current_model()
748 ktime_t now, diff; in kbase_ipa_reset_data() local
753 now = ktime_get(); in kbase_ipa_reset_data()
754 diff = ktime_sub(now, kbdev->ipa.last_sample_time); in kbase_ipa_reset_data()

Completed in 25 milliseconds

12