Lines Matching refs:bcd2bin
253 tim->tm_sec = bcd2bin(data[0] & 0x7F); in mcp795_read_time()
254 tim->tm_min = bcd2bin(data[1] & 0x7F); in mcp795_read_time()
255 tim->tm_hour = bcd2bin(data[2] & 0x3F); in mcp795_read_time()
256 tim->tm_wday = bcd2bin(data[3] & 0x07) - 1; in mcp795_read_time()
257 tim->tm_mday = bcd2bin(data[4] & 0x3F); in mcp795_read_time()
258 tim->tm_mon = bcd2bin(data[5] & 0x1F) - 1; in mcp795_read_time()
259 tim->tm_year = bcd2bin(data[6]) + 100; /* Assume we are in 20xx */ in mcp795_read_time()
338 alm->time.tm_sec = bcd2bin(data[0] & 0x7F); in mcp795_read_alarm()
339 alm->time.tm_min = bcd2bin(data[1] & 0x7F); in mcp795_read_alarm()
340 alm->time.tm_hour = bcd2bin(data[2] & 0x1F); in mcp795_read_alarm()
341 alm->time.tm_wday = bcd2bin(data[3] & 0x07) - 1; in mcp795_read_alarm()
342 alm->time.tm_mday = bcd2bin(data[4] & 0x3F); in mcp795_read_alarm()
343 alm->time.tm_mon = bcd2bin(data[5] & 0x1F) - 1; in mcp795_read_alarm()