days 558 arch/m68k/mac/misc.c int days, rem, y, wday, yday; days 561 arch/m68k/mac/misc.c days = div_u64_rem(time, SECS_PER_DAY, &rem); days 565 arch/m68k/mac/misc.c --days; days 569 arch/m68k/mac/misc.c ++days; days 576 arch/m68k/mac/misc.c wday = (4 + days) % 7; /* Day in the week. Not currently used */ days 585 arch/m68k/mac/misc.c while (days < 0 || days >= (__isleap (y) ? 366 : 365)) days 588 arch/m68k/mac/misc.c long int yg = y + days / 365 - (days % 365 < 0); days 591 arch/m68k/mac/misc.c days -= (yg - y) * 365 + days 596 arch/m68k/mac/misc.c yday = days; /* day in the year. Not currently used. */ days 598 arch/m68k/mac/misc.c for (y = 11; days < (long int) ip[y]; --y) days 600 arch/m68k/mac/misc.c days -= ip[y]; days 602 arch/m68k/mac/misc.c *dayp = days + 1; /* day in the month */ days 204 drivers/input/misc/hp_sdc_rtc.c unsigned int days; days 210 drivers/input/misc/hp_sdc_rtc.c days = (unsigned int)(raw >> 24) & 0xffff; days 213 drivers/input/misc/hp_sdc_rtc.c res->tv_sec = (tenms / 100) + (time64_t)days * 86400; days 292 drivers/input/misc/hp_sdc_rtc.c unsigned int days; days 304 drivers/input/misc/hp_sdc_rtc.c days = setto->tv_sec / 86400; days 306 drivers/input/misc/hp_sdc_rtc.c days += ((setto->tv_sec % 86400) + setto->tv_usec / 1000000) / 86400; days 307 drivers/input/misc/hp_sdc_rtc.c if (days > 0xffff) return -1; days 319 drivers/input/misc/hp_sdc_rtc.c tseq[9] = (uint8_t)(days & 0xff); days 320 drivers/input/misc/hp_sdc_rtc.c tseq[10] = (uint8_t)((days >> 8) & 0xff); days 227 drivers/net/wan/hdlc_cisco.c u32 sec, min, hrs, days; days 231 drivers/net/wan/hdlc_cisco.c days = hrs / 24; hrs -= days * 24; days 233 drivers/net/wan/hdlc_cisco.c days, hrs, min, sec); days 1152 drivers/platform/x86/dell-laptop.c u8 days; days 1234 drivers/platform/x86/dell-laptop.c info->days = (buffer.output[3] >> 24) & 0xFF; days 1450 drivers/platform/x86/dell-laptop.c if (kbd_info.days > 63) days 1451 drivers/platform/x86/dell-laptop.c kbd_info.days = 63; days 1574 drivers/platform/x86/dell-laptop.c if (value > kbd_info.days) days 1616 drivers/platform/x86/dell-laptop.c } else if (value / (60 * 60 * 24) <= kbd_info.days && kbd_info.days) { days 219 drivers/rtc/interface.c unsigned int days; days 358 drivers/rtc/interface.c days = rtc_month_days(alarm->time.tm_mon, days 360 drivers/rtc/interface.c } while (days < alarm->time.tm_mday); days 52 drivers/rtc/lib.c int days; days 55 drivers/rtc/lib.c days = div_s64_rem(time, 86400, &secs); days 58 drivers/rtc/lib.c tm->tm_wday = (days + 4) % 7; days 60 drivers/rtc/lib.c year = 1970 + days / 365; days 61 drivers/rtc/lib.c days -= (year - 1970) * 365 days 64 drivers/rtc/lib.c while (days < 0) { days 66 drivers/rtc/lib.c days += 365 + is_leap_year(year); days 69 drivers/rtc/lib.c tm->tm_yday = days + 1; days 74 drivers/rtc/lib.c newdays = days - rtc_month_days(month, year); days 77 drivers/rtc/lib.c days = newdays; days 80 drivers/rtc/lib.c tm->tm_mday = days + 1; days 230 drivers/rtc/rtc-davinci.c static int convertfromdays(u16 days, struct rtc_time *tm) days 236 drivers/rtc/rtc-davinci.c if (days >= tmp_days) days 237 drivers/rtc/rtc-davinci.c days -= tmp_days; days 241 drivers/rtc/rtc-davinci.c if (days >= tmp_days) { days 242 drivers/rtc/rtc-davinci.c days -= tmp_days; days 246 drivers/rtc/rtc-davinci.c tm->tm_mday = days + 1; days 256 drivers/rtc/rtc-davinci.c static int convert2days(u16 *days, struct rtc_time *tm) days 259 drivers/rtc/rtc-davinci.c *days = 0; days 266 drivers/rtc/rtc-davinci.c *days += rtc_year_days(1, 12, i); days 268 drivers/rtc/rtc-davinci.c *days += rtc_year_days(tm->tm_mday, tm->tm_mon, 1900 + tm->tm_year); days 276 drivers/rtc/rtc-davinci.c u16 days = 0; days 299 drivers/rtc/rtc-davinci.c days |= day1; days 300 drivers/rtc/rtc-davinci.c days <<= 8; days 301 drivers/rtc/rtc-davinci.c days |= day0; days 303 drivers/rtc/rtc-davinci.c if (convertfromdays(days, tm) < 0) days 312 drivers/rtc/rtc-davinci.c u16 days; days 316 drivers/rtc/rtc-davinci.c if (convert2days(&days, tm) < 0) days 331 drivers/rtc/rtc-davinci.c rtcss_write(davinci_rtc, days & 0xFF, PRTCSS_RTC_DAY0); days 334 drivers/rtc/rtc-davinci.c rtcss_write(davinci_rtc, (days & 0xFF00) >> 8, PRTCSS_RTC_DAY1); days 374 drivers/rtc/rtc-davinci.c u16 days = 0; days 395 drivers/rtc/rtc-davinci.c days |= day1; days 396 drivers/rtc/rtc-davinci.c days <<= 8; days 397 drivers/rtc/rtc-davinci.c days |= day0; days 399 drivers/rtc/rtc-davinci.c if (convertfromdays(days, &alm->time) < 0) days 414 drivers/rtc/rtc-davinci.c u16 days; days 437 drivers/rtc/rtc-davinci.c if (convert2days(&days, &alm->time) < 0) days 449 drivers/rtc/rtc-davinci.c rtcss_write(davinci_rtc, days & 0xFF, PRTCSS_RTC_ADAY0); days 452 drivers/rtc/rtc-davinci.c rtcss_write(davinci_rtc, (days & 0xFF00) >> 8, PRTCSS_RTC_ADAY1); days 68 drivers/rtc/rtc-ftrtc010.c u32 days, hour, min, sec, offset; days 74 drivers/rtc/rtc-ftrtc010.c days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); days 77 drivers/rtc/rtc-ftrtc010.c time = offset + days * 86400 + hour * 3600 + min * 60 + sec; days 112 drivers/rtc/rtc-ftrtc010.c u32 days, hour, min, sec; days 168 drivers/rtc/rtc-ftrtc010.c days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); days 170 drivers/rtc/rtc-ftrtc010.c rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + days 92 drivers/rtc/rtc-mc13xxx.c unsigned int seconds, days; days 96 drivers/rtc/rtc-mc13xxx.c days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); days 123 drivers/rtc/rtc-mc13xxx.c ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAY, days); days 158 drivers/rtc/rtc-mc13xxx.c unsigned int seconds, days; days 173 drivers/rtc/rtc-mc13xxx.c ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days); days 189 drivers/rtc/rtc-mc13xxx.c s1970 = (time64_t)days * SEC_PER_DAY + seconds; days 201 drivers/rtc/rtc-mc13xxx.c u32 seconds, days; days 225 drivers/rtc/rtc-mc13xxx.c days = div_s64_rem(s1970, SEC_PER_DAY, &seconds); days 227 drivers/rtc/rtc-mc13xxx.c ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAYA, days); days 153 drivers/rtc/rtc-mt6397.c int days, sec, ret; days 174 drivers/rtc/rtc-mt6397.c days = div_s64(time, 86400); days 175 drivers/rtc/rtc-mt6397.c tm->tm_wday = (days + 4) % 7; days 46 drivers/rtc/rtc-pcap.c u32 days; /* days since 1/1/1970 */ days 51 drivers/rtc/rtc-pcap.c ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); days 52 drivers/rtc/rtc-pcap.c secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; days 63 drivers/rtc/rtc-pcap.c u32 tod, days; days 68 drivers/rtc/rtc-pcap.c days = secs / SEC_PER_DAY; days 69 drivers/rtc/rtc-pcap.c ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); days 78 drivers/rtc/rtc-pcap.c u32 tod, days; days 83 drivers/rtc/rtc-pcap.c ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAY, &days); days 84 drivers/rtc/rtc-pcap.c secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; days 95 drivers/rtc/rtc-pcap.c u32 tod, days; days 100 drivers/rtc/rtc-pcap.c days = secs / SEC_PER_DAY; days 101 drivers/rtc/rtc-pcap.c ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAY, days); days 374 fs/affs/amigaffs.c u32 days; days 381 fs/affs/amigaffs.c days = div_s64_rem(secs, 86400, &rem); days 385 fs/affs/amigaffs.c ds->days = cpu_to_be32(days); days 39 fs/affs/amigaffs.h __be32 days; days 45 fs/affs/amigaffs.h __be16 days; days 153 fs/affs/inode.c = (be32_to_cpu(tail->change.days) * 86400LL + days 948 fs/cifs/netmisc.c time64_t sec, days; days 973 fs/cifs/netmisc.c days = day + total_days_of_prev_months[month]; days 974 fs/cifs/netmisc.c days += 3652; /* account for difference in days between 1980 and 1970 */ days 976 fs/cifs/netmisc.c days += year * 365; days 977 fs/cifs/netmisc.c days += (year/4); /* leap year */ days 985 fs/cifs/netmisc.c days = days - 1; /* do not count leap year for the year 2100 */ days 989 fs/cifs/netmisc.c days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); days 990 fs/cifs/netmisc.c sec += 24 * 60 * 60 * days; days 2537 kernel/debug/kdb/kdb_main.c int days = val.uptime / (24*60*60); days 2539 kernel/debug/kdb/kdb_main.c kdb_printf("%d day%s ", days, days == 1 ? "" : "s"); days 80 kernel/time/timeconv.c long days, rem, y; days 84 kernel/time/timeconv.c days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); days 89 kernel/time/timeconv.c --days; days 93 kernel/time/timeconv.c ++days; days 102 kernel/time/timeconv.c result->tm_wday = (4 + days) % 7; days 108 kernel/time/timeconv.c while (days < 0 || days >= (__isleap(y) ? 366 : 365)) { days 110 kernel/time/timeconv.c long yg = y + math_div(days, 365); days 113 kernel/time/timeconv.c days -= (yg - y) * 365 + leaps_between(y, yg); days 119 kernel/time/timeconv.c result->tm_yday = days; days 122 kernel/time/timeconv.c for (y = 11; days < ip[y]; y--) days 124 kernel/time/timeconv.c days -= ip[y]; days 127 kernel/time/timeconv.c result->tm_mday = days + 1;