/linux-master/drivers/watchdog/ |
H A D | sa1100_wdt.c | 121 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 D | da9052_wdt.c | 15 #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/rtc/ |
H A D | rtc-ds2404.c | 159 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);
|
H A D | rtc-imx-sc.c | 29 u32 time; member in struct:imx_sc_msg_timer_get_rtc_time 55 dev_err(dev, "read rtc time failed, ret %d\n", ret); 59 rtc_time64_to_tm(msg.time, tm); 68 /* pack 2 time parameters into 1 register, 16 bits for each */ 88 struct rtc_time *alrm_tm = &alrm->time;
|
H A D | rtc-twl.c | 250 * Gets current TWL RTC time and date parameters. 252 * The RTC's time/alarm representation is not what gmtime(3) requires 350 /* update all the time registers in one shot */ 367 * Gets current TWL RTC alarm time. 383 alm->time.tm_sec = bcd2bin(rtc_data[0]); 384 alm->time.tm_min = bcd2bin(rtc_data[1]); 385 alm->time.tm_hour = bcd2bin(rtc_data[2]); 386 alm->time.tm_mday = bcd2bin(rtc_data[3]); 387 alm->time.tm_mon = bcd2bin(rtc_data[4]) - 1; 388 alm->time [all...] |
H A D | rtc-ep93xx.c | 56 unsigned long time; local 58 time = readl(ep93xx_rtc->mmio_base + EP93XX_RTC_DATA); 60 rtc_time64_to_tm(time, tm);
|
H A D | rtc-nct3018y.c | 161 dev_dbg(&client->dev, " voltage <=1.7, date/time is not reliable.\n"); 268 tm->time.tm_sec = bcd2bin(buf[0] & 0x7F); 269 tm->time.tm_min = bcd2bin(buf[2] & 0x7F); 270 tm->time.tm_hour = bcd2bin(buf[4] & 0x3F); 277 __func__, tm->time.tm_sec, tm->time.tm_min, 278 tm->time.tm_hour, tm->enabled, tm->pending); 289 __func__, tm->time.tm_sec, tm->time.tm_min, tm->time [all...] |
H A D | rtc-mxc_v2.c | 135 * This function reads the current RTC time into tm in Gregorian date. 137 * @param tm contains the RTC time value upon return 157 * This function sets the internal RTC time based on tm in Gregorian date. 159 * @param tm the time value to be set in the RTC 166 time64_t time = rtc_tm_to_time64(tm); local 173 writel(time, pdata->ioaddr + SRTC_LPSCMR); 197 rtc_time64_to_tm(readl(ioaddr + SRTC_LPSAR), &alrm->time); 240 const time64_t time = rtc_tm_to_time64(&alrm->time); local 247 writel((u32)time, pdat [all...] |
H A D | rtc-ds1553.c | 102 /* give enough time to update RTC in case of continuous read */ 157 pdata->alrm_mday = alrm->time.tm_mday; 158 pdata->alrm_hour = alrm->time.tm_hour; 159 pdata->alrm_min = alrm->time.tm_min; 160 pdata->alrm_sec = alrm->time.tm_sec; 173 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; 174 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; 175 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; 176 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec;
|
H A D | rtc-stk17ta8.c | 102 /* give enough time to update RTC in case of continuous read */ 165 pdata->alrm_mday = alrm->time.tm_mday; 166 pdata->alrm_hour = alrm->time.tm_hour; 167 pdata->alrm_min = alrm->time.tm_min; 168 pdata->alrm_sec = alrm->time.tm_sec; 181 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; 182 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; 183 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; 184 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec;
|
/linux-master/fs/exfat/ |
H A D | misc.c | 9 #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/lib/ |
H A D | test_bitmap.c | 524 ktime_t time; local 530 time = ktime_get(); 532 time = ktime_get() - time; 552 i, ptest.in, time); 564 ktime_t time; local 574 time = ktime_get(); 576 time = ktime_get() - time; 590 pr_info("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time); 640 ktime_t time; local 1408 ktime_t time; local 1434 ktime_t time; local [all...] |
/linux-master/tools/power/cpupower/bench/ |
H A D | parse.c | 11 #include <time.h> 88 dirname, sysdata.nodename, sysdata.release, time(NULL)); 91 dirname, time(NULL));
|
/linux-master/fs/ubifs/ |
H A D | shrinker.c | 23 * 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.
|
/linux-master/tools/testing/selftests/powerpc/stringloops/ |
H A D | memcmp.c | 6 #include <time.h> 96 srandom(time(0)); 122 srandom(time(0));
|
/linux-master/arch/um/drivers/ |
H A D | rtc_kern.c | 7 #include <linux/time-internal.h> 37 /* Use this to get correct time in time-travel mode */ 46 rtc_time64_to_tm(uml_rtc_alarm_time, &alrm->time); 85 uml_rtc_alarm_time = rtc_tm_to_time64(&alrm->time);
|
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | led.c | 23 /* Throughput OFF time(ms) ON time (ms) 59 * Need to compensate on the led on/off time per HW according to the deviation 67 u8 time, u16 compensation) 71 "use pre-defined blinking time\n"); 72 return time; 75 return (u8)((time * compensation) >> 6); 66 iwl_blink_compensation(struct iwl_priv *priv, u8 time, u16 compensation) argument
|
/linux-master/sound/drivers/opl3/ |
H A D | opl3_midi.c | 114 printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice); 144 unsigned int time; member in struct:best 150 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ 163 voice_time = vp->time; 183 voice_time = max(voice_time, vp2->time); 197 if (voice_time < bp->time) { 198 bp->time = voice_time; 560 vp->time = opl3->use_time++; 568 vp2->time = opl3->use_time++; 576 vp2->time [all...] |
/linux-master/samples/bpf/ |
H A D | xdp_adjust_tail_user.c | 20 #include <time.h> 54 time_t started_at = time(NULL); 59 while (!kill_after_s || time(NULL) - started_at <= kill_after_s) {
|
/linux-master/sound/soc/codecs/aw88395/ |
H A D | aw88395.c | 124 int time; local 126 time = ucontrol->value.integer.value[0]; 128 if (time < mc->min || time > mc->max) 131 if (time != aw_dev->fade_in_time) { 132 aw_dev->fade_in_time = time; 159 int time; local 161 time = ucontrol->value.integer.value[0]; 162 if (time < mc->min || time > m [all...] |
/linux-master/tools/testing/selftests/mm/ |
H A D | mlock-random-test.c | 15 #include <time.h> 145 srand(time(NULL)); 212 srand(time(NULL));
|
/linux-master/drivers/iio/ |
H A D | industrialio-gts-helper.c | 2 /* gain-time-scale conversion helpers for IIO light sensors 45 * gain_get_scale_fraction - get the gain or time based on scale and known one 50 * @scale: Linearized scale to compute the gain/time for. 51 * @known: Either integration time or gain depending on which one is known 52 * @unknown: Pointer to variable where the computed gain/time is stored 55 * Compute either gain or time based on scale and either the gain or time 115 * @gts: Gain time scale descriptor 121 * generated by HW-gain or integration time. It is up to caller to decide what 122 * part of the total gain is due to integration time an 659 iio_gts_avail_scales_for_time(struct iio_gts *gts, int time, const int **vals, int *type, int *length) argument 829 const struct iio_itime_sel_mul *time; local 913 iio_gts_get_total_gain(struct iio_gts *gts, int gain, int time) argument 930 iio_gts_get_scale_linear(struct iio_gts *gts, int gain, int time, u64 *scale) argument 961 iio_gts_get_scale(struct iio_gts *gts, int gain, int time, int *scale_int, int *scale_nano) argument [all...] |
/linux-master/kernel/power/ |
H A D | suspend_test.c | 15 * time in the future, then suspending. Suspending the devices won't 18 * The time it takes is system-specific though, so when we test this 19 * during system bootup we allow a LOT of time. 54 "Component: %s, time: %u\n", label, msec); 65 KERN_ERR "PM: can't read %s time, err %d\n"; 79 status = rtc_read_time(rtc, &alm.time); 84 now = rtc_tm_to_time64(&alm.time); 87 rtc_time64_to_tm(now + TEST_SUSPEND_SECONDS, &alm.time); 142 * at startup time. They're normally disabled, for faster boot and because
|
/linux-master/tools/perf/ |
H A D | builtin-timechart.c | 189 u64 time; member in struct:wake_event 339 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); 349 pid_exit(tchart, event->fork.pid, event->fork.time); 434 we->time = timestamp; 583 if (!tchart->first_time || tchart->first_time > sample->time) 584 tchart->first_time = sample->time; 585 if (tchart->last_time < sample->time) 586 tchart->last_time = sample->time; 608 c_state_end(tchart, cpu_id, sample->time); 610 c_state_start(cpu_id, sample->time, stat [all...] |
/linux-master/net/atm/ |
H A D | mpoa_caches.h | 20 time64_t time; member in struct:in_cache_entry 57 time64_t time; member in struct:eg_cache_entry
|