Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/macintosh/
Dsmu.c361 static inline int hex2bcd (int n) in hex2bcd() function
373 cmd_buf->data[1] = hex2bcd(time->tm_sec); in smu_fill_set_rtc_cmd()
374 cmd_buf->data[2] = hex2bcd(time->tm_min); in smu_fill_set_rtc_cmd()
375 cmd_buf->data[3] = hex2bcd(time->tm_hour); in smu_fill_set_rtc_cmd()
377 cmd_buf->data[5] = hex2bcd(time->tm_mday); in smu_fill_set_rtc_cmd()
378 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; in smu_fill_set_rtc_cmd()
379 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); in smu_fill_set_rtc_cmd()
420 hex2bcd(time->tm_sec), in smu_set_rtc_time()
421 hex2bcd(time->tm_min), in smu_set_rtc_time()
422 hex2bcd(time->tm_hour), in smu_set_rtc_time()
[all …]