/linux-master/tools/include/nolibc/ |
H A D | time.h | 18 struct timeval tv; local 21 sys_gettimeofday(&tv, NULL); 24 *tptr = tv.tv_sec; 25 return tv.tv_sec;
|
/linux-master/arch/arm64/kernel/vdso/ |
H A D | vgettimeofday.c | 10 int __kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 19 int __kernel_gettimeofday(struct __kernel_old_timeval *tv, argument 22 return __cvdso_gettimeofday(tv, tz);
|
/linux-master/drivers/gpu/drm/sun4i/ |
H A D | sun4i_tv.c | 266 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); local 271 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, 281 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); local 286 struct drm_connector *connector = &tv->connector; 290 sun4i_tv_find_tv_by_mode(conn_state->tv.mode); 295 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, 303 regmap_write(tv->regs, SUN4I_TVE_CFG0_REG, 312 regmap_write(tv->regs, SUN4I_TVE_DAC0_REG, 323 regmap_write(tv->regs, SUN4I_TVE_NOTCH_REG, 327 regmap_write(tv 432 struct sun4i_tv *tv; local 531 struct sun4i_tv *tv = dev_get_drvdata(dev); local [all...] |
/linux-master/arch/s390/kernel/vdso64/ |
H A D | vdso64_generic.c | 5 int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv, argument 8 return __cvdso_gettimeofday(tv, tz);
|
H A D | vdso.h | 10 int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
|
/linux-master/arch/loongarch/vdso/ |
H A D | vgettimeofday.c | 15 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) argument 17 return __cvdso_gettimeofday(tv, tz);
|
/linux-master/tools/testing/selftests/vDSO/ |
H A D | vdso_test_gettimeofday.c | 49 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); 57 struct timeval tv; local 58 long ret = gtod(&tv, 0); 62 (long long)tv.tv_sec, (long long)tv.tv_usec);
|
H A D | vdso_standalone_test_x86.c | 88 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); 94 struct timeval tv; local 95 long ret = gtod(&tv, 0); 99 to_base10(buf + 31, tv.tv_sec); 100 to_base10(buf + 38, tv.tv_usec);
|
/linux-master/fs/ |
H A D | utimes.c | 217 struct timespec64 tv[2]; local 220 if (get_user(tv[0].tv_sec, ×->actime) || 221 get_user(tv[1].tv_sec, ×->modtime)) 223 tv[0].tv_nsec = 0; 224 tv[1].tv_nsec = 0; 226 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); 239 struct timespec64 tv[2]; local 242 if (get_user(tv[0].tv_sec, &t->actime) || 243 get_user(tv[1].tv_sec, &t->modtime)) 245 tv[ 254 struct timespec64 tv[2]; local 271 struct timespec64 tv[2]; local [all...] |
/linux-master/drivers/usb/misc/ |
H A D | trancevibrator.c | 37 struct trancevibrator *tv = usb_get_intfdata(intf); local 39 return sprintf(buf, "%d\n", tv->speed); 46 struct trancevibrator *tv = usb_get_intfdata(intf); local 56 old = tv->speed; 57 tv->speed = temp; 59 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); 62 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0), 65 tv 80 ATTRIBUTE_GROUPS(tv); variable [all...] |
/linux-master/arch/mips/vdso/ |
H A D | vgettimeofday.c | 29 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, argument 32 return __cvdso_gettimeofday(tv, tz); 65 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, argument 68 return __cvdso_gettimeofday(tv, tz);
|
/linux-master/tools/testing/selftests/rcutorture/bin/ |
H A D | mkinitrd.sh | 39 struct timeval tv; 54 if (gettimeofday(&tv, NULL)) 56 tv.tv_sec -= tvb.tv_sec; 57 if (tv.tv_sec > 1) 59 tv.tv_usec += tv.tv_sec * 1000 * 1000; 60 tv.tv_usec -= tvb.tv_usec; 61 } while (tv.tv_usec < 1000);
|
/linux-master/arch/riscv/kernel/vdso/ |
H A D | vgettimeofday.c | 18 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) argument 20 return __cvdso_gettimeofday(tv, tz);
|
/linux-master/arch/arm64/kernel/vdso32/ |
H A D | vgettimeofday.c | 23 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, argument 26 return __cvdso_gettimeofday(tv, tz);
|
/linux-master/arch/csky/kernel/vdso/ |
H A D | vgettimeofday.c | 20 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, argument 23 return __cvdso_gettimeofday(tv, tz);
|
/linux-master/tools/thermal/lib/ |
H A D | uptimeofday.c | 34 struct timespec tv = { local 39 return tv;
|
/linux-master/arch/arm/vdso/ |
H A D | vgettimeofday.c | 25 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, argument 28 return __cvdso_gettimeofday(tv, tz);
|
/linux-master/tools/testing/selftests/timers/ |
H A D | set-tz.c | 41 struct timeval tv; local 44 gettimeofday(&tv, &tz); 51 struct timeval tv; local 54 gettimeofday(&tv, &tz);
|
H A D | leapcrash.c | 82 struct timeval tv; local 86 tv.tv_sec = next_leap - 2; 87 tv.tv_usec = 0; 88 if (settimeofday(&tv, NULL)) {
|
/linux-master/drivers/input/misc/ |
H A D | hp_sdc_rtc.c | 273 struct timespec64 tv; local 287 if (hp_sdc_rtc_read_rt(&tv)) { 291 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); 294 if (hp_sdc_rtc_read_fhs(&tv)) { 298 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); 301 if (hp_sdc_rtc_read_mt(&tv)) { 305 (s64)tv.tv_sec, (long)tv [all...] |
/linux-master/tools/testing/selftests/damon/ |
H A D | debugfs_target_ids_pid_leak.c | 33 struct timeval tv; local 35 gettimeofday(&tv, NULL); 36 return tv.tv_sec * 1000UL + tv.tv_usec / 1000;
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_trans_inode.c | 60 struct timespec64 tv; local 65 tv = current_time(inode); 68 inode_set_mtime_to_ts(inode, tv); 70 inode_set_ctime_to_ts(inode, tv); 72 ip->i_crtime = tv;
|
/linux-master/kernel/time/ |
H A D | time.c | 83 struct timespec64 tv; local 86 if (get_user(tv.tv_sec, tptr)) 89 tv.tv_nsec = 0; 91 err = security_settime64(&tv, NULL); 95 do_settimeofday64(&tv); 121 struct timespec64 tv; local 124 if (get_user(tv.tv_sec, tptr)) 127 tv.tv_nsec = 0; 129 err = security_settime64(&tv, NULL); 133 do_settimeofday64(&tv); 169 do_sys_settimeofday64(const struct timespec64 *tv, const struct timezone *tz) argument 473 struct __kernel_old_timeval tv; local [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_atomic_state_helper.c | 492 state->tv.margins.left = cmdline->tv_margins.left; 493 state->tv.margins.right = cmdline->tv_margins.right; 494 state->tv.margins.top = cmdline->tv_margins.top; 495 state->tv.margins.bottom = cmdline->tv_margins.bottom; 517 state->tv.mode = val; 520 state->tv.mode = cmdline->tv_mode; 526 state->tv.select_subconnector = val; 532 state->tv.subconnector = val; 538 state->tv.brightness = val; 544 state->tv [all...] |
/linux-master/arch/x86/um/vdso/ |
H A D | um_vdso.c | 30 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) argument 36 : "0" (__NR_gettimeofday), "D" (tv), "S" (tz)
|