Searched refs:alarm_data (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/drivers/rtc/ |
D | rtc-palmas.c | 114 unsigned char alarm_data[PALMAS_NUM_TIME_REGS]; in palmas_rtc_read_alarm() local 121 alarm_data, PALMAS_NUM_TIME_REGS); in palmas_rtc_read_alarm() 127 alm->time.tm_sec = bcd2bin(alarm_data[0]); in palmas_rtc_read_alarm() 128 alm->time.tm_min = bcd2bin(alarm_data[1]); in palmas_rtc_read_alarm() 129 alm->time.tm_hour = bcd2bin(alarm_data[2]); in palmas_rtc_read_alarm() 130 alm->time.tm_mday = bcd2bin(alarm_data[3]); in palmas_rtc_read_alarm() 131 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; in palmas_rtc_read_alarm() 132 alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; in palmas_rtc_read_alarm() 148 unsigned char alarm_data[PALMAS_NUM_TIME_REGS]; in palmas_rtc_set_alarm() local 158 alarm_data[0] = bin2bcd(alm->time.tm_sec); in palmas_rtc_set_alarm() [all …]
|
D | rtc-rc5t583.c | 110 unsigned char alarm_data[NUM_YAL_REGS]; in rc5t583_rtc_read_alarm() local 114 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() local 149 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 …]
|
D | rtc-tps65910.c | 142 unsigned char alarm_data[NUM_TIME_REGS]; in tps65910_rtc_read_alarm() local 147 ret = regmap_bulk_read(tps->regmap, TPS65910_ALARM_SECONDS, alarm_data, in tps65910_rtc_read_alarm() 154 alm->time.tm_sec = bcd2bin(alarm_data[0]); in tps65910_rtc_read_alarm() 155 alm->time.tm_min = bcd2bin(alarm_data[1]); in tps65910_rtc_read_alarm() 156 alm->time.tm_hour = bcd2bin(alarm_data[2]); in tps65910_rtc_read_alarm() 157 alm->time.tm_mday = bcd2bin(alarm_data[3]); in tps65910_rtc_read_alarm() 158 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; in tps65910_rtc_read_alarm() 159 alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; in tps65910_rtc_read_alarm() 173 unsigned char alarm_data[NUM_TIME_REGS]; in tps65910_rtc_set_alarm() local 181 alarm_data[0] = bin2bcd(alm->time.tm_sec); in tps65910_rtc_set_alarm() [all …]
|
D | rtc-loongson.c | 219 u32 alarm_data; in loongson_rtc_read_alarm() local 222 ret = regmap_read(priv->regmap, TOY_MATCH0_REG, &alarm_data); in loongson_rtc_read_alarm() 226 alrm->time.tm_sec = FIELD_GET(TOY_MATCH_SEC, alarm_data); in loongson_rtc_read_alarm() 227 alrm->time.tm_min = FIELD_GET(TOY_MATCH_MIN, alarm_data); in loongson_rtc_read_alarm() 228 alrm->time.tm_hour = FIELD_GET(TOY_MATCH_HOUR, alarm_data); in loongson_rtc_read_alarm() 229 alrm->time.tm_mday = FIELD_GET(TOY_MATCH_DAY, alarm_data); in loongson_rtc_read_alarm() 230 alrm->time.tm_mon = FIELD_GET(TOY_MATCH_MON, alarm_data) - 1; in loongson_rtc_read_alarm() 242 alrm->time.tm_year = FIELD_GET(TOY_MATCH_YEAR, alarm_data) + priv->fix_year; in loongson_rtc_read_alarm() 266 u32 alarm_data; in loongson_rtc_set_alarm() local 269 alarm_data = FIELD_PREP(TOY_MATCH_SEC, alrm->time.tm_sec) in loongson_rtc_set_alarm() [all …]
|
D | rtc-twl.c | 401 unsigned char alarm_data[ALL_TIME_REGS]; in twl_rtc_set_alarm() local 408 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()
|