/linux-2.4.37.9/arch/mips/galileo-boards/ev96100/ |
D | time.c | 195 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 200 *tv = xtime; in do_gettimeofday() 201 tv->tv_usec += do_fast_gettimeoffset(); in do_gettimeofday() 208 tv->tv_usec += USECS_PER_JIFFY; in do_gettimeofday() 212 if (tv->tv_usec >= 1000000) { in do_gettimeofday() 213 tv->tv_usec -= 1000000; in do_gettimeofday() 214 tv->tv_sec++; in do_gettimeofday() 218 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 227 tv->tv_usec -= do_fast_gettimeoffset(); in do_settimeofday() 229 if (tv->tv_usec < 0) { in do_settimeofday() [all …]
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | vsyscall.c | 56 static force_inline void do_vgettimeofday(struct timeval * tv) in do_vgettimeofday() argument 85 tv->tv_sec = sec + usec / 1000000; in do_vgettimeofday() 86 tv->tv_usec = usec % 1000000; in do_vgettimeofday() 104 static long __vsyscall(0) vgettimeofday(struct timeval * tv, struct timezone * tz) in vgettimeofday() argument 106 if (tv) in vgettimeofday() 107 do_vgettimeofday(tv); in vgettimeofday() 117 struct timeval tv; in vtime() local 118 vgettimeofday(&tv, NULL); in vtime() 119 if (tp) *tp = tv.tv_sec; in vtime() 120 return tv.tv_sec; in vtime()
|
/linux-2.4.37.9/arch/arm/kernel/ |
D | time.c | 152 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 175 tv->tv_sec = sec; in do_gettimeofday() 176 tv->tv_usec = usec; in do_gettimeofday() 179 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 188 tv->tv_usec -= gettimeoffset(); in do_settimeofday() 189 tv->tv_usec -= (jiffies - wall_jiffies) * USECS_PER_JIFFY; in do_settimeofday() 191 while (tv->tv_usec < 0) { in do_settimeofday() 192 tv->tv_usec += 1000000; in do_settimeofday() 193 tv->tv_sec--; in do_settimeofday() 196 xtime = *tv; in do_settimeofday()
|
/linux-2.4.37.9/arch/m68k/kernel/ |
D | time.c | 110 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 130 tv->tv_sec = sec; in do_gettimeofday() 131 tv->tv_usec = usec; in do_gettimeofday() 134 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 143 tv->tv_usec -= mach_gettimeoffset(); in do_settimeofday() 145 while (tv->tv_usec < 0) { in do_settimeofday() 146 tv->tv_usec += 1000000; in do_settimeofday() 147 tv->tv_sec--; in do_settimeofday() 150 xtime = *tv; in do_settimeofday()
|
/linux-2.4.37.9/arch/parisc/kernel/ |
D | time.c | 159 do_gettimeofday (struct timeval *tv) in do_gettimeofday() argument 177 tv->tv_sec = sec; in do_gettimeofday() 178 tv->tv_usec = usec; in do_gettimeofday() 182 do_settimeofday (struct timeval *tv) in do_settimeofday() argument 193 tv->tv_usec -= gettimeoffset(); in do_settimeofday() 194 tv->tv_usec -= (jiffies - wall_jiffies) * (1000000 / HZ); in do_settimeofday() 196 while (tv->tv_usec < 0) { in do_settimeofday() 197 tv->tv_usec += 1000000; in do_settimeofday() 198 tv->tv_sec--; in do_settimeofday() 201 xtime = *tv; in do_settimeofday()
|
/linux-2.4.37.9/arch/s390x/kernel/ |
D | time.c | 76 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 91 tv->tv_sec = sec; in do_gettimeofday() 92 tv->tv_usec = usec; in do_gettimeofday() 95 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 105 tv->tv_usec -= do_gettimeoffset(); in do_settimeofday() 107 while (tv->tv_usec < 0) { in do_settimeofday() 108 tv->tv_usec += 1000000; in do_settimeofday() 109 tv->tv_sec--; in do_settimeofday() 112 xtime = *tv; in do_settimeofday()
|
/linux-2.4.37.9/arch/s390/kernel/ |
D | time.c | 103 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 118 tv->tv_sec = sec; in do_gettimeofday() 119 tv->tv_usec = usec; in do_gettimeofday() 122 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 132 tv->tv_usec -= do_gettimeoffset(); in do_settimeofday() 134 while (tv->tv_usec < 0) { in do_settimeofday() 135 tv->tv_usec += 1000000; in do_settimeofday() 136 tv->tv_sec--; in do_settimeofday() 139 xtime = *tv; in do_settimeofday()
|
/linux-2.4.37.9/arch/mips64/kernel/ |
D | time.c | 158 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 164 *tv = xtime; in do_gettimeofday() 165 tv->tv_usec += do_gettimeoffset(); in do_gettimeofday() 172 tv->tv_usec += lost * USECS_PER_JIFFY; in do_gettimeofday() 176 while (tv->tv_usec >= 1000000) { in do_gettimeofday() 177 tv->tv_usec -= 1000000; in do_gettimeofday() 178 tv->tv_sec++; in do_gettimeofday() 182 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 192 tv->tv_usec -= do_gettimeoffset(); in do_settimeofday() 193 tv->tv_usec -= (jiffies - wall_jiffies) * USECS_PER_JIFFY; in do_settimeofday() [all …]
|
/linux-2.4.37.9/arch/mips/kernel/ |
D | time.c | 158 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 164 *tv = xtime; in do_gettimeofday() 165 tv->tv_usec += do_gettimeoffset(); in do_gettimeofday() 172 tv->tv_usec += lost * USECS_PER_JIFFY; in do_gettimeofday() 176 while (tv->tv_usec >= 1000000) { in do_gettimeofday() 177 tv->tv_usec -= 1000000; in do_gettimeofday() 178 tv->tv_sec++; in do_gettimeofday() 182 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 192 tv->tv_usec -= do_gettimeoffset(); in do_settimeofday() 193 tv->tv_usec -= (jiffies - wall_jiffies) * USECS_PER_JIFFY; in do_settimeofday() [all …]
|
/linux-2.4.37.9/arch/sh/kernel/ |
D | rtc-aica.c | 31 void aica_rtc_gettimeofday(struct timeval *tv) { in aica_rtc_gettimeofday() argument 42 tv->tv_sec = val1 - TWENTY_YEARS; in aica_rtc_gettimeofday() 45 tv->tv_usec = 0; in aica_rtc_gettimeofday() 54 int aica_rtc_settimeofday(const struct timeval *tv) { in aica_rtc_settimeofday() argument 56 unsigned long secs = tv->tv_sec + TWENTY_YEARS; in aica_rtc_settimeofday()
|
D | rtc-snapgear.c | 174 void snapgear_rtc_gettimeofday(struct timeval *tv) in snapgear_rtc_gettimeofday() argument 179 sh_rtc_gettimeofday(tv); in snapgear_rtc_gettimeofday() 204 tv->tv_sec = mktime(2000 + yr, mon, day, hr, min, sec); in snapgear_rtc_gettimeofday() 205 if (tv->tv_sec < 0) { in snapgear_rtc_gettimeofday() 212 tv->tv_usec = 0; in snapgear_rtc_gettimeofday() 215 int snapgear_rtc_settimeofday(const struct timeval *tv) in snapgear_rtc_settimeofday() argument 222 sh_rtc_settimeofday(tv); in snapgear_rtc_settimeofday() 231 nowtime = tv->tv_sec; in snapgear_rtc_settimeofday()
|
D | rtc.c | 24 void sh_rtc_gettimeofday(struct timeval *tv) in sh_rtc_gettimeofday() argument 94 tv->tv_sec = mktime(yr100 * 100 + yr, mon, day, hr, min, sec); in sh_rtc_gettimeofday() 95 tv->tv_usec = (sec128 * 1000000) / 128; in sh_rtc_gettimeofday() 98 int sh_rtc_settimeofday(const struct timeval *tv) in sh_rtc_settimeofday() argument 100 unsigned long nowtime = tv->tv_sec; in sh_rtc_settimeofday()
|
D | time.c | 155 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 176 tv->tv_sec = sec; in do_gettimeofday() 177 tv->tv_usec = usec; in do_gettimeofday() 180 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 189 tv->tv_usec -= do_gettimeoffset(); in do_settimeofday() 190 tv->tv_usec -= (jiffies - wall_jiffies) * (1000000 / HZ); in do_settimeofday() 192 while (tv->tv_usec < 0) { in do_settimeofday() 193 tv->tv_usec += 1000000; in do_settimeofday() 194 tv->tv_sec--; in do_settimeofday() 197 xtime = *tv; in do_settimeofday()
|
/linux-2.4.37.9/kernel/ |
D | time.c | 97 asmlinkage long sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() argument 99 if (tv) { in sys_gettimeofday() 102 if (copy_to_user(tv, &ktv, sizeof(ktv))) in sys_gettimeofday() 148 int do_sys_settimeofday(struct timeval *tv, struct timezone *tz) in do_sys_settimeofday() argument 160 if (!tv) in do_sys_settimeofday() 164 if (tv) in do_sys_settimeofday() 169 do_settimeofday(tv); in do_sys_settimeofday() 174 asmlinkage long sys_settimeofday(struct timeval *tv, struct timezone *tz) in sys_settimeofday() argument 179 if (tv) { in sys_settimeofday() 180 if (copy_from_user(&new_tv, tv, sizeof(*tv))) in sys_settimeofday() [all …]
|
/linux-2.4.37.9/arch/ia64/kernel/ |
D | time.c | 85 do_settimeofday (struct timeval *tv) in do_settimeofday() argument 95 tv->tv_usec -= gettimeoffset(); in do_settimeofday() 97 while (tv->tv_usec < 0) { in do_settimeofday() 98 tv->tv_usec += 1000000; in do_settimeofday() 99 tv->tv_sec--; in do_settimeofday() 102 xtime = *tv; in do_settimeofday() 112 do_gettimeofday (struct timeval *tv) in do_gettimeofday() argument 142 tv->tv_sec = sec; in do_gettimeofday() 143 tv->tv_usec = usec; in do_gettimeofday()
|
/linux-2.4.37.9/fs/xfs/linux-2.4/ |
D | time.h | 48 struct timeval tv; in nanotime() local 50 do_gettimeofday(&tv); in nanotime() 51 tvp->tv_sec = tv.tv_sec; in nanotime() 52 tvp->tv_nsec = tv.tv_usec * 1000; in nanotime()
|
/linux-2.4.37.9/include/net/ |
D | pkt_sched.h | 341 #define PSCHED_TADD2(tv, delta, tv_res) \ argument 343 int __delta = (tv).tv_usec + (delta); \ 344 (tv_res).tv_sec = (tv).tv_sec; \ 349 #define PSCHED_TADD(tv, delta) \ argument 351 (tv).tv_usec += (delta); \ 352 if ((tv).tv_usec > 1000000) { (tv).tv_sec++; \ 353 (tv).tv_usec -= 1000000; } \ 377 #define PSCHED_TADD2(tv, delta, tv_res) ((tv_res) = (tv) + (delta)) argument 378 #define PSCHED_TADD(tv, delta) ((tv) += (delta)) argument
|
/linux-2.4.37.9/arch/cris/kernel/ |
D | fasttimer.c | 190 void __INLINE__ do_gettimeofday_fast(struct timeval *tv) in do_gettimeofday_fast() argument 203 tv->tv_sec = sec; in do_gettimeofday_fast() 204 tv->tv_usec = usec; in do_gettimeofday_fast() 453 struct timeval tv; in timer1_handler() local 456 do_gettimeofday_fast(&tv); in timer1_handler() 457 D1(printk("t: %is %06ius\n", tv.tv_sec, tv.tv_usec)); in timer1_handler() 459 if (timeval_cmp(&t->tv_expires, &tv) <= 0) in timer1_handler() 507 struct timeval tv; in timer1_handler() local 509 do_gettimeofday_fast(&tv); in timer1_handler() 510 us = ((t->tv_expires.tv_sec - tv.tv_sec) * 1000000 + in timer1_handler() [all …]
|
/linux-2.4.37.9/drivers/hil/ |
D | hp_sdc_rtc.c | 445 struct timeval tv; in hp_sdc_rtc_proc_output() local 463 if (hp_sdc_rtc_read_rt(&tv)) { in hp_sdc_rtc_proc_output() 467 tv.tv_sec, tv.tv_usec/1000); in hp_sdc_rtc_proc_output() 470 if (hp_sdc_rtc_read_fhs(&tv)) { in hp_sdc_rtc_proc_output() 474 tv.tv_sec, tv.tv_usec/1000); in hp_sdc_rtc_proc_output() 477 if (hp_sdc_rtc_read_mt(&tv)) { in hp_sdc_rtc_proc_output() 481 tv.tv_sec, tv.tv_usec/1000); in hp_sdc_rtc_proc_output() 484 if (hp_sdc_rtc_read_dt(&tv)) { in hp_sdc_rtc_proc_output() 488 tv.tv_sec, tv.tv_usec/1000); in hp_sdc_rtc_proc_output() 491 if (hp_sdc_rtc_read_ct(&tv)) { in hp_sdc_rtc_proc_output() [all …]
|
/linux-2.4.37.9/arch/mips/baget/ |
D | time.c | 80 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 85 *tv = xtime; in do_gettimeofday() 89 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 92 xtime = *tv; in do_settimeofday()
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | time.c | 72 extern int do_sys_settimeofday(struct timeval *tv, struct timezone *tz); 217 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 241 tv->tv_sec = sec; in do_gettimeofday() 242 tv->tv_usec = usec; in do_gettimeofday() 245 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 271 new_sec = tv->tv_sec; in do_settimeofday() 272 new_usec = tv->tv_usec - mulhwu(tb_to_us, tb_delta); in do_settimeofday()
|
/linux-2.4.37.9/net/khttpd/ |
D | rfc_time.c | 163 struct timeval tv; in UpdateCurrentDate() local 165 do_gettimeofday(&tv); in UpdateCurrentDate() 166 if (CurrentTime_i!=tv.tv_sec) in UpdateCurrentDate() 167 time_Unix2RFC(tv.tv_sec,CurrentTime); in UpdateCurrentDate() 169 CurrentTime_i = tv.tv_sec; in UpdateCurrentDate()
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | pcic.c | 195 static void pci_do_gettimeofday(struct timeval *tv); 196 static void pci_do_settimeofday(struct timeval *tv); 807 static void pci_do_gettimeofday(struct timeval *tv) in pci_do_gettimeofday() argument 812 *tv = xtime; in pci_do_gettimeofday() 813 tv->tv_usec += do_gettimeoffset(); in pci_do_gettimeofday() 821 tv->tv_usec += USECS_PER_JIFFY; in pci_do_gettimeofday() 825 if (tv->tv_usec >= 1000000) { in pci_do_gettimeofday() 826 tv->tv_usec -= 1000000; in pci_do_gettimeofday() 827 tv->tv_sec++; in pci_do_gettimeofday() 831 static void pci_do_settimeofday(struct timeval *tv) in pci_do_settimeofday() argument [all …]
|
D | time.c | 51 static void sbus_do_settimeofday(struct timeval *tv); 471 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument 512 void do_settimeofday(struct timeval *tv) in do_settimeofday() argument 515 bus_do_settimeofday(tv); in do_settimeofday() 519 static void sbus_do_settimeofday(struct timeval *tv) in sbus_do_settimeofday() argument 521 tv->tv_usec -= do_gettimeoffset(); in sbus_do_settimeofday() 522 if(tv->tv_usec < 0) { in sbus_do_settimeofday() 523 tv->tv_usec += 1000000; in sbus_do_settimeofday() 524 tv->tv_sec--; in sbus_do_settimeofday() 526 xtime = *tv; in sbus_do_settimeofday()
|
/linux-2.4.37.9/include/asm-sparc/ |
D | timer.h | 107 BTFIXUPDEF_CALL(void, bus_do_settimeofday, struct timeval *tv) 108 #define bus_do_settimeofday(tv) BTFIXUP_CALL(bus_do_settimeofday)(tv) argument
|