Home
last modified time | relevance | path

Searched refs:ts (Results 1 - 25 of 81) sorted by relevance

1234

/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_kbase_trace_timeline.h51 struct timespec64 ts; \
52 ktime_get_raw_ts64(&ts); \
53 trace_mali_timeline_atoms_in_flight(ts.tv_sec, ts.tv_nsec, (int)kctx->timeline.owner_tgid, count); \
59 struct timespec64 ts; \
60 ktime_get_raw_ts64(&ts); \
61 trace_mali_timeline_atom(ts.tv_sec, ts.tv_nsec, CTX_FLOW_ATOM_READY, (int)kctx->timeline.owner_tgid, atom_id); \
73 struct timespec64 ts; \
74 ktime_get_raw_ts64(&ts); \
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_trace_timeline.h52 struct timespec64 ts; \
53 ktime_get_raw_ts64(&ts); \
54 trace_mali_timeline_atoms_in_flight(ts.tv_sec, ts.tv_nsec, \
62 struct timespec64 ts; \
63 ktime_get_raw_ts64(&ts); \
64 trace_mali_timeline_atom(ts.tv_sec, ts.tv_nsec, \
79 struct timespec64 ts; \
80 ktime_get_raw_ts64(&ts); \
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include/
H A Dhi_condition.h70 struct timespec ts; in waitRelative() local
72 clock_gettime(CLOCK_REALTIME, &ts); in waitRelative()
74 ts.tv_sec = 0; in waitRelative()
75 ts.tv_nsec = 0; in waitRelative()
77 ts.tv_sec += reltime / SEC_TO_NSEC; in waitRelative()
78 ts.tv_nsec += reltime % SEC_TO_NSEC; in waitRelative()
79 if (ts.tv_nsec >= SEC_TO_NSEC) { in waitRelative()
80 ts.tv_nsec -= SEC_TO_NSEC; in waitRelative()
81 ts.tv_sec += 1; in waitRelative()
83 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts); in waitRelative()
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_time.c29 struct timespec64 *ts) in kbase_backend_get_gpu_time_norequest()
54 if (ts != NULL) in kbase_backend_get_gpu_time_norequest()
56 *ts = ktime_to_timespec64(ktime_get_raw()); in kbase_backend_get_gpu_time_norequest()
58 ktime_get_raw_ts64(ts); in kbase_backend_get_gpu_time_norequest()
62 void kbase_backend_get_gpu_time(struct kbase_device *kbdev, u64 *cycle_counter, u64 *system_time, struct timespec64 *ts) in kbase_backend_get_gpu_time() argument
67 kbase_backend_get_gpu_time_norequest(kbdev, cycle_counter, system_time, ts); in kbase_backend_get_gpu_time()
28 kbase_backend_get_gpu_time_norequest(struct kbase_device *kbdev, u64 *cycle_counter, u64 *system_time, struct timespec64 *ts) kbase_backend_get_gpu_time_norequest() argument
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ipa/
H A Dmali_kbase_ipa_simple.c37 * @ts: Thermal scaling coefficients of the model
45 s32 ts[4]; member
53 * @ts: Signed coefficients, in order t^0 to t^3, with units Deg^-N
62 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() argument
77 const s64 res_big = ts[3] * t3 /* +/- 2^62 */ in calculate_temp_scaling_factor()
78 + ts[2] * t2 /* +/- 2^55 */ in calculate_temp_scaling_factor()
79 + ts[1] * t /* +/- 2^48 */ in calculate_temp_scaling_factor()
80 + ts[0] * 0x3E8; /* +/- 2^41 */ in calculate_temp_scaling_factor()
113 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, temp); in model_static_coeff()
144 err = kbase_ipa_model_add_param_s32(model, "ts", model_dat in add_params()
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ipa/
H A Dmali_kbase_ipa_simple.c39 * @ts: Thermal scaling coefficients of the model
47 s32 ts[4]; member
55 * @ts: Signed coefficients, in order t^0 to t^3, with units Deg^-N
64 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() argument
79 const s64 res_big = ts[3] * t3 /* +/- 2^62 */ in calculate_temp_scaling_factor()
80 + ts[2] * t2 /* +/- 2^55 */ in calculate_temp_scaling_factor()
81 + ts[1] * t /* +/- 2^48 */ in calculate_temp_scaling_factor()
82 + ts[0] * 1000; /* +/- 2^41 */ in calculate_temp_scaling_factor()
117 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, in model_static_coeff()
154 err = kbase_ipa_model_add_param_s32(model, "ts", in add_params()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/
H A Dtime.h106 #define TIMEVAL_TO_TIMESPEC(tv, ts) ( \
107 (ts)->tv_sec = (tv)->tv_sec, \
108 (ts)->tv_nsec = (tv)->tv_usec * 1000, \
110 #define TIMESPEC_TO_TIMEVAL(tv, ts) ( \
111 (tv)->tv_sec = (ts)->tv_sec, \
112 (tv)->tv_usec = (ts)->tv_nsec / 1000, \
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_time.c31 struct timespec64 *ts) in kbase_backend_get_gpu_time_norequest()
52 if (ts != NULL) in kbase_backend_get_gpu_time_norequest()
54 *ts = ktime_to_timespec64(ktime_get_raw()); in kbase_backend_get_gpu_time_norequest()
56 ktime_get_raw_ts64(ts); in kbase_backend_get_gpu_time_norequest()
90 u64 *system_time, struct timespec64 *ts) in kbase_backend_get_gpu_time()
100 ts); in kbase_backend_get_gpu_time()
28 kbase_backend_get_gpu_time_norequest(struct kbase_device *kbdev, u64 *cycle_counter, u64 *system_time, struct timespec64 *ts) kbase_backend_get_gpu_time_norequest() argument
89 kbase_backend_get_gpu_time(struct kbase_device *kbdev, u64 *cycle_counter, u64 *system_time, struct timespec64 *ts) kbase_backend_get_gpu_time() argument
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c85 * @ts: Thermal scaling coefficients of the model
96 s32 ts[4]; member
107 * @ts: Signed coefficients, in order t^0 to t^3, with units Deg^-N
116 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() argument
129 const s64 res_big = ts[3] * t3 /* +/- 2^62 */ in calculate_temp_scaling_factor()
130 + ts[2] * t2 /* +/- 2^55 */ in calculate_temp_scaling_factor()
131 + ts[1] * t /* +/- 2^48 */ in calculate_temp_scaling_factor()
132 + ts[0] * (s64)1000; /* +/- 2^41 */ in calculate_temp_scaling_factor()
190 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, in model_static_coeff()
246 err = kbase_ipa_model_add_param_s32(model, "ts", in add_params()
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c84 * @ts: Thermal scaling coefficients of the model
95 s32 ts[4]; member
106 * @ts: Signed coefficients, in order t^0 to t^3, with units Deg^-N
115 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() argument
128 const s64 res_big = ts[3] * t3 /* +/- 2^62 */ in calculate_temp_scaling_factor()
129 + ts[2] * t2 /* +/- 2^55 */ in calculate_temp_scaling_factor()
130 + ts[1] * t /* +/- 2^48 */ in calculate_temp_scaling_factor()
131 + ts[0] * (s64)0x3e8; /* +/- 2^41 */ in calculate_temp_scaling_factor()
189 temp_scaling_factor = calculate_temp_scaling_factor(model_data->ts, temp); in model_static_coeff()
226 err = kbase_ipa_model_add_param_s32(model, "ts", model_dat in add_params()
[all...]
/device/soc/rockchip/rk3399/hardware/mpp/include/
H A Dmpp_thread.h171 struct timespec ts; in timedwait() local
173 clock_gettime(CLOCK_REALTIME_COARSE, &ts); in timedwait()
175 ts.tv_sec += timeout / 1000; // 1000:Get milliseconds in timedwait()
176 ts.tv_nsec += (timeout % 1000) * 1000000; // 1000:Get milliseconds // 1000000:Get seconds in timedwait()
178 ts.tv_sec += ts.tv_nsec / 1000000000; // 1000000000:Get seconds in timedwait()
179 ts.tv_nsec %= 1000000000; // 1000000000:Get Get nanoseconds in timedwait()
181 return pthread_cond_timedwait(&mCond, &mutex->mMutex, &ts); in timedwait()
/device/soc/rockchip/rk3568/hardware/mpp/include/
H A Dmpp_thread.h173 struct timespec ts; in timedwait() local
175 clock_gettime(CLOCK_REALTIME_COARSE, &ts); in timedwait()
177 ts.tv_sec += timeout / 1000; // 1000:Get milliseconds in timedwait()
178 ts.tv_nsec += (timeout % 1000) * 1000000; // 1000:Get milliseconds // 1000000:Get seconds in timedwait()
180 ts.tv_sec += ts.tv_nsec / 1000000000; // 1000000000:Get seconds in timedwait()
181 ts.tv_nsec %= 1000000000; // 1000000000:Get Get nanoseconds in timedwait()
183 return pthread_cond_timedwait(&mCond, &mutex->mMutex, &ts); in timedwait()
/device/soc/rockchip/rk3588/hardware/mpp/include/
H A Dmpp_thread.h183 struct timespec ts; in timedwait() local
185 clock_gettime(CLOCK_REALTIME_COARSE, &ts); in timedwait()
187 ts.tv_sec += timeout / 1000; in timedwait()
188 ts.tv_nsec += (timeout % 1000) * 1000000; in timedwait()
190 ts.tv_sec += ts.tv_nsec / 1000000000; in timedwait()
191 ts.tv_nsec %= 1000000000; in timedwait()
193 return pthread_cond_timedwait(&mCond, &mutex->mMutex, &ts); in timedwait()
/device/soc/rockchip/common/hardware/mpp/include/
H A Dmpp_thread.h171 struct timespec ts; in timedwait() local
173 clock_gettime(CLOCK_REALTIME_COARSE, &ts); in timedwait()
175 ts.tv_sec += timeout / 1000; // 1000:Get milliseconds in timedwait()
176 ts.tv_nsec += (timeout % 1000) * 1000000; // 1000:Get milliseconds // 1000000:Get seconds in timedwait()
178 ts.tv_sec += ts.tv_nsec / 1000000000; // 1000000000:Get seconds in timedwait()
179 ts.tv_nsec %= 1000000000; // 1000000000:Get Get nanoseconds in timedwait()
181 return pthread_cond_timedwait(&mCond, &mutex->mMutex, &ts); in timedwait()
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_ipa.c45 /* As ts have beed multiplied by 1000 in devicetree */ in calculate_static_coefficient()
79 dev_err(dev, "ts in power_model not available\n"); in rockchip_ipa_power_model_init()
97 if (of_property_read_u32_array(model_node, "ts", (u32 *)model_data->ts, 0x04)) { in rockchip_ipa_power_model_init()
98 dev_err(dev, "ts in power_model not available\n"); in rockchip_ipa_power_model_init()
132 * @ts: Signed coefficients, in order t^0 to t^3, with units Deg^-N
141 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() argument
151 const s64 res_big = ts[3] * t3 + ts[2] * t2 + ts[ in calculate_temp_scaling_factor()
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Drockchip_ipa.c42 /* As ts have beed multiplied by 1000 in devicetree */ in calculate_static_coefficient()
77 dev_err(dev, "ts in power_model not available\n"); in rockchip_ipa_power_model_init()
98 (model_node, "ts", (u32 *)model_data->ts, 4)) { in rockchip_ipa_power_model_init()
99 dev_err(dev, "ts in power_model not available\n"); in rockchip_ipa_power_model_init()
135 * @ts: Signed coefficients, in order t^0 to t^3, with units Deg^-N
144 static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t) in calculate_temp_scaling_factor() argument
154 const s64 res_big = ts[3] * t3 in calculate_temp_scaling_factor()
155 + ts[2] * t2 in calculate_temp_scaling_factor()
156 + ts[ in calculate_temp_scaling_factor()
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
H A Dmali_kbase_hwaccess_time.h35 * @ts: Pointer to struct timespec to store current monotonic
39 struct timespec64 *ts);
47 * @ts: Pointer to struct timespec to store current monotonic
51 struct timespec64 *ts);
/device/soc/hisilicon/common/hal/display/source/display_device/src/vsync/
H A Dsorft_vsync.cpp82 struct timespec ts; in WorkThread() local
88 clock_gettime(CLOCK_MONOTONIC, &ts); in WorkThread()
89 uint64_t time = ts.tv_nsec; in WorkThread()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_hwaccess_time.h30 * @ts: Pointer to struct timespec to store current monotonic
34 u64 *system_time, struct timespec64 *ts);
42 * @ts: Pointer to struct timespec to store current monotonic
48 struct timespec64 *ts);
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_time.c24 void kbase_backend_get_gpu_time(struct kbase_device *kbdev, u64 *cycle_counter, u64 *system_time, struct timespec64 *ts) in kbase_backend_get_gpu_time() argument
49 ktime_get_raw_ts64(ts); in kbase_backend_get_gpu_time()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_time.c24 u64 *system_time, struct timespec64 *ts) in kbase_backend_get_gpu_time()
55 ktime_get_raw_ts64(ts); in kbase_backend_get_gpu_time()
23 kbase_backend_get_gpu_time(struct kbase_device *kbdev, u64 *cycle_counter, u64 *system_time, struct timespec64 *ts) kbase_backend_get_gpu_time() argument
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_time.h149 struct timespec ts; in oal_time_get_stamp_us() local
150 getnstimeofday(&ts); in oal_time_get_stamp_us()
151 pst_usec->i_sec = ts.tv_sec; in oal_time_get_stamp_us()
152 pst_usec->i_usec = ts.tv_nsec / 1000; /* 1us 是 1000ns */ in oal_time_get_stamp_us()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/include/
H A Dhi_common.h40 struct timespec ts; \
41 ts.tv_sec = us / 1000000; \
42 ts.tv_nsec = (us % 1000000) * 1000; \
43 nanosleep(&ts, NULL); \
/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/src/node/
H A Drk_codec_node.cpp390 struct timespec ts = {}; in Yuv420ToH264() local
413 clock_gettime(CLOCK_MONOTONIC, &ts); in Yuv420ToH264()
414 timestamp = ts.tv_nsec + ts.tv_sec * TIME_CONVERSION_NS_S; in Yuv420ToH264()
426 clock_gettime(CLOCK_MONOTONIC, &ts); in Yuv420ToH264()
427 timestamp = ts.tv_nsec + ts.tv_sec * TIME_CONVERSION_NS_S; in Yuv420ToH264()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/platform/rk/
H A Drk.c229 static s32 ts[4]; variable
250 dev_err(&pdev->dev, "ts in power_model not available\n"); in power_model_simple_init()
281 if (of_property_read_u32_array(power_model_node, "ts", (u32 *)ts, 0x04)) { in power_model_simple_init()
282 dev_err(&pdev->dev, "ts in power_model not available\n"); in power_model_simple_init()
314 temp_scaling_factor = (ts[0x03] * temp_cubed) + (ts[0x02] * temp_squared) + (ts[1] * temp) + ts[0]; in rk_model_static_power()

Completed in 14 milliseconds

1234