Home
last modified time | relevance | path

Searched refs:io_v4 (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/udev/ata_id/
Data_id.c46 struct sg_io_v4 io_v4 = { in disk_scsi_inquiry_command() local
60 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() local
142 ret = ioctl(fd, SG_IO, &io_v4); in disk_identify_command()
206 struct sg_io_v4 io_v4 = { in disk_identify_packet_device_command() local
220 ret = ioctl(fd, SG_IO, &io_v4); in disk_identify_packet_device_command()
/systemd-251/src/udev/scsi_id/
Dscsi_serial.c276 struct sg_io_v4 io_v4; in scsi_inquiry() local
287 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 …]