Lines Matching refs:hour
108 unsigned hour = 0; in bcd2hour() local
112 hour = 12; in bcd2hour()
115 hour += bcd2bin(bcd); in bcd2hour()
116 return hour - 1; in bcd2hour()
121 static u8 hour2bcd(bool hr12, int hour) in hour2bcd() argument
124 hour++; in hour2bcd()
125 if (hour <= 12) in hour2bcd()
126 return DS1305_HR_12 | bin2bcd(hour); in hour2bcd()
127 hour -= 12; in hour2bcd()
128 return DS1305_HR_12 | DS1305_HR_PM | bin2bcd(hour); in hour2bcd()
130 return bin2bcd(hour); in hour2bcd()