/linux/drivers/rtc/ |
H A D | rtc-rx4581.c | 97 unsigned char date[7]; in rx4581_get_datetime() local 102 * time and date then re-read the "update flag". If the update flag in rx4581_get_datetime() 124 /* Now read time and date */ in rx4581_get_datetime() 125 date[0] = 0x80; in rx4581_get_datetime() 126 err = spi_write_then_read(spi, date, 1, date, 7); in rx4581_get_datetime() 128 dev_err(dev, "Unable to read date\n"); in rx4581_get_datetime() 142 "low voltage detected, date/time is not reliable.\n"); in rx4581_get_datetime() 148 date[0], date[ in rx4581_get_datetime() [all...] |
H A D | rtc-rx8581.c | 67 unsigned char date[7]; in rx8581_rtc_read_time() local 73 * time and date then re-read the "update flag". If the update flag in rx8581_rtc_read_time() 83 "low voltage detected, date/time is not reliable.\n"); in rx8581_rtc_read_time() 96 /* Now read time and date */ in rx8581_rtc_read_time() 97 err = regmap_bulk_read(regmap, RX8581_REG_SC, date, in rx8581_rtc_read_time() 98 sizeof(date)); in rx8581_rtc_read_time() 111 date[0], date[1], date[2], date[ in rx8581_rtc_read_time() [all...] |
H A D | rtc-rx8010.c | 110 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_WDA in rx8010_get_time() 140 u8 date[RX8010_YEAR - RX8010_SEC + 1]; rx8010_set_time() local [all...] |
H A D | rtc-rx8025.c | 145 dev_warn(dev, "power-on reset detected, date is invalid\n"); in rx8025_check_validity() 151 dev_warn(dev, "crystal stopped, date is invalid\n"); in rx8025_check_validity() 218 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_HOU in rx8025_get_time() 252 u8 date[7]; rx8025_set_time() local [all...] |
H A D | rtc-spear.c | 63 /* date reg equal to time reg, for debug only */ 194 * @tm: holds date and time 196 * This function read time and date. On success it will return 0 202 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() 225 * @tm: holds date and time 227 * This function set time and date 233 unsigned int time, date; spear_rtc_set_time() local 259 unsigned int time, date; spear_rtc_read_alarm() local 289 unsigned int time, date; spear_rtc_set_alarm() local [all...] |
H A D | rtc-rv3028.c | 124 u8 date[6]; in timestamp0_show() local 134 ret = regmap_bulk_read(rv3028->regmap, RV3028_TS_SEC, date, in timestamp0_show() 135 sizeof(date)); in timestamp0_show() 139 tm.tm_sec = bcd2bin(date[0]); in timestamp0_show() 140 tm.tm_min = bcd2bin(date[1]); in timestamp0_show() 141 tm.tm_hour = bcd2bin(date[2]); in timestamp0_show() 142 tm.tm_mday = bcd2bin(date[3]); in timestamp0_show() 143 tm.tm_mon = bcd2bin(date[4]) - 1; in timestamp0_show() 144 tm.tm_year = bcd2bin(date[5]) + 100; in timestamp0_show() 313 u8 date[ in rv3028_get_time() local 341 u8 date[7]; rv3028_set_time() local [all...] |
H A D | rtc-rv8803.c | 240 u8 *date = date1; in rv8803_get_time() local 257 ret = rv8803_read_regs(rv8803->client, RV8803_SEC, 7, date); in rv8803_get_time() 267 date = date2; in rv8803_get_time() 270 tm->tm_sec = bcd2bin(date[RV8803_SEC] & 0x7f); in rv8803_get_time() 271 tm->tm_min = bcd2bin(date[RV8803_MIN] & 0x7f); in rv8803_get_time() 272 tm->tm_hour = bcd2bin(date[RV8803_HOUR] & 0x3f); in rv8803_get_time() 273 tm->tm_wday = ilog2(date[RV8803_WEEK] & 0x7f); in rv8803_get_time() 274 tm->tm_mday = bcd2bin(date[RV8803_DAY] & 0x3f); in rv8803_get_time() 275 tm->tm_mon = bcd2bin(date[RV8803_MONTH] & 0x1f) - 1; in rv8803_get_time() 276 tm->tm_year = bcd2bin(date[RV8803_YEA in rv8803_get_time() 284 u8 date[7]; rv8803_set_time() local [all...] |
H A D | rtc-vt8500.c | 104 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()
|
H A D | rtc-at91rm9200.c | 158 * Decode time/date into rtc_time structure 163 unsigned int time, date; in at91_rtc_decodetime() local 168 date = at91_rtc_read(calreg); in at91_rtc_decodetime() 170 (date != at91_rtc_read(calreg))); in at91_rtc_decodetime() 180 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */ in at91_rtc_decodetime() 181 tm->tm_year += bcd2bin(FIELD_GET(AT91_RTC_YEAR, date)); /* year */ in at91_rtc_decodetime() 183 tm->tm_wday = bcd2bin(FIELD_GET(AT91_RTC_DAY, date)) - 1; /* day of the week [0-6], Sunday=0 */ in at91_rtc_decodetime() 184 tm->tm_mon = bcd2bin(FIELD_GET(AT91_RTC_MONTH, date)) - 1; in at91_rtc_decodetime() 185 tm->tm_mday = bcd2bin(FIELD_GET(AT91_RTC_DATE, date)); in at91_rtc_decodetime() 189 * Read current time and date i [all...] |
H A D | rtc-m48t35.c | 30 u8 date; member 38 u8 date; member 72 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time() 136 writeb(day, &priv->reg->date); in m48t35_set_time()
|
/linux/drivers/gpu/drm/nouveau/nvkm/nvfw/ |
H A D | ls.c | 29 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_KERNE in nvfw_ls_desc_v2() [all...] |
/linux/arch/sh/boards/mach-sdk7786/ |
H A D | fpga.c | 54 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/tools/testing/selftests/net/netfilter/ |
H A D | conntrack_resize.sh | 91 local now=$(date +%s) 96 now=$(date +%s) 117 local now=$(date +%s) 125 now=$(date +%s) 134 local now=$(date +%s) 152 now=$(date +%s) 162 local now=$(date +%s) 176 now=$(date +%s) 184 local now=$(date +%s) 192 now=$(date [all...] |
H A D | nft_zones_many.sh | 69 outerstart=$(date +%s%3N) 74 start=$(date +%s%3N) 84 stop=$(date +%s%3N) 114 outerstart=$(date +%s%3N) 115 start=$(date +%s%3N) 131 stop=$(date +%s%3N)
|
H A D | conntrack_reverse_clash.sh | 33 now=$(date +%s) 38 now=$(date +%s)
|
/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-remote.sh | 51 ds=`date +%Y.%m.%d-%H.%M.%S`-remote 80 echo " ----" kvm.sh output: "(`date`)" | tee -a "$oldrun/remote-log" 114 echo " ----" kvm-again.sh output: "(`date`)" | tee -a "$oldrun/remote-log" 153 echo $i: `cat $T/ssh.stdout` CPUs " " `date` | tee -a "$oldrun/remote-log" 160 echo Downloading tarball to $i `date` | tee -a "$oldrun/remote-log" 198 echo " ---" ssh failure to $1 checking for file $2, retry after $sleeptime seconds. `date` | tee -a "$oldrun/remote-log" 212 echo " ---" Exit code $ret: ssh $1 test -f \"$2\", retry after $sleeptime seconds. `date` | tee -a "$oldrun/remote-log" 249 echo " ----" System $i Batch `head -n $curbatch < "$rundir"/scenarios | tail -1` `date` 1>&2 271 echo All batches started. `date` | tee -a "$oldrun/remote-log" 276 echo " ---" Waiting for $i `date` | te [all...] |
H A D | kvm-test-1-run-qemu.sh | 11 # "ds" is the top-level date-stamped directory and "scenario" 35 echo ' ---' `date`: Starting kernel, PID $$ 65 echo Monitoring qemu job at pid $qemu_pid `date` 68 echo Monitoring qemu job at yet-as-unknown pid `date` 119 echo ' ---' `date`: "Kernel done" 132 echo Grace period for qemu job at pid $qemu_pid `date` 139 echo "PID $qemu_pid killed due to run STOP.1 request `date`" >> $resdir/Warnings 2>&1 166 echo Continuing at console.log time $last_ts \"`tail -n 1 $resdir/console.log`\" `date` 171 echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds `date`" >> $resdir/Warnings 2>&1
|
/linux/fs/fat/ |
H A D | misc.c | 7 * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru) 174 * date: 0 - 4: day (1 - 31) 175 * date: 5 - 8: month (1 - 12) 176 * date: 9 - 15: year (0 - 127) from 1980 203 /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */ 207 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 in fat_time_fat2unix() 244 fat_time_unix2fat(struct msdos_sb_info * sbi,struct timespec64 * ts,__le16 * time,__le16 * date,u8 * time_cs) fat_time_unix2fat() argument [all...] |
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-rds-gen.c | 48 unsigned date; in vivid_rds_generate() local 91 * EN 50067:1998 to convert a UTC date to an RDS Modified in vivid_rds_generate() 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/tools/testing/selftests/powerpc/mm/ |
H A D | stress_code_patching.sh | 29 START_TIME=`date +%s` 31 while [ `date +%s` -lt $END_TIME ]
|
/linux/fs/exfat/ |
H A D | misc.c | 5 * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru) 67 /* Convert a EXFAT time/date pair to a UNIX date (seconds since 1 1 70). */ 69 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() 92 /* Convert linear UNIX date to a EXFAT time/date pair. */ 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()
|
/linux/tools/testing/selftests/powerpc/security/ |
H A D | mitigation-patching.sh | 16 start=$(date +%s) 24 now=$(date +%s)
|
/linux/Documentation/doc-guide/ |
H A D | checktransupdate.rst | 7 different locales, i.e., whether the documentation is up-to-date with 14 translation commit (order by author date) and the latest English commits 15 from HEAD. If any differences occur, the file is considered as out-of-date,
|
/linux/tools/testing/selftests/pstore/ |
H A D | common_tests | 60 LOG_DIR=$TOP_DIR/logs/`date +%Y%m%d-%H%M%S`_${UUID}/ 66 date > $LOG_FILE
|
/linux/tools/testing/selftests/cgroup/ |
H A D | with_stress.sh | 87 start=$(date +%s) 93 time=$(($(date +%s) - $start))
|