Lines Matching refs:ret

58         int ret;  in disk_scsi_inquiry_command()  local
60 ret = ioctl(fd, SG_IO, &io_v4); in disk_scsi_inquiry_command()
61 if (ret != 0) { in disk_scsi_inquiry_command()
76 ret = ioctl(fd, SG_IO, &io_hdr); in disk_scsi_inquiry_command()
77 if (ret != 0) in disk_scsi_inquiry_command()
78 return ret; in disk_scsi_inquiry_command()
88 return ret; in disk_scsi_inquiry_command()
140 int ret; in disk_identify_command() local
142 ret = ioctl(fd, SG_IO, &io_v4); in disk_identify_command()
143 if (ret != 0) { in disk_identify_command()
158 ret = ioctl(fd, SG_IO, &io_hdr); in disk_identify_command()
159 if (ret != 0) in disk_identify_command()
160 return ret; in disk_identify_command()
162 return ret; in disk_identify_command()
218 int ret; in disk_identify_packet_device_command() local
220 ret = ioctl(fd, SG_IO, &io_v4); in disk_identify_packet_device_command()
221 if (ret != 0) { in disk_identify_packet_device_command()
236 ret = ioctl(fd, SG_IO, &io_hdr); in disk_identify_packet_device_command()
237 if (ret != 0) in disk_identify_packet_device_command()
238 return ret; in disk_identify_packet_device_command()
240 return ret; in disk_identify_packet_device_command()
314 int ret; in disk_identify() local
345 ret = disk_scsi_inquiry_command (fd, inquiry_buf, sizeof (inquiry_buf)); in disk_identify()
346 if (ret != 0) in disk_identify()
354 ret = disk_identify_packet_device_command(fd, out_identify, 512); in disk_identify()
358 ret = -1; in disk_identify()
364 ret = disk_identify_command(fd, out_identify, 512); in disk_identify()
365 if (ret != 0) in disk_identify()
379 ret = -1; in disk_identify()
387 return ret; in disk_identify()