Home
last modified time | relevance | path

Searched refs:day (Results 1 – 16 of 16) sorted by relevance

/rk3399_rockchip-uboot/drivers/rtc/
H A Ddate.c38 int day; in rtc_calc_weekday() local
57 day = 1; in rtc_calc_weekday()
59 day = 0; in rtc_calc_weekday()
62 day += last_year * 365 + leaps_to_date + month_offset[tm->tm_mon - 1] + in rtc_calc_weekday()
64 tm->tm_wday = day % 7; in rtc_calc_weekday()
72 register long hms, day; in rtc_to_tm() local
74 day = tim / SECDAY; in rtc_to_tm()
83 for (i = STARTOFTIME; day >= days_in_year(i); i++) in rtc_to_tm()
84 day -= days_in_year(i); in rtc_to_tm()
90 for (i = 1; day >= days_in_month(i); i++) in rtc_to_tm()
[all …]
H A Dmx27rtc.c22 uint32_t day, hour, min, sec; in rtc_get() local
24 day = readl(&rtc_regs->dayr); in rtc_get()
31 sec += min * 60 + hour * 3600 + day * 24 * 3600; in rtc_get()
41 uint32_t day, hour, min, sec; in rtc_set() local
45 day = sec / (24 * 3600); in rtc_set()
55 writel(day, &rtc_regs->dayr); in rtc_set()
H A Dftrtc010.c19 unsigned int day; /* 0x0c */ member
55 unsigned long day; in ftrtc010_time() local
63 day = readl(&rtc->day); in ftrtc010_time()
69 return day * 24 * 60 * 60 + hour * 60 * 60 + minute * 60 + second; in ftrtc010_time()
H A Dmc13xxx-rtc.c49 u32 time, day; in rtc_set() local
55 day = time / 86400; in rtc_set()
58 pmic_reg_write(p, REG_RTC_DAY, day); in rtc_set()
H A Ddavinci.c31 mday = readl(&rtc->day); in rtc_get()
69 writel(bin2bcd(tmp->tm_mday), &rtc->day); in rtc_set()
H A Dds1302.c69 unsigned char day:3; /* day of week */ member
275 tmp->tm_wday=bbclk.day; in rtc_get()
314 bbclk.day=tmp->tm_wday; in rtc_set()
/rk3399_rockchip-uboot/board/compulab/common/
H A Deeprom.c286 static int validate_date(unsigned char day, unsigned char month, in validate_date() argument
299 if (day > 31) in validate_date()
306 if (day > 30) in validate_date()
318 if (day > days_in_february) in validate_date()
357 unsigned char day = (unsigned char)simple_strtol(tok1, &endptr, 0); in eeprom_field_update_date() local
358 if (*endptr != '\0' || day == 0) { in eeprom_field_update_date()
374 if (validate_date(day, month - 1, year)) { in eeprom_field_update_date()
384 field->buf[0] = day; in eeprom_field_update_date()
/rk3399_rockchip-uboot/arch/arm/include/asm/
H A Ddavinci_rtc.h21 unsigned int day; member
/rk3399_rockchip-uboot/doc/
H A DREADME.commands.itest1 A slow day today so here is a revised itest command with provisional
H A DREADME.nand175 flexibility, so that one day we can eliminate the old mechanism.
/rk3399_rockchip-uboot/tools/rockchip/
H A Dboot_merger.h144 uint8_t day; member
H A Dboot_merger.c603 rkTime.day = tm->tm_mday; in getTime()
607 LOGD("%d-%d-%d %02d:%02d:%02d\n", rkTime.year, rkTime.month, rkTime.day, in getTime()
/rk3399_rockchip-uboot/include/
H A Defi.h210 u8 day; member
/rk3399_rockchip-uboot/lib/efi_loader/
H A Defi_runtime.c115 time->day = tm.tm_mday; in efi_get_time_boottime()
/rk3399_rockchip-uboot/tools/binman/
H A DREADME161 sunxi-spl.bin (by calling mksunxiboot, or hopefully one day mkimage). In any
/rk3399_rockchip-uboot/doc/driver-model/
H A DREADME.txt698 data, one day it is possible that U-Boot will cache platformat data for