Lines Matching refs:ret
80 int ret;
82 ret = ioctl(fd, SG_IO, &io_v4);
83 if (ret != 0) {
98 ret = ioctl(fd, SG_IO, &io_hdr);
99 if (ret != 0)
100 return ret;
110 return ret;
161 int ret;
163 ret = ioctl(fd, SG_IO, &io_v4);
164 if (ret != 0) {
179 ret = ioctl(fd, SG_IO, &io_hdr);
180 if (ret != 0)
181 return ret;
183 return ret;
237 int ret;
239 ret = ioctl(fd, SG_IO, &io_v4);
240 if (ret != 0) {
255 ret = ioctl(fd, SG_IO, &io_hdr);
256 if (ret != 0)
257 return ret;
259 return ret;
337 int ret;
368 ret = disk_scsi_inquiry_command (fd, inquiry_buf, sizeof (inquiry_buf));
369 if (ret != 0)
377 ret = disk_identify_packet_device_command(fd, out_identify, 512);
381 ret = -1;
387 ret = disk_identify_command(fd, out_identify, 512);
388 if (ret != 0)
402 ret = -1;
410 return ret;