/drivers/cpufreq/ |
H A D | ppc_cbe_cpufreq_pervasive.c | 28 #include <linux/time.h> 60 long time; local 69 time = jiffies; 94 time = jiffies - time; 95 time = jiffies_to_msecs(time); 97 "pervasive unit\n", time);
|
H A D | ppc_cbe_cpufreq_pmi.c | 35 #include <asm/time.h> 54 long time; local 61 time = jiffies; 66 time = jiffies - time; 67 time = jiffies_to_msecs(time); 69 "PMI\n", time);
|
/drivers/media/platform/vivid/ |
H A D | vivid-rds-gen.c | 49 * Group 56 contains the time (group 4A). 60 unsigned time; local 107 time = (tm.tm_hour << 12) | 115 data[2].lsb |= (time >> 16) & 1; 118 data[3].lsb = time & 0xff; 119 data[3].msb = (time >> 8) & 0xff;
|
/drivers/rtc/ |
H A D | rtc-dm355evm.c | 39 union evm_time time; local 52 if (tries && time.bytes[0] == status) 54 time.bytes[0] = status; 59 if (tries && time.bytes[1] == status) 61 time.bytes[1] = status; 66 if (tries && time.bytes[2] == status) 68 time.bytes[2] = status; 73 if (tries && time.bytes[3] == status) 75 time.bytes[3] = status; 79 dev_dbg(dev, "read timestamp %08x\n", time 87 union evm_time time; local [all...] |
H A D | rtc-lib.c | 2 * rtc and date/time utility functions 51 void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) argument 56 days = time / 86400; 57 time -= (unsigned int) days * 86400; 84 tm->tm_hour = time / 3600; 85 time -= tm->tm_hour * 3600; 86 tm->tm_min = time / 60; 87 tm->tm_sec = time - tm->tm_min * 60; 94 * Does the rtc_time represent a valid date/time? 114 int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) argument 127 time_t time; local [all...] |
H A D | rtc-sun4v.c | 19 unsigned long ret, time; local 23 ret = sun4v_tod_get(&time); 25 return time;
|
H A D | rtc-pl030.c | 42 rtc_time_to_tm(readl(rtc->base + RTC_MR), &alrm->time); 49 unsigned long time; local 55 ret = rtc_valid_tm(&alrm->time); 57 ret = rtc_tm_to_time(&alrm->time, &time); 59 writel(time, rtc->base + RTC_MR); 73 * Set the RTC time. Unfortunately, we can't accurately set 77 * edge of the 1Hz clock, we must write the time one second 83 unsigned long time; local 86 ret = rtc_tm_to_time(tm, &time); [all...] |
H A D | rtc-ab3100.c | 78 unsigned long time; local 94 /* Read out time registers */ 104 time = (unsigned long) (fat_time / 108 rtc_time_to_tm(time, tm); 115 unsigned long time; local 139 time = (unsigned long) (fat_time / (u64) (AB3100_RTC_CLOCK_RATE * 2)); 141 rtc_time_to_tm(time, &alarm->time); 143 return rtc_valid_tm(&alarm->time); 155 rtc_tm_to_time(&alarm->time, [all...] |
H A D | rtc-coh901331.c | 24 /* Used to set current time 32bit (R/W) */ 26 /* Indication if current time is valid 32bit (R/-) */ 28 /* Read the current time 32bit (R/-) */ 81 /* Check if the time is valid */ 107 rtc_time_to_tm(readl(rtap->virtbase + COH901331_ALARM), &alarm->time); 118 unsigned long time; local 120 rtc_tm_to_time(&alarm->time, &time); 122 writel(time, rtap->virtbase + COH901331_ALARM);
|
/drivers/tty/hvc/ |
H A D | hvc_dcc.c | 53 unsigned long time = jiffies + (HZ / 10); local 58 while (time_is_after_jiffies(time)) {
|
/drivers/net/fddi/skfp/ |
H A D | smttimer.c | 62 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, argument 69 time /= 16 ; /* input is uS, clock ticks are 16uS */ 70 if (!time) 71 time = 1 ; 79 timer->tm_delta = time ; 80 hwt_start(smc,time) ; 93 if (delta + tm->tm_delta > time) { 101 timer->tm_delta = time - delta ;
|
H A D | hwt.c | 52 * u_long time) ; 56 * time - The time in units of 16us to load the timer with. 63 void hwt_start(struct s_smc *smc, u_long time) argument 67 if (time > HWT_MAX) 68 time = HWT_MAX ; 70 smc->hw.t_start = time ; 73 cnt = (u_short)time ; 75 * if time < 16 us 76 * time 202 u_long time ; local 207 outpd(ADDR(B2_TI_INI),time) ; local [all...] |
/drivers/staging/lustre/lustre/include/linux/ |
H A D | obd.h | 63 unsigned long time; member in struct:__anon6535 79 lock->time = jiffies; 84 time_before(lock->time + 5 * HZ, jiffies)) { 95 (jiffies - lock->time) / HZ); 113 lock->time = jiffies;
|
/drivers/gpu/drm/radeon/ |
H A D | radeon_benchmark.c | 75 unsigned int time, 79 unsigned int throughput = (n * (size >> 10)) / time; 82 kind, n, size >> 10, sdomain, ddomain, time, 93 int time; local 122 time = radeon_benchmark_do_move(rdev, size, saddr, daddr, 124 if (time < 0) 126 if (time > 0) 127 radeon_benchmark_log_results(n, size, time, 132 time = radeon_benchmark_do_move(rdev, size, saddr, daddr, 134 if (time < 74 radeon_benchmark_log_results(int n, unsigned size, unsigned int time, unsigned sdomain, unsigned ddomain, char *kind) argument [all...] |
/drivers/input/ |
H A D | input-compat.h | 33 struct compat_timeval time; member in struct:input_event_compat
|
/drivers/input/joystick/ |
H A D | joydump.c | 45 unsigned int time; member in struct:joydump 97 dump->time = t; 108 dump->time = t; 134 i, dump->time - prev->time);
|
/drivers/net/wireless/iwlwifi/dvm/ |
H A D | led.c | 42 /* Throughput OFF time(ms) ON time (ms) 78 * Need to compensate on the led on/off time per HW according to the deviation 86 u8 time, u16 compensation) 90 "use pre-defined blinking time\n"); 91 return time; 94 return (u8)((time * compensation) >> 6); 137 IWL_DEBUG_LED(priv, "Led blink time compensation=%u\n", 85 iwl_blink_compensation(struct iwl_priv *priv, u8 time, u16 compensation) argument
|
/drivers/staging/gs_fpgaboot/ |
H A D | gs_fpgaboot.h | 53 char time[MAX_STR]; member in struct:fpgaimage
|
/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_time.h | 43 * generic time manipulation functions. 114 struct timespec time; local 116 cfs_fs_time_current(&time); 117 cfs_fs_time_usec(&time, tv); 121 * return valid time-out based on user supplied one. Currently we only check 122 * that time-out is not shorted than allowed.
|
/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_ps.c | 89 void rtl8192_hw_to_sleep(struct net_device *dev, u64 time) argument 98 time -= MSECS(8+16+7); 100 if ((time - jiffies) <= MSECS(MIN_SLEEP_TIME)) { 103 time - jiffies, MSECS(MIN_SLEEP_TIME)); 107 if ((time - jiffies) > MSECS(MAX_SLEEP_TIME)) { 109 time - jiffies, MSECS(MAX_SLEEP_TIME)); 113 tmp = time - jiffies;
|
/drivers/watchdog/ |
H A D | rn5t618_wdt.c | 45 unsigned int time; member in struct:__anon7288 60 if (rn5t618_wdt_map[i].time + 1 >= t) 71 wdt_dev->timeout = rn5t618_wdt_map[i].time; 157 min_timeout = rn5t618_wdt_map[0].time; 158 max_timeout = rn5t618_wdt_map[ARRAY_SIZE(rn5t618_wdt_map) - 1].time;
|
H A D | sa1100_wdt.c | 98 int time; local 122 ret = get_user(time, p); 126 if (time <= 0 || (oscr_freq * (long long)time >= 0xffffffff)) { 131 pre_margin = oscr_freq * time;
|
H A D | wm8350_wdt.c | 31 unsigned int time; /* Seconds */ member in struct:__anon7295 47 if (wm8350_wdt_cfgs[i].time == timeout)
|
/drivers/base/power/ |
H A D | trace.c | 28 * can just use the few bytes of actual time data, which means that 32 * (since the time between the hang and the boot might be more 84 static struct rtc_time time = { local 96 time.tm_year = (n % 100); 98 time.tm_mon = (n % 12); 100 time.tm_mday = (n % 28) + 1; 102 time.tm_hour = (n % 24); 104 time.tm_min = (n % 20) * 3; 106 set_rtc_time(&time); 112 struct rtc_time time; local [all...] |
/drivers/gpu/drm/nouveau/core/subdev/timer/ |
H A D | nv04.c | 56 /* reschedule interrupt for next alarm time */ 74 nv04_timer_alarm(struct nouveau_timer *ptimer, u64 time, argument 81 alarm->timestamp = ptimer->read(ptimer) + time; 85 if (!time) { 202 /* restore the time before suspend */ 211 nv_debug(priv, "time low : 0x%08x\n", lo); 212 nv_debug(priv, "time high : 0x%08x\n", hi);
|