Lines Matching defs:rc
26 int fd, rc;
37 rc = ioctl(fd, PCIIOC_MMAP_IS_MEM);
38 if (rc == -1)
52 rc = munmap(addr, length);
53 if (rc == -1) {
66 int i, n, r, rc = 0, result = 0;
89 rc = map_mem(path2, offset, length, touch);
90 if (rc == 0)
92 else if (rc > 0)
96 return rc;
101 rc = scan_tree(path2, file, offset, length, touch);
102 if (rc < 0)
103 return rc;
107 result |= rc;
121 int fd, rc;
130 rc = write(fd, "1", 2);
131 if (rc <= 0) {
138 rc = read(fd, buf, sizeof(buf));
139 if (rc > 0)
140 size += rc;
141 } while (rc > 0);
151 int i, n, r, rc = 0, result = 0;
174 rc = read_rom(path2);
181 if (rc > 0)
182 fprintf(stderr, "PASS: %s read %d bytes\n", path2, rc);
185 return rc;
190 rc = scan_rom(path2, file);
191 if (rc < 0)
192 return rc;
196 result |= rc;
208 int rc;
239 rc = map_mem("/dev/mem", 0, 1024*1024, 0);
240 if (rc == 0)
242 else if (rc > 0)
259 return rc;