/openbmc/u-boot/drivers/rtc/ |
H A D | rtc-lib.c | 24 * The number of days in the month. 41 int days; in rtc_to_tm() local 43 days = div_u64_rem(time, 86400, &secs); in rtc_to_tm() 46 tm->tm_wday = (days + 4) % 7; in rtc_to_tm() 48 year = 1970 + days / 365; in rtc_to_tm() 49 days -= (year - 1970) * 365 in rtc_to_tm() 52 while (days < 0) { in rtc_to_tm() 54 days += 365 + is_leap_year(year); in rtc_to_tm() 57 tm->tm_yday = days + 1; in rtc_to_tm() 62 newdays = days - rtc_month_days(month, year); in rtc_to_tm() [all …]
|
H A D | mcfrtc.c | 30 rtc_days = rtc->days; in rtc_get() 59 int days, i, months; in rtc_set() local 71 /* calculate days by years */ in rtc_set() 72 for (i = STARTOFTIME, days = 0; i < tmp->tm_year; i++) { in rtc_set() 73 days += 365 + isleap(i); in rtc_set() 76 /* calculate days by months */ in rtc_set() 79 days += month_days[i]; in rtc_set() 82 days += isleap(i); in rtc_set() 85 days += tmp->tm_mday - 1; in rtc_set() 87 rtc->days = days; in rtc_set()
|
H A D | date.c | 85 int days, hours; in rtc_mktime() local 93 days = (unsigned long)(year / 4 - year / 100 + year / 400 + in rtc_mktime() 96 hours = days * 24 + tm->tm_hour; in rtc_mktime()
|
/openbmc/u-boot/include/linux/ |
H A D | time.h | 36 int tm_yday; /* Days in year.[0-365] */ 84 long days, rem; member 89 days = ((long) *tim_p) / SECSPERDAY; 94 --days; 104 if ((res->tm_wday = ((EPOCH_WDAY + days) % DAYSPERWEEK)) < 0) 109 if (days >= 0) 114 if (days < year_lengths[yleap]) 117 days -= year_lengths[yleap]; 126 days += year_lengths[yleap]; 127 } while (days < 0); [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-pcap.c | 46 u32 days; /* days since 1/1/1970 */ in pcap_rtc_read_alarm() local 51 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); in pcap_rtc_read_alarm() 52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm() 63 u32 tod, days; in pcap_rtc_set_alarm() local 68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm() 69 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); in pcap_rtc_set_alarm() 78 u32 tod, days; in pcap_rtc_read_time() local 83 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAY, &days); in pcap_rtc_read_time() 84 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_time() 95 u32 tod, days; in pcap_rtc_set_time() local [all …]
|
H A D | rtc-mc13xxx.c | 92 unsigned int seconds, days; in mc13xxx_rtc_set_time() local 96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_time() 116 * write seconds=0 to prevent a day switch between writing days in mc13xxx_rtc_set_time() 123 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAY, days); in mc13xxx_rtc_set_time() 158 unsigned int seconds, days; in mc13xxx_rtc_read_alarm() local 173 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days); in mc13xxx_rtc_read_alarm() 189 s1970 = (time64_t)days * SEC_PER_DAY + seconds; in mc13xxx_rtc_read_alarm() 201 u32 seconds, days; in mc13xxx_rtc_set_alarm() local 225 days = div_s64_rem(s1970, SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_alarm() 227 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAYA, days); in mc13xxx_rtc_set_alarm() [all …]
|
H A D | lib_test.c | 37 * = (160000 / 400) * 146097 days in rtc_time64_to_tm_test_date_range() 49 s64 days; in rtc_time64_to_tm_test_date_range() local 55 days = div_s64(secs, 86400); in rtc_time64_to_tm_test_date_range() 58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
|
H A D | rtc-ftrtc010.c | 68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local 74 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_read_time() 77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time() 112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local 174 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_probe() 176 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
|
H A D | lib.c | 28 * The number of days in the month. 37 * The number of days since January 1. (0 to 365) 55 int days; in rtc_time64_to_tm() local 63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm() 66 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm() 96 udays = ((u32) days) + 719468; in rtc_time64_to_tm()
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | Schedule.v1_2_5.json | 7 "description": "Days of the week.", 29 …When used in array properties, such as for enabling a function on certain days, it shall be the on… 31 "longDescription": "Days of the week.", 92 …"description": "Days of the month when scheduled occurrences are enabled. `0` indicates that ever… 99 …days of the month when scheduled occurrences are enabled, for enabled days of week and months of y… 106 …tion": "Days of the week when scheduled occurrences are enabled, for enabled days of the month and… 117 …"longDescription": "Days of the week when scheduled occurrences are enabled. If not present, all … 146 …s of the year when scheduled occurrences are enabled, for enabled days of week and days of month. …
|
/openbmc/bmcweb/redfish-core/src/utils/ |
H A D | time_utils.cpp | 43 Days, in fromDurationString() enumerator 61 stage = ProcessingStage::Days; in fromDurationString() 64 if (stage == ProcessingStage::Days) in fromDurationString() 88 if (stage > ProcessingStage::Days) in fromDurationString() 92 out += std::chrono::days(ticks); in fromDurationString() 173 std::chrono::days days = std::chrono::floor<std::chrono::days>(ms); in toDurationString() local 174 ms -= days; in toDurationString() 185 if (days.count() > 0) in toDurationString() 187 daysStr = std::format("{}D", days.count()); in toDurationString() 234 // Preconditions: z is number of days since 1970-01-01 and is in the range: [all …]
|
/openbmc/linux/arch/m68k/mac/ |
H A D | misc.c | 549 /* How many days come before each month (0-12). */ in unmktime() 557 int days, rem, y, wday, yday; in unmktime() local 560 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime() 564 --days; in unmktime() 568 ++days; in unmktime() 575 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime() 584 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime() 586 /* Guess a corrected year, assuming 365 days per year. */ in unmktime() 587 long int yg = y + days / 365 - (days % 365 < 0); in unmktime() 589 /* Adjust DAYS and Y to match the guessed year. */ in unmktime() [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | Schedule_v1.xml | 69 …String="Days of the week when scheduled occurrences are enabled, for enabled days of the month and… 70 …rm="OData.LongDescription" String="Days of the week when scheduled occurrences are enabled. If no… 74 …<Annotation Term="OData.Description" String="Days of the month when scheduled occurrences are enab… 75 …days of the month when scheduled occurrences are enabled, for enabled days of week and months of y… 82 …s of the year when scheduled occurrences are enabled, for enabled days of week and days of month. … 87 <Annotation Term="OData.Description" String="Days of the week."/> 88 <Annotation Term="OData.LongDescription" String="Days of the week."/> 112 …When used in array properties, such as for enabling a function on certain days, it shall be the on…
|
/openbmc/linux/kernel/time/ |
H A D | timeconv.c | 52 long days, rem; in time64_to_tm() local 55 days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); in time64_to_tm() 60 --days; in time64_to_tm() 64 ++days; in time64_to_tm() 73 result->tm_wday = (4 + days) % 7; in time64_to_tm() 105 udays = ((u64) days) + 2305843009213814918ULL; in time64_to_tm()
|
H A D | time_test.c | 57 * = (80000 / 400) * 146097 days in time64_to_tm_test_date_range() 68 s64 days; in time64_to_tm_test_date_range() local 74 days = div_s64(secs, 86400); in time64_to_tm_test_date_range() 77 year, month, mdday, yday, days in time64_to_tm_test_date_range()
|
/openbmc/openbmc/.github/ |
H A D | stale.yml | 3 # Number of days of inactivity before an issue becomes stale (6 months) 6 # Number of days of inactivity before a stale issue is closed 16 next 30 days. If this issue should not be closed please add a comment.
|
/openbmc/telemetry/redfish-tests/ |
H A D | redfish_requests.py | 117 days = int(time / (24 * 60 * 60)) 123 return f"P{str(days)}DT{str(hours)}H{str(minutes)}M{str(time)}S" 130 days = r.group(1) 135 if days is not None: 136 result += int(days[:-1]) * 60 * 60 * 24
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | rtc.h | 22 u32 days; /* 0x20 Days Counter Register */ member 23 u32 alrm_day; /* 0x24 Days Alarm Register */ 86 /* Bit definitions and macros for DAYS */
|
/openbmc/openbmc/poky/meta/files/common-licenses/ |
H A D | Parity-7.0.0 | 27 1. You don't use it for more than thirty days. 45 3. Take these steps within thirty days. 51 …days of learning you broke the rule. You're excused for unknowingly breaking [Notices](#notices) …
|
/openbmc/docs/tof/ |
H A D | contract.md | 76 Once an issue has a proposal, TOF members have 8 days to vote on the proposal in 77 one of three ways: for, against, or “needs discussion”. After 8 days, if the 82 not stagnate, if the initial 8 days elapses and the minimum number of votes has 83 not been met, the proposal is extended by an additional 6 days and then put onto
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_log_rlimit.c | 52 * In the early days of rmap+reflink, we always set the rmap maxlevels in xfs_log_calc_trans_resv_for_minlogblocks() 66 * In the early days of reflink, typical log operation counts in xfs_log_calc_trans_resv_for_minlogblocks() 75 * In the early days of non-reflink rmap, the impact of rmapbt in xfs_log_calc_trans_resv_for_minlogblocks() 84 * In the early days of reflink, we did not use deferred refcount in xfs_log_calc_trans_resv_for_minlogblocks()
|
/openbmc/qemu/.gitlab-ci.d/ |
H A D | buildtest-template.yml | 51 expire_in: 2 days 87 expire_in: 7 days 104 expire_in: 7 days
|
/openbmc/linux/net/netfilter/ |
H A D | xt_time.c | 74 * Since we match against days and daytime, the SSTE value needs to be 113 * In each year, a certain number of days-since-the-epoch have passed. in localtime_3() 114 * Find the year that is closest to said days. in localtime_3() 131 * number of days-since-New Year have passed, and find the closest in localtime_3() 233 /* Do not spend time computing monthday if all days match anyway */ in time_mt()
|
/openbmc/openbmc/meta-security/meta-integrity/scripts/ |
H A D | ima-gen-CA-signed.sh | 44 openssl req -new -nodes -utf8 -sha256 -days 36500 -batch -config $GENKEY \ 47 openssl x509 -req -in csr_ima.pem -days 36500 -extfile $GENKEY -extensions v3_usr \
|
/openbmc/openbmc-test-automation/docs/ |
H A D | openbmc_test_tools.md | 173 openssl req -x509 -sha256 -newkey rsa:2048 -nodes -days <number of days a certificate is valid for>… 179 openssl req -x509 -sha256 -newkey rsa:2048 -nodes -days 365 -keyout certificate.pem -out certificat…
|