Home
last modified time | relevance | path

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

12345678910>>...15

/linux-6.1.9/fs/fat/
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 …]
Dmisc.c207 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date); in fat_time_fat2unix() local
211 year = date >> 9; in fat_time_fat2unix()
212 month = max(1, (date >> 5) & 0xf); in fat_time_fat2unix()
213 day = max(1, date & 0x1f) - 1; in fat_time_fat2unix()
244 __le16 *time, __le16 *date, u8 *time_cs) in fat_time_unix2fat() argument
252 *date = cpu_to_le16((0 << 9) | (1 << 5) | 1); in fat_time_unix2fat()
259 *date = cpu_to_le16((127 << 9) | (12 << 5) | 31); in fat_time_unix2fat()
273 *date = cpu_to_le16(tm.tm_year << 9 | tm.tm_mon << 5 | tm.tm_mday); in fat_time_unix2fat()
/linux-6.1.9/drivers/rtc/
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 …]
Drtc-rx8581.c73 unsigned char date[7]; in rx8581_rtc_read_time() local
103 err = regmap_bulk_read(rx8581->regmap, RX8581_REG_SC, date, in rx8581_rtc_read_time()
104 sizeof(date)); in rx8581_rtc_read_time()
117 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx8581_rtc_read_time()
119 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time()
120 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_rtc_read_time()
121 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_rtc_read_time()
122 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_rtc_read_time()
123 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time()
124 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_rtc_read_time()
[all …]
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 …]
Drtc-rx8025.c217 u8 date[7]; in rx8025_get_time() local
224 err = rx8025_read_regs(client, RX8025_REG_SEC, 7, date); in rx8025_get_time()
228 dev_dbg(dev, "%s: read %7ph\n", __func__, date); in rx8025_get_time()
230 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time()
231 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time()
233 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time()
235 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time()
236 + (date[RX8025_REG_HOUR] & 0x20 ? 12 : 0); in rx8025_get_time()
238 dt->tm_mday = bcd2bin(date[RX8025_REG_MDAY] & 0x3f); in rx8025_get_time()
239 dt->tm_mon = bcd2bin(date[RX8025_REG_MONTH] & 0x1f) - 1; in rx8025_get_time()
[all …]
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 …]
Drtc-rv3028.c124 u8 date[6]; in timestamp0_show() local
133 ret = regmap_bulk_read(rv3028->regmap, RV3028_TS_SEC, date, in timestamp0_show()
134 sizeof(date)); in timestamp0_show()
138 tm.tm_sec = bcd2bin(date[0]); in timestamp0_show()
139 tm.tm_min = bcd2bin(date[1]); in timestamp0_show()
140 tm.tm_hour = bcd2bin(date[2]); in timestamp0_show()
141 tm.tm_mday = bcd2bin(date[3]); in timestamp0_show()
142 tm.tm_mon = bcd2bin(date[4]) - 1; in timestamp0_show()
143 tm.tm_year = bcd2bin(date[5]) + 100; in timestamp0_show()
311 u8 date[7]; in rv3028_get_time() local
[all …]
Drtc-sunxi.c191 u32 date; in sunxi_rtc_getalarm() local
194 date = readl(chip->base + SUNXI_RTC_YMD); in sunxi_rtc_getalarm()
200 alrm_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_getalarm()
201 alrm_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_getalarm()
202 alrm_tm->tm_year = SUNXI_DATE_GET_YEAR_VALUE(date, in sunxi_rtc_getalarm()
223 u32 date, time; in sunxi_rtc_gettime() local
229 date = readl(chip->base + SUNXI_RTC_YMD); in sunxi_rtc_gettime()
231 } while ((date != readl(chip->base + SUNXI_RTC_YMD)) || in sunxi_rtc_gettime()
238 rtc_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_gettime()
239 rtc_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_gettime()
[all …]
Drtc-rv8803.c238 u8 *date = date1; in rv8803_get_time() local
250 ret = rv8803_read_regs(rv8803->client, RV8803_SEC, 7, date); in rv8803_get_time()
260 date = date2; in rv8803_get_time()
263 tm->tm_sec = bcd2bin(date[RV8803_SEC] & 0x7f); in rv8803_get_time()
264 tm->tm_min = bcd2bin(date[RV8803_MIN] & 0x7f); in rv8803_get_time()
265 tm->tm_hour = bcd2bin(date[RV8803_HOUR] & 0x3f); in rv8803_get_time()
266 tm->tm_wday = ilog2(date[RV8803_WEEK] & 0x7f); in rv8803_get_time()
267 tm->tm_mday = bcd2bin(date[RV8803_DAY] & 0x3f); in rv8803_get_time()
268 tm->tm_mon = bcd2bin(date[RV8803_MONTH] & 0x1f) - 1; in rv8803_get_time()
269 tm->tm_year = bcd2bin(date[RV8803_YEAR]) + 100; in rv8803_get_time()
[all …]
Drtc-rv3032.c227 u8 date[7]; in rv3032_get_time() local
237 ret = regmap_bulk_read(rv3032->regmap, RV3032_SEC, date, sizeof(date)); in rv3032_get_time()
241 tm->tm_sec = bcd2bin(date[0] & 0x7f); in rv3032_get_time()
242 tm->tm_min = bcd2bin(date[1] & 0x7f); in rv3032_get_time()
243 tm->tm_hour = bcd2bin(date[2] & 0x3f); in rv3032_get_time()
244 tm->tm_wday = date[3] & 0x7; in rv3032_get_time()
245 tm->tm_mday = bcd2bin(date[4] & 0x3f); in rv3032_get_time()
246 tm->tm_mon = bcd2bin(date[5] & 0x1f) - 1; in rv3032_get_time()
247 tm->tm_year = bcd2bin(date[6]) + 100; in rv3032_get_time()
255 u8 date[7]; in rv3032_set_time() local
[all …]
Drtc-vt8500.c104 u32 date, time; in vt8500_rtc_read_time() local
106 date = readl(vt8500_rtc->regbase + VT8500_RTC_DR); in vt8500_rtc_read_time()
112 tm->tm_mday = bcd2bin(date & DATE_DAY_MASK); in vt8500_rtc_read_time()
113 tm->tm_mon = bcd2bin((date & DATE_MONTH_MASK) >> DATE_MONTH_S) - 1; in vt8500_rtc_read_time()
114 tm->tm_year = bcd2bin((date & DATE_YEAR_MASK) >> DATE_YEAR_S) in vt8500_rtc_read_time()
115 + ((date >> DATE_CENTURY_S) & 1 ? 200 : 100); in vt8500_rtc_read_time()
Drtc-sun6i.c470 u32 date, time; in sun6i_rtc_gettime() local
476 date = readl(chip->base + SUN6I_RTC_YMD); in sun6i_rtc_gettime()
478 } while ((date != readl(chip->base + SUN6I_RTC_YMD)) || in sun6i_rtc_gettime()
488 rtc_time64_to_tm((date & 0xffff) * SECS_PER_DAY, rtc_tm); in sun6i_rtc_gettime()
490 rtc_tm->tm_mday = SUN6I_DATE_GET_DAY_VALUE(date); in sun6i_rtc_gettime()
491 rtc_tm->tm_mon = SUN6I_DATE_GET_MON_VALUE(date) - 1; in sun6i_rtc_gettime()
492 rtc_tm->tm_year = SUN6I_DATE_GET_YEAR_VALUE(date); in sun6i_rtc_gettime()
608 u32 date = 0; in sun6i_rtc_settime() local
617 date = div_u64(rtc_tm_to_time64(rtc_tm), SECS_PER_DAY); in sun6i_rtc_settime()
622 date = SUN6I_DATE_SET_DAY_VALUE(rtc_tm->tm_mday) | in sun6i_rtc_settime()
[all …]
Drtc-at91rm9200.c164 unsigned int time, date; in at91_rtc_decodetime() local
169 date = at91_rtc_read(calreg); in at91_rtc_decodetime()
171 (date != at91_rtc_read(calreg))); in at91_rtc_decodetime()
181 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */ in at91_rtc_decodetime()
182 tm->tm_year += bcd2bin(FIELD_GET(AT91_RTC_YEAR, date)); /* year */ in at91_rtc_decodetime()
184 tm->tm_wday = bcd2bin(FIELD_GET(AT91_RTC_DAY, date)) - 1; /* day of the week [0-6], Sunday=0 */ in at91_rtc_decodetime()
185 tm->tm_mon = bcd2bin(FIELD_GET(AT91_RTC_MONTH, date)) - 1; in at91_rtc_decodetime()
186 tm->tm_mday = bcd2bin(FIELD_GET(AT91_RTC_DATE, date)); in at91_rtc_decodetime()
/linux-6.1.9/arch/sh/boards/mach-sdk7786/
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()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/nvfw/
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()
/linux-6.1.9/tools/testing/selftests/netfilter/
Dnft_zones_many.sh73 local outerstart=$(date +%s%3N)
77 local start=$(date +%s%3N)
87 stop=$(date +%s%3N)
115 local outerstart=$(date +%s%3N)
116 local start=$(date +%s%3N)
132 stop=$(date +%s%3N)
/linux-6.1.9/tools/testing/selftests/rcutorture/bin/
Dkvm-test-1-run-qemu.sh36 echo ' ---' `date`: Starting kernel, PID $$
66 echo Monitoring qemu job at pid $qemu_pid `date`
69 echo Monitoring qemu job at yet-as-unknown pid `date`
120 echo ' ---' `date`: "Kernel done"
133 echo Grace period for qemu job at pid $qemu_pid `date`
172 echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds `date`" >> $resdir/Warnings 2>&1
Dkvm-remote.sh52 ds=`date +%Y.%m.%d-%H.%M.%S`-remote
148 echo $i: $ncpus CPUs " " `date` | tee -a "$oldrun/remote-log"
155 echo Downloading tarball to $i `date` | tee -a "$oldrun/remote-log"
192 …echo " ---" ssh failure to $1 checking for file $2, retry after $sleeptime seconds. `date` | tee -…
238 echo " ----" System $i Batch `head -n $curbatch < "$rundir"/scenarios | tail -1` `date` 1>&2
260 echo All batches started. `date` | tee -a "$oldrun/remote-log"
265 echo " ---" Waiting for $i `date` | tee -a "$oldrun/remote-log"
270 echo " ---" Collecting results from $i `date` | tee -a "$oldrun/remote-log"
Dtorture.sh268 echo " --- $curflavor:" Start `date` | tee -a $T/log
326 echo " --- allmodconfig:" Start `date` | tee -a $T/log
423 echo " --- " Done `date` | tee -a $T/log
450 echo Started at $startdate, ended at `date`, duration `get_starttime_duration $starttime`. | tee -a…
460 echo Looking for K[AC]SAN files to compress: `date` > "$tdir/log-xz" 2>&1
471 …echo Size before compressing $n2compress files: `du -sh $tdir | awk '{ print $1 }'` `date` 2>&1 | …
474 echo Compressing vmlinux files in ${i}: `date` >> "$tdir/log-xz" 2>&1
481 …echo Waiting for batch $batchno of $ncompresses compressions `date` | tee -a "$tdir/log-xz" | tee …
490 …echo Waiting for final batch $batchno of $ncompresses compressions `date` | tee -a "$tdir/log-xz" …
493 …echo Size after compressing $n2compress files: `du -sh $tdir | awk '{ print $1 }'` `date` 2>&1 | t…
[all …]
/linux-6.1.9/arch/x86/kernel/cpu/microcode/
Dintel.c335 unsigned int sig, pf, rev, total_size, data_size, date; in show_saved_mc() local
362 date = mc_saved_header->date; in show_saved_mc()
369 date & 0xffff, in show_saved_mc()
370 date >> 24, in show_saved_mc()
371 (date >> 16) & 0xff); in show_saved_mc()
438 print_ucode_info(struct ucode_cpu_info *uci, unsigned int date) in print_ucode_info() argument
442 date & 0xffff, in print_ucode_info()
443 date >> 24, in print_ucode_info()
444 (date >> 16) & 0xff); in print_ucode_info()
484 *current_mc_date_p = mc->hdr.date; in print_ucode()
[all …]
/linux-6.1.9/drivers/media/test-drivers/vivid/
Dvivid-rds-gen.c48 unsigned date; in vivid_rds_generate() local
96 date = 14956 + tm.tm_mday + ((tm.tm_year - l) * 1461) / 4 + in vivid_rds_generate()
103 data[1].lsb |= date >> 15; in vivid_rds_generate()
105 data[2].lsb = (date << 1) & 0xfe; in vivid_rds_generate()
107 data[2].msb = (date >> 7) & 0xff; in vivid_rds_generate()
/linux-6.1.9/tools/testing/selftests/rtc/
Dsetdate.c25 const char *rtc, *date; in main() local
33 date = argv[2]; in main()
47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
/linux-6.1.9/tools/testing/selftests/powerpc/mm/
Dstress_code_patching.sh29 START_TIME=`date +%s`
31 while [ `date +%s` -lt $END_TIME ]
/linux-6.1.9/fs/exfat/
Dmisc.c69 u8 tz, __le16 time, __le16 date, u8 time_cs) in exfat_get_entry_time() argument
72 u16 d = le16_to_cpu(date); in exfat_get_entry_time()
94 u8 *tz, __le16 *time, __le16 *date, u8 *time_cs) in exfat_set_entry_time() argument
104 *date = cpu_to_le16(d); in exfat_set_entry_time()

12345678910>>...15