Lines Matching refs:time
35 union evm_time time; in dm355evm_rtc_read_time() local
48 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time()
50 time.bytes[0] = status; in dm355evm_rtc_read_time()
55 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time()
57 time.bytes[1] = status; in dm355evm_rtc_read_time()
62 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time()
64 time.bytes[2] = status; in dm355evm_rtc_read_time()
69 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time()
71 time.bytes[3] = status; in dm355evm_rtc_read_time()
75 dev_dbg(dev, "read timestamp %08x\n", time.value); in dm355evm_rtc_read_time()
77 rtc_time64_to_tm(le32_to_cpu(time.value), tm); in dm355evm_rtc_read_time()
83 union evm_time time; in dm355evm_rtc_set_time() local
88 time.value = cpu_to_le32(value); in dm355evm_rtc_set_time()
90 dev_dbg(dev, "write timestamp %08x\n", time.value); in dm355evm_rtc_set_time()
96 status = dm355evm_msp_write(time.bytes[0], DM355EVM_MSP_RTC_0); in dm355evm_rtc_set_time()
100 status = dm355evm_msp_write(time.bytes[1], DM355EVM_MSP_RTC_1); in dm355evm_rtc_set_time()
104 status = dm355evm_msp_write(time.bytes[2], DM355EVM_MSP_RTC_2); in dm355evm_rtc_set_time()
108 status = dm355evm_msp_write(time.bytes[3], DM355EVM_MSP_RTC_3); in dm355evm_rtc_set_time()