Lines Matching refs:hour
111 unsigned hour = 0; in bcd2hour() local
115 hour = 12; in bcd2hour()
118 hour += bcd2bin(bcd); in bcd2hour()
119 return hour - 1; in bcd2hour()
124 static u8 hour2bcd(bool hr12, int hour) in hour2bcd() argument
127 hour++; in hour2bcd()
128 if (hour <= 12) in hour2bcd()
129 return DS1305_HR_12 | bin2bcd(hour); in hour2bcd()
130 hour -= 12; in hour2bcd()
131 return DS1305_HR_12 | DS1305_HR_PM | bin2bcd(hour); in hour2bcd()
133 return bin2bcd(hour); in hour2bcd()