Home
last modified time | relevance | path

Searched refs:hex2bcd (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/macintosh/
H A Dsmu.c359 static inline int hex2bcd (int n) in hex2bcd() function
371 cmd_buf->data[1] = hex2bcd(time->tm_sec); in smu_fill_set_rtc_cmd()
372 cmd_buf->data[2] = hex2bcd(time->tm_min); in smu_fill_set_rtc_cmd()
373 cmd_buf->data[3] = hex2bcd(time->tm_hour); in smu_fill_set_rtc_cmd()
375 cmd_buf->data[5] = hex2bcd(time->tm_mday); in smu_fill_set_rtc_cmd()
418 hex2bcd(time->tm_sec), in smu_set_rtc_time()
419 hex2bcd(time->tm_min), in smu_set_rtc_time()
420 hex2bcd(time->tm_hour), in smu_set_rtc_time()
422 hex2bcd(time->tm_mday), in smu_set_rtc_time()
423 hex2bcd(time->tm_mon) + 1, in smu_set_rtc_time()
[all …]