Home
last modified time | relevance | path

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

/external/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 …]
/external/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 …]
/external/f2fs-tools/lib/
Dlibf2fs.c804 sg_io_hdr_t io_hdr; in get_device_info() local
898 memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); in get_device_info()
899 io_hdr.interface_id = 'S'; in get_device_info()
900 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; in get_device_info()
901 io_hdr.dxfer_len = sizeof(reply_buffer); in get_device_info()
902 io_hdr.dxferp = reply_buffer; in get_device_info()
903 io_hdr.cmd_len = sizeof(model_inq); in get_device_info()
904 io_hdr.cmdp = model_inq; in get_device_info()
905 io_hdr.timeout = 1000; in get_device_info()
907 if (!ioctl(fd, SG_IO, &io_hdr)) { in get_device_info()
/external/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