/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | mpic_timer.h | 17 #include <linux/time.h> 28 time64_t time); 31 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time); 35 time64_t time) { return NULL; } in mpic_request_timer() 38 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time) { } in mpic_get_remain_time() argument 34 mpic_request_timer(irq_handler_t fn, void *dev, time64_t time) mpic_request_timer() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/ |
H A D | timer.c | 28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test() local 31 wait->time0 = time; in nvif_timer_wait_test() 32 wait->time1 = time; in nvif_timer_wait_test() 35 if (wait->time1 == time) { in nvif_timer_wait_test() 39 wait->time1 = time; in nvif_timer_wait_test()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/ |
H A D | timer.c | 28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test() local 31 wait->time0 = time; in nvif_timer_wait_test() 32 wait->time1 = time; in nvif_timer_wait_test() 35 if (wait->time1 == time) { in nvif_timer_wait_test() 39 wait->time1 = time; in nvif_timer_wait_test()
|
/kernel/liteos_a/kernel/base/include/ |
H A D | los_sys_pri.h | 104 #define OS_US_TO_CYCLE(time, freq) ((((time) / OS_SYS_US_PER_SECOND) * (freq)) + \ 105 (((time) % OS_SYS_US_PER_SECOND) * (freq) / OS_SYS_US_PER_SECOND)) 107 #define OS_SYS_US_TO_CYCLE(time) OS_US_TO_CYCLE((time), OS_SYS_CLOCK)
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | apm_power.c | 196 int time; in calculate_time() local 198 time = do_calculate_time(status, SOURCE_ENERGY); in calculate_time() 199 if (time != -1) in calculate_time() 200 return time; in calculate_time() 202 time = do_calculate_time(status, SOURCE_CHARGE); in calculate_time() 203 if (time != -1) in calculate_time() 204 return time; in calculate_time() 206 time = do_calculate_time(status, SOURCE_VOLTAGE); in calculate_time() 207 if (time != -1) in calculate_time() 208 return time; in calculate_time() [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-bd70528.c | 34 struct bd70528_rtc_day time; member 75 r->time.hour &= ~(BD70528_MASK_RTC_HOUR_PM | BD70528_MASK_RTC_HOUR_24H); in tm2rtc() 77 tmday2rtc(t, &r->time); in tm2rtc() 79 * We do always set time in 24H mode. in tm2rtc() 81 r->time.hour |= BD70528_MASK_RTC_HOUR_24H; in tm2rtc() 90 t->tm_sec = bcd2bin(r->time.sec & BD70528_MASK_RTC_SEC); in rtc2tm() 91 t->tm_min = bcd2bin(r->time.min & BD70528_MASK_RTC_MINUTE); in rtc2tm() 92 t->tm_hour = bcd2bin(r->time.hour & BD70528_MASK_RTC_HOUR); in rtc2tm() 97 if (!(r->time.hour & BD70528_MASK_RTC_HOUR_24H)) { in rtc2tm() 99 if (r->time in rtc2tm() [all...] |
H A D | rtc-s35390a.c | 114 * this information in the hardware to know later that the time isn't in s35390a_init() 282 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, in s35390a_rtc_set_alarm() 283 alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, in s35390a_rtc_set_alarm() 284 alm->time.tm_mon, alm->time.tm_year, alm->time.tm_wday); in s35390a_rtc_set_alarm() 306 if (alm->time.tm_wday != -1) in s35390a_rtc_set_alarm() 307 buf[S35390A_ALRM_BYTE_WDAY] = bin2bcd(alm->time in s35390a_rtc_set_alarm() [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | apm_power.c | 196 int time; in calculate_time() local 198 time = do_calculate_time(status, SOURCE_ENERGY); in calculate_time() 199 if (time != -1) in calculate_time() 200 return time; in calculate_time() 202 time = do_calculate_time(status, SOURCE_CHARGE); in calculate_time() 203 if (time != -1) in calculate_time() 204 return time; in calculate_time() 206 time = do_calculate_time(status, SOURCE_VOLTAGE); in calculate_time() 207 if (time != -1) in calculate_time() 208 return time; in calculate_time() [all...] |
/drivers/peripheral/camera/vdi_base/v4l2/include/stream_operator/ |
H A D | capture_message.h | 40 ICaptureMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t count); 63 CaptureStartedMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t count) in CaptureStartedMessage() argument 64 : ICaptureMessage(streamId, captureId, time, count) in CaptureStartedMessage() 76 CaptureEndedMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t peerCount, uint32_t frameCount) in CaptureEndedMessage() argument 77 : ICaptureMessage(streamId, captureId, time, peerCount) in CaptureEndedMessage() 97 CaptureErrorMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t peerCount, in CaptureErrorMessage() argument 98 VdiStreamError errorCode) : ICaptureMessage(streamId, captureId, time, peerCount) in CaptureErrorMessage() 120 FrameShutterMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t count) in FrameShutterMessage() argument 121 : ICaptureMessage(streamId, captureId, time, count) in FrameShutterMessage()
|
/kernel/liteos_a/syscall/ |
H A D | misc_syscall.c | 188 static void ConvertClocks(struct timeval *time, clock_t clk) in ConvertClocks() argument 190 time->tv_usec = (clk % CLOCKS_PER_SEC) * USEC_PER_SEC / CLOCKS_PER_SEC; in ConvertClocks() 191 time->tv_sec = (clk) / CLOCKS_PER_SEC; in ConvertClocks() 197 struct tms time; in SysGetrusage() local 206 if (times(&time) == -1) { in SysGetrusage() 212 usec = time.tms_utime; in SysGetrusage() 213 sec = time.tms_stime; in SysGetrusage() 217 usec = time.tms_cutime; in SysGetrusage() 218 sec = time.tms_cstime; in SysGetrusage()
|
/kernel/linux/linux-6.6/tools/testing/kunit/ |
H A D | kunit.py | 15 import time namespace 81 config_start = time.time() 83 config_end = time.time() 91 build_start = time.time() 95 build_end = time.time() 187 test_start = time [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | set-2038.c | 6 * NOTE: This is a meta-test which sets the time to edge cases then 28 #include <time.h> 29 #include <sys/time.h> 48 int settime(long long time) in settime() argument 53 now.tv_sec = (time_t)time; in settime() 58 printf("Setting time to 0x%lx: %d\n", (long)time, ret); in settime() 88 start = time(0); in main()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_trace.h | 16 TP_PROTO(int crtc, unsigned int seq, ktime_t time, bool high_prec), 17 TP_ARGS(crtc, seq, time, high_prec), 21 __field(ktime_t, time) 27 __entry->time = time; 30 TP_printk("crtc=%d, seq=%u, time=%lld, high-prec=%s", 31 __entry->crtc, __entry->seq, __entry->time,
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-devtrace-ucode.h | 21 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev), 22 TP_ARGS(dev, time, data, ev), 26 __field(u32, time) 32 __entry->time = time; 37 __get_str(dev), __entry->time, __entry->data, __entry->ev)
|
/kernel/linux/linux-5.10/include/keys/ |
H A D | rxrpc-type.h | 25 u32 start; /* time at which ticket starts */ 26 u32 expiry; /* time at which ticket expires */ 61 u64 authtime; /* time at which auth token generated */ 62 u64 starttime; /* time at which auth token starts */ 63 u64 endtime; /* time at which auth token expired */ 64 u64 renew_till; /* time to which auth token can be renewed */ 130 static inline u32 rxrpc_time64_to_u32(time64_t time) in rxrpc_time64_to_u32() argument 132 if (time < 0) in rxrpc_time64_to_u32() 135 if (time > UINT_MAX) in rxrpc_time64_to_u32() 138 return (u32)time; in rxrpc_time64_to_u32() 144 rxrpc_u32_to_time64(u32 time) rxrpc_u32_to_time64() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-devtrace-ucode.h | 16 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev), 17 TP_ARGS(dev, time, data, ev), 21 __field(u32, time) 27 __entry->time = time; 32 __get_str(dev), __entry->time, __entry->data, __entry->ev)
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_trace.h | 16 TP_PROTO(int crtc, unsigned int seq, ktime_t time, bool high_prec), 17 TP_ARGS(crtc, seq, time, high_prec), 21 __field(ktime_t, time) 27 __entry->time = time; 30 TP_printk("crtc=%d, seq=%u, time=%lld, high-prec=%s", 31 __entry->crtc, __entry->seq, __entry->time,
|
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | set-2038.c | 6 * NOTE: This is a meta-test which sets the time to edge cases then 28 #include <time.h> 29 #include <sys/time.h> 48 int settime(long long time) in settime() argument 53 now.tv_sec = (time_t)time; in settime() 58 printf("Setting time to 0x%lx: %d\n", (long)time, ret); in settime() 88 start = time(0); in main()
|
/test/testfwk/xdevice/src/xdevice/_core/context/ |
H A D | upload.py | 20 import time namespace 130 current_time = int(time.time() * 1000) 165 start_time = int(time.mktime(time.strptime( 167 end_time = int(time.mktime(time.strptime( 172 cost_time = testsuite_element.get(ReportConstant.time, "") 175 end_time = int(time.mktime(time [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | latencytop.c | 119 latency_record[i].time += lat->time; in account_global_scheduler_latency() 120 if (lat->time > latency_record[i].max) in account_global_scheduler_latency() 121 latency_record[i].max = lat->time; in account_global_scheduler_latency() 147 * Negative latencies (caused by time going backwards) are also explicitly 161 /* Negative sleeps are time going backwards */ in __account_scheduler_latency() 162 /* Zero-time sleeps are non-interesting */ in __account_scheduler_latency() 168 lat.time = usecs; in __account_scheduler_latency() 196 mylat->time += lat.time; in __account_scheduler_latency() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | latencytop.c | 145 latency_record[i].time += lat->time; in account_global_scheduler_latency() 146 if (lat->time > latency_record[i].max) in account_global_scheduler_latency() 147 latency_record[i].max = lat->time; in account_global_scheduler_latency() 173 * Negative latencies (caused by time going backwards) are also explicitly 187 /* Negative sleeps are time going backwards */ in __account_scheduler_latency() 188 /* Zero-time sleeps are non-interesting */ in __account_scheduler_latency() 194 lat.time = usecs; in __account_scheduler_latency() 222 mylat->time += lat.time; in __account_scheduler_latency() [all...] |
/kernel/linux/linux-6.6/drivers/xen/ |
H A D | time.c | 27 /* return an consistent snapshot of 64-bit time/counter value */ 82 res->time[i] += per_cpu(old_runstate_time, cpu)[i]; in xen_get_runstate_snapshot_cpu() 92 case -1: /* backup runstate time before suspend */ in xen_manage_runstate_time() 108 memcpy(runstate_delta[cpu].time, state.time, in xen_manage_runstate_time() 109 sizeof(runstate_delta[cpu].time)); in xen_manage_runstate_time() 114 case 0: /* backup runstate time after resume */ in xen_manage_runstate_time() 116 pr_warn("%s: cannot accumulate runstate time as runstate_delta is NULL\n", in xen_manage_runstate_time() 124 runstate_delta[cpu].time[i]; in xen_manage_runstate_time() 129 default: /* do not accumulate runstate time fo in xen_manage_runstate_time() [all...] |
/kernel/linux/linux-6.6/include/linux/iio/ |
H A D | iio-gts-helper.h | 2 /* gain-time-scale conversion helpers for IIO light sensors 32 * struct iio_itime_sel_mul - integration time description 37 * integration time and amplification as well as corresponding selector 42 * 200 mS => 4 and 400 mS => 8 assuming the impact of integration time would be 44 * the data collection time caused value 2X etc. 46 * @time_us: Integration time in microseconds. Time values must be positive, 48 * @sel: Selector (usually register value) used to indicate this time 50 * @mul: Multiplication to the values caused by this time. 86 iio_gts_find_itime_by_time(struct iio_gts *gts, int time) in iio_gts_find_itime_by_time() argument 94 if (gts->itime_table[i].time_us == time) in iio_gts_find_itime_by_time() 143 iio_gts_find_sel_by_int_time(struct iio_gts *gts, int time) iio_gts_find_sel_by_int_time() argument [all...] |
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/ |
H A D | pthread_mutex_test_020.cpp | 94 struct timespec time; in ThreadFuncTest0() local 99 time.tv_sec = timeVal.tv_sec + 0; in ThreadFuncTest0() 100 time.tv_nsec = (timeVal.tv_usec + 1000 * 10 * 10) * 1000; // 1000, 10 ms to ns in ThreadFuncTest0() 102 ret = pthread_mutex_timedlock(&g_muxLock001, &time); in ThreadFuncTest0() 138 struct timeval time = { 0 }; in Testcase() local 185 gettimeofday(&time, nullptr); in Testcase() 186 if ((time.tv_sec - timeVal.tv_sec) >= 1) { in Testcase()
|
H A D | pthread_mutex_test_021.cpp | 94 struct timespec time; in ThreadFuncTest0() local 99 time.tv_sec = timeVal.tv_sec + 0; in ThreadFuncTest0() 100 time.tv_nsec = (timeVal.tv_usec + 1000 * 10 * 10) * 1000; // 1000, 10 ms to ns in ThreadFuncTest0() 102 ret = pthread_mutex_timedlock(&g_muxLock001, &time); in ThreadFuncTest0() 138 struct timeval time = { 0 }; in Testcase() local 182 gettimeofday(&time, nullptr); in Testcase() 183 if ((time.tv_sec - timeVal.tv_sec) >= 1) { in Testcase()
|