/linux-master/drivers/rtc/ |
H A D | sysfs.c | 20 * the local time and change to match daylight savings time. That affects 21 * attributes including date, time, since_epoch, and wakealarm. 58 static DEVICE_ATTR_RO(time); 68 time64_t time; local 70 time = rtc_tm_to_time64(&tm); 71 retval = sprintf(buf, "%lld\n", time); 106 * hctosys_show - indicate if the given RTC set the system time 144 alarm = rtc_tm_to_time64(&alm.time); 164 * by writing another time, [all...] |
H A D | rtc-cros-ec.c | 52 *response = msg.data.time; 69 msg.data.time = param; 77 /* Read the current time from the EC. */ 83 u32 time; local 85 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, &time); 87 dev_err(dev, "error getting time: %d\n", ret); 91 rtc_time64_to_tm(time, tm); 96 /* Set the current EC time. */ 102 time64_t time = rtc_tm_to_time64(tm); local 104 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_VALUE, (u32)time); [all...] |
H A D | rtc-ds1672.c | 29 unsigned long time; local 54 dev_warn(&client->dev, "Oscillator not enabled. Set time to enable.\n"); 71 time = ((unsigned long)buf[3] << 24) | (buf[2] << 16) | 74 rtc_time64_to_tm(time, tm);
|
H A D | rtc-loongson.c | 226 alrm->time.tm_sec = FIELD_GET(TOY_MATCH_SEC, alarm_data); 227 alrm->time.tm_min = FIELD_GET(TOY_MATCH_MIN, alarm_data); 228 alrm->time.tm_hour = FIELD_GET(TOY_MATCH_HOUR, alarm_data); 229 alrm->time.tm_mday = FIELD_GET(TOY_MATCH_DAY, alarm_data); 230 alrm->time.tm_mon = FIELD_GET(TOY_MATCH_MON, alarm_data) - 1; 235 * SYS_TOYMATCH is used to match the alarm time value and determine if 242 alrm->time.tm_year = FIELD_GET(TOY_MATCH_YEAR, alarm_data) + priv->fix_year; 269 alarm_data = FIELD_PREP(TOY_MATCH_SEC, alrm->time.tm_sec) 270 | FIELD_PREP(TOY_MATCH_MIN, alrm->time.tm_min) 271 | FIELD_PREP(TOY_MATCH_HOUR, alrm->time [all...] |
H A D | rtc-tps65910.c | 31 /* Total number of RTC registers needed to set time*/ 60 * Gets current tps65910 RTC time and date parameters. 62 * The RTC's time/alarm representation is not what gmtime(3) requires 112 /* Stop RTC while updating the RTC time registers */ 120 /* update all the time registers in one shot */ 138 * Gets current tps65910 RTC alarm time. 154 alm->time.tm_sec = bcd2bin(alarm_data[0]); 155 alm->time.tm_min = bcd2bin(alarm_data[1]); 156 alm->time.tm_hour = bcd2bin(alarm_data[2]); 157 alm->time [all...] |
/linux-master/tools/testing/selftests/hid/tests/ |
H A D | base.py | 13 import time namespace 279 now = time.time() 280 while self.uhdev.kernel_ready_count < 2 and time.time() - now < 2: 317 now = time.time() 318 while not self.uhdev.is_ready() and time.time() - now < 5:
|
/linux-master/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | ovly827e.c | 72 s64 time = nvif_msec(device, 2000ULL, local 77 return time < 0 ? time : 0;
|
/linux-master/arch/powerpc/sysdev/ |
H A D | mpic_timer.c | 85 const u64 ticks, time64_t *time) 87 *time = (u64)div_u64(ticks, priv->timerfreq); 90 /* the time set by the user is converted to "ticks" */ 92 time64_t time, u64 *ticks) 98 if (time > max_value) 101 *ticks = (u64)time * (u64)priv->timerfreq; 170 /* Two cascade timers: Support the maximum time */ 190 static struct mpic_timer *get_timer(time64_t time) argument 202 ret = convert_time_to_ticks(priv, time, &ticks); 280 * mpic_get_remain_time - get timer time 84 convert_ticks_to_time(struct timer_group_priv *priv, const u64 ticks, time64_t *time) argument 91 convert_time_to_ticks(struct timer_group_priv *priv, time64_t time, u64 *ticks) argument 286 mpic_get_remain_time(struct mpic_timer *handle, time64_t *time) argument 357 mpic_request_timer(irq_handler_t fn, void *dev, time64_t time) argument [all...] |
/linux-master/tools/testing/selftests/timers/ |
H A D | threadtest.c | 22 #include <sys/time.h> 51 /* look for any time inconsistencies */ 149 printf(" -t: time to run\n"); 162 start = time(0); 172 while (time(&now) < start + runtime) {
|
/linux-master/drivers/macintosh/ |
H A D | smu.c | 12 * - blocking version of time functions 366 struct rtc_time *time) 371 cmd_buf->data[1] = hex2bcd(time->tm_sec); 372 cmd_buf->data[2] = hex2bcd(time->tm_min); 373 cmd_buf->data[3] = hex2bcd(time->tm_hour); 374 cmd_buf->data[4] = time->tm_wday; 375 cmd_buf->data[5] = hex2bcd(time->tm_mday); 376 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; 377 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); 381 int smu_get_rtc_time(struct rtc_time *time, in argument 365 smu_fill_set_rtc_cmd(struct smu_cmd_buf *cmd_buf, struct rtc_time *time) argument 408 smu_set_rtc_time(struct rtc_time *time, int spinwait) argument [all...] |
/linux-master/arch/mips/bcm47xx/ |
H A D | time.c | 27 #include <asm/time.h>
|
/linux-master/kernel/time/ |
H A D | timekeeping_debug.c | 3 * debugfs file to track time spent in suspend 14 #include <linux/time.h> 25 seq_puts(s, " time (secs) count\n");
|
/linux-master/tools/leds/ |
H A D | uledmon.c | 6 * timestamp and brightness value is printed each time the brightness changes. 17 #include <time.h>
|
/linux-master/arch/mips/generic/ |
H A D | irq.c | 15 #include <asm/time.h>
|
/linux-master/arch/mips/kernel/ |
H A D | csrc-ioasic.c | 12 #include <asm/time.h>
|
H A D | csrc-bcm1480.c | 10 #include <asm/time.h>
|
/linux-master/arch/mips/rb532/ |
H A D | time.c | 19 #include <asm/time.h> 26 * register for each time tick. There is no RTC available.
|
/linux-master/tools/testing/selftests/powerpc/benchmarks/ |
H A D | futex_bench.c | 10 #include <time.h> 34 printf("time = %.6f\n", ts_end.tv_sec - ts_start.tv_sec + (ts_end.tv_nsec - ts_start.tv_nsec) / 1e9);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_self_refresh_helper.c | 47 * connectors must be SR aware and all will enter/exit SR mode at the same time. 133 * drm_self_refresh_helper_update_avg_times - Updates a crtc's SR time averages 135 * @commit_time_ms: the amount of time in ms that this commit took to complete 156 struct ewma_psr_time *time; local 163 time = &sr_data->entry_avg_ms; 165 time = &sr_data->exit_avg_ms; 168 ewma_psr_time_add(time, commit_time_ms); 253 * for even poorly performing panels). As time goes on, this will be
|
/linux-master/tools/perf/util/ |
H A D | evsel_config.h | 39 bool time; member in union:evsel_config_term::__anon2073
|
/linux-master/arch/x86/include/uapi/asm/ |
H A D | mce.h | 19 __u64 tsc; /* CPU time stamp counter */ 20 __u64 time; /* Wall time_t when error was detected */ member in struct:mce
|
/linux-master/arch/sparc/include/asm/ |
H A D | vvar.h | 11 #include <linux/time.h>
|
/linux-master/fs/pstore/ |
H A D | internal.h | 6 #include <linux/time.h>
|
/linux-master/arch/um/kernel/skas/ |
H A D | syscall.c | 13 #include <linux/time-internal.h>
|
/linux-master/tools/testing/selftests/tc-testing/plugin-lib/ |
H A D | scapyPlugin.py | 7 import time namespace
|