Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/macintosh/
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()
376 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; in smu_fill_set_rtc_cmd()
377 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); 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()
[all …]