Searched refs:ts (Results 1 – 4 of 4) sorted by relevance
| /rockchip-linux_mpp/osal/test/ |
| H A D | mpp_runtime_test.c | 140 struct timespec ts, ts_s, ts_e; in wait_thread() local 146 clock_gettime(CLOCK_MONOTONIC, &ts); in wait_thread() 149 ts.tv_sec += 1; // timeout after 1 sec in wait_thread() 155 ts.tv_sec, ts.tv_nsec); in wait_thread() 158 ret = pthread_cond_timedwait(&cond, &mutex, &ts); in wait_thread()
|
| /rockchip-linux_mpp/osal/ |
| H A D | mpp_time.c | 216 struct itimerspec ts; in mpp_timer_thread() local 223 ts.it_value.tv_sec = impl->initial / 1000; in mpp_timer_thread() 224 ts.it_value.tv_nsec = (impl->initial % 1000) * 1000; in mpp_timer_thread() 227 ts.it_interval.tv_sec = impl->interval / 1000; in mpp_timer_thread() 228 ts.it_interval.tv_nsec = (impl->interval % 1000) * 1000 * 1000; in mpp_timer_thread() 230 ret = timerfd_settime(timer_fd, 0, &ts, NULL); in mpp_timer_thread()
|
| H A D | mpp_thread.c | 172 struct timespec ts; in mpp_cond_timedwait() local 174 clock_gettime(condition->clock_id, &ts); in mpp_cond_timedwait() 176 ts.tv_sec += timeout / 1000; in mpp_cond_timedwait() 177 ts.tv_nsec += (timeout % 1000) * 1000000; in mpp_cond_timedwait() 178 ts.tv_sec += ts.tv_nsec / 1000000000; in mpp_cond_timedwait() 179 ts.tv_nsec %= 1000000000; in mpp_cond_timedwait() 181 return pthread_cond_timedwait(&condition->cond, &mutex->lock, &ts); in mpp_cond_timedwait()
|
| /rockchip-linux_mpp/mpp/codec/ |
| H A D | mpp_dec_normal.c | 198 MppPktTs *ts, *pos; in reset_parser_thread() local 201 list_for_each_entry_safe(ts, pos, &dec->ts_link, MppPktTs, link) { in reset_parser_thread() 202 list_del_init(&ts->link); in reset_parser_thread() 203 mpp_mem_pool_put_f(dec->ts_pool, ts); in reset_parser_thread()
|