| /OK3568_Linux_fs/kernel/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_tv.c | 344 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_disable() local 349 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_disable() 358 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_enable() local 365 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_enable() 374 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_mode_set() local 378 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_mode_set() 386 regmap_write(tv->regs, SUN4I_TVE_CFG0_REG, in sun4i_tv_mode_set() 395 regmap_write(tv->regs, SUN4I_TVE_DAC0_REG, in sun4i_tv_mode_set() 406 regmap_write(tv->regs, SUN4I_TVE_NOTCH_REG, in sun4i_tv_mode_set() 410 regmap_write(tv->regs, SUN4I_TVE_CHROMA_FREQ_REG, in sun4i_tv_mode_set() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | utimes.c | 215 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 218 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 219 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 221 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 222 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 224 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2() 237 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 240 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2() 241 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2() 243 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/lib/gcc/arm-none-linux-gnueabihf/10.3.1/plugin/include/ |
| H A D | timevar.h | 111 void start (timevar_id_t tv); 112 void stop (timevar_id_t tv); 113 void push (timevar_id_t tv); 114 void pop (timevar_id_t tv); 115 bool cond_start (timevar_id_t tv); 116 void cond_stop (timevar_id_t tv); 130 void push_internal (struct timevar_def *tv); 210 timevar_push (timevar_id_t tv) in timevar_push() argument 213 g_timer->push (tv); in timevar_push() 217 timevar_pop (timevar_id_t tv) in timevar_pop() argument [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/lib/gcc/aarch64-none-linux-gnu/10.3.1/plugin/include/ |
| H A D | timevar.h | 111 void start (timevar_id_t tv); 112 void stop (timevar_id_t tv); 113 void push (timevar_id_t tv); 114 void pop (timevar_id_t tv); 115 bool cond_start (timevar_id_t tv); 116 void cond_stop (timevar_id_t tv); 130 void push_internal (struct timevar_def *tv); 210 timevar_push (timevar_id_t tv) in timevar_push() argument 213 g_timer->push (tv); in timevar_push() 217 timevar_pop (timevar_id_t tv) in timevar_pop() argument [all …]
|
| /OK3568_Linux_fs/kernel/kernel/time/ |
| H A D | time.c | 83 struct timespec64 tv; in SYSCALL_DEFINE1() local 86 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 89 tv.tv_nsec = 0; in SYSCALL_DEFINE1() 91 err = security_settime64(&tv, NULL); in SYSCALL_DEFINE1() 95 do_settimeofday64(&tv); in SYSCALL_DEFINE1() 121 struct timespec64 tv; in SYSCALL_DEFINE1() local 124 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 127 tv.tv_nsec = 0; in SYSCALL_DEFINE1() 129 err = security_settime64(&tv, NULL); in SYSCALL_DEFINE1() 133 do_settimeofday64(&tv); in SYSCALL_DEFINE1() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/misc/ |
| H A D | trancevibrator.c | 37 struct trancevibrator *tv = usb_get_intfdata(intf); in speed_show() local 39 return sprintf(buf, "%d\n", tv->speed); in speed_show() 46 struct trancevibrator *tv = usb_get_intfdata(intf); in speed_store() local 56 old = tv->speed; in speed_store() 57 tv->speed = temp; in speed_store() 59 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); in speed_store() 62 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0), in speed_store() 65 tv->speed, /* speed value */ in speed_store() 68 tv->speed = old; in speed_store() 69 dev_dbg(&tv->udev->dev, "retval = %d\n", retval); in speed_store() [all …]
|
| /OK3568_Linux_fs/app/lvgl_demo/sys/ |
| H A D | timestamp.c | 9 struct timeval tv; in clock_ms() local 10 gettimeofday(&tv,NULL); in clock_ms() 11 return (tv.tv_sec * 1000 + tv.tv_usec / 1000); in clock_ms() 16 struct timeval tv; in clock_us() local 17 gettimeofday(&tv,NULL); in clock_us() 18 return (tv.tv_sec * 1000000 + tv.tv_usec); in clock_us()
|
| /OK3568_Linux_fs/kernel/drivers/input/misc/ |
| H A D | hp_sdc_rtc.c | 273 struct timespec64 tv; in hp_sdc_rtc_proc_show() local 287 if (hp_sdc_rtc_read_rt(&tv)) { in hp_sdc_rtc_proc_show() 291 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 294 if (hp_sdc_rtc_read_fhs(&tv)) { in hp_sdc_rtc_proc_show() 298 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 301 if (hp_sdc_rtc_read_mt(&tv)) { in hp_sdc_rtc_proc_show() 305 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 308 if (hp_sdc_rtc_read_dt(&tv)) { in hp_sdc_rtc_proc_show() 312 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 315 if (hp_sdc_rtc_read_ct(&tv)) { in hp_sdc_rtc_proc_show() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/rcutorture/bin/ |
| H A D | mkinitrd.sh | 40 struct timeval tv; 51 if (gettimeofday(&tv, NULL)) 53 tv.tv_sec -= tvb.tv_sec; 54 if (tv.tv_sec > 1) 56 tv.tv_usec += tv.tv_sec * 1000 * 1000; 57 tv.tv_usec -= tvb.tv_usec; 58 } while (tv.tv_usec < 1000);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/ |
| H A D | radeon_legacy_tv.c | 396 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 397 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 398 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 401 tmp = ((uint32_t)tv_dac->tv.h_code_timing[i] << 14) | ((uint32_t)tv_dac->tv.h_code_timing[i+1]); in radeon_restore_tv_timing_tables() 403 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 407 tmp = ((uint32_t)tv_dac->tv.v_code_timing[i+1] << 14) | ((uint32_t)tv_dac->tv.v_code_timing[i]); in radeon_restore_tv_timing_tables() 409 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 419 WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart); in radeon_legacy_write_tv_restarts() 420 WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart); in radeon_legacy_write_tv_restarts() 421 WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart); in radeon_legacy_write_tv_restarts() [all …]
|
| /OK3568_Linux_fs/buildroot/package/evemu/ |
| H A D | 0002-evemu-Update-struct-input_event.patch | 36 + struct timeval tv; 39 + tv.tv_sec = ev.input_event_sec; 40 + tv.tv_usec = ev.input_event_usec; 44 + offset = time_to_long(&tv) - 1; 48 + time = time_to_long(&tv); 49 + tv = long_to_time(time - offset); 50 + ev.input_event_sec = tv.tv_sec; 51 + ev.input_event_usec = tv.tv_usec; 81 + struct timeval tv; 96 + tv.tv_sec = ev->input_event_sec; [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/vdso/ |
| H A D | vclock_gettime.c | 77 notrace static long vdso_fallback_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in vdso_fallback_gettimeofday() argument 80 register long o0 __asm__("o0") = (long) tv; in vdso_fallback_gettimeofday() 307 __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 312 if (likely(tv != NULL)) { in __vdso_gettimeofday() 315 struct __kernel_old_timeval tv; in __vdso_gettimeofday() member 316 } *tstv = (union tstv_t *) tv; in __vdso_gettimeofday() 326 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday() 327 tstv->tv.tv_usec /= 1000; in __vdso_gettimeofday() 336 return vdso_fallback_gettimeofday(tv, tz); in __vdso_gettimeofday() 343 __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday_stick() argument [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/vDSO/ |
| H A D | vdso_test_gettimeofday.c | 46 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 54 struct timeval tv; in main() local 55 long ret = gtod(&tv, 0); in main() 59 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
|
| H A D | vdso_standalone_test_x86.c | 88 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in c_main() 94 struct timeval tv; in c_main() local 95 long ret = gtod(&tv, 0); in c_main() 99 to_base10(buf + 31, tv.tv_sec); in c_main() 100 to_base10(buf + 38, tv.tv_usec); in c_main()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_sdvo.c | 176 } tv; member 1192 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format() 1402 UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H); in intel_sdvo_update_props() 1405 UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V); in intel_sdvo_update_props() 1408 UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS); in intel_sdvo_update_props() 1411 UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS); in intel_sdvo_update_props() 1414 UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION); in intel_sdvo_update_props() 1417 UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST); in intel_sdvo_update_props() 1420 UPDATE_PROPERTY(conn_state->tv.hue, HUE); in intel_sdvo_update_props() 1423 UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS); in intel_sdvo_update_props() [all …]
|
| H A D | intel_tv.c | 948 int format = conn_state->tv.mode; in intel_tv_mode_find() 1176 conn_state->tv.margins.top - in intel_tv_vert_scaling() 1177 conn_state->tv.margins.bottom != in intel_tv_vert_scaling() 1226 top = conn_state->tv.margins.top; in intel_tv_compute_config() 1227 bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config() 1246 tv_conn_state->margins.top = conn_state->tv.margins.top; in intel_tv_compute_config() 1247 tv_conn_state->margins.bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config() 1321 conn_state->tv.margins.left, in intel_tv_compute_config() 1322 conn_state->tv.margins.right); in intel_tv_compute_config() 1542 xpos = conn_state->tv.margins.left; in intel_tv_pre_enable() [all …]
|
| /OK3568_Linux_fs/external/xserver/Xi/ |
| H A D | queryst.c | 82 xValuatorState *tv; in ProcXQueryDeviceState() local 142 tv = (xValuatorState *) buf; in ProcXQueryDeviceState() 143 tv->class = ValuatorClass; in ProcXQueryDeviceState() 144 tv->length = sizeof(xValuatorState) + v->numAxes * 4; in ProcXQueryDeviceState() 145 tv->num_valuators = v->numAxes; in ProcXQueryDeviceState() 146 tv->mode = valuator_get_mode(dev, 0); in ProcXQueryDeviceState() 147 tv->mode |= (dev->proximity && in ProcXQueryDeviceState()
|
| /OK3568_Linux_fs/external/linux-rga/samples/utils/ |
| H A D | utils.cpp | 32 struct timeval tv; in get_cur_us() local 33 gettimeofday(&tv,NULL); in get_cur_us() 34 return tv.tv_sec * 1000000 + tv.tv_usec; in get_cur_us() 38 struct timeval tv; in get_cur_ms() local 39 gettimeofday(&tv,NULL); in get_cur_ms() 40 return tv.tv_sec * 1000 + tv.tv_usec / 1000; in get_cur_ms()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/sys/ |
| H A D | time.h | 38 # define TIMEVAL_TO_TIMESPEC(tv, ts) { \ argument 39 (ts)->tv_sec = (tv)->tv_sec; \ 40 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 42 # define TIMESPEC_TO_TIMEVAL(tv, ts) { \ argument 43 (tv)->tv_sec = (ts)->tv_sec; \ 44 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/sys/ |
| H A D | time.h | 38 # define TIMEVAL_TO_TIMESPEC(tv, ts) { \ argument 39 (ts)->tv_sec = (tv)->tv_sec; \ 40 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 42 # define TIMESPEC_TO_TIMEVAL(tv, ts) { \ argument 43 (tv)->tv_sec = (ts)->tv_sec; \ 44 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
| /OK3568_Linux_fs/kernel/arch/alpha/kernel/ |
| H A D | osf_sys.c | 948 struct timeval32 tv; in get_tv32() local 949 if (copy_from_user(&tv, i, sizeof(struct timeval32))) in get_tv32() 951 o->tv_sec = tv.tv_sec; in get_tv32() 952 o->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in get_tv32() 981 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 984 if (tv) { in SYSCALL_DEFINE2() 988 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2() 998 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 1004 if (tv) { in SYSCALL_DEFINE2() 1005 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/vdso/ |
| H A D | vgettimeofday.c | 28 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 31 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday() 64 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 67 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/rtc/ |
| H A D | rtctest.c | 90 struct timeval tv = { .tv_sec = 2 }; in TEST_F() local 96 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 113 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local 146 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 166 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local 200 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 215 struct timeval tv = { .tv_sec = 62 }; variable 248 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); 268 struct timeval tv = { .tv_sec = 62 }; variable 302 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
|
| /OK3568_Linux_fs/external/drm-cursor/ |
| H A D | drm_common.h | 49 struct timeval tv; gettimeofday(&tv, NULL); \ 51 tv.tv_sec % 100000, tv.tv_usec / 1000, __func__, __LINE__); \
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/utils/ |
| H A D | mpp_decoder.cpp | 13 struct timeval tv; in GetCurrentTimeMS() local 14 gettimeofday(&tv, NULL); in GetCurrentTimeMS() 15 return tv.tv_sec*1000+tv.tv_usec/1000; in GetCurrentTimeMS() 246 struct timeval tv; in Decode() local 247 gettimeofday(&tv, NULL); in Decode() 248 LOGD("get one frame %ld ", (tv.tv_sec * 1000 + tv.tv_usec/1000)); in Decode()
|