Searched refs:time (Results 26 - 50 of 1944) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/timers/
H A Dset-2038.c6 * 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) argument
53 now.tv_sec = (time_t)time;
58 printf("Setting time to 0x%lx: %d\n", (long)time, ret);
88 start = time(0);
H A Dvalid-adjtimex.c26 #include <time.h>
27 #include <sys/time.h>
204 tmx.time.tv_sec = offset / NSEC_PER_SEC;
205 tmx.time.tv_usec = offset % NSEC_PER_SEC;
207 if (offset < 0 && tmx.time.tv_usec) {
208 tmx.time.tv_sec -= 1;
209 tmx.time.tv_usec += NSEC_PER_SEC;
212 tmx.time.tv_sec = offset / USEC_PER_SEC;
213 tmx.time.tv_usec = offset % USEC_PER_SEC;
215 if (offset < 0 && tmx.time
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/
H A Diwl-devtrace-ucode.h16 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)
/linux-master/drivers/rtc/
H A Drtc-wm8350.c13 #include <linux/time.h>
29 * Read current time and date in RTC
38 * Read the time twice and compare.
39 * If time1 == time2, then time is valid else retry.
83 dev_err(dev, "timed out reading RTC time\n");
88 * Set current time and date in RTC
93 u16 time[4]; local
97 time[0] = tm->tm_sec;
98 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT;
99 time[
143 u16 time[4]; local
247 u16 time[3]; local
[all...]
H A Drtc-meson-vrtc.c23 struct timespec64 time; local
26 ktime_get_real_ts64(&time);
27 rtc_time64_to_tm(time.tv_sec, tm);
33 unsigned long time)
35 writel_relaxed(time, vrtc->io_alarm);
44 vrtc->alarm_time = rtc_tm_to_time64(&alarm->time);
97 struct timespec64 time; local
99 ktime_get_real_ts64(&time);
100 local_time = time.tv_sec;
110 dev_err(dev, "alarm time alread
32 meson_vrtc_set_wakeup_time(struct meson_vrtc_data *vrtc, unsigned long time) argument
[all...]
H A Drtc-spear.c63 /* date reg equal to time reg, for debug only */
192 * spear_rtc_read_time - set the time
194 * @tm: holds date and time
196 * This function read time and date. On success it will return 0
202 unsigned int time, date; local
208 time = readl(config->ioaddr + TIME_REG);
210 } while (time == readl(config->ioaddr + TIME_REG));
211 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK;
212 tm->tm_min = (time >> MINUTE_SHIFT) & MIN_MASK;
213 tm->tm_hour = (time >> HOUR_SHIF
233 unsigned int time, date; local
259 unsigned int time, date; local
289 unsigned int time, date; local
[all...]
H A Drtc-ma35d1.c122 u32 time, cal, wday; local
125 time = rtc_reg_read(rtc, MA35_REG_RTC_TIME);
128 } while (time != rtc_reg_read(rtc, MA35_REG_RTC_TIME) ||
137 tm->tm_sec = bcd2bin(time >> 0);
138 tm->tm_min = bcd2bin(time >> 8);
139 tm->tm_hour = bcd2bin(time >> 16);
171 alrm->time.tm_mday = bcd2bin(calm >> 0);
172 alrm->time.tm_mon = bcd2bin(calm >> 8);
173 alrm->time.tm_mon = alrm->time
[all...]
H A Drtc-ds1302.c37 static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *time) argument
54 /* Write registers starting at the first time/date address. */
58 *bp++ = bin2bcd(time->tm_sec);
59 *bp++ = bin2bcd(time->tm_min);
60 *bp++ = bin2bcd(time->tm_hour);
61 *bp++ = bin2bcd(time->tm_mday);
62 *bp++ = bin2bcd(time->tm_mon + 1);
63 *bp++ = time->tm_wday + 1;
64 *bp++ = bin2bcd(time->tm_year % 100);
72 static int ds1302_rtc_get_time(struct device *dev, struct rtc_time *time) argument
[all...]
/linux-master/drivers/net/fddi/skfp/
H A Dhwt.c44 * u_long time) ;
48 * time - The time in units of 16us to load the timer with.
55 void hwt_start(struct s_smc *smc, u_long time) argument
59 if (time > HWT_MAX)
60 time = HWT_MAX ;
62 smc->hw.t_start = time ;
65 cnt = (u_short)time ;
67 * if time < 16 us
68 * time
194 u_long time ; local
199 outpd(ADDR(B2_TI_INI),time) ; local
[all...]
/linux-master/arch/m68k/kernel/
H A Dtime.c3 * linux/arch/m68k/kernel/time.c
7 * This file contains the m68k-specific time handling details.
30 #include <linux/time.h>
78 struct rtc_time time; local
86 mach_hwclk(0, &time);
88 ts->tv_sec = mktime64(time.tm_year + 1900, time.tm_mon + 1, time.tm_mday,
89 time.tm_hour, time
[all...]
/linux-master/arch/um/kernel/
H A Dtime.c22 #include <linux/time-internal.h>
48 panic("time-travel: time goes backwards %lld -> %lld\n",
85 panic("time-travel external link is broken\n");
87 panic("invalid time-travel message - %d bytes\n", ret);
91 WARN_ONCE(1, "time-travel: unexpected message %lld\n",
97 time_travel_set_time(msg->time);
101 time_travel_ext_free_until = msg->time;
109 static u64 time_travel_ext_req(u32 op, u64 time) argument
115 .time
169 time_travel_ext_update_request(unsigned long long time) argument
205 time_travel_ext_request(unsigned long long time) argument
268 __time_travel_add_event(struct time_travel_event *e, unsigned long long time) argument
307 time_travel_add_event(struct time_travel_event *e, unsigned long long time) argument
[all...]
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_benchmark.c76 unsigned int time,
80 unsigned int throughput = (n * (size >> 10)) / time;
83 kind, n, size >> 10, sdomain, ddomain, time,
94 int time; local
123 time = radeon_benchmark_do_move(rdev, size, saddr, daddr,
126 if (time < 0)
128 if (time > 0)
129 radeon_benchmark_log_results(n, size, time,
134 time = radeon_benchmark_do_move(rdev, size, saddr, daddr,
137 if (time <
75 radeon_benchmark_log_results(int n, unsigned size, unsigned int time, unsigned sdomain, unsigned ddomain, char *kind) argument
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_trace.h16 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,
/linux-master/include/linux/sched/
H A Dcpufreq.h17 void (*func)(struct update_util_data *data, u64 time, unsigned int flags);
21 void (*func)(struct update_util_data *data, u64 time,
/linux-master/drivers/cpufreq/
H A Dppc_cbe_cpufreq_pmi.c22 #include <asm/time.h>
39 long time; local
46 time = jiffies;
51 time = jiffies - time;
52 time = jiffies_to_msecs(time);
54 "PMI\n", time);
/linux-master/drivers/firmware/efi/
H A Defi-pstore.c89 u64 time; local
94 &record->type, &part, &cnt, &time, &data_type) == 5) {
95 record->id = generic_id(time, part, cnt);
98 record->time.tv_sec = time;
99 record->time.tv_nsec = 0;
106 &record->type, &part, &cnt, &time) == 4) {
107 record->id = generic_id(time, part, cnt);
110 record->time.tv_sec = time;
[all...]
/linux-master/lib/
H A Drbtree_test.c245 cycles_t time1, time2, time; local
267 time = time2 - time1;
269 time = div_u64(time, perf_loops);
271 (unsigned long long)time);
283 time = time2 - time1;
285 time = div_u64(time, perf_loops);
287 (unsigned long long)time);
300 time
[all...]
/linux-master/drivers/input/misc/
H A Daxp20x-pek.c49 unsigned int time; member in struct:axp20x_time
54 { .time = 128, .idx = 0 },
55 { .time = 1000, .idx = 2 },
56 { .time = 3000, .idx = 1 },
57 { .time = 2000, .idx = 3 },
61 { .time = 128, .idx = 0 },
62 { .time = 1000, .idx = 1 },
63 { .time = 2000, .idx = 2 },
64 { .time = 3000, .idx = 3 },
68 { .time
88 axp20x_show_attr(struct device *dev, const struct axp20x_time *time, unsigned int mask, char *buf) argument
130 axp20x_store_attr(struct device *dev, const struct axp20x_time *time, unsigned int mask, const char *buf, size_t count) argument
[all...]
/linux-master/tools/testing/selftests/rtc/
H A Dsetdate.c12 #include <sys/time.h>
26 const char *time = default_time; local
30 time = argv[3];
50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec);
52 fprintf(stderr, "Test will set RTC date/time to %d-%d-%d, %02d:%02d:%02d.\n",
71 fprintf(stderr, "\n\nCurrent RTC date/time is %d-%d-%d, %02d:%02d:%02d.\n",
/linux-master/arch/x86/include/asm/
H A Dvgtod.h15 #include <uapi/linux/time.h>
/linux-master/include/uapi/linux/
H A Dum_timetravel.h21 * struct um_timetravel_msg - UM time travel message
48 * @time: time in nanoseconds
50 __u64 time; member in struct:um_timetravel_msg
59 * this usually doesn't carry any data in the 'time' field
65 * @UM_TIMETRAVEL_START: initialize the connection, the time
72 * @UM_TIMETRAVEL_REQUEST: request to run at the given time
80 * interrupts); the time field is ignored. The calendar must process
88 * @UM_TIMETRAVEL_GET: return the current time from the calendar in the
89 * ACK message, the time i
[all...]
/linux-master/drivers/gpu/drm/nouveau/include/nvif/
H A Duser.h13 u64 (*time)(struct nvif_user *); member in struct:nvif_user_func
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dgk20a.c30 .time = nv04_timer_time,
/linux-master/arch/um/include/asm/
H A Dxor.h15 #include <linux/time-internal.h>
/linux-master/arch/mips/loongson32/common/
H A Dtime.c8 #include <asm/time.h>

Completed in 234 milliseconds

1234567891011>>