/u-boot/drivers/rtc/ |
A D | pcf8563.c | 60 tmp->tm_wday = bcd2bin (wday & 0x07); in rtc_get() 65 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 76 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 84 rtc_write (0x06, bin2bcd(tmp->tm_wday)); in rtc_set() 156 tmp->tm_wday = bcd2bin(wday & 0x07); in pcf8563_rtc_get() 161 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pcf8563_rtc_get() 172 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pcf8563_rtc_set() 180 dm_i2c_reg_write(dev, 0x06, bin2bcd(tmp->tm_wday)); in pcf8563_rtc_set()
|
A D | max6900.c | 71 tmp->tm_wday = bcd2bin (wday & 0x07); in rtc_get() 76 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 86 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 93 rtc_write (0x8a, bin2bcd(tmp->tm_wday)); in rtc_set()
|
A D | pt7c4338.c | 98 tmp->tm_wday = bcd2bin((wday - 1) & 0x07); in rtc_get() 102 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 112 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 117 rtc_write(RTC_DAY_REG_ADDR, bin2bcd(tmp->tm_wday + 1)); in rtc_set() 177 tmp->tm_wday = bcd2bin((wday - 1) & 0x07); in pt7c4338_rtc_get() 181 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pt7c4338_rtc_get() 190 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pt7c4338_rtc_set() 195 rtc_write(dev, RTC_DAY_REG_ADDR, bin2bcd(tmp->tm_wday + 1)); in pt7c4338_rtc_set()
|
A D | davinci.c | 47 tmp->tm_wday = bcd2bin(wday & 0x07); in rtc_get() 52 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 63 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 68 writel(bin2bcd(tmp->tm_wday), &rtc->dotw); in rtc_set()
|
A D | ds3231.c | 99 tmp->tm_wday = bcd2bin ((wday - 1) & 0x07); in rtc_get() 104 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 119 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 127 rtc_write (RTC_DAY_REG_ADDR, bin2bcd (tmp->tm_wday + 1)); in rtc_set() 204 tmp->tm_wday = bcd2bin((wday - 1) & 0x07); in ds3231_rtc_get() 209 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds3231_rtc_get() 220 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds3231_rtc_set() 228 dm_i2c_reg_write(dev, RTC_DAY_REG_ADDR, bin2bcd(tmp->tm_wday + 1)); in ds3231_rtc_set()
|
A D | ds1307.c | 133 tmp->tm_wday = bcd2bin ((wday - 1) & 0x07); in rtc_get() 138 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 151 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 161 bin2bcd (tmp->tm_wday + 1) | MCP7941X_BIT_VBATEN); in rtc_set() 163 rtc_write (RTC_DAY_REG_ADDR, bin2bcd (tmp->tm_wday + 1)); in rtc_set() 218 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_set() 226 buf[RTC_DAY_REG_ADDR] = bin2bcd(tm->tm_wday + 1); in ds1307_rtc_set() 303 tm->tm_wday = bcd2bin((buf[RTC_DAY_REG_ADDR] - 1) & 0x07); in ds1307_rtc_get() 308 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_get()
|
A D | m48t35ax.c | 58 tmp->tm_wday = bcd2bin (cent_day & 0x07); in rtc_get() 63 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 75 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 88 rtc_write (0x04, bin2bcd(tmp->tm_wday) | century); in rtc_set()
|
A D | x1205.c | 107 tm->tm_wday = buf[CCR_WDAY]; in rtc_get() 113 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get() 124 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rtc_set() 140 buf[CCR_WDAY] = tm->tm_wday & 0x07; in rtc_set()
|
A D | ds1337.c | 111 tmp->tm_wday = bcd2bin ((wday - 1) & 0x07); in rtc_get() 116 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 131 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 139 rtc_write (RTC_DAY_REG_ADDR, bin2bcd (tmp->tm_wday + 1)); in rtc_set() 245 tmp->tm_wday = bcd2bin((wday - 1) & 0x07); in ds1337_rtc_get() 250 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds1337_rtc_get() 261 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds1337_rtc_set() 269 rtc_write(dev, RTC_DAY_REG_ADDR, bin2bcd(tmp->tm_wday + 1)); in ds1337_rtc_set()
|
A D | m41t11.c | 109 tmp->tm_wday = bcd2bin (data[RTC_DAY_ADDR] & 0x07); in rtc_get() 114 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 125 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 133 data[RTC_DAY_ADDR] = bin2bcd(tmp->tm_wday) & 0x07; in rtc_set()
|
A D | ds164x.c | 85 tmp->tm_wday = bcd2bin( wday & 0x07 ); in rtc_get() 94 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 107 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 116 rtc_write( RTC_DAY_OF_WEEK, bin2bcd( tmp->tm_wday )); in rtc_set()
|
A D | rv8803.c | 45 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rv8803_rtc_set() 53 buf[RTC_DAY_REG_ADDR] = 1 << (tm->tm_wday & 0x7); in rv8803_rtc_set() 95 tm->tm_wday = fls(buf[RTC_DAY_REG_ADDR] & 0x7F) - 1; in rv8803_rtc_get() 100 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rv8803_rtc_get()
|
A D | s35392a.c | 143 if ((tm->tm_wday < 0) || (tm->tm_wday > 6)) in validate_time() 217 tm->tm_wday = bcd2bin(date[S35390A_BYTE_WDAY]); in s35392a_rtc_get() 223 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in s35392a_rtc_get() 237 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in s35392a_rtc_set() 258 date[S35390A_BYTE_WDAY] = bin2bcd(tm->tm_wday); in s35392a_rtc_set()
|
A D | ds1306.c | 114 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 153 soft_spi_send (bin2bcd (tmp->tm_wday)); /* Send Day of the Week */ in rtc_set() 188 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 340 tmp->tm_wday = bcd2bin (wday & 0x07) - 1; /* convert Day of the Week */ in rtc_get() 345 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 368 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 374 rtc_write (RTC_DAY_OF_WEEK, bin2bcd (tmp->tm_wday + 1)); in rtc_set()
|
A D | ds1556.c | 88 tmp->tm_wday = bcd2bin( wday & 0x07 ); in rtc_get() 98 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 109 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 118 rtc_write( RTC_DAY_OF_WEEK, bin2bcd( tmp->tm_wday )); in rtc_set()
|
A D | ds174x.c | 83 tmp->tm_wday = bcd2bin( wday & 0x07 ); in rtc_get() 93 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 104 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 113 rtc_write( RTC_DAY_OF_WEEK, bin2bcd( tmp->tm_wday )); in rtc_set()
|
A D | isl1208.c | 103 tmp->tm_wday = bcd2bin(buf[RTC_DAY_REG_ADDR] & 0x07); in isl1208_rtc_get() 108 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_get() 123 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_set() 142 buf[RTC_DAY_REG_ADDR] = bin2bcd(tmp->tm_wday); in isl1208_rtc_set()
|
A D | m41t60.c | 161 tmp->tm_wday = bcd2bin(data[RTC_DAY] & 0x07) - 1; in rtc_get() 166 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 180 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 190 data[RTC_DAY] = bin2bcd(tmp->tm_wday + 1) & 0x07; in rtc_set()
|
A D | mk48t59.c | 111 tmp->tm_wday = bcd2bin (wday & 0x07); in rtc_get() 120 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 133 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 144 rtc_write (RTC_DAY_OF_WEEK, bin2bcd(tmp->tm_wday)); in rtc_set()
|
A D | s3c24x0_rtc.c | 91 tmp->tm_wday = bcd2bin(wday & 0x07); in rtc_get() 100 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 114 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 119 wday = bin2bcd(tmp->tm_wday); in rtc_set()
|
A D | pcf2127.c | 62 buf[i++] = tm->tm_wday & 0x07; in pcf2127_rtc_set() 96 tm->tm_wday = buf[PCF2127_REG_DW] & 0x07; in pcf2127_rtc_get() 101 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in pcf2127_rtc_get()
|
A D | rx8010sj.c | 133 if ((tm->tm_wday < 0) || (tm->tm_wday > 6)) in validate_time() 238 tmp->tm_wday = 0; in rx8010sj_rtc_get() 243 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rx8010sj_rtc_get() 274 date[RX8010_WDAY - RX8010_SEC] = bin2bcd(tm->tm_wday); in rx8010sj_rtc_set()
|
/u-boot/include/linux/ |
A D | time.h | 37 int tm_wday; /* Day of week. [0-6] */ member 64 day_name[tim_p->tm_wday], 106 if ((res->tm_wday = ((EPOCH_WDAY + days) % DAYSPERWEEK)) < 0) 107 res->tm_wday += DAYSPERWEEK;
|
/u-boot/cmd/ |
A D | date.c | 112 (tm.tm_wday<0 || tm.tm_wday>6) ? in do_date() 113 "unknown " : RELOC(weekdays[tm.tm_wday]), in do_date()
|
/u-boot/include/ |
A D | rtc_def.h | 30 int tm_wday; member
|