Lines Matching refs:sense_buf
5834 u8 *sense_buf = ipr_cmd->scsi_cmd->sense_buffer; in ipr_gen_sense() local
5839 memset(sense_buf, 0, SCSI_SENSE_BUFFERSIZE); in ipr_gen_sense()
5849 sense_buf[0] = 0x72; in ipr_gen_sense()
5850 sense_buf[1] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
5851 sense_buf[2] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
5852 sense_buf[3] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
5854 sense_buf[7] = 12; in ipr_gen_sense()
5855 sense_buf[8] = 0; in ipr_gen_sense()
5856 sense_buf[9] = 0x0A; in ipr_gen_sense()
5857 sense_buf[10] = 0x80; in ipr_gen_sense()
5861 sense_buf[12] = (failing_lba & 0xff000000) >> 24; in ipr_gen_sense()
5862 sense_buf[13] = (failing_lba & 0x00ff0000) >> 16; in ipr_gen_sense()
5863 sense_buf[14] = (failing_lba & 0x0000ff00) >> 8; in ipr_gen_sense()
5864 sense_buf[15] = failing_lba & 0x000000ff; in ipr_gen_sense()
5868 sense_buf[16] = (failing_lba & 0xff000000) >> 24; in ipr_gen_sense()
5869 sense_buf[17] = (failing_lba & 0x00ff0000) >> 16; in ipr_gen_sense()
5870 sense_buf[18] = (failing_lba & 0x0000ff00) >> 8; in ipr_gen_sense()
5871 sense_buf[19] = failing_lba & 0x000000ff; in ipr_gen_sense()
5873 sense_buf[0] = 0x70; in ipr_gen_sense()
5874 sense_buf[2] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
5875 sense_buf[12] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
5876 sense_buf[13] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
5881 sense_buf[7] = 10; /* additional length */ in ipr_gen_sense()
5885 sense_buf[15] = 0xC0; in ipr_gen_sense()
5887 sense_buf[15] = 0x80; in ipr_gen_sense()
5889 sense_buf[16] = in ipr_gen_sense()
5892 sense_buf[17] = in ipr_gen_sense()
5902 sense_buf[0] |= 0x80; /* Or in the Valid bit */ in ipr_gen_sense()
5903 sense_buf[3] = (failing_lba & 0xff000000) >> 24; in ipr_gen_sense()
5904 sense_buf[4] = (failing_lba & 0x00ff0000) >> 16; in ipr_gen_sense()
5905 sense_buf[5] = (failing_lba & 0x0000ff00) >> 8; in ipr_gen_sense()
5906 sense_buf[6] = failing_lba & 0x000000ff; in ipr_gen_sense()
5909 sense_buf[7] = 6; /* additional length */ in ipr_gen_sense()