Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 1080) sorted by relevance

12345678910>>...44

/openbmc/qemu/tests/qtest/
H A Dm48t59-test.c110 static void cmos_get_date_time(QTestState *s, struct tm *date) in cmos_get_date_time() argument
133 date->tm_isdst = dummy.tm_isdst; in cmos_get_date_time()
134 date->tm_sec = sec; in cmos_get_date_time()
135 date->tm_min = min; in cmos_get_date_time()
136 date->tm_hour = hour; in cmos_get_date_time()
137 date->tm_mday = mday; in cmos_get_date_time()
138 date->tm_mon = mon - 1; in cmos_get_date_time()
139 date->tm_year = base_year + year - 1900; in cmos_get_date_time()
141 date->tm_gmtoff = 0; in cmos_get_date_time()
144 ts = mktime(date); in cmos_get_date_time()
[all …]
H A Drtc-test.c71 static void cmos_get_date_time(struct tm *date) in cmos_get_date_time() argument
107 date->tm_isdst = dummy.tm_isdst; in cmos_get_date_time()
108 date->tm_sec = sec; in cmos_get_date_time()
109 date->tm_min = min; in cmos_get_date_time()
110 date->tm_hour = hour; in cmos_get_date_time()
111 date->tm_mday = mday; in cmos_get_date_time()
112 date->tm_mon = mon - 1; in cmos_get_date_time()
113 date->tm_year = base_year + year - 1900; in cmos_get_date_time()
115 date->tm_gmtoff = 0; in cmos_get_date_time()
118 ts = mktime(date); in cmos_get_date_time()
[all …]
/openbmc/u-boot/drivers/rtc/
H A Ds35392a.c195 u8 date[7]; in s35392a_rtc_get() local
203 ret = s35392a_rtc_read(dev, S35390A_CMD_TIME1, date, sizeof(date)); in s35392a_rtc_get()
211 date[i] = bitrev8(date[i]); in s35392a_rtc_get()
213 tm->tm_sec = bcd2bin(date[S35390A_BYTE_SECS]); in s35392a_rtc_get()
214 tm->tm_min = bcd2bin(date[S35390A_BYTE_MINS]); in s35392a_rtc_get()
215 tm->tm_hour = bcd2bin(date[S35390A_BYTE_HOURS] & ~S35390A_FLAG_24H); in s35392a_rtc_get()
216 tm->tm_wday = bcd2bin(date[S35390A_BYTE_WDAY]); in s35392a_rtc_get()
217 tm->tm_mday = bcd2bin(date[S35390A_BYTE_DAY]); in s35392a_rtc_get()
218 tm->tm_mon = bcd2bin(date[S35390A_BYTE_MONTH]); in s35392a_rtc_get()
219 tm->tm_year = bcd2bin(date[S35390A_BYTE_YEAR]) + 2000; in s35392a_rtc_get()
[all …]
H A Drx8010sj.c207 u8 date[7]; in rx8010sj_rtc_get() local
228 date[i] = ret; in rx8010sj_rtc_get()
231 tmp->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010sj_rtc_get()
232 tmp->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010sj_rtc_get()
233 tmp->tm_hour = bcd2bin(date[RX8010_HOUR - RX8010_SEC] & 0x3f); in rx8010sj_rtc_get()
234 tmp->tm_mday = bcd2bin(date[RX8010_MDAY - RX8010_SEC] & 0x3f); in rx8010sj_rtc_get()
235 tmp->tm_mon = bcd2bin(date[RX8010_MONTH - RX8010_SEC] & 0x1f); in rx8010sj_rtc_get()
236 tmp->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 2000; in rx8010sj_rtc_get()
251 u8 date[7]; in rx8010sj_rtc_set() local
267 date[RX8010_SEC - RX8010_SEC] = bin2bcd(tm->tm_sec); in rx8010sj_rtc_set()
[all …]
H A Dmvrtc.c24 u32 date; in __mv_rtc_get() local
30 date = readl(&regs->date); in __mv_rtc_get()
46 t->tm_mday = bcd2bin((date >> MVRTC_DATE_SFT) & MVRTC_DATE_MSK); in __mv_rtc_get()
47 t->tm_mon = bcd2bin((date >> MVRTC_MON_SFT) & MVRTC_MON_MSK); in __mv_rtc_get()
48 t->tm_year = bcd2bin((date >> MVRTC_YEAR_SFT) & MVRTC_YEAR_MSK); in __mv_rtc_get()
71 u32 date = 0; in __mv_rtc_set() local
84 date |= (bin2bcd(t->tm_mday) & MVRTC_DATE_MSK) << MVRTC_DATE_SFT; in __mv_rtc_set()
85 date |= (bin2bcd(t->tm_mon) & MVRTC_MON_MSK) << MVRTC_MON_SFT; in __mv_rtc_set()
86 date |= (bin2bcd(t->tm_year % 100) & MVRTC_YEAR_MSK) << MVRTC_YEAR_SFT; in __mv_rtc_set()
92 writel(date, &regs->date); in __mv_rtc_set()
/openbmc/linux/fs/fat/
H A Dfat_test.c27 __le16 date; member
37 .date = cpu_to_le16(33),
45 .date = cpu_to_le16(65439),
53 .date = cpu_to_le16(33),
61 .date = cpu_to_le16(65439),
69 .date = cpu_to_le16(8285),
77 .date = cpu_to_le16(10333),
85 .date = cpu_to_le16(61537),
93 .date = cpu_to_le16(12380),
101 .date = cpu_to_le16(12385),
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-rx4581.c97 unsigned char date[7]; in rx4581_get_datetime() local
125 date[0] = 0x80; in rx4581_get_datetime()
126 err = spi_write_then_read(spi, date, 1, date, 7); in rx4581_get_datetime()
148 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx4581_get_datetime()
150 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime()
151 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F); in rx4581_get_datetime()
152 tm->tm_hour = bcd2bin(date[RX4581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx4581_get_datetime()
153 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); in rx4581_get_datetime()
154 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime()
155 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx4581_get_datetime()
[all …]
H A Drtc-rx8581.c72 unsigned char date[7]; in rx8581_rtc_read_time() local
102 err = regmap_bulk_read(rx8581->regmap, RX8581_REG_SC, date, in rx8581_rtc_read_time()
103 sizeof(date)); in rx8581_rtc_read_time()
116 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx8581_rtc_read_time()
118 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time()
119 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_rtc_read_time()
120 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_rtc_read_time()
121 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_rtc_read_time()
122 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time()
123 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_rtc_read_time()
[all …]
H A Drtc-rx8010.c110 u8 date[RX8010_YEAR - RX8010_SEC + 1]; in rx8010_get_time() local
122 err = regmap_bulk_read(rx8010->regs, RX8010_SEC, date, sizeof(date)); in rx8010_get_time()
126 dt->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010_get_time()
127 dt->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010_get_time()
128 dt->tm_hour = bcd2bin(date[RX8010_HOUR - RX8010_SEC] & 0x3f); in rx8010_get_time()
129 dt->tm_mday = bcd2bin(date[RX8010_MDAY - RX8010_SEC] & 0x3f); in rx8010_get_time()
130 dt->tm_mon = bcd2bin(date[RX8010_MONTH - RX8010_SEC] & 0x1f) - 1; in rx8010_get_time()
131 dt->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 100; in rx8010_get_time()
132 dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time()
140 u8 date[RX8010_YEAR - RX8010_SEC + 1]; in rx8010_set_time() local
[all …]
H A Drtc-rx8025.c218 u8 date[7]; in rx8025_get_time() local
225 err = rx8025_read_regs(client, RX8025_REG_SEC, 7, date); in rx8025_get_time()
229 dev_dbg(dev, "%s: read %7ph\n", __func__, date); in rx8025_get_time()
231 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time()
232 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time()
234 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time()
236 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time()
237 + (date[RX8025_REG_HOUR] & 0x20 ? 12 : 0); in rx8025_get_time()
239 dt->tm_mday = bcd2bin(date[RX8025_REG_MDAY] & 0x3f); in rx8025_get_time()
240 dt->tm_mon = bcd2bin(date[RX8025_REG_MONTH] & 0x1f) - 1; in rx8025_get_time()
[all …]
H A Drtc-spear.c202 unsigned int time, date; in spear_rtc_read_time() local
209 date = readl(config->ioaddr + DATE_REG); in spear_rtc_read_time()
214 tm->tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_time()
215 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_time()
216 tm->tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; in spear_rtc_read_time()
233 unsigned int time, date; in spear_rtc_set_time() local
240 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time()
243 writel(date, config->ioaddr + DATE_REG); in spear_rtc_set_time()
259 unsigned int time, date; in spear_rtc_read_alarm() local
264 date = readl(config->ioaddr + ALARM_DATE_REG); in spear_rtc_read_alarm()
[all …]
/openbmc/phosphor-webui/app/configuration/controllers/
H A Ddate-time-controller.js32 $scope.bmc.date =
35 $scope.bmc.date.setMilliseconds(0);
40 $scope.bmc.timezone = getUserTimezone($scope.bmc.date) + ' ' +
41 createOffset($scope.bmc.date);
45 $scope.host.date =
47 $scope.host.date.setMilliseconds(0);
48 $scope.host.timezone = getUserTimezone($scope.bmc.date) + ' ' +
49 createOffset($scope.bmc.date);
124 manualPromises.push(setBMCTime($scope.bmc.date.getTime() * 1000));
130 manualPromises.push(setHostTime($scope.bmc.date.getTime() * 1000));
[all …]
/openbmc/openbmc-test-automation/pldm/
H A Dtest_pldm_bios.robot21 [Documentation] Verify host date & time.
39 # verify date matching pldmtool vs BMC current time.
44 [Documentation] Verify set date & time for the host.
56 ${date}= Add Time To Date ${current_date_time} 400 days exclude_millis=True
57 ${upgrade_date}= Evaluate re.sub(r'-* *:*', "", '${date}') modules=re
62 # Set date.
137 [Documentation] Set date time to manual mode via Redfish.
145 [Documentation] Runs the date command from BMC and returns current date and time.
148 ${date} ${stderr} ${rc}= BMC Execute Command date
151 # join to form %d %b %H:%M:%S %Y date format
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/ruby/ruby/
H A D0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch6 Without an explicit date, they will get the current date and make the
20 "invalid date format in specification: #{date.inspect}")
24 + Time.utc(date.utc.year, date.utc.month, date.utc.day)
26 Time.utc(date.year, date.month, date.day)
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun/
H A D1777174bb97c0b514033a09b820078b0d117f4a8.patch20 self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
21 - self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today())
26 self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
27 - self.assertEqual(datetime.date(2013, 4, 9), kwargs.get('hello').time_to_freeze.today()) #…
30 @freeze_time(lambda: datetime.date(year=2013, month=4, day=9), as_kwarg='frozen_time')
32 self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
33 - self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today())
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/nvfw/
H A Dls.c29 char *date; in nvfw_ls_desc_head() local
39 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_head()
40 nvkm_debug(subdev, "\tdate : %s\n", date); in nvfw_ls_desc_head()
41 kfree(date); in nvfw_ls_desc_head()
114 char *date; in nvfw_ls_desc_v2() local
123 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_v2()
124 nvkm_debug(subdev, "\tdate : %s\n", date); in nvfw_ls_desc_v2()
125 kfree(date); in nvfw_ls_desc_v2()
/openbmc/openbmc/poky/meta/recipes-extended/mc/files/
H A Dnomandate.patch4 Subject: [PATCH] mc: Fix manpage date indeterminism
9 The man page date can vary depending upon the host perl, e.g. in Russian
11 Rather than depend upon perl-native to fix this, just remove the date from
19 doc/man/date-of-man-include.am | 2 +-
22 diff --git a/doc/man/date-of-man-include.am b/doc/man/date-of-man-include.am
24 --- a/doc/man/date-of-man-include.am
25 +++ b/doc/man/date-of-man-include.am
/openbmc/u-boot/tools/
H A Dmicrocode-tool.py54 date = ''
71 date = m_date.group(1)
76 return date, license_text, microcodes
90 date = ''
118 return date, license_text, microcodes
121 def List(date, microcodes, model): argument
129 print 'Date: %s' % date
174 def CreateFile(date, license_text, mcodes, outfile): argument
228 args = [text, date]
283 date, license_text, microcodes = ParseHeaderFiles(options.headerfile)
[all …]
H A Dmicrocode-tool54 date = ''
71 date = m_date.group(1)
76 return date, license_text, microcodes
90 date = ''
118 return date, license_text, microcodes
121 def List(date, microcodes, model): argument
129 print 'Date: %s' % date
174 def CreateFile(date, license_text, mcodes, outfile): argument
228 args = [text, date]
283 date, license_text, microcodes = ParseHeaderFiles(options.headerfile)
[all …]
/openbmc/webui-vue/src/components/Global/
H A DTableDateFilter.vue6 label-for="input-from-date"
11 id="input-from-date"
23 {{ $t('global.form.dateMustBeBefore', { date: toDate }) }}
39 aria-controls="input-from-date"
52 label-for="input-to-date"
57 id="input-to-date"
69 {{ $t('global.form.dateMustBeAfter', { date: fromDate }) }}
85 aria-controls="input-to-date"
132 const date = new Date(value);
134 if (date.getTime() > maxDate.getTime()) return false;
[all …]
/openbmc/openbmc-test-automation/gui/gui_test/settings_menu/
H A Dtest_date_and_time_sub_menu.robot30 [Documentation] Verify navigation to date and time page.
37 [Documentation] Verify the presence of the required text on the date and time page.
41 Page Should Contain To change how date and time are displayed
49 [Documentation] Verify existence of all sections in date and time page.
56 [Documentation] Verify existence of all buttons in date and time settings page.
65 [Documentation] Verify existence of all input boxes in date time page.
79 [Documentation] Get date and time from configuration section and verify it via BMC CLI.
91 [Documentation] Get date and time from Redfish and verify it via GUI date and time page.
98 # Get date and time from Redfish.
103 # Verify date and time via GUI date and time page.
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dcvs.py40 ud.date = ud.parm['date']
42 ud.date = ""
52 …_%s_%s_%s%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse, fullpat…
59 if (ud.date == "now"):
94 if ud.date:
96 if len(ud.date) == 12:
97 … options.append("-D \"%s %s:%s UTC\"" % (ud.date[0:8], ud.date[8:10], ud.date[10:12]))
99 options.append("-D \"%s UTC\"" % ud.date)
/openbmc/phosphor-webui/app/configuration/styles/
H A Ddate-time.scss8 .date-time__metadata-wrapper {
12 .date-time__owner-dropdown {
18 .date-time__ntp-servers{
22 .date-time__ntp-servers-wrap{
27 .date-time__metadata-block {
48 /*button*/.date-time__dns-remove {
/openbmc/linux/arch/sh/boards/mach-sdk7786/
H A Dfpga.c54 u16 version, date; in sdk7786_fpga_init() local
63 date = fpga_read_reg(FPGADR); in sdk7786_fpga_init()
67 ((date >> 12) & 0xf) + 2000, in sdk7786_fpga_init()
68 (date >> 8) & 0xf, bcd2bin(date & 0xff)); in sdk7786_fpga_init()
/openbmc/webui-vue/src/views/Settings/DateTime/
H A DDateTime.vue20 <dt>{{ $t('pageDateTime.form.date') }}</dt>
37 label="Configure date and time"
51 :label="$t('pageDateTime.form.date')"
52 label-for="input-manual-date"
54 <b-form-text id="date-format-help">YYYY-MM-DD</b-form-text>
57 id="input-manual-date"
58 v-model="form.manual.date"
59 :state="getValidationState(v$.form.manual.date)"
63 @blur="v$.form.manual.date.$touch()"
66 <div v-if="v$.form.manual.date.pattern.$invalid">
[all …]

12345678910>>...44