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

<<11121314151617181920>>

/linux-master/tools/testing/selftests/media_tests/
H A Dvideo_device_test.c37 #include <time.h>
89 srand((unsigned int) time(NULL));
/linux-master/tools/testing/selftests/powerpc/
H A Dharness.c99 void test_harness_set_timeout(uint64_t time) argument
101 timeout = time;
/linux-master/scripts/kconfig/
H A Dnconf.h22 #include <time.h>
23 #include <sys/time.h>
/linux-master/fs/fat/
H A Dmisc.c177 * time: 0 - 4: sec (0 - 29) 2sec counts
178 * time: 5 - 10: min (0 - 59)
179 * time: 11 - 15: hour (0 - 23)
203 /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */
207 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date); local
221 second = (time & 0x1f) << 1;
222 second += ((time >> 5) & 0x3f) * SECS_PER_MIN;
223 second += (time >> 11) * SECS_PER_HOUR;
242 /* Convert linear UNIX date to a FAT time/date pair. */
244 __le16 *time, __le1
243 fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, __le16 *time, __le16 *date, u8 *time_cs) argument
[all...]
/linux-master/kernel/trace/
H A Dring_buffer_benchmark.c21 /* run time and sleep time in seconds */
235 unsigned long long time; local
276 * cond_resched and also add any time that was lost by a
299 time = ktime_us_delta(end_time, start_time);
327 trace_printk("Time: %lld (usecs)\n", time);
339 /* Convert time from usecs to millisecs */
340 do_div(time, USEC_PER_MSEC);
341 if (time)
342 hit /= (long)time;
[all...]
/linux-master/include/linux/
H A Dmc146818rtc.h101 # define RTC_DM_BINARY 0x04 /* all time/date values are BCD if clear */
115 # define RTC_VRT 0x80 /* valid RAM and time */
129 int mc146818_get_time(struct rtc_time *time, int timeout);
130 int mc146818_set_time(struct rtc_time *time);
/linux-master/lib/dim/
H A Ddim.c61 u32 delta_us = ktime_us_delta(end->time, start->time);
/linux-master/fs/orangefs/
H A Ddcache.c98 unsigned long time = (unsigned long) dentry->d_fsdata; local
100 if (time_before(jiffies, time))
/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.
69 * @offset[clock_id]: time namespace offset per clock_id
77 * vdso_data will be accessed by 64 bit and compat code at the same time
80 * @basetime is used to store the base time for the system wide time getter
83 * @offset is used by the special time namespace VVAR pages which are
86 * the time namespac
[all...]
/linux-master/tools/testing/selftests/timers/
H A Dmqueue-lat.c25 #include <time.h>
26 #include <sys/time.h>
/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...]
/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);
/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/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/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->est->btr_reserve[0];
94 time.tv_sec = priv->est->btr_reserve[1];
95 basetime = timespec64_to_ktime(time);
98 time = stmmac_calc_tas_basetime(basetime,
102 priv->est->btr[0] = (u32)time.tv_nsec;
103 priv->est->btr[1] = (u32)time
[all...]

Completed in 534 milliseconds

<<11121314151617181920>>