Searched refs:io_v4 (Results 1 – 2 of 2) sorted by relevance
46 struct sg_io_v4 io_v4 = { in disk_scsi_inquiry_command() local60 ret = ioctl(fd, SG_IO, &io_v4); in disk_scsi_inquiry_command()92 if (!(io_v4.device_status == 0 && in disk_scsi_inquiry_command()93 io_v4.transport_status == 0 && in disk_scsi_inquiry_command()94 io_v4.driver_status == 0)) { in disk_scsi_inquiry_command()128 struct sg_io_v4 io_v4 = { in disk_identify_command() local142 ret = ioctl(fd, SG_IO, &io_v4); in disk_identify_command()206 struct sg_io_v4 io_v4 = { in disk_identify_packet_device_command() local220 ret = ioctl(fd, SG_IO, &io_v4); in disk_identify_packet_device_command()
276 struct sg_io_v4 io_v4; in scsi_inquiry() local287 memzero(&io_v4, sizeof(struct sg_io_v4)); in scsi_inquiry()288 io_v4.guard = 'Q'; in scsi_inquiry()289 io_v4.protocol = BSG_PROTOCOL_SCSI; in scsi_inquiry()290 io_v4.subprotocol = BSG_SUB_PROTOCOL_SCSI_CMD; in scsi_inquiry()291 io_v4.request_len = sizeof(inq_cmd); in scsi_inquiry()292 io_v4.request = (uintptr_t)inq_cmd; in scsi_inquiry()293 io_v4.max_response_len = sizeof(sense); in scsi_inquiry()294 io_v4.response = (uintptr_t)sense; in scsi_inquiry()295 io_v4.din_xfer_len = buflen; in scsi_inquiry()[all …]