Lines Matching refs:time
49 command == EC_CMD_RTC_GET_VALUE ? "time" : "alarm",
54 *response = msg.data.time;
71 msg.data.time = param;
76 command == EC_CMD_RTC_SET_VALUE ? "time" : "alarm",
84 /* Read the current time from the EC. */
90 u32 time;
92 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, &time);
94 dev_err(dev, "error getting time: %d\n", ret);
98 rtc_time64_to_tm(time, tm);
103 /* Set the current EC time. */
109 time64_t time = rtc_tm_to_time64(tm);
111 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_VALUE, (u32)time);
113 dev_err(dev, "error setting time: %d\n", ret);
120 /* Read alarm time from RTC. */
131 * RTC time first so we can calculate the relative time.
135 dev_err(dev, "error getting time: %d\n", ret);
145 rtc_time64_to_tm(current_time + alarm_offset, &alrm->time);
162 * Get the current RTC time first so we can calculate the
163 * relative time.
167 dev_err(dev, "error getting time: %d\n", ret);
171 alarm_time = rtc_tm_to_time64(&alrm->time);
210 dev_err(dev, "error getting time: %d\n", ret);
333 /* Get initial time */
336 dev_err(&pdev->dev, "failed to read RTC time\n");