Home
last modified time | relevance | path

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

/titanic_44/usr/src/cmd/cdrw/
H A Dtransport.c41 char rqbuf[RQBUFLEN]; variable
66 scmd->uscsi_rqbuf = rqbuf; in uscsi()
101 (void) memset(rqbuf, 0, RQBUFLEN); in uscsi()
141 if ((SENSE_KEY(rqbuf) == 2) && (ASC(rqbuf) == 4) && in uscsi()
142 ((ASCQ(rqbuf) == 0) || (ASCQ(rqbuf) == 1) || in uscsi()
143 (ASCQ(rqbuf) == 4)) || (ASCQ(rqbuf) == 7)) { in uscsi()
155 if ((SENSE_KEY(rqbuf) == 5) && (ASC(rqbuf) == in uscsi()
156 0x21) && (ASCQ(rqbuf) == 2)) { in uscsi()
170 if ((SENSE_KEY(rqbuf) == 2) && (ASC(rqbuf) == 4) && in uscsi()
171 (ASCQ(rqbuf) == 8)) { in uscsi()
[all …]
H A Dtransport.h39 #define SENSE_KEY(rqbuf) (rqbuf[2]) /* scsi error category */ argument
40 #define ASC(rqbuf) (rqbuf[12]) /* additional sense code */ argument
41 #define ASCQ(rqbuf) (rqbuf[13]) /* ASC qualifier */ argument
44 extern char rqbuf[RQBUFLEN];
H A Dblank.c188 SENSE_KEY(rqbuf), ASC(rqbuf), ASCQ(rqbuf)); in blank()
209 if (SENSE_KEY(rqbuf) == 2) { in blank()
210 if (ASC(rqbuf) != 4) in blank()
213 } else if (SENSE_KEY(rqbuf) == 5) { in blank()
214 if (ASC(rqbuf) != 0x64) in blank()
225 uscsi_status, SENSE_KEY(rqbuf), in blank()
226 ASC(rqbuf), ASCQ(rqbuf)); in blank()
H A Dmisc_scsi.c664 if (SENSE_KEY(rqbuf) == 2) { in finalize()
666 if (ASC(rqbuf) != 4) in finalize()
668 } else if (SENSE_KEY(rqbuf) == 5) { in finalize()
670 if (ASC(rqbuf) != 0x64) in finalize()
679 uscsi_status, SENSE_KEY(rqbuf), in finalize()
680 ASC(rqbuf), ASCQ(rqbuf)); in finalize()
688 if (ASC(rqbuf) == 0x24) { in finalize()
693 (unsigned)(rqbuf[i])); in finalize()
784 if ((uscsi_status == 2) && (ASC(rqbuf) == 0x53)) { in eject_media()
1137 uscsi_status, SENSE_KEY(rqbuf), in write_fini()
[all …]
H A Dcopycd.c339 SENSE_KEY(rqbuf), ASC(rqbuf), ASCQ(rqbuf)); in copy_cd()
415 if ((SENSE_KEY(rqbuf) == 2) && in copy_cd()
416 (ASC(rqbuf) == 4)) { in copy_cd()
H A Dtrackio.c434 te->key = SENSE_KEY(rqbuf) & 0xf; in write_track()
435 te->asc = ASC(rqbuf); in write_track()
436 te->ascq = ASCQ(rqbuf); in write_track()
529 te->key = SENSE_KEY(rqbuf) & 0xf; in write_track()
530 te->asc = ASC(rqbuf); in write_track()
531 te->ascq = ASCQ(rqbuf); in write_track()
H A Dwrite_image.c191 if ((SENSE_KEY(rqbuf) == 2) && in write_image()
192 (ASC(rqbuf) == 4)) { in write_image()
H A Ddevice.c672 ((SENSE_KEY(rqbuf) & 0x0f) == 2) && (ASC(rqbuf) == 0x3A) && in check_device()
673 ((ASCQ(rqbuf) == 0) || (ASCQ(rqbuf) == 1) || in check_device()
674 (ASCQ(rqbuf) == 2))) { in check_device()
/titanic_44/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi_sim.c47 check_invalid_code(int ret, void *rqbuf) in check_invalid_code() argument
50 struct scsi_extended_sense *sensep = rqbuf; in check_invalid_code()
69 void *rqbuf, int *rqblen) in simscsi_mode_sense() argument
78 page_size, header, rqbuf, rqblen); in simscsi_mode_sense()
80 return (check_invalid_code(ret, rqbuf)); in simscsi_mode_sense()
89 void *rqbuf, int *rqblen) in simscsi_mode_sense_10() argument
99 page_size, header, rqbuf, rqblen); in simscsi_mode_sense_10()
101 return (check_invalid_code(ret, rqbuf)); in simscsi_mode_sense_10()
109 int page_size, scsi_ms_header_t *header, void *rqbuf, int *rqblen) in simscsi_mode_select() argument
119 page_size, header, rqbuf, rqblen); in simscsi_mode_select()
[all …]
H A Dds_scsi_uscsi.c1042 uscsi_cmd(int fd, struct uscsi_cmd *ucmd, void *rqbuf, int *rqlen) in uscsi_cmd() argument
1090 ucmd->uscsi_rqbuf = rqbuf; in uscsi_cmd()
1137 ddump(NULL, (caddr_t)rqbuf, *rqlen); in uscsi_cmd()
1166 uscsi_request_sense(int fd, caddr_t buf, int buflen, void *rqbuf, int *rqblen) in uscsi_request_sense() argument
1181 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); in uscsi_request_sense()
1199 int page_size, struct scsi_ms_header *header, void *rqbuf, int *rqblen) in uscsi_mode_sense() argument
1231 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); in uscsi_mode_sense()
1321 void *rqbuf, int *rqblen) in uscsi_mode_sense_10() argument
1352 status = uscsi_cmd(fd, &ucmd, rqbuf, rqblen); in uscsi_mode_sense_10()
1445 int page_size, struct scsi_ms_header *header, void *rqbuf, int *rqblen) in uscsi_mode_select() argument
[all …]
/titanic_44/usr/src/cmd/hal/utils/
H A Dcdutils.c34 #define SENSE_KEY(rqbuf) (rqbuf[2]) /* scsi error category */ argument
35 #define ASC(rqbuf) (rqbuf[12]) /* additional sense code */ argument
36 #define ASCQ(rqbuf) (rqbuf[13]) /* ASC qualifier */ argument
54 char rqbuf[RQLEN]; in uscsi() local
61 scmd->uscsi_rqbuf = rqbuf; in uscsi()
65 memset(rqbuf, 0, RQLEN); in uscsi()
84 if ((SENSE_KEY(rqbuf) == 2) && (ASC(rqbuf) == 4) && in uscsi()
85 ((ASCQ(rqbuf) == 0) || (ASCQ(rqbuf) == 1) || in uscsi()
86 (ASCQ(rqbuf) == 4)) || (ASCQ(rqbuf) == 7)) { in uscsi()
97 if ((SENSE_KEY(rqbuf) == 6) && ((ASC(rqbuf) == 0x28) || in uscsi()
[all …]
/titanic_44/usr/src/uts/common/io/scsi/targets/
H A Dses_safte.c106 char rqbuf[SENSE_LENGTH], *sdata; in _NOTE() local
124 lp->uscsi_rqbuf = rqbuf; in _NOTE()
125 lp->uscsi_rqlen = sizeof (rqbuf); in _NOTE()
243 char rqbuf[SENSE_LENGTH], *sdata; in safte_init_enc() local
255 lp->uscsi_rqbuf = rqbuf; in safte_init_enc()
256 lp->uscsi_rqlen = sizeof (rqbuf); in safte_init_enc()
269 lp->uscsi_rqbuf = rqbuf; in safte_init_enc()
270 lp->uscsi_rqlen = sizeof (rqbuf); in safte_init_enc()
297 char rqbuf[SENSE_LENGTH], *sdata; in safte_rdstat() local
358 lp->uscsi_rqbuf = rqbuf; in safte_rdstat()
[all …]
H A Dses_sen.c123 char rqbuf[SENSE_LENGTH], *sdata; in sen_rdstat() local
140 lp->uscsi_rqbuf = rqbuf; in sen_rdstat()
141 lp->uscsi_rqlen = sizeof (rqbuf); in sen_rdstat()
330 char rqbuf[SENSE_LENGTH], *sdata; in sen_set_objstat() local
354 lp->uscsi_rqbuf = rqbuf; in sen_set_objstat()
355 lp->uscsi_rqlen = sizeof (rqbuf); in sen_set_objstat()
439 lp->uscsi_rqbuf = rqbuf; in sen_set_objstat()
440 lp->uscsi_rqlen = sizeof (rqbuf); in sen_set_objstat()
H A Dses_ses.c447 char rqbuf[SENSE_LENGTH], *sdata; in ses_getputstat() local
486 lp->uscsi_rqbuf = rqbuf; in ses_getputstat()
487 lp->uscsi_rqlen = sizeof (rqbuf); in ses_getputstat()
523 lp->uscsi_rqbuf = rqbuf; in ses_getputstat()
524 lp->uscsi_rqlen = sizeof (rqbuf); in ses_getputstat()
H A Dsgen.c2087 sgen_dump_sense(sgen_state_t *sg_state, size_t rqlen, uchar_t *rqbuf) in sgen_dump_sense() argument
2109 for (i = 0; i < rqlen; i++, rqbuf++) { in sgen_dump_sense()
2112 *p++ = hex[(*rqbuf >> 4) & 0x0f]; in sgen_dump_sense()
2113 *p++ = hex[*rqbuf & 0x0f]; in sgen_dump_sense()
H A Dsd.c1538 struct uscsi_cmd *ucmdbuf, uchar_t *rqbuf, uint_t rqbuflen,
1541 struct uscsi_cmd *ucmdbuf, uchar_t *rqbuf, uint_t rqbuflen,
3607 uchar_t *rqbuf; in sd_check_for_writable_cd() local
3631 rqbuf = kmem_zalloc(SENSE_LENGTH, KM_SLEEP); in sd_check_for_writable_cd()
3633 rtn = sd_send_scsi_GET_CONFIGURATION(ssc, &com, rqbuf, SENSE_LENGTH, in sd_check_for_writable_cd()
3647 kmem_free(rqbuf, SENSE_LENGTH); in sd_check_for_writable_cd()
3653 kmem_free(rqbuf, SENSE_LENGTH); in sd_check_for_writable_cd()
21433 uchar_t *rqbuf, uint_t rqbuflen, uchar_t *bufaddr, uint_t buflen, argument
21446 ASSERT(rqbuf != NULL);
21453 bzero(rqbuf, rqbuflen);
[all …]
/titanic_44/usr/src/cmd/rmformat/
H A Drmf_misc.c52 #define SENSE_KEY(rqbuf) (rqbuf[2] & 0xf) /* scsi error category */ argument
53 #define ASC(rqbuf) (rqbuf[12]) /* additional sense code */ argument
54 #define ASCQ(rqbuf) (rqbuf[13]) /* ASC qualifier */ argument
68 char rqbuf[RQBUFLEN]; variable
1680 scmd->uscsi_rqbuf = rqbuf; in uscsi()
1696 (void) memset(rqbuf, 0, RQBUFLEN); in uscsi()
1727 if ((SENSE_KEY(rqbuf) == 2) && (ASC(rqbuf) == 4) && in uscsi()
1728 ((ASCQ(rqbuf) == 0) || (ASCQ(rqbuf) == 1))) { in uscsi()
1739 if ((SENSE_KEY(rqbuf) == 6) && ((ASC(rqbuf) == 0x28) || in uscsi()
1740 (ASC(rqbuf) == 0x29))) { in uscsi()
[all …]
/titanic_44/usr/src/lib/storage/libg_fc/common/
H A Dcmd.c122 struct scsi_extended_sense *rqbuf; in cmd() local
213 rqbuf = (struct scsi_extended_sense *)command->uscsi_rqbuf; in cmd()
215 switch (rqbuf->es_key) { in cmd()
/titanic_44/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, rqlen, HEX_ONLY);
[all …]
/titanic_44/usr/src/lib/libdiskmgt/common/
H A Ddrive.c1423 char rqbuf[255]; in uscsi_mode_sense() local
1456 ucmd.uscsi_rqbuf = rqbuf; in uscsi_mode_sense()
1457 ucmd.uscsi_rqlen = sizeof (rqbuf); in uscsi_mode_sense()
1458 ucmd.uscsi_rqresid = sizeof (rqbuf); in uscsi_mode_sense()
/titanic_44/usr/src/cmd/luxadm/
H A Dlux_util.c393 struct scsi_extended_sense *rqbuf; in issue_uscsi_cmd() local
484 rqbuf = (struct scsi_extended_sense *)command->uscsi_rqbuf; in issue_uscsi_cmd()
486 switch (rqbuf->es_key) { in issue_uscsi_cmd()