/linux-master/kernel/time/ |
H A D | time.c | 5 * This file contains the interface functions for the various time related 6 * system calls: time, stime, gettimeofday, settimeofday, adjtime 11 * Created file with time related functions from sched/core.c and adjtimex() 62 SYSCALL_DEFINE1(time, __kernel_old_time_t __user *, tloc) 160 * in UTC, but in some local time: The first time we set the timezone, 161 * we will warp the clock so that it is ticking UTC time instead of 162 * local time. Presumably, if someone is setting the timezone then we 164 * timezones. This should be done at boot time in the /etc/rc script, 303 txc->time [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-omap.c | 348 alm->time.tm_sec = rtc_read(rtc, OMAP_RTC_ALARM_SECONDS_REG); 349 alm->time.tm_min = rtc_read(rtc, OMAP_RTC_ALARM_MINUTES_REG); 350 alm->time.tm_hour = rtc_read(rtc, OMAP_RTC_ALARM_HOURS_REG); 351 alm->time.tm_mday = rtc_read(rtc, OMAP_RTC_ALARM_DAYS_REG); 352 alm->time.tm_mon = rtc_read(rtc, OMAP_RTC_ALARM_MONTHS_REG); 353 alm->time.tm_year = rtc_read(rtc, OMAP_RTC_ALARM_YEARS_REG); 357 bcd2tm(&alm->time); 370 tm2bcd(&alm->time); 376 rtc_write(rtc, OMAP_RTC_ALARM_YEARS_REG, alm->time.tm_year); 377 rtc_write(rtc, OMAP_RTC_ALARM_MONTHS_REG, alm->time [all...] |
H A D | rtc-rv8803.c | 370 alrm->time.tm_sec = 0; 371 alrm->time.tm_min = bcd2bin(alarmvals[0]); 372 alrm->time.tm_hour = bcd2bin(alarmvals[1]); 373 alrm->time.tm_mday = bcd2bin(alarmvals[2]); 378 if ((unsigned int)alrm->time.tm_mday > 31 || 379 (unsigned int)alrm->time.tm_hour >= 24 || 380 (unsigned int)alrm->time.tm_min >= 60) 399 if (alrm->time.tm_sec) { 400 time64_t alarm_time = rtc_tm_to_time64(&alrm->time); 402 alarm_time += 60 - alrm->time [all...] |
H A D | rtc-pm8xxx.c | 53 * @allow_set_time: whether the time can be set 255 dev_dbg(dev, "set time: %ptRd %ptRt (%u + %u)\n", tm, tm, 273 dev_dbg(dev, "read time: %ptRd %ptRt (%u + %u)\n", tm, tm, 286 secs = rtc_tm_to_time64(&alarm->time); 307 dev_dbg(dev, "set alarm: %ptRd %ptRt\n", &alarm->time, &alarm->time); 328 rtc_time64_to_tm(secs, &alarm->time); 336 dev_dbg(dev, "read alarm: %ptRd %ptRt\n", &alarm->time, &alarm->time); 481 "allow-set-time"); [all...] |
H A D | rtc-cadence.c | 208 cdns_rtc_reg2time(reg, &alarm->time); 211 alarm->time.tm_mday = bcd2bin(FIELD_GET(CDNS_RTC_CAL_D, reg)); 212 alarm->time.tm_mon = bcd2bin(FIELD_GET(CDNS_RTC_CAL_M, reg)) - 1; 226 timar = cdns_rtc_time2reg(&alarm->time); 227 calar = FIELD_PREP(CDNS_RTC_CAL_D, bin2bcd(alarm->time.tm_mday)) 228 | FIELD_PREP(CDNS_RTC_CAL_M, bin2bcd(alarm->time.tm_mon + 1));
|
H A D | rtc-jz4740.c | 142 static int jz4740_rtc_read_time(struct device *dev, struct rtc_time *time) argument 166 rtc_time64_to_tm(secs, time); 171 static int jz4740_rtc_set_time(struct device *dev, struct rtc_time *time) argument 176 ret = jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC, rtc_tm_to_time64(time)); 196 rtc_time64_to_tm(secs, &alrm->time); 205 uint32_t secs = lower_32_bits(rtc_tm_to_time64(&alrm->time)); 279 of_property_read_u32(np, "ingenic,reset-pin-assert-time-ms", 281 of_property_read_u32(np, "ingenic,min-wakeup-pin-assert-time-ms", 285 * Set minimum wakeup pin assertion time: 100 ms. 296 * Set reset pin low-level assertion time afte [all...] |
H A D | rtc-ds1685.c | 3 * An rtc driver for the Dallas/Maxim DS1685/DS1687 and related real-time 101 * @val: u8 time value to consider converting. 119 * @val: u8 time value to consider converting. 180 * This takes several steps to prepare the rtc for access to get/set time 256 * ds1685_rtc_read_time - reads the time registers. 267 /* Fetch the time info from the RTC registers. */ 304 * ds1685_rtc_set_time - sets the time registers. 314 /* Fetch the time info from rtc_time. */ 349 * Set the data mode to use and store the time values in the 414 alrm->time [all...] |
H A D | rtc-test.c | 32 rtc_time64_to_tm(alarm, &alrm->time); 44 timeout = rtc_tm_to_time64(&alrm->time) - ktime_get_real_seconds();
|
H A D | rtc-pl030.c | 39 rtc_time64_to_tm(readl(rtc->base + RTC_MR), &alrm->time); 47 writel(rtc_tm_to_time64(&alrm->time), rtc->base + RTC_MR); 62 * Set the RTC time. Unfortunately, we can't accurately set 66 * edge of the 1Hz clock, we must write the time one second
|
/linux-master/fs/pstore/ |
H A D | ram.c | 145 static int ramoops_read_kmsg_hdr(char *buffer, struct timespec64 *time, argument 152 (time64_t *)&time->tv_sec, &time->tv_nsec, &data_type, 154 time->tv_nsec *= 1000; 160 (time64_t *)&time->tv_sec, &time->tv_nsec, 162 time->tv_nsec *= 1000; 165 time->tv_sec = 0; 166 time->tv_nsec = 0; 187 * Ramoops headers provide time stamp [all...] |
/linux-master/kernel/kcsan/ |
H A D | report.c | 78 * The last time the race was reported. 80 unsigned long time; member in struct:report_time 98 * same time window is limited. 141 if (time_before(rt->time, use_entry->time)) 148 if (rt->time == 0) 152 if (time_before(rt->time, invalid_before)) 161 use_entry->time = jiffies; 677 * of printk() could deadlock. Until such time that all printing code
|
/linux-master/arch/m68k/mac/ |
H A D | misc.c | 11 #include <linux/time.h> 31 * Offset between Unix time (1970-based) and Mac time (1904-based). Cuda and PMU 237 * Return the current time in seconds since January 1, 1904. 287 * Set the current time to a number of seconds since January 1, 1904. 300 time64_t time; local 302 time = mktime64(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, 310 data.idata = lower_32_bits(time + RTC_OFFSET); 547 static void unmktime(time64_t time, long offset, argument 562 days = div_u64_rem(time, SECS_PER_DA [all...] |
/linux-master/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 19 unsigned int time; member in struct:best_voice 218 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ 263 if (vp->time < bp->time) { 264 bp->time = vp->time;
|
/linux-master/Documentation/trace/ |
H A D | function-graph-fold.vim | 6 " functions. While closed, a fold will show the total time taken for a call,
|
/linux-master/samples/connector/ |
H A D | ucon.c | 25 #include <time.h> 224 time(&tm);
|
/linux-master/tools/testing/radix-tree/ |
H A D | idr-test.c | 286 time_t start = time(NULL); 293 } while (time(NULL) < start + 10); 306 time_t start = time(NULL); 325 } while (time(NULL) < start + 11); 480 time_t s = time(NULL); 497 if (time(NULL) < s + 10) 542 time_t s = time(NULL); 551 } while (time(NULL) < s + 2);
|
/linux-master/arch/mips/sgi-ip27/ |
H A D | ip27-timer.c | 16 #include <linux/time.h> 21 #include <asm/time.h> 72 * 360, 380, 390 and 400 MHZ, we use 800 ns rtc cycle time.
|
/linux-master/tools/testing/selftests/x86/ |
H A D | single_step_syscall.c | 15 #include <sys/time.h> 16 #include <time.h>
|
/linux-master/tools/perf/tests/ |
H A D | bp_signal.c | 19 #include <time.h> 66 return time(NULL); 91 * time, consider this the recursive issue. 195 * notification each time the breakpoint is hit 198 * configured. We should get SIGUSR1 each time when
|
/linux-master/tools/testing/selftests/ir/ |
H A D | ir_loopback.c | 20 #include <time.h> 109 srand(time(NULL));
|
/linux-master/tools/bpf/runqslower/ |
H A D | runqslower.c | 7 #include <time.h> 97 time(&t);
|
/linux-master/arch/powerpc/platforms/chrp/ |
H A D | time.c | 7 * Copied and modified from arch/i386/kernel/time.c 17 #include <linux/time.h> 29 #include <asm/time.h>
|
/linux-master/arch/mips/mti-malta/ |
H A D | malta-time.c | 27 #include <asm/time.h> 28 #include <asm/mc146818-time.h> 183 /* Set 32KHz time base if not already set */
|
/linux-master/arch/powerpc/platforms/maple/ |
H A D | time.c | 16 #include <linux/time.h> 27 #include <asm/time.h>
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | uhead.c | 68 args->v0.time[0] = ktime_to_ns(ktime_get()); 70 args->v0.time[1] = ktime_to_ns(ktime_get());
|