Lines Matching refs:bcd2bin

315 	tm->tm_sec = bcd2bin(regs[ISL1208_REG_SC]);  in isl1208_i2c_read_time()
316 tm->tm_min = bcd2bin(regs[ISL1208_REG_MN]); in isl1208_i2c_read_time()
322 tm->tm_hour = bcd2bin(_hr & 0x3f); in isl1208_i2c_read_time()
325 tm->tm_hour = bcd2bin(_hr & 0x1f); in isl1208_i2c_read_time()
331 tm->tm_mday = bcd2bin(regs[ISL1208_REG_DT]); in isl1208_i2c_read_time()
332 tm->tm_mon = bcd2bin(regs[ISL1208_REG_MO]) - 1; /* rtc starts at 1 */ in isl1208_i2c_read_time()
333 tm->tm_year = bcd2bin(regs[ISL1208_REG_YR]) + 100; in isl1208_i2c_read_time()
334 tm->tm_wday = bcd2bin(regs[ISL1208_REG_DW]); in isl1208_i2c_read_time()
360 tm->tm_sec = bcd2bin(regs[ISL1208_REG_SCA - ISL1208_REG_SCA] & 0x7f); in isl1208_i2c_read_alarm()
361 tm->tm_min = bcd2bin(regs[ISL1208_REG_MNA - ISL1208_REG_SCA] & 0x7f); in isl1208_i2c_read_alarm()
362 tm->tm_hour = bcd2bin(regs[ISL1208_REG_HRA - ISL1208_REG_SCA] & 0x3f); in isl1208_i2c_read_alarm()
363 tm->tm_mday = bcd2bin(regs[ISL1208_REG_DTA - ISL1208_REG_SCA] & 0x3f); in isl1208_i2c_read_alarm()
365 bcd2bin(regs[ISL1208_REG_MOA - ISL1208_REG_SCA] & 0x1f) - 1; in isl1208_i2c_read_alarm()
366 tm->tm_wday = bcd2bin(regs[ISL1208_REG_DWA - ISL1208_REG_SCA] & 0x03); in isl1208_i2c_read_alarm()
374 tm->tm_year = bcd2bin(yr) + 100; in isl1208_i2c_read_alarm()
566 tm.tm_sec = bcd2bin(regs[ISL1219_REG_SCT - ISL1219_REG_SCT] & 0x7f); in timestamp0_show()
567 tm.tm_min = bcd2bin(regs[ISL1219_REG_MNT - ISL1219_REG_SCT] & 0x7f); in timestamp0_show()
568 tm.tm_hour = bcd2bin(regs[ISL1219_REG_HRT - ISL1219_REG_SCT] & 0x3f); in timestamp0_show()
569 tm.tm_mday = bcd2bin(regs[ISL1219_REG_DTT - ISL1219_REG_SCT] & 0x3f); in timestamp0_show()
571 bcd2bin(regs[ISL1219_REG_MOT - ISL1219_REG_SCT] & 0x1f) - 1; in timestamp0_show()
572 tm.tm_year = bcd2bin(regs[ISL1219_REG_YRT - ISL1219_REG_SCT]) + 100; in timestamp0_show()