Searched refs:io_hdr (Results 1 – 2 of 2) sorted by relevance
254 sg_io_hdr_t io_hdr; member832 sg_io_hdr_t io_hdr; in sg3_inq() local836 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 …]
690 sg_io_hdr_t io_hdr; in get_device_info() local753 memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); in get_device_info()754 io_hdr.interface_id = 'S'; in get_device_info()755 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; in get_device_info()756 io_hdr.dxfer_len = sizeof(reply_buffer); in get_device_info()757 io_hdr.dxferp = reply_buffer; in get_device_info()758 io_hdr.cmd_len = sizeof(model_inq); in get_device_info()759 io_hdr.cmdp = model_inq; in get_device_info()760 io_hdr.timeout = 1000; in get_device_info()762 if (!ioctl(fd, SG_IO, &io_hdr)) { in get_device_info()