Searched refs:rqbuf (Results 1 - 21 of 21) sorted by relevance

/illumos-gate/usr/src/cmd/cdrw/
H A Dtransport.h39 #define SENSE_KEY(rqbuf) (rqbuf[2]) /* scsi error category */
40 #define ASC(rqbuf) (rqbuf[12]) /* additional sense code */
41 #define ASCQ(rqbuf) (rqbuf[13]) /* ASC qualifier */
44 extern char rqbuf[RQBUFLEN];
H A Dtransport.c41 char rqbuf[RQBUFLEN]; variable
66 scmd->uscsi_rqbuf = rqbuf;
101 (void) memset(rqbuf, 0, RQBUFLEN);
141 if ((SENSE_KEY(rqbuf) == 2) && (ASC(rqbuf) == 4) &&
142 ((ASCQ(rqbuf) == 0) || (ASCQ(rqbuf) == 1) ||
143 (ASCQ(rqbuf) == 4)) || (ASCQ(rqbuf) == 7)) {
155 if ((SENSE_KEY(rqbuf)
[all...]
H A Dblank.c188 SENSE_KEY(rqbuf), ASC(rqbuf), ASCQ(rqbuf));
209 if (SENSE_KEY(rqbuf) == 2) {
210 if (ASC(rqbuf) != 4)
213 } else if (SENSE_KEY(rqbuf) == 5) {
214 if (ASC(rqbuf) != 0x64)
225 uscsi_status, SENSE_KEY(rqbuf),
226 ASC(rqbuf), ASCQ(rqbuf));
[all...]
H A Dmisc_scsi.c664 if (SENSE_KEY(rqbuf) == 2) {
666 if (ASC(rqbuf) != 4)
668 } else if (SENSE_KEY(rqbuf) == 5) {
670 if (ASC(rqbuf) != 0x64)
679 uscsi_status, SENSE_KEY(rqbuf),
680 ASC(rqbuf), ASCQ(rqbuf));
688 if (ASC(rqbuf) == 0x24) {
693 (unsigned)(rqbuf[i]));
784 if ((uscsi_status == 2) && (ASC(rqbuf)
[all...]
H A Dwrite_image.c191 if ((SENSE_KEY(rqbuf) == 2) &&
192 (ASC(rqbuf) == 4)) {
H A Dcopycd.c339 SENSE_KEY(rqbuf), ASC(rqbuf), ASCQ(rqbuf));
415 if ((SENSE_KEY(rqbuf) == 2) &&
416 (ASC(rqbuf) == 4)) {
H A Dtrackio.c434 te->key = SENSE_KEY(rqbuf) & 0xf;
435 te->asc = ASC(rqbuf);
436 te->ascq = ASCQ(rqbuf);
529 te->key = SENSE_KEY(rqbuf) & 0xf;
530 te->asc = ASC(rqbuf);
531 te->ascq = ASCQ(rqbuf);
H A Ddevice.c672 ((SENSE_KEY(rqbuf) & 0x0f) == 2) && (ASC(rqbuf) == 0x3A) &&
673 ((ASCQ(rqbuf) == 0) || (ASCQ(rqbuf) == 1) ||
674 (ASCQ(rqbuf) == 2))) {
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi_sim.c47 check_invalid_code(int ret, void *rqbuf) argument
50 struct scsi_extended_sense *sensep = rqbuf;
69 void *rqbuf, int *rqblen)
78 page_size, header, rqbuf, rqblen);
80 return (check_invalid_code(ret, rqbuf));
89 void *rqbuf, int *rqblen)
99 page_size, header, rqbuf, rqblen);
101 return (check_invalid_code(ret, rqbuf));
109 int page_size, scsi_ms_header_t *header, void *rqbuf, int *rqblen)
119 page_size, header, rqbuf, rqble
67 simscsi_mode_sense(void *hdl, int page_code, int page_control, caddr_t page_data, int page_size, scsi_ms_header_t *header, void *rqbuf, int *rqblen) argument
87 simscsi_mode_sense_10(void *hdl, int page_code, int page_control, caddr_t page_data, int page_size, scsi_ms_header_g1_t *header, void *rqbuf, int *rqblen) argument
108 simscsi_mode_select(void *hdl, int page_code, int options, caddr_t page_data, int page_size, scsi_ms_header_t *header, void *rqbuf, int *rqblen) argument
128 simscsi_mode_select_10(void *hdl, int page_code, int options, caddr_t page_data, int page_size, scsi_ms_header_g1_t *header, void *rqbuf, int *rqblen) argument
148 simscsi_log_sense(void *hdl, int page_code, int page_control, caddr_t page_data, int page_size, void *rqbuf, int *rqblen) argument
166 simscsi_request_sense(void *hdl, caddr_t buf, int buflen, void *rqbuf, int *rqblen) argument
[all...]
H A Dds_scsi_uscsi.c1042 uscsi_cmd(int fd, struct uscsi_cmd *ucmd, void *rqbuf, int *rqlen) argument
1090 ucmd->uscsi_rqbuf = rqbuf;
1137 ddump(NULL, (caddr_t)rqbuf, *rqlen);
1166 uscsi_request_sense(int fd, caddr_t buf, int buflen, void *rqbuf, int *rqblen) argument
1181 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen);
1199 int page_size, struct scsi_ms_header *header, void *rqbuf, int *rqblen)
1231 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen);
1321 void *rqbuf, int *rqblen)
1352 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen);
1445 int page_size, struct scsi_ms_header *header, void *rqbuf, in
1198 uscsi_mode_sense(int fd, int page_code, int page_control, caddr_t page_data, int page_size, struct scsi_ms_header *header, void *rqbuf, int *rqblen) argument
1319 uscsi_mode_sense_10(int fd, int page_code, int page_control, caddr_t page_data, int page_size, struct scsi_ms_header_g1 *header, void *rqbuf, int *rqblen) argument
1444 uscsi_mode_select(int fd, int page_code, int options, caddr_t page_data, int page_size, struct scsi_ms_header *header, void *rqbuf, int *rqblen) argument
1512 uscsi_mode_select_10(int fd, int page_code, int options, caddr_t page_data, int page_size, struct scsi_ms_header_g1 *header, void *rqbuf, int *rqblen) argument
1581 uscsi_log_sense(int fd, int page_code, int page_control, caddr_t page_data, int page_size, void *rqbuf, int *rqblen) argument
[all...]
/illumos-gate/usr/src/cmd/hal/utils/
H A Dcdutils.c34 #define SENSE_KEY(rqbuf) (rqbuf[2]) /* scsi error category */
35 #define ASC(rqbuf) (rqbuf[12]) /* additional sense code */
36 #define ASCQ(rqbuf) (rqbuf[13]) /* ASC qualifier */
54 char rqbuf[RQLEN]; local
61 scmd->uscsi_rqbuf = rqbuf;
65 memset(rqbuf, 0, RQLEN);
84 if ((SENSE_KEY(rqbuf)
[all...]
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dcmd.c122 struct scsi_extended_sense *rqbuf; local
213 rqbuf = (struct scsi_extended_sense *)command->uscsi_rqbuf;
215 switch (rqbuf->es_key) {
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses_sen.c123 char rqbuf[SENSE_LENGTH], *sdata; local
140 lp->uscsi_rqbuf = rqbuf;
141 lp->uscsi_rqlen = sizeof (rqbuf);
330 char rqbuf[SENSE_LENGTH], *sdata; local
354 lp->uscsi_rqbuf = rqbuf;
355 lp->uscsi_rqlen = sizeof (rqbuf);
439 lp->uscsi_rqbuf = rqbuf;
440 lp->uscsi_rqlen = sizeof (rqbuf);
H A Dses_safte.c106 char rqbuf[SENSE_LENGTH], *sdata; local
124 lp->uscsi_rqbuf = rqbuf;
125 lp->uscsi_rqlen = sizeof (rqbuf);
243 char rqbuf[SENSE_LENGTH], *sdata; local
255 lp->uscsi_rqbuf = rqbuf;
256 lp->uscsi_rqlen = sizeof (rqbuf);
269 lp->uscsi_rqbuf = rqbuf;
270 lp->uscsi_rqlen = sizeof (rqbuf);
297 char rqbuf[SENSE_LENGTH], *sdata; local
358 lp->uscsi_rqbuf = rqbuf;
1043 char rqbuf[SENSE_LENGTH], *sdata; local
1087 char rqbuf[SENSE_LENGTH], cdb[CDB_GROUP1], *sdata; local
1137 char rqbuf[SENSE_LENGTH], *sdata; local
[all...]
H A Dses_ses.c447 char rqbuf[SENSE_LENGTH], *sdata; local
486 lp->uscsi_rqbuf = rqbuf;
487 lp->uscsi_rqlen = sizeof (rqbuf);
523 lp->uscsi_rqbuf = rqbuf;
524 lp->uscsi_rqlen = sizeof (rqbuf);
H A Dsgen.c2087 sgen_dump_sense(sgen_state_t *sg_state, size_t rqlen, uchar_t *rqbuf) argument
2109 for (i = 0; i < rqlen; i++, rqbuf++) {
2112 *p++ = hex[(*rqbuf >> 4) & 0x0f];
2113 *p++ = hex[*rqbuf & 0x0f];
H A Dsd.c1536 struct uscsi_cmd *ucmdbuf, uchar_t *rqbuf, uint_t rqbuflen,
1539 struct uscsi_cmd *ucmdbuf, uchar_t *rqbuf, uint_t rqbuflen,
3605 uchar_t *rqbuf; local
3629 rqbuf = kmem_zalloc(SENSE_LENGTH, KM_SLEEP);
3631 rtn = sd_send_scsi_GET_CONFIGURATION(ssc, &com, rqbuf, SENSE_LENGTH,
3645 kmem_free(rqbuf, SENSE_LENGTH);
3651 kmem_free(rqbuf, SENSE_LENGTH);
21418 * rqbuf
21433 uchar_t *rqbuf, uint_t rqbuflen, uchar_t *bufaddr, uint_t buflen,
21446 ASSERT(rqbuf !
21432 sd_send_scsi_GET_CONFIGURATION(sd_ssc_t *ssc, struct uscsi_cmd *ucmdbuf, uchar_t *rqbuf, uint_t rqbuflen, uchar_t *bufaddr, uint_t buflen, int path_flag) argument
21524 sd_send_scsi_feature_GET_CONFIGURATION(sd_ssc_t *ssc, struct uscsi_cmd *ucmdbuf, uchar_t *rqbuf, uint_t rqbuflen, uchar_t *bufaddr, uint_t buflen, char feature, int path_flag) argument
23422 uchar_t *rqbuf; local
[all...]
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_misc.c52 #define SENSE_KEY(rqbuf) (rqbuf[2] & 0xf) /* scsi error category */
53 #define ASC(rqbuf) (rqbuf[12]) /* additional sense code */
54 #define ASCQ(rqbuf) (rqbuf[13]) /* ASC qualifier */
68 char rqbuf[RQBUFLEN]; variable
1680 scmd->uscsi_rqbuf = rqbuf;
1696 (void) memset(rqbuf, 0, RQBUFLEN);
1727 if ((SENSE_KEY(rqbuf)
[all...]
/illumos-gate/usr/src/cmd/format/
H A Dctlr_scsi.c1744 char rqbuf[255]; local
1766 (void) memset((char *)rqbuf, 0, 255);
1774 ucmd.uscsi_rqbuf = rqbuf;
1775 ucmd.uscsi_rqlen = sizeof (rqbuf);
1776 ucmd.uscsi_rqresid = sizeof (rqbuf);
1989 char rqbuf[255]; local
2072 ucmd->uscsi_rqbuf = rqbuf;
2073 ucmd->uscsi_rqlen = sizeof (rqbuf);
2074 ucmd->uscsi_rqresid = sizeof (rqbuf);
2143 dump("", (caddr_t)rqbuf, rqle
3418 char rqbuf[255]; local
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Ddrive.c1423 char rqbuf[255]; local
1456 ucmd.uscsi_rqbuf = rqbuf;
1457 ucmd.uscsi_rqlen = sizeof (rqbuf);
1458 ucmd.uscsi_rqresid = sizeof (rqbuf);
/illumos-gate/usr/src/cmd/luxadm/
H A Dlux_util.c393 struct scsi_extended_sense *rqbuf; local
484 rqbuf = (struct scsi_extended_sense *)command->uscsi_rqbuf;
486 switch (rqbuf->es_key) {

Completed in 203 milliseconds