Searched refs:alarm_data (Results 1 – 4 of 4) sorted by relevance
127 unsigned char alarm_data[PALMAS_NUM_TIME_REGS]; in palmas_rtc_read_alarm() local134 alarm_data, PALMAS_NUM_TIME_REGS); in palmas_rtc_read_alarm()140 alm->time.tm_sec = bcd2bin(alarm_data[0]); in palmas_rtc_read_alarm()141 alm->time.tm_min = bcd2bin(alarm_data[1]); in palmas_rtc_read_alarm()142 alm->time.tm_hour = bcd2bin(alarm_data[2]); in palmas_rtc_read_alarm()143 alm->time.tm_mday = bcd2bin(alarm_data[3]); in palmas_rtc_read_alarm()144 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; in palmas_rtc_read_alarm()145 alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; in palmas_rtc_read_alarm()161 unsigned char alarm_data[PALMAS_NUM_TIME_REGS]; in palmas_rtc_set_alarm() local171 alarm_data[0] = bin2bcd(alm->time.tm_sec); in palmas_rtc_set_alarm()[all …]
110 unsigned char alarm_data[NUM_YAL_REGS]; in rc5t583_rtc_read_alarm() local114 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_AY_MIN, alarm_data, in rc5t583_rtc_read_alarm()122 alm->time.tm_min = bcd2bin(alarm_data[0]); in rc5t583_rtc_read_alarm()123 alm->time.tm_hour = bcd2bin(alarm_data[1]); in rc5t583_rtc_read_alarm()124 alm->time.tm_mday = bcd2bin(alarm_data[2]); in rc5t583_rtc_read_alarm()125 alm->time.tm_mon = bcd2bin(alarm_data[3]) - 1; in rc5t583_rtc_read_alarm()126 alm->time.tm_year = bcd2bin(alarm_data[4]) + 100; in rc5t583_rtc_read_alarm()142 unsigned char alarm_data[NUM_YAL_REGS]; in rc5t583_rtc_set_alarm() local149 alarm_data[0] = bin2bcd(alm->time.tm_min); in rc5t583_rtc_set_alarm()150 alarm_data[1] = bin2bcd(alm->time.tm_hour); in rc5t583_rtc_set_alarm()[all …]
141 unsigned char alarm_data[NUM_TIME_REGS]; in tps65910_rtc_read_alarm() local146 ret = regmap_bulk_read(tps->regmap, TPS65910_ALARM_SECONDS, alarm_data, in tps65910_rtc_read_alarm()153 alm->time.tm_sec = bcd2bin(alarm_data[0]); in tps65910_rtc_read_alarm()154 alm->time.tm_min = bcd2bin(alarm_data[1]); in tps65910_rtc_read_alarm()155 alm->time.tm_hour = bcd2bin(alarm_data[2]); in tps65910_rtc_read_alarm()156 alm->time.tm_mday = bcd2bin(alarm_data[3]); in tps65910_rtc_read_alarm()157 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; in tps65910_rtc_read_alarm()158 alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; in tps65910_rtc_read_alarm()172 unsigned char alarm_data[NUM_TIME_REGS]; in tps65910_rtc_set_alarm() local180 alarm_data[0] = bin2bcd(alm->time.tm_sec); in tps65910_rtc_set_alarm()[all …]
401 unsigned char alarm_data[ALL_TIME_REGS]; in twl_rtc_set_alarm() local408 alarm_data[0] = bin2bcd(alm->time.tm_sec); in twl_rtc_set_alarm()409 alarm_data[1] = bin2bcd(alm->time.tm_min); in twl_rtc_set_alarm()410 alarm_data[2] = bin2bcd(alm->time.tm_hour); in twl_rtc_set_alarm()411 alarm_data[3] = bin2bcd(alm->time.tm_mday); in twl_rtc_set_alarm()412 alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); in twl_rtc_set_alarm()413 alarm_data[5] = bin2bcd(alm->time.tm_year - 100); in twl_rtc_set_alarm()416 ret = twl_i2c_write(TWL_MODULE_RTC, alarm_data, in twl_rtc_set_alarm()