Home
last modified time | relevance | path

Searched refs:tm_wday (Results 1 – 25 of 47) sorted by relevance

12

/u-boot/drivers/rtc/
A Dpcf8563.c60 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 Dmax6900.c71 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 Dpt7c4338.c98 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 Ddavinci.c47 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 Dds3231.c99 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 Dds1307.c133 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 Dm48t35ax.c58 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 Dx1205.c107 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 Dds1337.c111 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 Dm41t11.c109 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 Dds164x.c85 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 Drv8803.c45 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 Ds35392a.c143 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 Dds1306.c114 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 Dds1556.c88 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 Dds174x.c83 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 Disl1208.c103 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 Dm41t60.c161 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 Dmk48t59.c111 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 Ds3c24x0_rtc.c91 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 Dpcf2127.c62 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 Drx8010sj.c133 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 Dtime.h37 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 Ddate.c112 (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 Drtc_def.h30 int tm_wday; member

Completed in 19 milliseconds

12