/linux-master/arch/sh/include/asm/ |
H A D | machvec.h | 12 #include <linux/time.h>
|
/linux-master/fs/bcachefs/ |
H A D | lru.h | 18 static inline struct bpos lru_pos(u16 lru_id, u64 dev_bucket, u64 time) argument 20 struct bpos pos = POS(((u64) lru_id << LRU_TIME_BITS)|time, dev_bucket); 22 EBUG_ON(time > LRU_TIME_MAX); 24 EBUG_ON(lru_pos_time(pos) != time);
|
/linux-master/drivers/md/dm-vdo/ |
H A D | time-utils.h | 10 #include <linux/time.h>
|
/linux-master/include/linux/iio/ |
H A D | iio-gts-helper.h | 2 /* gain-time-scale conversion helpers for IIO light sensors 32 * struct iio_itime_sel_mul - integration time description 37 * integration time and amplification as well as corresponding selector 42 * 200 mS => 4 and 400 mS => 8 assuming the impact of integration time would be 44 * the data collection time caused value 2X etc. 46 * @time_us: Integration time in microseconds. Time values must be positive, 48 * @sel: Selector (usually register value) used to indicate this time 50 * @mul: Multiplication to the values caused by this time. 86 iio_gts_find_itime_by_time(struct iio_gts *gts, int time) argument 94 if (gts->itime_table[i].time_us == time) 143 iio_gts_find_sel_by_int_time(struct iio_gts *gts, int time) argument [all...] |
/linux-master/sound/core/seq/oss/ |
H A D | seq_oss_writeq.c | 86 abstime_t time; local 88 time = snd_seq_oss_timer_cur_tick(dp->timer); 89 if (q->sync_time >= time) 100 ev.time.tick = time; 105 rec->t.time = time; 114 if (! q->sync_event_put || q->sync_time >= time) 123 snd_seq_oss_writeq_wakeup(struct seq_oss_writeq *q, abstime_t time) argument 128 q->sync_time = time; [all...] |
H A D | seq_oss_writeq.h | 32 void snd_seq_oss_writeq_wakeup(struct seq_oss_writeq *q, abstime_t time);
|
/linux-master/drivers/rtc/ |
H A D | rtc-mv.c | 116 alm->time.tm_sec = bcd2bin(second); 117 alm->time.tm_min = bcd2bin(minute); 118 alm->time.tm_hour = bcd2bin(hour); 119 alm->time.tm_mday = bcd2bin(day); 120 alm->time.tm_wday = bcd2bin(wday); 121 alm->time.tm_mon = bcd2bin(month) - 1; 123 alm->time.tm_year = bcd2bin(year) + 100; 127 return rtc_valid_tm(&alm->time); 136 if (alm->time.tm_sec >= 0) 137 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time [all...] |
H A D | rtc-vt8500.c | 65 #define VT8500_RTC_CR_12H (1 << 1) /* 12h time format */ 104 u32 date, time; local 107 time = readl(vt8500_rtc->regbase + VT8500_RTC_TR); 109 tm->tm_sec = bcd2bin(time & TIME_SEC_MASK); 110 tm->tm_min = bcd2bin((time & TIME_MIN_MASK) >> TIME_MIN_S); 111 tm->tm_hour = bcd2bin((time & TIME_HOUR_MASK) >> TIME_HOUR_S); 116 tm->tm_wday = (time & TIME_DOW_MASK) >> TIME_DOW_S; 147 alrm->time.tm_mday = bcd2bin((alarm & ALARM_DAY_MASK) >> ALARM_DAY_S); 148 alrm->time.tm_hour = bcd2bin((alarm & TIME_HOUR_MASK) >> TIME_HOUR_S); 149 alrm->time [all...] |
H A D | rtc-ds1305.c | 26 /* RTC date/time ... the main special cases are that we: 167 * Get/set of date and time is pretty normal. 170 static int ds1305_get_time(struct device *dev, struct rtc_time *time) argument 177 /* Use write-then-read to get all the date/time registers 188 time->tm_sec = bcd2bin(buf[DS1305_SEC]); 189 time->tm_min = bcd2bin(buf[DS1305_MIN]); 190 time->tm_hour = bcd2hour(buf[DS1305_HOUR]); 191 time->tm_wday = buf[DS1305_WDAY] - 1; 192 time->tm_mday = bcd2bin(buf[DS1305_MDAY]); 193 time 205 ds1305_set_time(struct device *dev, struct rtc_time *time) argument [all...] |
H A D | rtc-mcp795.c | 268 /* Read current time from RTC hardware */ 274 later = rtc_tm_to_time64(&alm->time); 279 (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) 290 alm->time.tm_year = -1; 291 alm->time.tm_isdst = -1; 292 alm->time.tm_yday = -1; 294 tmp[0] = (tmp[0] & 0x80) | bin2bcd(alm->time.tm_sec); 295 tmp[1] = (tmp[1] & 0x80) | bin2bcd(alm->time.tm_min); 296 tmp[2] = (tmp[2] & 0xE0) | bin2bcd(alm->time.tm_hour); 297 tmp[3] = (tmp[3] & 0x80) | bin2bcd(alm->time [all...] |
H A D | interface.c | 33 * Since the reading time values from RTC device are always in the RTC 56 * If the setting time values are in the valid range of RTC hardware 57 * device, then no need to subtract the offset when setting time to RTC 58 * device. Otherwise we need to subtract the offset to make the time 70 time64_t time = rtc_tm_to_time64(tm); local 77 if (time < range_min || time > range_max) 194 alarm->time.tm_sec = -1; 195 alarm->time.tm_min = -1; 196 alarm->time [all...] |
H A D | rtc-rk808.c | 21 /* RK808 has a shadowed register for saving a "frozen" RTC time. 22 * When user setting "GET_TIME" to 1, the time will save in this shadowed 23 * register. If set "READSEL" to 1, user read rtc time register, actually 24 * get the time of that moment. If we need the real time, clr this bit. 76 time64_t time = rtc_tm_to_time64(tm); local 77 rtc_time64_to_tm(time + nov2dec_transitions(tm) * 86400, tm); 83 time64_t time = rtc_tm_to_time64(tm); local 84 rtc_time64_to_tm(time - extra_days * 86400, tm); 91 rtc_time64_to_tm(time [all...] |
H A D | rtc-nxp-bbnsm.c | 46 u32 time; local 50 time = tmp; 57 } while (tmp != time && --timeout); 59 return time; 65 unsigned long time; local 72 time = bbnsm_read_counter(bbnsm); 73 rtc_time64_to_tm(time, tm); 81 unsigned long time = rtc_tm_to_time64(tm); local 86 /* write the 32bit sec time to 47 bit timer counter, leaving 15 LSBs blank */ 87 regmap_write(bbnsm->regmap, BBNSM_RTC_LS, time << CNTR_TO_SECS_S 125 unsigned long time = rtc_tm_to_time64(&alrm->time); local [all...] |
H A D | rtc-mpfs.c | 81 * only being cleared some time after this function returns. 89 u64 time; local 91 time = readl(rtcdev->base + DATETIME_LOWER_REG); 92 time |= ((u64)readl(rtcdev->base + DATETIME_UPPER_REG) & DATETIME_UPPER_MASK) << 32; 93 rtc_time64_to_tm(time, tm); 102 u64 time; local 105 time = rtc_tm_to_time64(tm); 107 writel((u32)time, rtcdev->base + DATETIME_LOWER_REG); 108 writel((u32)(time >> 32) & DATETIME_UPPER_MASK, rtcdev->base + DATETIME_UPPER_REG); 118 dev_err(dev, "timed out uploading time t 130 u64 time; local 145 u64 time; local [all...] |
H A D | rtc-wm831x.c | 13 #include <linux/time.h> 102 * regenerated every time we set the RTC so it should be a 116 * Read current time and date in RTC 152 u32 time = (time1[0] << 16) | time1[1]; local 154 rtc_time64_to_tm(time, tm); 160 dev_err(dev, "Timed out reading current time\n"); 166 * Set current time and date in RTC 173 unsigned long time, new_time; local 177 time = rtc_tm_to_time64(tm); 180 (time >> 1 235 u32 time; local 283 unsigned long time; local [all...] |
/linux-master/lib/ |
H A D | interval_tree_test.c | 66 cycles_t time1, time2, time; local 94 time = time2 - time1; 96 time = div_u64(time, perf_loops); 97 printk(" -> %llu cycles\n", (unsigned long long)time); 116 time = time2 - time1; 118 time = div_u64(time, search_loops); 121 (unsigned long long)time, results);
|
/linux-master/tools/laptop/dslm/ |
H A D | dslm.c | 12 #include <time.h> 58 static char *myctime(time_t time) argument 60 char *ts = ctime(&time); 84 start_time = last_time = time(0); 93 curr_time = time(0); 109 total_time = time(0) - start_time; 110 printf("\nTotal running time: %lus\n", curr_time - start_time); 128 puts("usage: dslm [-w <time>] <disk>");
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | nv04.c | 28 nv04_timer_time(struct nvkm_timer *tmr, u64 time) argument 32 u32 hi = upper_32_bits(time); 33 u32 lo = lower_32_bits(time); 35 nvkm_debug(subdev, "time low : %08x\n", lo); 36 nvkm_debug(subdev, "time high : %08x\n", hi); 64 nv04_timer_alarm_init(struct nvkm_timer *tmr, u32 time) argument 67 nvkm_wr32(device, NV04_PTIMER_ALARM_0, time); 142 .time = nv04_timer_time,
|
/linux-master/tools/testing/selftests/timers/ |
H A D | set-tai.c | 20 #include <time.h> 21 #include <sys/time.h>
|
H A D | change_skew.c | 28 #include <sys/time.h> 30 #include <time.h>
|
H A D | skew_consistency.c | 29 #include <sys/time.h> 31 #include <time.h>
|
/linux-master/drivers/net/fddi/skfp/ |
H A D | smttimer.c | 54 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, argument 61 time /= 16 ; /* input is uS, clock ticks are 16uS */ 62 if (!time) 63 time = 1 ; 71 timer->tm_delta = time ; 72 hwt_start(smc,time) ; 85 if (delta + tm->tm_delta > time) { 93 timer->tm_delta = time - delta ;
|
/linux-master/arch/x86/um/vdso/ |
H A D | um_vdso.c | 12 #include <linux/time.h> 54 __kernel_old_time_t time(__kernel_old_time_t *t) __attribute__((weak, alias("__vdso_time")));
|
/linux-master/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_ps.h | 20 void rtl92e_enter_sleep(struct net_device *dev, u64 time);
|
/linux-master/arch/mips/cobalt/ |
H A D | time.c | 3 * Cobalt time initialization. 11 #include <asm/time.h>
|