Lines Matching refs:sense_buf
6295 u8 *sense_buf = ipr_cmd->scsi_cmd->sense_buffer;
6300 memset(sense_buf, 0, SCSI_SENSE_BUFFERSIZE);
6310 sense_buf[0] = 0x72;
6311 sense_buf[1] = IPR_IOASC_SENSE_KEY(ioasc);
6312 sense_buf[2] = IPR_IOASC_SENSE_CODE(ioasc);
6313 sense_buf[3] = IPR_IOASC_SENSE_QUAL(ioasc);
6315 sense_buf[7] = 12;
6316 sense_buf[8] = 0;
6317 sense_buf[9] = 0x0A;
6318 sense_buf[10] = 0x80;
6322 sense_buf[12] = (failing_lba & 0xff000000) >> 24;
6323 sense_buf[13] = (failing_lba & 0x00ff0000) >> 16;
6324 sense_buf[14] = (failing_lba & 0x0000ff00) >> 8;
6325 sense_buf[15] = failing_lba & 0x000000ff;
6329 sense_buf[16] = (failing_lba & 0xff000000) >> 24;
6330 sense_buf[17] = (failing_lba & 0x00ff0000) >> 16;
6331 sense_buf[18] = (failing_lba & 0x0000ff00) >> 8;
6332 sense_buf[19] = failing_lba & 0x000000ff;
6334 sense_buf[0] = 0x70;
6335 sense_buf[2] = IPR_IOASC_SENSE_KEY(ioasc);
6336 sense_buf[12] = IPR_IOASC_SENSE_CODE(ioasc);
6337 sense_buf[13] = IPR_IOASC_SENSE_QUAL(ioasc);
6342 sense_buf[7] = 10; /* additional length */
6346 sense_buf[15] = 0xC0;
6348 sense_buf[15] = 0x80;
6350 sense_buf[16] =
6353 sense_buf[17] =
6363 sense_buf[0] |= 0x80; /* Or in the Valid bit */
6364 sense_buf[3] = (failing_lba & 0xff000000) >> 24;
6365 sense_buf[4] = (failing_lba & 0x00ff0000) >> 16;
6366 sense_buf[5] = (failing_lba & 0x0000ff00) >> 8;
6367 sense_buf[6] = failing_lba & 0x000000ff;
6370 sense_buf[7] = 6; /* additional length */