Lines Matching refs:sense_buf

6298 	u8 *sense_buf = ipr_cmd->scsi_cmd->sense_buffer;  in ipr_gen_sense()  local
6303 memset(sense_buf, 0, SCSI_SENSE_BUFFERSIZE); in ipr_gen_sense()
6313 sense_buf[0] = 0x72; in ipr_gen_sense()
6314 sense_buf[1] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
6315 sense_buf[2] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
6316 sense_buf[3] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
6318 sense_buf[7] = 12; in ipr_gen_sense()
6319 sense_buf[8] = 0; in ipr_gen_sense()
6320 sense_buf[9] = 0x0A; in ipr_gen_sense()
6321 sense_buf[10] = 0x80; in ipr_gen_sense()
6325 sense_buf[12] = (failing_lba & 0xff000000) >> 24; in ipr_gen_sense()
6326 sense_buf[13] = (failing_lba & 0x00ff0000) >> 16; in ipr_gen_sense()
6327 sense_buf[14] = (failing_lba & 0x0000ff00) >> 8; in ipr_gen_sense()
6328 sense_buf[15] = failing_lba & 0x000000ff; in ipr_gen_sense()
6332 sense_buf[16] = (failing_lba & 0xff000000) >> 24; in ipr_gen_sense()
6333 sense_buf[17] = (failing_lba & 0x00ff0000) >> 16; in ipr_gen_sense()
6334 sense_buf[18] = (failing_lba & 0x0000ff00) >> 8; in ipr_gen_sense()
6335 sense_buf[19] = failing_lba & 0x000000ff; in ipr_gen_sense()
6337 sense_buf[0] = 0x70; in ipr_gen_sense()
6338 sense_buf[2] = IPR_IOASC_SENSE_KEY(ioasc); in ipr_gen_sense()
6339 sense_buf[12] = IPR_IOASC_SENSE_CODE(ioasc); in ipr_gen_sense()
6340 sense_buf[13] = IPR_IOASC_SENSE_QUAL(ioasc); in ipr_gen_sense()
6345 sense_buf[7] = 10; /* additional length */ in ipr_gen_sense()
6349 sense_buf[15] = 0xC0; in ipr_gen_sense()
6351 sense_buf[15] = 0x80; in ipr_gen_sense()
6353 sense_buf[16] = in ipr_gen_sense()
6356 sense_buf[17] = in ipr_gen_sense()
6366 sense_buf[0] |= 0x80; /* Or in the Valid bit */ in ipr_gen_sense()
6367 sense_buf[3] = (failing_lba & 0xff000000) >> 24; in ipr_gen_sense()
6368 sense_buf[4] = (failing_lba & 0x00ff0000) >> 16; in ipr_gen_sense()
6369 sense_buf[5] = (failing_lba & 0x0000ff00) >> 8; in ipr_gen_sense()
6370 sense_buf[6] = failing_lba & 0x000000ff; in ipr_gen_sense()
6373 sense_buf[7] = 6; /* additional length */ in ipr_gen_sense()