/drivers/rtc/ |
D | rtc-rx4581.c | 97 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 …]
|
D | rtc-rx8581.c | 72 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 …]
|
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_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time() 140 u8 date[RX8010_YEAR - RX8010_SEC + 1]; in rx8010_set_time() local [all …]
|
D | rtc-rx8025.c | 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_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 …]
|
D | rtc-rv3028.c | 124 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 …]
|
D | rtc-spear.c | 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() 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 …]
|
D | rtc-sunxi.c | 189 u32 date; in sunxi_rtc_getalarm() local 192 date = readl(chip->base + SUNXI_RTC_YMD); in sunxi_rtc_getalarm() 198 alrm_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_getalarm() 199 alrm_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_getalarm() 200 alrm_tm->tm_year = SUNXI_DATE_GET_YEAR_VALUE(date, in sunxi_rtc_getalarm() 221 u32 date, time; in sunxi_rtc_gettime() local 227 date = readl(chip->base + SUNXI_RTC_YMD); in sunxi_rtc_gettime() 229 } while ((date != readl(chip->base + SUNXI_RTC_YMD)) || in sunxi_rtc_gettime() 236 rtc_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_gettime() 237 rtc_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_gettime() [all …]
|
D | rtc-rv8803.c | 239 u8 *date = date1; in rv8803_get_time() local 256 ret = rv8803_read_regs(rv8803->client, RV8803_SEC, 7, date); in rv8803_get_time() 266 date = date2; in rv8803_get_time() 269 tm->tm_sec = bcd2bin(date[RV8803_SEC] & 0x7f); in rv8803_get_time() 270 tm->tm_min = bcd2bin(date[RV8803_MIN] & 0x7f); in rv8803_get_time() 271 tm->tm_hour = bcd2bin(date[RV8803_HOUR] & 0x3f); in rv8803_get_time() 272 tm->tm_wday = ilog2(date[RV8803_WEEK] & 0x7f); in rv8803_get_time() 273 tm->tm_mday = bcd2bin(date[RV8803_DAY] & 0x3f); in rv8803_get_time() 274 tm->tm_mon = bcd2bin(date[RV8803_MONTH] & 0x1f) - 1; in rv8803_get_time() 275 tm->tm_year = bcd2bin(date[RV8803_YEAR]) + 100; in rv8803_get_time() [all …]
|
D | rtc-rv3032.c | 227 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 …]
|
D | rtc-sun6i.c | 462 u32 date, time; in sun6i_rtc_gettime() local 468 date = readl(chip->base + SUN6I_RTC_YMD); in sun6i_rtc_gettime() 470 } while ((date != readl(chip->base + SUN6I_RTC_YMD)) || in sun6i_rtc_gettime() 480 rtc_time64_to_tm((date & 0xffff) * SECS_PER_DAY, rtc_tm); in sun6i_rtc_gettime() 482 rtc_tm->tm_mday = SUN6I_DATE_GET_DAY_VALUE(date); in sun6i_rtc_gettime() 483 rtc_tm->tm_mon = SUN6I_DATE_GET_MON_VALUE(date) - 1; in sun6i_rtc_gettime() 484 rtc_tm->tm_year = SUN6I_DATE_GET_YEAR_VALUE(date); in sun6i_rtc_gettime() 600 u32 date = 0; in sun6i_rtc_settime() local 609 date = div_u64(rtc_tm_to_time64(rtc_tm), SECS_PER_DAY); in sun6i_rtc_settime() 614 date = SUN6I_DATE_SET_DAY_VALUE(rtc_tm->tm_mday) | in sun6i_rtc_settime() [all …]
|
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()
|
D | rtc-at91rm9200.c | 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()
|
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()
|
D | rtc-bq32k.c | 46 uint8_t date; member 109 tm->tm_mday = bcd2bin(regs.date); in bq32k_rtc_read_time() 126 regs.date = bin2bcd(tm->tm_mday); in bq32k_rtc_set_time()
|
/drivers/gpu/drm/nouveau/nvkm/nvfw/ |
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_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()
|
/drivers/media/test-drivers/vivid/ |
D | vivid-rds-gen.c | 48 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()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atom.c | 1362 ctx->date[0] = '2'; in atom_get_vbios_date() 1363 ctx->date[1] = '0'; in atom_get_vbios_date() 1364 ctx->date[2] = date_in_rom[6]; in atom_get_vbios_date() 1365 ctx->date[3] = date_in_rom[7]; in atom_get_vbios_date() 1366 ctx->date[4] = '/'; in atom_get_vbios_date() 1367 ctx->date[5] = date_in_rom[0]; in atom_get_vbios_date() 1368 ctx->date[6] = date_in_rom[1]; in atom_get_vbios_date() 1369 ctx->date[7] = '/'; in atom_get_vbios_date() 1370 ctx->date[8] = date_in_rom[3]; in atom_get_vbios_date() 1371 ctx->date[9] = date_in_rom[4]; in atom_get_vbios_date() [all …]
|
/drivers/gpu/drm/nouveau/include/nvfw/ |
D | ls.h | 12 char date[64]; member 59 char date[64]; member
|
/drivers/ata/ |
D | ahci.c | 1170 int year, month, date; in ahci_sb600_enable_64bit() local 1181 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_sb600_enable_64bit() 1182 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_sb600_enable_64bit() 1305 int year, month, date; in ahci_broken_suspend() local 1311 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_broken_suspend() 1312 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_broken_suspend() 1358 int year, month, date; in ahci_broken_lpm() local 1364 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_broken_lpm() 1365 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_broken_lpm()
|
/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc_fw_abi.h | 59 u32 date; member
|
D | intel_gsc_binary_headers.h | 121 u32 date; member
|
/drivers/infiniband/hw/qib/ |
D | qib_qsfp.c | 400 ret = qsfp_read(ppd, QSFP_DATE_OFFS, &cp->date, QSFP_DATE_LEN); in qib_refresh_qsfp_cache() 404 cks += cp->date[idx]; in qib_refresh_qsfp_cache() 529 QSFP_DATE_LEN, cd.date); in qib_qsfp_dump()
|
D | qib_qsfp.h | 166 u8 date[QSFP_DATE_LEN]; member
|
/drivers/nfc/s3fwrn5/ |
D | firmware.h | 67 char date[13]; member
|
/drivers/gpu/drm/vc4/ |
D | vc4_drv.c | 222 .date = DRIVER_DATE, 243 .date = DRIVER_DATE,
|