/linux-4.19.296/drivers/rtc/ |
D | rtc-rx4581.c | 105 unsigned char date[7]; in rx4581_get_datetime() local 133 date[0] = 0x80; in rx4581_get_datetime() 134 err = spi_write_then_read(spi, date, 1, date, 7); in rx4581_get_datetime() 156 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx4581_get_datetime() 158 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime() 159 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F); in rx4581_get_datetime() 160 tm->tm_hour = bcd2bin(date[RX4581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx4581_get_datetime() 161 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); in rx4581_get_datetime() 162 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime() 163 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx4581_get_datetime() [all …]
|
D | rtc-rx8025.c | 185 u8 date[7]; in rx8025_get_time() local 192 err = rx8025_read_regs(rx8025->client, RX8025_REG_SEC, 7, date); in rx8025_get_time() 198 date[0], date[1], date[2], date[3], date[4], in rx8025_get_time() 199 date[5], date[6]); in rx8025_get_time() 201 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time() 202 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time() 204 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time() 206 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time() 207 + (date[RX8025_REG_HOUR] & 0x20 ? 12 : 0); in rx8025_get_time() 209 dt->tm_mday = bcd2bin(date[RX8025_REG_MDAY] & 0x3f); in rx8025_get_time() [all …]
|
D | rtc-rx8581.c | 66 unsigned char date[7]; in rx8581_rtc_read_time() local 96 err = regmap_bulk_read(rx8581->regmap, RX8581_REG_SC, date, in rx8581_rtc_read_time() 97 sizeof(date)); in rx8581_rtc_read_time() 110 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx8581_rtc_read_time() 112 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time() 113 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_rtc_read_time() 114 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_rtc_read_time() 115 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_rtc_read_time() 116 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time() 117 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_rtc_read_time() [all …]
|
D | rtc-rx8010.c | 115 u8 date[7]; in rx8010_get_time() local 129 7, date); in rx8010_get_time() 133 dt->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010_get_time() 134 dt->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010_get_time() 135 dt->tm_hour = bcd2bin(date[RX8010_HOUR - RX8010_SEC] & 0x3f); in rx8010_get_time() 136 dt->tm_mday = bcd2bin(date[RX8010_MDAY - RX8010_SEC] & 0x3f); in rx8010_get_time() 137 dt->tm_mon = bcd2bin(date[RX8010_MONTH - RX8010_SEC] & 0x1f) - 1; in rx8010_get_time() 138 dt->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 100; in rx8010_get_time() 139 dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time() 147 u8 date[7]; in rx8010_set_time() local [all …]
|
D | rtc-spear.c | 205 unsigned int time, date; in spear_rtc_read_time() local 211 date = readl(config->ioaddr + DATE_REG); in spear_rtc_read_time() 215 tm->tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_time() 216 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_time() 217 tm->tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; in spear_rtc_read_time() 234 unsigned int time, date; in spear_rtc_set_time() local 241 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time() 244 writel(date, config->ioaddr + DATE_REG); in spear_rtc_set_time() 260 unsigned int time, date; in spear_rtc_read_alarm() local 265 date = readl(config->ioaddr + ALARM_DATE_REG); in spear_rtc_read_alarm() [all …]
|
D | rtc-sunxi.c | 204 u32 date; in sunxi_rtc_getalarm() local 207 date = readl(chip->base + SUNXI_RTC_YMD); in sunxi_rtc_getalarm() 213 alrm_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_getalarm() 214 alrm_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_getalarm() 215 alrm_tm->tm_year = SUNXI_DATE_GET_YEAR_VALUE(date, in sunxi_rtc_getalarm() 236 u32 date, time; in sunxi_rtc_gettime() local 242 date = readl(chip->base + SUNXI_RTC_YMD); in sunxi_rtc_gettime() 244 } while ((date != readl(chip->base + SUNXI_RTC_YMD)) || in sunxi_rtc_gettime() 251 rtc_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_gettime() 252 rtc_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_gettime() [all …]
|
D | rtc-rv8803.c | 197 u8 *date = date1; in rv8803_get_time() local 209 ret = rv8803_read_regs(rv8803->client, RV8803_SEC, 7, date); in rv8803_get_time() 219 date = date2; in rv8803_get_time() 222 tm->tm_sec = bcd2bin(date[RV8803_SEC] & 0x7f); in rv8803_get_time() 223 tm->tm_min = bcd2bin(date[RV8803_MIN] & 0x7f); in rv8803_get_time() 224 tm->tm_hour = bcd2bin(date[RV8803_HOUR] & 0x3f); in rv8803_get_time() 225 tm->tm_wday = ilog2(date[RV8803_WEEK] & 0x7f); in rv8803_get_time() 226 tm->tm_mday = bcd2bin(date[RV8803_DAY] & 0x3f); in rv8803_get_time() 227 tm->tm_mon = bcd2bin(date[RV8803_MONTH] & 0x1f) - 1; in rv8803_get_time() 228 tm->tm_year = bcd2bin(date[RV8803_YEAR]) + 100; in rv8803_get_time() [all …]
|
D | rtc-sun6i.c | 327 u32 date, time; in sun6i_rtc_gettime() local 333 date = readl(chip->base + SUN6I_RTC_YMD); in sun6i_rtc_gettime() 335 } while ((date != readl(chip->base + SUN6I_RTC_YMD)) || in sun6i_rtc_gettime() 342 rtc_tm->tm_mday = SUN6I_DATE_GET_DAY_VALUE(date); in sun6i_rtc_gettime() 343 rtc_tm->tm_mon = SUN6I_DATE_GET_MON_VALUE(date); in sun6i_rtc_gettime() 344 rtc_tm->tm_year = SUN6I_DATE_GET_YEAR_VALUE(date); in sun6i_rtc_gettime() 439 u32 date = 0; in sun6i_rtc_settime() local 453 date = SUN6I_DATE_SET_DAY_VALUE(rtc_tm->tm_mday) | in sun6i_rtc_settime() 458 date |= SUN6I_LEAP_SET_VALUE(1); in sun6i_rtc_settime() 485 writel(date, chip->base + SUN6I_RTC_YMD); in sun6i_rtc_settime()
|
D | rtc-vt8500.c | 112 u32 date, time; in vt8500_rtc_read_time() local 114 date = readl(vt8500_rtc->regbase + VT8500_RTC_DR); in vt8500_rtc_read_time() 120 tm->tm_mday = bcd2bin(date & DATE_DAY_MASK); in vt8500_rtc_read_time() 121 tm->tm_mon = bcd2bin((date & DATE_MONTH_MASK) >> DATE_MONTH_S) - 1; in vt8500_rtc_read_time() 122 tm->tm_year = bcd2bin((date & DATE_YEAR_MASK) >> DATE_YEAR_S) in vt8500_rtc_read_time() 123 + ((date >> DATE_CENTURY_S) & 1 ? 200 : 100); in vt8500_rtc_read_time()
|
D | rtc-at91rm9200.c | 116 unsigned int time, date; in at91_rtc_decodetime() local 121 date = at91_rtc_read(calreg); in at91_rtc_decodetime() 123 (date != at91_rtc_read(calreg))); in at91_rtc_decodetime() 133 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */ in at91_rtc_decodetime() 134 tm->tm_year += bcd2bin((date & AT91_RTC_YEAR) >> 8); /* year */ in at91_rtc_decodetime() 136 tm->tm_wday = bcd2bin((date & AT91_RTC_DAY) >> 21) - 1; /* day of the week [0-6], Sunday=0 */ in at91_rtc_decodetime() 137 tm->tm_mon = bcd2bin((date & AT91_RTC_MONTH) >> 16) - 1; in at91_rtc_decodetime() 138 tm->tm_mday = bcd2bin((date & AT91_RTC_DATE) >> 24); in at91_rtc_decodetime()
|
D | rtc-m48t35.c | 32 u8 date; member 65 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time() 129 writeb(day, &priv->reg->date); in m48t35_set_time()
|
D | rtc-bq32k.c | 48 uint8_t date; member 111 tm->tm_mday = bcd2bin(regs.date); in bq32k_rtc_read_time() 128 regs.date = bin2bcd(tm->tm_mday); in bq32k_rtc_set_time()
|
D | rtc-sysfs.c | 49 static DEVICE_ATTR_RO(date);
|
/linux-4.19.296/fs/fat/ |
D | misc.c | 192 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date); in fat_time_fat2unix() local 196 year = date >> 9; in fat_time_fat2unix() 197 month = max(1, (date >> 5) & 0xf); in fat_time_fat2unix() 198 day = max(1, date & 0x1f) - 1; in fat_time_fat2unix() 229 __le16 *time, __le16 *date, u8 *time_cs) in fat_time_unix2fat() argument 239 *date = cpu_to_le16((0 << 9) | (1 << 5) | 1); in fat_time_unix2fat() 246 *date = cpu_to_le16((127 << 9) | (12 << 5) | 31); in fat_time_unix2fat() 260 *date = cpu_to_le16(tm.tm_year << 9 | tm.tm_mon << 5 | tm.tm_mday); in fat_time_unix2fat()
|
D | namei_msdos.c | 232 __le16 time, date; in msdos_add_entry() local 240 fat_time_unix2fat(sbi, ts, &time, &date, NULL); in msdos_add_entry() 245 de.date = date; in msdos_add_entry()
|
D | dir.c | 1143 __le16 date, time; in fat_alloc_new_dir() local 1158 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in fat_alloc_new_dir() 1169 de[0].date = de[1].date = date; in fat_alloc_new_dir() 1174 de[0].adate = de[0].cdate = de[1].adate = de[1].cdate = date; in fat_alloc_new_dir()
|
D | namei_vfat.c | 590 __le16 time, date; in vfat_build_slots() local 644 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in vfat_build_slots() 646 de->date = de->cdate = de->adate = date; in vfat_build_slots()
|
/linux-4.19.296/include/linux/ |
D | sdb.h | 32 uint32_t date; /* 0x28..0x2b */ member 126 uint32_t date; /* 0x2c-0x2f */ member
|
/linux-4.19.296/include/uapi/linux/ |
D | msdos_fs.h | 186 __le16 time,date,start;/* time, date and first cluster */ member
|
D | iso_fs.h | 151 __u8 date [ISODCL (19, 25)]; /* 7 by 711 */ member
|
/linux-4.19.296/include/drm/ |
D | drm_drv.h | 572 char *date; member
|
/linux-4.19.296/include/uapi/linux/wimax/ |
D | i2400m.h | 140 __le32 date; /* BCD YYYMMDD */ member
|
/linux-4.19.296/drivers/memstick/core/ |
D | mspro_block.c | 124 unsigned short date; member 464 (x_spfile->date >> 9) + 1980, in mspro_block_attr_show_specfile() 465 (x_spfile->date >> 5) & 0xf, in mspro_block_attr_show_specfile() 466 x_spfile->date & 0x1f); in mspro_block_attr_show_specfile()
|
/linux-4.19.296/fs/cifs/ |
D | netmisc.c | 963 u16 date = le16_to_cpu(le_date); in cnvrtDosUnixTm() local 966 SMB_DATE *sd = (SMB_DATE *)&date; in cnvrtDosUnixTm() 968 cifs_dbg(FYI, "date %d time %d\n", date, time); in cnvrtDosUnixTm()
|
/linux-4.19.296/block/partitions/ |
D | acorn.c | 70 __le32 date; member
|