Lines Matching refs:rc
60 long rc = OPAL_BUSY; in opal_get_rtc_time() local
66 while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in opal_get_rtc_time()
67 rc = opal_rtc_read(&__y_m_d, &__h_m_s_ms); in opal_get_rtc_time()
68 if (rc == OPAL_BUSY_EVENT) in opal_get_rtc_time()
74 if (rc != OPAL_SUCCESS) in opal_get_rtc_time()
86 long rc = OPAL_BUSY; in opal_set_rtc_time() local
91 while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in opal_set_rtc_time()
92 rc = opal_rtc_write(y_m_d, h_m_s_ms); in opal_set_rtc_time()
93 if (rc == OPAL_BUSY_EVENT) in opal_set_rtc_time()
99 return rc == OPAL_SUCCESS ? 0 : -EIO; in opal_set_rtc_time()
113 int rc, token; in opal_get_tpo_time() local
125 rc = opal_tpo_read(token, &__y_m_d, &__h_m); in opal_get_tpo_time()
126 if (rc != OPAL_ASYNC_COMPLETION) { in opal_get_tpo_time()
127 rc = -EIO; in opal_get_tpo_time()
131 rc = opal_async_wait_response(token, &msg); in opal_get_tpo_time()
132 if (rc) { in opal_get_tpo_time()
133 rc = -EIO; in opal_get_tpo_time()
137 rc = be64_to_cpu(msg.params[1]); in opal_get_tpo_time()
138 if (rc != OPAL_SUCCESS) { in opal_get_tpo_time()
139 rc = -EIO; in opal_get_tpo_time()
149 return rc; in opal_get_tpo_time()
158 int rc; in opal_set_tpo_time() local
171 rc = opal_tpo_write(token, y_m_d, in opal_set_tpo_time()
173 if (rc != OPAL_ASYNC_COMPLETION) { in opal_set_tpo_time()
174 rc = -EIO; in opal_set_tpo_time()
178 rc = opal_async_wait_response(token, &msg); in opal_set_tpo_time()
179 if (rc) { in opal_set_tpo_time()
180 rc = -EIO; in opal_set_tpo_time()
184 rc = be64_to_cpu(msg.params[1]); in opal_set_tpo_time()
185 if (rc != OPAL_SUCCESS) in opal_set_tpo_time()
186 rc = -EIO; in opal_set_tpo_time()
190 return rc; in opal_set_tpo_time()