Home
last modified time | relevance | path

Searched refs:scsi_status (Results 1 – 7 of 7) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_io_linux.c50 int scsi_status = (masked_status << 1) & 0x7e; in sg_print_masked_status() local
52 sg_print_scsi_status(scsi_status); in sg_print_masked_status()
119 sg_linux_sense_print(const char * leadin, int scsi_status, int host_status, in sg_linux_sense_print() argument
126 scsi_status &= 0x7e; /*sanity */ in sg_linux_sense_print()
127 if ((0 == scsi_status) && (0 == host_status) && (0 == driver_status)) in sg_linux_sense_print()
129 if (0 != scsi_status) { in sg_linux_sense_print()
134 sg_print_scsi_status(scsi_status); in sg_linux_sense_print()
136 if (sense_buffer && ((scsi_status == SAM_STAT_CHECK_CONDITION) || in sg_linux_sense_print()
137 (scsi_status == SAM_STAT_COMMAND_TERMINATED))) { in sg_linux_sense_print()
203 int scsi_status = (masked_status << 1) & 0x7e; in sg_chk_n_print() local
[all …]
Dsg_lib.c169 sg_get_scsi_status_str(int scsi_status, int buff_len, char * buff) in sg_get_scsi_status_str() argument
180 scsi_status &= 0x7e; /* sanitize as much as possible */ in sg_get_scsi_status_str()
181 switch (scsi_status) { in sg_get_scsi_status_str()
198 scnpr(buff, buff_len, "Unknown status [0x%x]", scsi_status); in sg_get_scsi_status_str()
204 sg_print_scsi_status(int scsi_status) in sg_print_scsi_status() argument
208 sg_get_scsi_status_str(scsi_status, sizeof(buff) - 1, buff); in sg_print_scsi_status()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dsg_err.c170 int scsi_status = (masked_status << 1) & 0x7e; in sg_print_status() local
172 sg_print_scsi_status(scsi_status); in sg_print_status()
175 void sg_print_scsi_status(int scsi_status) in sg_print_scsi_status() argument
179 scsi_status &= 0x7e; /* sanitize as much as possible */ in sg_print_scsi_status()
180 switch (scsi_status) { in sg_print_scsi_status()
1225 static int sg_sense_print(const char *leadin, int scsi_status, in sg_sense_print() argument
1232 scsi_status &= 0x7e; /*sanity */ in sg_sense_print()
1233 if ((0 == scsi_status) && (0 == host_status) && (0 == driver_status)) in sg_sense_print()
1235 if (0 != scsi_status) { in sg_sense_print()
1240 sg_print_scsi_status(scsi_status); in sg_sense_print()
[all …]
Dsg_err.h119 extern void sg_print_scsi_status(int scsi_status);
148 extern int sg_err_category_new(int scsi_status, int host_status,
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_lib.h158 void sg_get_scsi_status_str(int scsi_status, int buff_len, char * buff);
352 void sg_print_scsi_status(int scsi_status);
Dsg_io_linux.h169 int sg_err_category_new(int scsi_status, int host_status, int driver_status,
/external/kernel-headers/original/uapi/linux/
Dtarget_core_user.h118 __u8 scsi_status; member