Lines Matching refs:time
364 struct rtc_time *time) in smu_fill_set_rtc_cmd() argument
369 cmd_buf->data[1] = hex2bcd(time->tm_sec); in smu_fill_set_rtc_cmd()
370 cmd_buf->data[2] = hex2bcd(time->tm_min); in smu_fill_set_rtc_cmd()
371 cmd_buf->data[3] = hex2bcd(time->tm_hour); in smu_fill_set_rtc_cmd()
372 cmd_buf->data[4] = time->tm_wday; in smu_fill_set_rtc_cmd()
373 cmd_buf->data[5] = hex2bcd(time->tm_mday); in smu_fill_set_rtc_cmd()
374 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; in smu_fill_set_rtc_cmd()
375 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); in smu_fill_set_rtc_cmd()
379 int smu_get_rtc_time(struct rtc_time *time, int spinwait) in smu_get_rtc_time() argument
387 memset(time, 0, sizeof(struct rtc_time)); in smu_get_rtc_time()
394 time->tm_sec = bcd2hex(cmd.buffer[0]); in smu_get_rtc_time()
395 time->tm_min = bcd2hex(cmd.buffer[1]); in smu_get_rtc_time()
396 time->tm_hour = bcd2hex(cmd.buffer[2]); in smu_get_rtc_time()
397 time->tm_wday = bcd2hex(cmd.buffer[3]); in smu_get_rtc_time()
398 time->tm_mday = bcd2hex(cmd.buffer[4]); in smu_get_rtc_time()
399 time->tm_mon = bcd2hex(cmd.buffer[5]) - 1; in smu_get_rtc_time()
400 time->tm_year = bcd2hex(cmd.buffer[6]) + 100; in smu_get_rtc_time()
406 int smu_set_rtc_time(struct rtc_time *time, int spinwait) in smu_set_rtc_time() argument
416 hex2bcd(time->tm_sec), in smu_set_rtc_time()
417 hex2bcd(time->tm_min), in smu_set_rtc_time()
418 hex2bcd(time->tm_hour), in smu_set_rtc_time()
419 time->tm_wday, in smu_set_rtc_time()
420 hex2bcd(time->tm_mday), in smu_set_rtc_time()
421 hex2bcd(time->tm_mon) + 1, in smu_set_rtc_time()
422 hex2bcd(time->tm_year - 100)); in smu_set_rtc_time()