• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching defs:sshdr

259 		     struct scsi_sense_hdr *sshdr, int timeout, int retries,
265 if (sshdr) {
272 if (sshdr)
273 scsi_normalize_sense(sense, SCSI_SENSE_BUFFERSIZE, sshdr);
712 struct scsi_sense_hdr sshdr;
720 sense_valid = scsi_command_normalize_sense(cmd, &sshdr);
722 sense_deferred = scsi_sense_is_deferred(&sshdr);
777 if (sense_valid && (sshdr.sense_key == RECOVERED_ERROR)) {
782 if ((sshdr.asc == 0x0) && (sshdr.ascq == 0x1d))
808 switch (sshdr.sense_key) {
836 sshdr.asc == 0x20 && sshdr.ascq == 0x00) &&
842 } else if (sshdr.asc == 0x10) /* DIX */ {
851 if (sshdr.asc == 0x10) { /* DIF */
860 if (sshdr.asc == 0x04) {
861 switch (sshdr.ascq) {
1786 * @sshdr: place to put sense data (or NULL if no sense to be collected).
1796 struct scsi_mode_data *data, struct scsi_sense_hdr *sshdr)
1846 sshdr, timeout, retries, NULL);
1862 * @sshdr: place to put sense data (or NULL if no sense to be collected).
1872 struct scsi_mode_data *data, struct scsi_sense_hdr *sshdr)
1886 if (!sshdr)
1887 sshdr = &my_sshdr;
1911 sshdr, timeout, retries, NULL);
1920 if (scsi_sense_valid(sshdr)) {
1921 if ((sshdr->sense_key == ILLEGAL_REQUEST) &&
1922 (sshdr->asc == 0x20) && (sshdr->ascq == 0)) {
1982 struct scsi_sense_hdr *sshdr;
1986 sshdr = kzalloc(sizeof(*sshdr), GFP_KERNEL);
1988 sshdr = sshdr_external;
1992 result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, 0, sshdr,
1994 if (sdev->removable && scsi_sense_valid(sshdr) &&
1995 sshdr->sense_key == UNIT_ATTENTION)
1997 } while (scsi_sense_valid(sshdr) &&
1998 sshdr->sense_key == UNIT_ATTENTION && --retries);
2000 if (!sshdr)
2004 if (sdev->removable && scsi_sense_valid(sshdr) &&
2005 (sshdr->sense_key == UNIT_ATTENTION ||
2006 sshdr->sense_key == NOT_READY)) {
2011 kfree(sshdr);