Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c251 sg_io_hdr_t io_hdr; member
829 sg_io_hdr_t io_hdr; in sg3_inq() local
833 memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); in sg3_inq()
834 io_hdr.interface_id = 'S'; in sg3_inq()
835 io_hdr.cmd_len = sizeof(inqCmdBlk); in sg3_inq()
836 io_hdr.mx_sb_len = sizeof(sense_buffer); in sg3_inq()
837 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; in sg3_inq()
838 io_hdr.dxfer_len = INQ_REPLY_LEN; in sg3_inq()
839 io_hdr.dxferp = inqBuff; in sg3_inq()
840 io_hdr.cmdp = inqCmdBlk; in sg3_inq()
[all …]
/third_party/f2fs-tools/lib/
Dlibf2fs.c901 sg_io_hdr_t io_hdr; in get_device_info() local
1004 memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); in get_device_info()
1005 io_hdr.interface_id = 'S'; in get_device_info()
1006 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; in get_device_info()
1007 io_hdr.dxfer_len = sizeof(reply_buffer); in get_device_info()
1008 io_hdr.dxferp = reply_buffer; in get_device_info()
1009 io_hdr.cmd_len = sizeof(model_inq); in get_device_info()
1010 io_hdr.cmdp = model_inq; in get_device_info()
1011 io_hdr.timeout = 1000; in get_device_info()
1013 if (!ioctl(fd, SG_IO, &io_hdr)) { in get_device_info()