Lines Matching refs:sense_buf
5976 u8 *sense_buf = ipr_cmd->scsi_cmd->sense_buffer;
5981 memset(sense_buf, 0, SCSI_SENSE_BUFFERSIZE);
5991 sense_buf[0] = 0x72;
5992 sense_buf[1] = IPR_IOASC_SENSE_KEY(ioasc);
5993 sense_buf[2] = IPR_IOASC_SENSE_CODE(ioasc);
5994 sense_buf[3] = IPR_IOASC_SENSE_QUAL(ioasc);
5996 sense_buf[7] = 12;
5997 sense_buf[8] = 0;
5998 sense_buf[9] = 0x0A;
5999 sense_buf[10] = 0x80;
6003 sense_buf[12] = (failing_lba & 0xff000000) >> 24;
6004 sense_buf[13] = (failing_lba & 0x00ff0000) >> 16;
6005 sense_buf[14] = (failing_lba & 0x0000ff00) >> 8;
6006 sense_buf[15] = failing_lba & 0x000000ff;
6010 sense_buf[16] = (failing_lba & 0xff000000) >> 24;
6011 sense_buf[17] = (failing_lba & 0x00ff0000) >> 16;
6012 sense_buf[18] = (failing_lba & 0x0000ff00) >> 8;
6013 sense_buf[19] = failing_lba & 0x000000ff;
6015 sense_buf[0] = 0x70;
6016 sense_buf[2] = IPR_IOASC_SENSE_KEY(ioasc);
6017 sense_buf[12] = IPR_IOASC_SENSE_CODE(ioasc);
6018 sense_buf[13] = IPR_IOASC_SENSE_QUAL(ioasc);
6023 sense_buf[7] = 10; /* additional length */
6027 sense_buf[15] = 0xC0;
6029 sense_buf[15] = 0x80;
6031 sense_buf[16] =
6034 sense_buf[17] =
6044 sense_buf[0] |= 0x80; /* Or in the Valid bit */
6045 sense_buf[3] = (failing_lba & 0xff000000) >> 24;
6046 sense_buf[4] = (failing_lba & 0x00ff0000) >> 16;
6047 sense_buf[5] = (failing_lba & 0x0000ff00) >> 8;
6048 sense_buf[6] = failing_lba & 0x000000ff;
6051 sense_buf[7] = 6; /* additional length */