Lines Matching refs:rc

42 	int rc;  in TEST_F()  local
46 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F()
47 ASSERT_NE(-1, rc); in TEST_F()
83 int rc; variable
91 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
92 ASSERT_NE(-1, rc);
99 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
100 ASSERT_NE(-1, rc);
119 int i, rc, irq = 0; variable
123 rc = ioctl(self->fd, RTC_UIE_ON, 0);
124 if (rc == -1) {
132 rc = read(self->fd, &data, sizeof(data));
133 ASSERT_NE(-1, rc);
139 rc = ioctl(self->fd, RTC_UIE_OFF, 0);
140 ASSERT_NE(-1, rc);
144 int i, rc, irq = 0; in TEST_F() local
148 rc = ioctl(self->fd, RTC_UIE_ON, 0); in TEST_F()
149 if (rc == -1) { in TEST_F()
162 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
163 ASSERT_NE(-1, rc); in TEST_F()
164 ASSERT_NE(0, rc); in TEST_F()
167 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
168 ASSERT_NE(-1, rc); in TEST_F()
174 rc = ioctl(self->fd, RTC_UIE_OFF, 0); in TEST_F()
175 ASSERT_NE(-1, rc); in TEST_F()
184 int rc; in TEST_F() local
186 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
187 ASSERT_NE(-1, rc); in TEST_F()
192 rc = ioctl(self->fd, RTC_ALM_SET, &tm); in TEST_F()
193 if (rc == -1) { in TEST_F()
199 rc = ioctl(self->fd, RTC_ALM_READ, &tm); in TEST_F()
200 ASSERT_NE(-1, rc); in TEST_F()
206 rc = ioctl(self->fd, RTC_AIE_ON, 0); in TEST_F()
207 ASSERT_NE(-1, rc); in TEST_F()
212 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
213 ASSERT_NE(-1, rc); in TEST_F()
214 ASSERT_NE(0, rc); in TEST_F()
217 rc = ioctl(self->fd, RTC_AIE_OFF, 0); in TEST_F()
218 ASSERT_NE(-1, rc); in TEST_F()
220 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
221 ASSERT_NE(-1, rc); in TEST_F()
224 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
225 ASSERT_NE(-1, rc); in TEST_F()
238 int rc; in TEST_F() local
240 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
241 ASSERT_NE(-1, rc); in TEST_F()
248 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
249 if (rc == -1) { in TEST_F()
255 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
256 ASSERT_NE(-1, rc); in TEST_F()
266 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
267 ASSERT_NE(-1, rc); in TEST_F()
268 ASSERT_NE(0, rc); in TEST_F()
270 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
271 ASSERT_NE(-1, rc); in TEST_F()
273 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
274 ASSERT_NE(-1, rc); in TEST_F()
286 int rc; variable
288 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
289 ASSERT_NE(-1, rc);
294 rc = ioctl(self->fd, RTC_ALM_SET, &tm);
295 if (rc == -1) {
301 rc = ioctl(self->fd, RTC_ALM_READ, &tm);
302 ASSERT_NE(-1, rc);
308 rc = ioctl(self->fd, RTC_AIE_ON, 0);
309 ASSERT_NE(-1, rc);
314 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
315 ASSERT_NE(-1, rc);
316 ASSERT_NE(0, rc);
319 rc = ioctl(self->fd, RTC_AIE_OFF, 0);
320 ASSERT_NE(-1, rc);
322 rc = read(self->fd, &data, sizeof(unsigned long));
323 ASSERT_NE(-1, rc);
326 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
327 ASSERT_NE(-1, rc);
340 int rc; variable
342 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
343 ASSERT_NE(-1, rc);
350 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
351 if (rc == -1) {
357 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
358 ASSERT_NE(-1, rc);
368 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
369 ASSERT_NE(-1, rc);
370 ASSERT_NE(0, rc);
372 rc = read(self->fd, &data, sizeof(unsigned long));
373 ASSERT_NE(-1, rc);
375 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
376 ASSERT_NE(-1, rc);