Lines Matching refs:ret

60 	int ret;  in rmtfs_mem_open_rfsa()  local
73 ret = fstat(fd, &sb); in rmtfs_mem_open_rfsa()
74 if (ret < 0) { in rmtfs_mem_open_rfsa()
95 ret = parse_hex_sysattr(dev, "phys_addr", &rmem->address); in rmtfs_mem_open_rfsa()
96 if (ret < 0) { in rmtfs_mem_open_rfsa()
98 saved_errno = -ret; in rmtfs_mem_open_rfsa()
102 ret = parse_hex_sysattr(dev, "size", &rmem->size); in rmtfs_mem_open_rfsa()
103 if (ret < 0) { in rmtfs_mem_open_rfsa()
105 saved_errno = -ret; in rmtfs_mem_open_rfsa()
130 int ret; in rmtfs_mem_open_uio() local
143 ret = fstat(fd, &sb); in rmtfs_mem_open_uio()
144 if (ret < 0) { in rmtfs_mem_open_uio()
165 ret = parse_hex_sysattr(dev, "maps/map0/addr", &rmem->address); in rmtfs_mem_open_uio()
166 if (ret < 0) { in rmtfs_mem_open_uio()
168 saved_errno = -ret; in rmtfs_mem_open_uio()
172 ret = parse_hex_sysattr(dev, "maps/map0/size", &rmem->size); in rmtfs_mem_open_uio()
173 if (ret < 0) { in rmtfs_mem_open_uio()
175 saved_errno = -ret; in rmtfs_mem_open_uio()
271 int ret; in rmtfs_mem_open() local
280 ret = rmtfs_mem_open_rfsa(rmem, 1); in rmtfs_mem_open()
281 if (ret < 0 && ret != -ENOENT) { in rmtfs_mem_open()
283 } else if (ret < 0) { in rmtfs_mem_open()
285 ret = rmtfs_mem_open_uio(rmem, 1); in rmtfs_mem_open()
286 if (ret < 0 && ret != -ENOENT) { in rmtfs_mem_open()
288 } else if (ret < 0) { in rmtfs_mem_open()
291 ret = rmtfs_mem_enumerate(rmem); in rmtfs_mem_open()
292 if (ret < 0) in rmtfs_mem_open()
413 int ret = 0; in rmtfs_mem_enumerate() local
434 ret = -1; in rmtfs_mem_enumerate()
442 ret = -1; in rmtfs_mem_enumerate()
456 ret = -1; in rmtfs_mem_enumerate()
467 return ret; in rmtfs_mem_enumerate()