Lines Matching refs:io_hdr
397 struct sg_io_hdr io_hdr;
405 memset(&io_hdr, 0x00, sizeof(io_hdr));
406 io_hdr.interface_id = 'S';
407 io_hdr.dxfer_direction = SG_DXFER_NONE;
410 io_hdr.cmdp = (unsigned char *) "\x1b\x00\x00\x00\x00\x00";
412 io_hdr.cmd_len = 6;
413 io_hdr.sbp = sense_buf;
414 io_hdr.mx_sb_len = (unsigned char) sizeof(sense_buf);
424 if (ioctl(fd, SG_IO, &io_hdr) < 0) {
429 } else if (io_hdr.masked_status != 0) {
431 io_hdr.masked_status);
432 if (io_hdr.masked_status == CHECK_CONDITION) {
433 phex(sense_buf, io_hdr.sb_len_wr, "sense buffer:\n");