Searched refs:time (Results 276 - 300 of 1944) sorted by relevance

<<11121314151617181920>>

/linux-master/include/vdso/
H A Ddatapage.h8 #include <uapi/linux/time.h>
18 #include <vdso/time.h>
47 * clock_id. For high-resolution clocks, this encodes the time
49 * the actual time.
68 * @offset[clock_id]: time namespace offset per clock_id
76 * vdso_data will be accessed by 64 bit and compat code at the same time
79 * @basetime is used to store the base time for the system wide time getter
82 * @offset is used by the special time namespace VVAR pages which are
85 * the time namespac
[all...]
/linux-master/drivers/rtc/
H A Drtc-goldfish.c41 rtc_time64_to_tm(rtc_alarm, &alrm->time);
63 rtc_alarm64 = rtc_tm_to_time64(&alrm->time) * NSEC_PER_SEC;
116 u64 time; local
123 time = (time_high << 32) | time_low;
125 do_div(time, NSEC_PER_SEC);
127 rtc_time64_to_tm(time, tm);
H A Drtc-ftrtc010.c57 * 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; local
77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec;
79 rtc_time64_to_tm(time, tm);
88 timeu64_t time; local
90 time = rtc_tm_to_time64(tm);
97 offset = time - (day * 86400 + hour * 3600 + min * 60 + sec);
H A Drtc-snvs.c61 /* Read the secure real time counter, taking care to deal with the cases of the
163 unsigned long time; local
170 time = rtc_read_lp_counter(data);
171 rtc_time64_to_tm(time, tm);
181 unsigned long time = rtc_tm_to_time64(tm); local
193 /* Write 32-bit time to 47-bit timer, leaving 15 LSBs blank */
194 regmap_write(data->regmap, data->offset + SNVS_LPSRTCLR, time << CNTR_TO_SECS_SH);
195 regmap_write(data->regmap, data->offset + SNVS_LPSRTCMR, time >> (32 - CNTR_TO_SECS_SH));
216 rtc_time64_to_tm(lptar, &alrm->time);
249 unsigned long time local
[all...]
H A Drtc-pcf85363.c5 * Driver for NXP PCF85363 real-time clock.
155 /* read the RTC date and time registers all at once */
222 alrm->time.tm_sec = bcd2bin(buf[0]);
223 alrm->time.tm_min = bcd2bin(buf[1]);
224 alrm->time.tm_hour = bcd2bin(buf[2]);
225 alrm->time.tm_mday = bcd2bin(buf[3]);
226 alrm->time.tm_mon = bcd2bin(buf[4]) - 1;
273 buf[0] = bin2bcd(alrm->time.tm_sec);
274 buf[1] = bin2bcd(alrm->time.tm_min);
275 buf[2] = bin2bcd(alrm->time
[all...]
H A Drtc-armada38x.c215 unsigned long time, flags; local
218 time = rtc->data->read_rtc_reg(rtc, RTC_TIME);
221 rtc_time64_to_tm(time, tm);
234 msleep(500); /* Oscillator startup time */
246 unsigned long time, flags; local
248 time = rtc_tm_to_time64(tm);
254 rtc_delayed_write(time, rtc, RTC_TIME);
263 unsigned long time, flags; local
270 time = rtc->data->read_rtc_reg(rtc, reg);
276 rtc_time64_to_tm(time,
286 unsigned long time, flags; local
[all...]
H A Drtc-at91rm9200.c30 #include <linux/time.h>
158 * Decode time/date into rtc_time structure
163 unsigned int time, date; local
167 time = at91_rtc_read(timereg);
169 } while ((time != at91_rtc_read(timereg)) ||
172 tm->tm_sec = bcd2bin(FIELD_GET(AT91_RTC_SEC, time));
173 tm->tm_min = bcd2bin(FIELD_GET(AT91_RTC_MIN, time));
174 tm->tm_hour = bcd2bin(FIELD_GET(AT91_RTC_HOUR, time));
189 * Read current time and date in RTC
203 * Set current time an
[all...]
H A Drtc-lpc32xx.c55 static int lpc32xx_rtc_read_time(struct device *dev, struct rtc_time *time) argument
61 rtc_time64_to_tm(elapsed_sec, time);
66 static int lpc32xx_rtc_set_time(struct device *dev, struct rtc_time *time) argument
69 u32 secs = rtc_tm_to_time64(time);
91 rtc_time64_to_tm(rtc_readl(rtc, LPC32XX_RTC_MATCH0), &wkalrm->time);
96 return rtc_valid_tm(&wkalrm->time);
106 alarmsecs = rtc_tm_to_time64(&wkalrm->time);
205 * setup, then set it up now for the first time.
H A Drtc-s5m.c25 * After writing to RTC registers (setting time or alarm) read the UDR field
47 * Operations like read time and write alarm/time require updating
53 * Device | Write time | Read time | Write alarm
61 /* Number of registers used for setting time/alarm0/alarm1 */
63 /* First register for time, seconds */
64 unsigned int time; member in struct:s5m_rtc_reg_config
73 * will enable update of time or alarm register. Then it will be
77 /* Auto-cleared mask in UDR field for writing time an
[all...]
H A Drtc-pcf8563.c211 "low voltage detected, date/time is not reliable.\n");
309 tm->time.tm_sec = 0;
310 tm->time.tm_min = bcd2bin(buf[0] & 0x7F);
311 tm->time.tm_hour = bcd2bin(buf[1] & 0x3F);
312 tm->time.tm_mday = bcd2bin(buf[2] & 0x3F);
313 tm->time.tm_wday = bcd2bin(buf[3] & 0x7);
320 " enabled=%d, pending=%d\n", __func__, tm->time.tm_min,
321 tm->time.tm_hour, tm->time.tm_mday, tm->time
[all...]
H A Drtc-pcf2123.c66 #define CTRL1_12_HOUR BIT(2) /* 12 hour time */
217 /* Set the new time */
259 alm->time.tm_min = bcd2bin(rxbuf[0] & 0x7F);
260 alm->time.tm_hour = bcd2bin(rxbuf[1] & 0x3F);
261 alm->time.tm_mday = bcd2bin(rxbuf[2] & 0x3F);
262 alm->time.tm_wday = bcd2bin(rxbuf[3] & 0x07);
264 dev_dbg(dev, "%s: alm is %ptR\n", __func__, &alm->time);
281 dev_dbg(dev, "%s: alm is %ptR\n", __func__, &alm->time);
294 txbuf[0] = bin2bcd(alm->time.tm_min & 0x7F);
295 txbuf[1] = bin2bcd(alm->time
[all...]
H A Drtc-ds2404.c159 unsigned long time = 0; local
163 time = le32_to_cpu(hw_time);
165 rtc_time64_to_tm(time, dt);
172 u32 time = cpu_to_le32(rtc_tm_to_time64(dt)); local
173 ds2404_write_memory(chip, 0x203, 4, (u8 *)&time);
/linux-master/drivers/watchdog/
H A Deurotechwdt.c244 int time; local
278 if (copy_from_user(&time, p, sizeof(int)))
282 if (time < 0 || time > 255)
286 eurwdt_timeout = time;
287 eurwdt_set_timeout(time);
H A Dsb_wdog.c17 * first time the timer expires. The second time it expires, the chip
173 unsigned long time; local
193 ret = get_user(time, p);
197 time *= 1000000;
198 if (time > 0x7fffffUL) {
202 timeout = time;
H A Dsa1100_wdt.c121 int time; local
145 ret = get_user(time, p);
149 if (time <= 0 || (oscr_freq * (long long)time >= 0xffffffff)) {
154 pre_margin = oscr_freq * time;
H A Dda9052_wdt.c15 #include <linux/time.h>
35 int time; /* Seconds */ member in struct:__anon28
42 { 5, 33 }, /* Actual time 32.768s so included both 32s and 33s */
44 { 6, 66 }, /* Actual time 65.536s so include both, 65s and 66s */
58 * new time out.
76 if (da9052_wdt_maps[i].time == timeout)
116 * We have a minimum time for watchdog window called TWDMIN. A write
117 * to the watchdog before this elapsed time should cause an error.
/linux-master/drivers/gpu/drm/msm/
H A Dmsm_gpu_devfreq.c84 ktime_t time; local
89 time = ktime_get();
90 status->total_time = ktime_us_delta(time, df->time);
91 df->time = time;
232 df->time = ktime_get();
/linux-master/include/uapi/sound/
H A Dasequencer.h49 #define SNDRV_SEQ_EVENT_QFRAME 22 /* midi time code quarter frame */
161 #define SNDRV_SEQ_TIME_STAMP_REAL (1<<0) /* timestamp in real time */
165 #define SNDRV_SEQ_TIME_MODE_REL (1<<1) /* relative to current time */
227 struct snd_seq_real_time time; member in union:snd_seq_timestamp
241 union snd_seq_timestamp time; /* time */ member in union:snd_seq_ev_queue_control::__anon2169
263 union snd_seq_timestamp time; member in union:snd_seq_event_data
277 union snd_seq_timestamp time; /* schedule time */ member in struct:snd_seq_event
291 union snd_seq_timestamp time; /* schedul member in struct:snd_seq_ump_event
405 union snd_seq_timestamp time; member in struct:snd_seq_remove_events
516 struct snd_seq_real_time time; /* current time */ member in struct:snd_seq_queue_status
[all...]
/linux-master/drivers/media/rc/
H A Dmeson-ir-tx.c112 static u32 meson_irtx_prepare_pulse(struct meson_irtx *ir, unsigned int time) argument
118 delay = (DIV_ROUND_CLOSEST(time, tb_us) - 1) & IRB_DELAY_MASK;
123 static u32 meson_irtx_prepare_space(struct meson_irtx *ir, unsigned int time) argument
129 if (time <= IRB_MAX_DELAY) {
132 } else if (time <= 10 * IRB_MAX_DELAY) {
135 } else if (time <= 100 * IRB_MAX_DELAY) {
140 delay = (DIV_ROUND_CLOSEST(time, tb_us) - 1) & IRB_DELAY_MASK;
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c46 * Description: this function will shift/adjust the hardware clock time.
70 /* If EST is enabled, disabled it before adjust ptp time. */
84 /* Calculate new basetime and re-configured EST after PTP time adjust. */
86 struct timespec64 current_time, time; local
93 time.tv_nsec = priv->plat->est->btr_reserve[0];
94 time.tv_sec = priv->plat->est->btr_reserve[1];
95 basetime = timespec64_to_ktime(time);
98 time = stmmac_calc_tas_basetime(basetime,
102 priv->plat->est->btr[0] = (u32)time.tv_nsec;
103 priv->plat->est->btr[1] = (u32)time
[all...]
/linux-master/tools/crypto/ccp/
H A Dtest_dbc.py5 import time namespace
190 time.sleep(SET_DELAY)
233 time.sleep(SET_DELAY)
239 time.sleep(SET_DELAY)
251 time.sleep(SET_DELAY)
257 time.sleep(SET_DELAY)
269 time.sleep(SET_DELAY)
/linux-master/tools/bpf/bpftool/
H A Dmap_perf_ring.c16 #include <time.h>
34 __u64 time; member in struct:perf_event_sample
79 jsonw_uint(json_wtr, e->time);
95 e->time / 1000000000ULL, e->time % 1000000000ULL,
/linux-master/fs/exfat/
H A Dmisc.c9 #include <linux/time.h>
67 /* Convert a EXFAT time/date pair to a UNIX date (seconds since 1 1 70). */
69 u8 tz, __le16 time, __le16 date, u8 time_cs)
71 u16 t = le16_to_cpu(time);
92 /* Convert linear UNIX date to a EXFAT time/date pair. */
94 u8 *tz, __le16 *time, __le16 *date, u8 *time_cs)
103 *time = cpu_to_le16(t);
113 * to indicate that local time and UTC are the same.
68 exfat_get_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts, u8 tz, __le16 time, __le16 date, u8 time_cs) argument
93 exfat_set_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts, u8 *tz, __le16 *time, __le16 *date, u8 *time_cs) argument
/linux-master/tools/power/cpupower/bench/
H A Dparse.c11 #include <time.h>
88 dirname, sysdata.nodename, sysdata.release, time(NULL));
91 dirname, time(NULL));
/linux-master/fs/ubifs/
H A Dshrinker.c23 * The age of znodes is just the time-stamp when they were last looked at.
62 time64_t time = ktime_get_seconds(); local
110 abs(time - znode->time) >= age) {
221 * the second time and initiate background commit.

Completed in 220 milliseconds

<<11121314151617181920>>