Lines Matching refs:rc
41 int rc; in TEST_F() local
49 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F()
50 ASSERT_NE(-1, rc); in TEST_F()
86 int rc; variable
98 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
99 ASSERT_NE(-1, rc);
106 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
107 ASSERT_NE(-1, rc);
126 int i, rc, irq = 0; variable
134 rc = ioctl(self->fd, RTC_UIE_ON, 0);
135 if (rc == -1) {
143 rc = read(self->fd, &data, sizeof(data));
144 ASSERT_NE(-1, rc);
150 rc = ioctl(self->fd, RTC_UIE_OFF, 0);
151 ASSERT_NE(-1, rc);
155 int i, rc, irq = 0; in TEST_F() local
163 rc = ioctl(self->fd, RTC_UIE_ON, 0); in TEST_F()
164 if (rc == -1) { in TEST_F()
177 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
178 ASSERT_NE(-1, rc); in TEST_F()
179 ASSERT_NE(0, rc); in TEST_F()
182 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
183 ASSERT_NE(-1, rc); in TEST_F()
189 rc = ioctl(self->fd, RTC_UIE_OFF, 0); in TEST_F()
190 ASSERT_NE(-1, rc); in TEST_F()
199 int rc; in TEST_F() local
205 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
206 ASSERT_NE(-1, rc); in TEST_F()
211 rc = ioctl(self->fd, RTC_ALM_SET, &tm); in TEST_F()
212 if (rc == -1) { in TEST_F()
218 rc = ioctl(self->fd, RTC_ALM_READ, &tm); in TEST_F()
219 ASSERT_NE(-1, rc); in TEST_F()
225 rc = ioctl(self->fd, RTC_AIE_ON, 0); in TEST_F()
226 ASSERT_NE(-1, rc); in TEST_F()
231 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
232 ASSERT_NE(-1, rc); in TEST_F()
233 ASSERT_NE(0, rc); in TEST_F()
236 rc = ioctl(self->fd, RTC_AIE_OFF, 0); in TEST_F()
237 ASSERT_NE(-1, rc); in TEST_F()
239 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
240 ASSERT_NE(-1, rc); in TEST_F()
243 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
244 ASSERT_NE(-1, rc); in TEST_F()
257 int rc; in TEST_F() local
263 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
264 ASSERT_NE(-1, rc); in TEST_F()
271 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
272 if (rc == -1) { in TEST_F()
278 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
279 ASSERT_NE(-1, rc); in TEST_F()
289 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
290 ASSERT_NE(-1, rc); in TEST_F()
291 ASSERT_NE(0, rc); in TEST_F()
293 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
294 ASSERT_NE(-1, rc); in TEST_F()
296 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
297 ASSERT_NE(-1, rc); in TEST_F()
309 int rc; variable
315 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
316 ASSERT_NE(-1, rc);
321 rc = ioctl(self->fd, RTC_ALM_SET, &tm);
322 if (rc == -1) {
328 rc = ioctl(self->fd, RTC_ALM_READ, &tm);
329 ASSERT_NE(-1, rc);
335 rc = ioctl(self->fd, RTC_AIE_ON, 0);
336 ASSERT_NE(-1, rc);
341 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
342 ASSERT_NE(-1, rc);
343 ASSERT_NE(0, rc);
346 rc = ioctl(self->fd, RTC_AIE_OFF, 0);
347 ASSERT_NE(-1, rc);
349 rc = read(self->fd, &data, sizeof(unsigned long));
350 ASSERT_NE(-1, rc);
353 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
354 ASSERT_NE(-1, rc);
367 int rc; variable
373 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
374 ASSERT_NE(-1, rc);
381 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
382 if (rc == -1) {
388 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
389 ASSERT_NE(-1, rc);
399 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
400 ASSERT_NE(-1, rc);
401 ASSERT_NE(0, rc);
403 rc = read(self->fd, &data, sizeof(unsigned long));
404 ASSERT_NE(-1, rc);
406 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
407 ASSERT_NE(-1, rc);