Lines Matching refs:inqBuff
436 int sg3_inq(int sg_fd, unsigned char *inqBuff, int do_extra);
642 unsigned char inqBuff[OFF + INQ_REPLY_LEN]; in run_sg_scan_tests() local
645 unsigned char *buffp = inqBuff + OFF; in run_sg_scan_tests()
646 struct sg_header *isghp = (struct sg_header *)inqBuff; in run_sg_scan_tests()
766 res = sg3_inq(sg_fd, inqBuff, do_extra); in run_sg_scan_tests()
772 memcpy(inqBuff + OFF, inqCmdBlk, INQUIRY_CMDLEN); in run_sg_scan_tests()
782 res = write(sg_fd, inqBuff, inqInLen); in run_sg_scan_tests()
790 res = read(sg_fd, inqBuff, inqOutLen); in run_sg_scan_tests()
830 int sg3_inq(int sg_fd, unsigned char *inqBuff, int do_extra) in sg3_inq() argument
842 io_hdr.dxferp = inqBuff; in sg3_inq()
865 char *p = (char *)inqBuff; in sg3_inq()
3704 unsigned char inqBuff[36]; in show_scsi_modes() local
3706 if (do_simple_inq(sg_fd, inqBuff, sizeof(inqBuff), 1)) { in show_scsi_modes()
3712 scsi_ptype = inqBuff[0] & 0x1f; /* fetch peripheral device type */ in show_scsi_modes()