Home
last modified time | relevance | path

Searched refs:io_hdr (Results 1 – 7 of 7) sorted by relevance

/third_party/f2fs-tools/tools/sg_write_buffer/
Dsg_pt_linux.c411 ptp->io_hdr.guard = 'Q'; in construct_scsi_pt_obj_with_fd()
413 ptp->io_hdr.protocol = BSG_PROTOCOL_SCSI; in construct_scsi_pt_obj_with_fd()
416 ptp->io_hdr.subprotocol = BSG_SUB_PROTOCOL_SCSI_CMD; in construct_scsi_pt_obj_with_fd()
461 ptp->io_hdr.guard = 'Q'; in clear_scsi_pt_obj()
463 ptp->io_hdr.protocol = BSG_PROTOCOL_SCSI; in clear_scsi_pt_obj()
466 ptp->io_hdr.subprotocol = BSG_SUB_PROTOCOL_SCSI_CMD; in clear_scsi_pt_obj()
523 if (ptp->io_hdr.request) in set_scsi_pt_cdb()
525 ptp->io_hdr.request = (__u64)(sg_uintptr_t)cdb; in set_scsi_pt_cdb()
526 ptp->io_hdr.request_len = cdb_len; in set_scsi_pt_cdb()
535 if (ptp->io_hdr.response) in set_scsi_pt_sense()
[all …]
Dsg_pt_linux_nvme.c198 uint8_t * sbp = (uint8_t *)ptp->io_hdr.response; in mk_sense_asc_ascq()
200 ptp->io_hdr.device_status = SAM_STAT_CHECK_CONDITION; in mk_sense_asc_ascq()
201 n = ptp->io_hdr.max_response_len; in mk_sense_asc_ascq()
208 ptp->io_hdr.response_len = dsense ? 8 : ((n < 18) ? n : 18); in mk_sense_asc_ascq()
223 uint8_t * sbp = (uint8_t *)ptp->io_hdr.response; in mk_sense_from_nvme_status()
233 ptp->io_hdr.device_status = sstatus; in mk_sense_from_nvme_status()
234 n = ptp->io_hdr.max_response_len; in mk_sense_from_nvme_status()
239 ptp->io_hdr.response_len = (dsense ? 8 : ((n < 18) ? n : 18)); in mk_sense_from_nvme_status()
254 uint8_t * sbp = (uint8_t *)ptp->io_hdr.response; in mk_sense_invalid_fld()
257 ptp->io_hdr.device_status = SAM_STAT_CHECK_CONDITION; in mk_sense_invalid_fld()
[all …]
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c254 sg_io_hdr_t io_hdr; member
832 sg_io_hdr_t io_hdr; in sg3_inq() local
836 memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); in sg3_inq()
837 io_hdr.interface_id = 'S'; in sg3_inq()
838 io_hdr.cmd_len = sizeof(inqCmdBlk); in sg3_inq()
839 io_hdr.mx_sb_len = sizeof(sense_buffer); in sg3_inq()
840 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; in sg3_inq()
841 io_hdr.dxfer_len = INQ_REPLY_LEN; in sg3_inq()
842 io_hdr.dxferp = inqBuff; in sg3_inq()
843 io_hdr.cmdp = inqCmdBlk; in sg3_inq()
[all …]
/third_party/eudev/src/ata_id/
Data_id.c86 struct sg_io_hdr io_hdr = { in disk_scsi_inquiry_command() local
98 ret = ioctl(fd, SG_IO, &io_hdr); in disk_scsi_inquiry_command()
103 if (!(io_hdr.status == 0 && in disk_scsi_inquiry_command()
104 io_hdr.host_status == 0 && in disk_scsi_inquiry_command()
105 io_hdr.driver_status == 0)) { in disk_scsi_inquiry_command()
167 struct sg_io_hdr io_hdr = { in disk_identify_command() local
179 ret = ioctl(fd, SG_IO, &io_hdr); in disk_identify_command()
243 struct sg_io_hdr io_hdr = { in disk_identify_packet_device_command() local
255 ret = ioctl(fd, SG_IO, &io_hdr); in disk_identify_packet_device_command()
/third_party/eudev/src/scsi_id/
Dscsi_serial.c328 struct sg_io_hdr io_hdr; in scsi_inquiry() local
351 memzero(&io_hdr, sizeof(struct sg_io_hdr)); in scsi_inquiry()
352 io_hdr.interface_id = 'S'; in scsi_inquiry()
353 io_hdr.cmd_len = sizeof(inq_cmd); in scsi_inquiry()
354 io_hdr.mx_sb_len = sizeof(sense); in scsi_inquiry()
355 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; in scsi_inquiry()
356 io_hdr.dxfer_len = buflen; in scsi_inquiry()
357 io_hdr.dxferp = buf; in scsi_inquiry()
358 io_hdr.cmdp = inq_cmd; in scsi_inquiry()
359 io_hdr.sbp = sense; in scsi_inquiry()
[all …]
/third_party/f2fs-tools/lib/
Dlibf2fs.c887 sg_io_hdr_t io_hdr; in get_device_info() local
990 memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); in get_device_info()
991 io_hdr.interface_id = 'S'; in get_device_info()
992 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; in get_device_info()
993 io_hdr.dxfer_len = sizeof(reply_buffer); in get_device_info()
994 io_hdr.dxferp = reply_buffer; in get_device_info()
995 io_hdr.cmd_len = sizeof(model_inq); in get_device_info()
996 io_hdr.cmdp = model_inq; in get_device_info()
997 io_hdr.timeout = 1000; in get_device_info()
999 if (!ioctl(fd, SG_IO, &io_hdr)) { in get_device_info()
/third_party/f2fs-tools/tools/sg_write_buffer/include/
Dsg_pt_linux.h95 struct sg_io_v4 io_hdr; /* use v4 header as it is more general */ member