Home
last modified time | relevance | path

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

1234

/drivers/rtc/
Drtc-rx4581.c105 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 …]
Drtc-rx8025.c194 u8 date[7]; in rx8025_get_time() local
197 err = rx8025_read_regs(rx8025->client, RX8025_REG_SEC, 7, date); in rx8025_get_time()
203 date[0], date[1], date[2], date[3], date[4], in rx8025_get_time()
204 date[5], date[6]); in rx8025_get_time()
206 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time()
207 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time()
209 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time()
211 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time()
212 + (date[RX8025_REG_HOUR] & 0x20 ? 12 : 0); in rx8025_get_time()
214 dt->tm_mday = bcd2bin(date[RX8025_REG_MDAY] & 0x3f); in rx8025_get_time()
[all …]
Drtc-rx8581.c100 unsigned char date[7]; in rx8581_get_datetime() local
128 7, date); in rx8581_get_datetime()
150 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx8581_get_datetime()
152 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_get_datetime()
153 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_get_datetime()
154 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_get_datetime()
155 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_get_datetime()
156 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_get_datetime()
157 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_get_datetime()
158 tm->tm_year = bcd2bin(date[RX8581_REG_YR]); in rx8581_get_datetime()
Drtc-spear.c209 unsigned int time, date; in spear_rtc_read_time() local
215 date = readl(config->ioaddr + DATE_REG); in spear_rtc_read_time()
219 tm->tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_time()
220 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_time()
221 tm->tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; in spear_rtc_read_time()
238 unsigned int time, date; in spear_rtc_set_time() local
246 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time()
249 writel(date, config->ioaddr + DATE_REG); in spear_rtc_set_time()
265 unsigned int time, date; in spear_rtc_read_alarm() local
270 date = readl(config->ioaddr + ALARM_DATE_REG); in spear_rtc_read_alarm()
[all …]
Drtc-sunxi.c204 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 …]
Drtc-sun6i.c161 u32 date, time; in sun6i_rtc_gettime() local
167 date = readl(chip->base + SUN6I_RTC_YMD); in sun6i_rtc_gettime()
169 } while ((date != readl(chip->base + SUN6I_RTC_YMD)) || in sun6i_rtc_gettime()
176 rtc_tm->tm_mday = SUN6I_DATE_GET_DAY_VALUE(date); in sun6i_rtc_gettime()
177 rtc_tm->tm_mon = SUN6I_DATE_GET_MON_VALUE(date); in sun6i_rtc_gettime()
178 rtc_tm->tm_year = SUN6I_DATE_GET_YEAR_VALUE(date); in sun6i_rtc_gettime()
269 u32 date = 0; in sun6i_rtc_settime() local
283 date = SUN6I_DATE_SET_DAY_VALUE(rtc_tm->tm_mday) | in sun6i_rtc_settime()
288 date |= SUN6I_LEAP_SET_VALUE(1); in sun6i_rtc_settime()
315 writel(date, chip->base + SUN6I_RTC_YMD); in sun6i_rtc_settime()
Drtc-at91rm9200.c112 unsigned int time, date; in at91_rtc_decodetime() local
117 date = at91_rtc_read(calreg); in at91_rtc_decodetime()
119 (date != at91_rtc_read(calreg))); in at91_rtc_decodetime()
130 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */ in at91_rtc_decodetime()
131 tm->tm_year += bcd2bin((date & AT91_RTC_YEAR) >> 8); /* year */ in at91_rtc_decodetime()
133 tm->tm_wday = bcd2bin((date & AT91_RTC_DAY) >> 21) - 1; /* day of the week [0-6], Sunday=0 */ in at91_rtc_decodetime()
134 tm->tm_mon = bcd2bin((date & AT91_RTC_MONTH) >> 16) - 1; in at91_rtc_decodetime()
135 tm->tm_mday = bcd2bin((date & AT91_RTC_DATE) >> 24); in at91_rtc_decodetime()
Drtc-vt8500.c112 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()
Drtc-m48t35.c34 u8 date; member
67 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time()
131 writeb(day, &priv->reg->date); in m48t35_set_time()
Drtc-bq32k.c43 uint8_t date; member
99 tm->tm_mday = bcd2bin(regs.date); in bq32k_rtc_read_time()
116 regs.date = bin2bcd(tm->tm_mday); in bq32k_rtc_set_time()
/drivers/media/platform/vivid/
Dvivid-rds-gen.c59 unsigned date; in vivid_rds_generate() local
105 date = 14956 + tm.tm_mday + ((tm.tm_year - l) * 1461) / 4 + in vivid_rds_generate()
112 data[1].lsb |= date >> 15; in vivid_rds_generate()
114 data[2].lsb = (date << 1) & 0xfe; in vivid_rds_generate()
116 data[2].msb = (date >> 7) & 0xff; in vivid_rds_generate()
/drivers/infiniband/hw/qib/
Dqib_qsfp.c397 ret = qsfp_read(ppd, QSFP_DATE_OFFS, &cp->date, QSFP_DATE_LEN); in qib_refresh_qsfp_cache()
401 cks += cp->date[idx]; in qib_refresh_qsfp_cache()
537 QSFP_DATE_LEN, cd.date); in qib_qsfp_dump()
539 QSFP_LOT_LEN, cd.date); in qib_qsfp_dump()
Dqib_qsfp.h166 u8 date[QSFP_DATE_LEN]; member
/drivers/staging/gs_fpgaboot/
Dgs_fpgaboot.h52 char date[MAX_STR]; member
Dgs_fpgaboot.c152 pr_info("date: %s\n", fimage->date); in gs_print_header()
170 readinfo_bitstream(bitdata, fimage->date, &offset); in gs_read_bitstream()
/drivers/staging/rtl8188eu/include/
Dfw.h46 u8 date; member
/drivers/gpu/drm/tdfx/
Dtdfx_drv.c63 .date = DRIVER_DATE,
/drivers/gpu/drm/
Ddrm_platform.c62 driver->date, dev->primary->index); in drm_get_platform_dev()
/drivers/net/wimax/i2400m/
Dfw.c1194 module_id, module_vendor, date, size; in i2400m_fw_hdr_check() local
1203 date = le32_to_cpu(bcf_hdr->date); in i2400m_fw_hdr_check()
1210 major_version, minor_version, header_len, size, date); in i2400m_fw_hdr_check()
1236 if (date < 0x20080300) in i2400m_fw_hdr_check()
1239 i2400m->fw_name, index, offset, date); in i2400m_fw_hdr_check()
/drivers/gpu/drm/i810/
Di810_drv.c73 .date = DRIVER_DATE,
/drivers/gpu/drm/savage/
Dsavage_drv.c66 .date = DRIVER_DATE,
/drivers/gpu/drm/r128/
Dr128_drv.c78 .date = DRIVER_DATE,
/drivers/staging/gdm72xx/
Dusb_boot.c49 char date[32]; member
63 char date[32]; member
/drivers/gpu/drm/mga/
Dmga_drv.c82 .date = DRIVER_DATE,
/drivers/net/wireless/rtlwifi/rtl8723com/
Dfw_common.h61 u8 date; member

1234