/u-boot/drivers/rtc/ |
A D | rv8803.c | 46 tm->tm_hour, tm->tm_min, tm->tm_sec); in rv8803_rtc_set() 56 buf[RTC_MIN_REG_ADDR] = bin2bcd(tm->tm_min); in rv8803_rtc_set() 90 tm->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in rv8803_rtc_get() 101 tm->tm_hour, tm->tm_min, tm->tm_sec); in rv8803_rtc_get() 114 .tm_min = 0, in rv8803_rtc_reset() 139 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rv8803_rtc_reset()
|
A D | pcf8563.c | 55 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 66 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 87 rtc_write (0x03, bin2bcd(tmp->tm_min )); in rtc_set() 151 tmp->tm_min = bcd2bin(min & 0x7F); in pcf8563_rtc_get() 162 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pcf8563_rtc_get() 173 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pcf8563_rtc_set() 183 dm_i2c_reg_write(dev, 0x03, bin2bcd(tmp->tm_min)); in pcf8563_rtc_set()
|
A D | max6900.c | 66 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 87 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 97 rtc_write (0x82, bin2bcd(tmp->tm_min )); in rtc_set()
|
A D | pt7c4338.c | 93 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get() 103 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 113 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 120 rtc_write(RTC_MIN_REG_ADDR, bin2bcd(tmp->tm_min)); in rtc_set() 172 tmp->tm_min = bcd2bin(min & 0x7F); in pt7c4338_rtc_get() 182 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pt7c4338_rtc_get() 191 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pt7c4338_rtc_set() 198 rtc_write(dev, RTC_MIN_REG_ADDR, bin2bcd(tmp->tm_min)); in pt7c4338_rtc_set()
|
A D | davinci.c | 42 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get() 53 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 64 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 71 writel(bin2bcd(tmp->tm_min), &rtc->minutes); in rtc_set()
|
A D | ds3231.c | 94 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 105 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 120 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 130 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set() 199 tmp->tm_min = bcd2bin(min & 0x7F); in ds3231_rtc_get() 210 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds3231_rtc_get() 221 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds3231_rtc_set() 231 dm_i2c_reg_write(dev, RTC_MIN_REG_ADDR, bin2bcd(tmp->tm_min)); in ds3231_rtc_set()
|
A D | m48t35ax.c | 53 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 64 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 76 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 91 rtc_write (0x02, bin2bcd(tmp->tm_min )); in rtc_set()
|
A D | x1205.c | 101 tm->tm_min = bcd2bin(buf[CCR_MIN]); in rtc_get() 112 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 125 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 128 buf[CCR_MIN] = bin2bcd(tm->tm_min); in rtc_set()
|
A D | ds1337.c | 106 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 132 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 142 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set() 240 tmp->tm_min = bcd2bin(min & 0x7F); in ds1337_rtc_get() 251 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds1337_rtc_get() 262 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds1337_rtc_set() 272 rtc_write(dev, RTC_MIN_REG_ADDR, bin2bcd(tmp->tm_min)); in ds1337_rtc_set()
|
A D | ds1306.c | 82 tmp->tm_min = bcd2bin (soft_spi_read ()); /* Read minutes */ in rtc_get() 115 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set() 189 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 327 tmp->tm_min = bcd2bin (min & 0x7F); /* convert Minutes */ in rtc_get() 346 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 369 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 372 rtc_write (RTC_MINUTES, bin2bcd (tmp->tm_min)); in rtc_set()
|
A D | ds1307.c | 128 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 139 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 152 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 167 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set() 219 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_set() 229 buf[RTC_MIN_REG_ADDR] = bin2bcd(tm->tm_min); in ds1307_rtc_set() 296 tm->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in ds1307_rtc_get() 309 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_get()
|
A D | m41t11.c | 85 tmp->tm_min = bcd2bin (data[RTC_MIN_ADDR] & 0x7F); in rtc_get() 115 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 126 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 129 data[RTC_MIN_ADDR] = bin2bcd(tmp->tm_min); in rtc_set()
|
A D | mcfrtc.c | 46 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 68 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 88 rtc->hourmin = (tmp->tm_hour << 8) | tmp->tm_min; in rtc_set()
|
A D | ds164x.c | 81 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get() 95 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 108 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 119 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
|
A D | s35392a.c | 149 if ((tm->tm_min < 0) || (tm->tm_min > 59)) in validate_time() 215 tm->tm_min = bcd2bin(date[S35390A_BYTE_MINS]); in s35392a_rtc_get() 224 tm->tm_hour, tm->tm_min, tm->tm_sec); in s35392a_rtc_get() 238 tm->tm_hour, tm->tm_min, tm->tm_sec); in s35392a_rtc_set() 260 date[S35390A_BYTE_MINS] = bin2bcd(tm->tm_min); in s35392a_rtc_set()
|
A D | rtc-lib.c | 72 tm->tm_min = secs / 60; in rtc_to_tm() 73 tm->tm_sec = secs - tm->tm_min * 60; in rtc_to_tm()
|
A D | ds1556.c | 84 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get() 99 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 110 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 121 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
|
A D | ds174x.c | 79 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get() 94 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 105 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 116 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
|
A D | isl1208.c | 98 tmp->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in isl1208_rtc_get() 109 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in isl1208_rtc_get() 124 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in isl1208_rtc_set() 145 buf[RTC_MIN_REG_ADDR] = bin2bcd(tmp->tm_min); in isl1208_rtc_set()
|
A D | rs5c372.c | 121 dt->tm_min = bcd2bin(buf[2]); in rs5c372_convert_to_time() 147 printf("rs5c372_convert_to_time: min = %d\n", dt->tm_min); in rs5c372_convert_to_time() 200 printf("rtc_set: tm_min = %d\n", tmp->tm_min); in rtc_set() 214 buf[2] = bin2bcd(tmp->tm_min); in rtc_set()
|
A D | m41t60.c | 156 tmp->tm_min = bcd2bin(data[RTC_MIN] & 0x7F); in rtc_get() 167 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 181 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 184 data[RTC_MIN] = (data[RTC_MIN] & 0X80) | (bin2bcd(tmp->tm_min) & 0X7F); in rtc_set()
|
A D | mk48t59.c | 106 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 121 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 134 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 147 rtc_write (RTC_MINUTES, bin2bcd(tmp->tm_min )); in rtc_set()
|
A D | s3c24x0_rtc.c | 86 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get() 101 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 115 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 122 min = bin2bcd(tmp->tm_min); in rtc_set()
|
A D | ds1302.c | 272 tmp->tm_min=10*bbclk.min10+bbclk.min; in rtc_get() 284 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 298 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 307 bbclk.min10=tmp->tm_min/10; in rtc_set() 308 bbclk.min=tmp->tm_min%10; in rtc_set()
|
/u-boot/include/linux/ |
A D | time.h | 32 int tm_min; /* Minutes. [0-59] */ member 66 tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min, 102 res->tm_min = (int) (rem / SECSPERMIN);
|