/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_usb_core.c | 130 u64 time; in mt76x02u_start_pre_tbtt_timer() local 142 time = (tbtt - PRE_TBTT_USEC) * 1000ull; in mt76x02u_start_pre_tbtt_timer() 143 hrtimer_start(&dev->pre_tbtt_timer, time, HRTIMER_MODE_REL); in mt76x02u_start_pre_tbtt_timer() 149 u64 tsf, time; in mt76x02u_restart_pre_tbtt_timer() local 161 time = ((1000000000ull * dev->mt76.beacon_int) >> 10); in mt76x02u_restart_pre_tbtt_timer() 163 /* Adjust time to trigger hrtimer 8ms before TBTT */ in mt76x02u_restart_pre_tbtt_timer() 165 time -= (PRE_TBTT_USEC - tbtt) * 1000ull; in mt76x02u_restart_pre_tbtt_timer() 167 time += (tbtt - PRE_TBTT_USEC) * 1000ull; in mt76x02u_restart_pre_tbtt_timer() 169 hrtimer_start(&dev->pre_tbtt_timer, time, HRTIMER_MODE_REL); in mt76x02u_restart_pre_tbtt_timer()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | ring_buffer_benchmark.c | 21 /* run time and sleep time in seconds */ 233 unsigned long long time; in ring_buffer_producer() local 274 * cond_resched and also add any time that was lost by a in ring_buffer_producer() 297 time = ktime_us_delta(end_time, start_time); in ring_buffer_producer() 325 trace_printk("Time: %lld (usecs)\n", time); in ring_buffer_producer() 337 /* Convert time from usecs to millisecs */ in ring_buffer_producer() 338 do_div(time, USEC_PER_MSEC); in ring_buffer_producer() 339 if (time) in ring_buffer_producer() 340 hit /= (long)time; in ring_buffer_producer() [all...] |
/third_party/alsa-lib/test/ |
H A D | seq-sender.c | 111 snd_seq_addr_t *dest, int *time) in send_event() 121 ev.time.time.tv_sec = *time; (*time)++; in send_event() 150 int client, port, queue, max, err, v1, v2, time = 0, pcm_flag = 0; in event_sender() local 227 send_event(handle, queue, client, port, &addr, &time); in event_sender() 266 send_event(handle, queue, client, port, &addr, &time); in event_sender() 110 send_event(snd_seq_t *handle, int queue, int client, int port, snd_seq_addr_t *dest, int *time) send_event() argument
|
/third_party/libinput/tools/ |
H A D | libinput-replay.py | 28 import time namespace 83 # give udev some time to catch up 84 time.sleep(0.2) 201 offset = time.time() - device["__first_event_offset"] 204 error("WARNING: event time offset is in the future, refusing to replay") 208 # the time offset once per event 220 now = time.time() 223 time [all...] |
/drivers/peripheral/sensor/chipset/als/ |
H A D | als_bh1745.c | 110 uint32_t time; in CalLux() local 143 time = GetTimeByRegValue(regValue, g_timeMap, itemNum); in CalLux() 156 if (gain == SENSOR_GAIN_INCREASE || time == SENSOR_TIME_INCREASE) { in CalLux() 159 reportData->als = ((luxTemp / gain) * BH1745_GAIN_16X / time) * BH1745_TIME_160MSEC; in CalLux() 187 OsalTimespec time; in ReadBh1745RawData() local 189 (void)memset_s(&time, sizeof(time), 0, sizeof(time)); in ReadBh1745RawData() 194 if (OsalGetTime(&time) != HDF_SUCCESS) { in ReadBh1745RawData() 195 HDF_LOGE("%s: Get time faile in ReadBh1745RawData() [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-mxc.c | 101 * This function is used to obtain the RTC time or the alarm value in 130 * This function sets the RTC alarm value or the time value. 132 static void set_alarm_or_time(struct device *dev, int time_alarm, time64_t time) in set_alarm_or_time() argument 138 day = div_s64_rem(time, 86400, &tod); in set_alarm_or_time() 140 /* time is within a day now */ in set_alarm_or_time() 144 /* time is within an hour now */ in set_alarm_or_time() 170 time64_t time; in rtc_update_alarm() local 174 time = rtc_tm_to_time64(alrm); in rtc_update_alarm() 178 set_alarm_or_time(dev, MXC_RTC_ALARM, time); in rtc_update_alarm() 239 * This function reads the current RTC time int 260 time64_t time = rtc_tm_to_time64(tm); mxc_rtc_set_time() local [all...] |
H A D | rtc-sunxi.c | 62 * Get time values 84 * Set time values 188 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm() 223 u32 date, time; in sunxi_rtc_gettime() local 230 time = readl(chip->base + SUNXI_RTC_HMS); in sunxi_rtc_gettime() 232 (time != readl(chip->base + SUNXI_RTC_HMS))); in sunxi_rtc_gettime() 234 rtc_tm->tm_sec = SUNXI_TIME_GET_SEC_VALUE(time); in sunxi_rtc_gettime() 235 rtc_tm->tm_min = SUNXI_TIME_GET_MIN_VALUE(time); in sunxi_rtc_gettime() 236 rtc_tm->tm_hour = SUNXI_TIME_GET_HOUR_VALUE(time); in sunxi_rtc_gettime() 257 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm() 332 u32 time = 0; sunxi_rtc_settime() local [all...] |
H A D | rtc-ftrtc010.c | 57 * We can't read/write directly the time from RTC registers. 58 * We must do some "offset" calculation to get the real time 69 timeu64_t time; in ftrtc010_rtc_read_time() local 77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time() 79 rtc_time64_to_tm(time, tm); in ftrtc010_rtc_read_time() 88 timeu64_t time; in ftrtc010_rtc_set_time() local 90 time = rtc_tm_to_time64(tm); in ftrtc010_rtc_set_time() 97 offset = time - (day * 86400 + hour * 3600 + min * 60 + sec); in ftrtc010_rtc_set_time()
|
H A D | rtc-goldfish.c | 14 #define TIMER_TIME_LOW 0x00 /* get low bits of current time */ 16 #define TIMER_TIME_HIGH 0x04 /* get high bits of time at last */ 51 rtc_time64_to_tm(rtc_alarm, &alrm->time); in goldfish_rtc_read_alarm() 73 rtc_alarm64 = rtc_tm_to_time64(&alrm->time) * NSEC_PER_SEC; in goldfish_rtc_set_alarm() 126 u64 time; in goldfish_rtc_read_time() local 133 time = (time_high << 32) | time_low; in goldfish_rtc_read_time() 135 do_div(time, NSEC_PER_SEC); in goldfish_rtc_read_time() 137 rtc_time64_to_tm(time, tm); in goldfish_rtc_read_time()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-mxc.c | 85 * This function is used to obtain the RTC time or the alarm value in 114 * This function sets the RTC alarm value or the time value. 116 static void set_alarm_or_time(struct device *dev, int time_alarm, time64_t time) in set_alarm_or_time() argument 122 day = div_s64_rem(time, 86400, &tod); in set_alarm_or_time() 124 /* time is within a day now */ in set_alarm_or_time() 128 /* time is within an hour now */ in set_alarm_or_time() 154 time64_t time; in rtc_update_alarm() local 158 time = rtc_tm_to_time64(alrm); in rtc_update_alarm() 162 set_alarm_or_time(dev, MXC_RTC_ALARM, time); in rtc_update_alarm() 222 * This function reads the current RTC time int 243 time64_t time = rtc_tm_to_time64(tm); mxc_rtc_set_time() local [all...] |
H A D | rtc-sunxi.c | 60 * Get time values 82 * Set time values 186 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm() 221 u32 date, time; in sunxi_rtc_gettime() local 228 time = readl(chip->base + SUNXI_RTC_HMS); in sunxi_rtc_gettime() 230 (time != readl(chip->base + SUNXI_RTC_HMS))); in sunxi_rtc_gettime() 232 rtc_tm->tm_sec = SUNXI_TIME_GET_SEC_VALUE(time); in sunxi_rtc_gettime() 233 rtc_tm->tm_min = SUNXI_TIME_GET_MIN_VALUE(time); in sunxi_rtc_gettime() 234 rtc_tm->tm_hour = SUNXI_TIME_GET_HOUR_VALUE(time); in sunxi_rtc_gettime() 255 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm() 330 u32 time = 0; sunxi_rtc_settime() local [all...] |
H A D | rtc-ftrtc010.c | 57 * We can't read/write directly the time from RTC registers. 58 * We must do some "offset" calculation to get the real time 69 timeu64_t time; in ftrtc010_rtc_read_time() local 77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time() 79 rtc_time64_to_tm(time, tm); in ftrtc010_rtc_read_time() 88 timeu64_t time; in ftrtc010_rtc_set_time() local 90 time = rtc_tm_to_time64(tm); in ftrtc010_rtc_set_time() 97 offset = time - (day * 86400 + hour * 3600 + min * 60 + sec); in ftrtc010_rtc_set_time()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_bo.c | 40 /* Discarded to use a V3D_DEBUG for this, as it would mean adding a run-time 63 fprintf(stderr, " oldest cache time: %ld\n", in bo_dump_stats() 65 fprintf(stderr, " newest cache time: %ld\n", in bo_dump_stats() 68 struct timespec time; in bo_dump_stats() local 69 clock_gettime(CLOCK_MONOTONIC, &time); in bo_dump_stats() 71 (long long)time.tv_sec); in bo_dump_stats() 387 /* FIXME: perhaps set a initial size for the size-list, to avoid run-time in v3dv_bo_cache_init() 422 time_t time) in free_stale_bos() 430 if (time - bo->free_time > 2) { in free_stale_bos() 463 struct timespec time; in v3dv_bo_free() local 421 free_stale_bos(struct v3dv_device *device, time_t time) free_stale_bos() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3d_bufmgr.c | 68 fprintf(stderr, " oldest cache time: %ld\n", in v3d_bo_dump_stats() 70 fprintf(stderr, " newest cache time: %ld\n", in v3d_bo_dump_stats() 73 struct timespec time; in v3d_bo_dump_stats() local 74 clock_gettime(CLOCK_MONOTONIC, &time); in v3d_bo_dump_stats() 76 (intmax_t)time.tv_sec); in v3d_bo_dump_stats() 191 struct timespec time; in v3d_bo_last_unreference() local 192 clock_gettime(CLOCK_MONOTONIC, &time); in v3d_bo_last_unreference() 194 v3d_bo_last_unreference_locked_timed(bo, time.tv_sec); in v3d_bo_last_unreference() 235 free_stale_bos(struct v3d_screen *screen, time_t time) in free_stale_bos() argument 243 if (time in free_stale_bos() 275 v3d_bo_last_unreference_locked_timed(struct v3d_bo *bo, time_t time) v3d_bo_last_unreference_locked_timed() argument [all...] |
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_date_time.cpp | 24 #include <time.h> 41 // MWG says don't use fake time zones in XMP, but there is some 442 // Kludge: Early versions of the XMP toolkit assume Zulu time in Encode_ISO_8601() 443 // if the time zone is missing. It is safer for fill in the in Encode_ISO_8601() 444 // local time zone. in Encode_ISO_8601() 460 // MWG: Now we don't fill in the local time zone. So only in Encode_ISO_8601() 461 // add the time zone if it is known and valid. in Encode_ISO_8601() 541 char time [12]; in Decode_IPTC_Time() local 543 memcpy (time, s, sizeof (time)); in Decode_IPTC_Time() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/vdso/ |
H A D | vgettimeofday.c | 5 #include <linux/time.h> 46 __kernel_old_time_t __c_kernel_time(__kernel_old_time_t *time, const struct vdso_data *vd) in __c_kernel_time() argument 48 return __cvdso_time_data(vd, time); in __c_kernel_time()
|
/kernel/liteos_m/testsuites/unittest/xts/time/ |
H A D | alarm_test.h | 37 #include <time.h> 39 #include <sys/time.h> 49 #include <sys/time.h>
|
/third_party/musl/porting/linux/user/src/time/ |
H A D | gettimeofday.c | 16 #include <time.h> 17 #include <sys/time.h> 18 #include <time.h>
|
/third_party/musl/src/time/ |
H A D | gettimeofday.c | 1 #include <time.h> 2 #include <sys/time.h> 6 #include <time.h>
|
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
H A D | Config.cpp | 69 double time = sw::Timer::seconds(); in nextFrame() local 70 double delta = time - fpsTime; in nextFrame() 77 fpsTime = time; in nextFrame()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | eurotechwdt.c | 244 int time; in eurwdt_ioctl() local 278 if (copy_from_user(&time, p, sizeof(int))) in eurwdt_ioctl() 282 if (time < 0 || time > 255) in eurwdt_ioctl() 286 eurwdt_timeout = time; in eurwdt_ioctl() 287 eurwdt_set_timeout(time); in eurwdt_ioctl()
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | eurotechwdt.c | 244 int time; in eurwdt_ioctl() local 278 if (copy_from_user(&time, p, sizeof(int))) in eurwdt_ioctl() 282 if (time < 0 || time > 255) in eurwdt_ioctl() 286 eurwdt_timeout = time; in eurwdt_ioctl() 287 eurwdt_set_timeout(time); in eurwdt_ioctl()
|
/third_party/python/Lib/ |
H A D | queue.py | 7 from time import monotonic as time namespace 128 the Full exception if no free slot was available within that time. 144 endtime = time() + timeout 146 remaining = endtime - time() 160 the Empty exception if no item was available within that time. 175 endtime = time() + timeout 177 remaining = endtime - time() 287 the Empty exception if no item was available within that time.
|
/third_party/python/Lib/test/ |
H A D | test_zipfile64.py | 11 'test requires loads of disk-space bytes and a long time to run' 15 import time namespace 26 # How much time in seconds can pass before we print a 'Still working' message. 47 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL 51 if next_time <= time.monotonic(): 52 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL 63 if next_time <= time.monotonic(): 64 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | timendk.cpp | 36 #include <sys/time.h>
344 time_t timeValue = time(nullptr);
in Time() 384 time(&td);
in Tzset() 389 time(&td1);
in Tzset() 394 time(&td2);
in Tzset() 410 time(&now);
in DiffTime() 429 const time_t time = PARAM_0;
in CTime_r() local 431 checkParam = ctime_r(&time, secondParam);
in CTime_r() 444 const time_t time = PARAM_0;
in CTime() local 445 checkParam = ctime(&time);
in CTime() 636 time_t time = std::time(nullptr); GmtimeR() local [all...] |