Home
last modified time | relevance | path

Searched refs:sshp (Results 1 – 4 of 4) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_io_linux.c174 struct sg_scsi_sense_hdr * sshp) in sg_normalize_sense() argument
177 if (sshp) in sg_normalize_sense()
178 memset(sshp, 0, sizeof(struct sg_scsi_sense_hdr)); in sg_normalize_sense()
181 return sg_scsi_normalize_sense(hp->sbp, hp->sb_len_wr, sshp); in sg_normalize_sense()
Dsg_lib.c1947 struct sg_scsi_sense_hdr * sshp) in sg_scsi_normalize_sense() argument
1950 if (sshp) in sg_scsi_normalize_sense()
1951 memset(sshp, 0, sizeof(struct sg_scsi_sense_hdr)); in sg_scsi_normalize_sense()
1957 if (sshp) { in sg_scsi_normalize_sense()
1958 sshp->response_code = resp_code; in sg_scsi_normalize_sense()
1959 if (sshp->response_code >= 0x72) { /* descriptor format */ in sg_scsi_normalize_sense()
1961 sshp->sense_key = (0xf & sbp[1]); in sg_scsi_normalize_sense()
1963 sshp->asc = sbp[2]; in sg_scsi_normalize_sense()
1965 sshp->ascq = sbp[3]; in sg_scsi_normalize_sense()
1967 sshp->additional_length = sbp[7]; in sg_scsi_normalize_sense()
[all …]
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_io_linux.h164 struct sg_scsi_sense_hdr * sshp);
Dsg_lib.h185 struct sg_scsi_sense_hdr * sshp);