Lines Matching refs:sense_len

2104 		     uint32_t sense_len, struct rsp_que *rsp, int res)  in qlafx00_handle_sense()  argument
2110 SET_FW_SENSE_LEN(sp, sense_len); in qlafx00_handle_sense()
2112 if (sense_len >= SCSI_SENSE_BUFFERSIZE) in qlafx00_handle_sense()
2113 sense_len = SCSI_SENSE_BUFFERSIZE; in qlafx00_handle_sense()
2115 SET_CMD_SENSE_LEN(sp, sense_len); in qlafx00_handle_sense()
2117 track_sense_len = sense_len; in qlafx00_handle_sense()
2119 if (sense_len > par_sense_len) in qlafx00_handle_sense()
2120 sense_len = par_sense_len; in qlafx00_handle_sense()
2122 memcpy(cp->sense_buffer, sense_data, sense_len); in qlafx00_handle_sense()
2124 SET_FW_SENSE_LEN(sp, GET_FW_SENSE_LEN(sp) - sense_len); in qlafx00_handle_sense()
2126 SET_CMD_SENSE_PTR(sp, cp->sense_buffer + sense_len); in qlafx00_handle_sense()
2127 track_sense_len -= sense_len; in qlafx00_handle_sense()
2132 sense_len, par_sense_len, track_sense_len); in qlafx00_handle_sense()
2138 if (sense_len) { in qlafx00_handle_sense()
2144 cp->sense_buffer, sense_len); in qlafx00_handle_sense()
2260 uint32_t sense_len, par_sense_len, rsp_info_len, resid_len, in qlafx00_status_entry() local
2322 sense_len = par_sense_len = rsp_info_len = resid_len = in qlafx00_status_entry()
2325 sense_len = sts->sense_len; in qlafx00_status_entry()
2382 qlafx00_handle_sense(sp, sense_data, par_sense_len, sense_len, in qlafx00_status_entry()
2465 sense_len, rsp, res); in qlafx00_status_entry()
2510 rsp_info, resid_len, fw_resid_len, sense_len, in qlafx00_status_entry()
2534 uint32_t sense_len; in qlafx00_status_cont_entry() local
2561 sense_len = GET_CMD_SENSE_LEN(sp); in qlafx00_status_cont_entry()
2565 sp, sense_len, sense_ptr); in qlafx00_status_cont_entry()
2567 if (sense_len > sizeof(pkt->data)) in qlafx00_status_cont_entry()
2570 sense_sz = sense_len; in qlafx00_status_cont_entry()
2579 sense_len -= sense_sz; in qlafx00_status_cont_entry()
2583 SET_CMD_SENSE_LEN(sp, sense_len); in qlafx00_status_cont_entry()
2585 sense_len = GET_FW_SENSE_LEN(sp); in qlafx00_status_cont_entry()
2586 sense_len = (sense_len > sizeof(pkt->data)) ? in qlafx00_status_cont_entry()
2587 (sense_len - sizeof(pkt->data)) : 0; in qlafx00_status_cont_entry()
2588 SET_FW_SENSE_LEN(sp, sense_len); in qlafx00_status_cont_entry()
2591 if (sense_len == 0) { in qlafx00_status_cont_entry()