Lines Matching defs:sts_entry
15 * @sts_entry: Pointer to status entry structure.
19 struct status_entry *sts_entry,
26 sense_len = le16_to_cpu(sts_entry->senseDataByteCnt);
41 /* Copy sense from sts_entry pkt */
43 memcpy(cmd->sense_buffer, sts_entry->senseData, sense_len);
49 sts_entry->senseData[2] & 0x0f,
50 sts_entry->senseData[7],
51 sts_entry->senseData[12],
52 sts_entry->senseData[13]));
112 * @sts_entry: Pointer to status entry structure.
115 struct status_entry *sts_entry)
123 srb = qla4xxx_del_from_active_array(ha, le32_to_cpu(sts_entry->handle));
127 sts_entry->handle, srb);
139 ha->host_no, __func__, sts_entry->handle,
152 residual = le32_to_cpu(sts_entry->residualByteCnt);
155 scsi_status = sts_entry->scsiStatus;
156 switch (sts_entry->completionStatus) {
159 if (sts_entry->iscsiFlags & ISCSI_FLAG_RESIDUAL_OVER) {
164 if (sts_entry->iscsiFlags &ISCSI_FLAG_RESIDUAL_UNDER) {
189 qla4xxx_copy_sense(ha, sts_entry, srb);
232 if ((sts_entry->iscsiFlags & ISCSI_FLAG_RESIDUAL_OVER) ||
233 (sts_entry->completionStatus == SCS_DATA_OVERRUN)) {
245 if (sts_entry->iscsiFlags & ISCSI_FLAG_RESIDUAL_UNDER) {
309 qla4xxx_copy_sense(ha, sts_entry, srb);
318 cmd->device->lun, sts_entry->completionStatus));
334 cmd->result = DID_OK << 16 | sts_entry->scsiStatus;
339 sts_entry->completionStatus,
340 sts_entry->scsiStatus, sts_entry->state_flags,
341 sts_entry->iscsiFlags,
342 sts_entry->iscsiResponse));
353 srb->cc_stat = sts_entry->completionStatus;
361 * @sts_entry: Pointer to status entry structure.
364 struct passthru_status *sts_entry)
374 itt = sts_entry->handle;
375 fw_ddb_index = le32_to_cpu(sts_entry->target);
381 __func__, sts_entry->target);
397 memcpy(&task_data->sts, sts_entry, sizeof(struct passthru_status));
476 struct status_entry *sts_entry;
480 sts_entry = (struct status_entry *) ha->response_ptr;
492 switch (sts_entry->hdr.entryType) {
495 qla4xxx_status_entry(ha, sts_entry);
499 if (sts_entry->hdr.systemDefined == SD_ISCSI_PDU)
501 (struct passthru_status *)sts_entry);
511 (struct status_cont_entry *) sts_entry);
520 le32_to_cpu(sts_entry->
544 (struct mbox_status_iocb *)sts_entry);
555 sts_entry->hdr.entryType));
558 ((struct response *)sts_entry)->signature = RESPONSE_PROCESSED;
571 ha->host_no, __func__, srb, sts_entry->hdr.entryType,
572 sts_entry->completionStatus));