Home
last modified time | relevance | path

Searched refs:fcprsp (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/ocs_fc/
H A Docs_scsi.c1676 fcp_rsp_iu_t *fcprsp = io->rspbuf.virt; in ocs_scsi_send_resp() local
1678 if (!fcprsp) { in ocs_scsi_send_resp()
1685 ocs_memset(fcprsp, 0, sizeof(*fcprsp)); in ocs_scsi_send_resp()
1687 io->wire_len += (sizeof(*fcprsp) - sizeof(fcprsp->data)); in ocs_scsi_send_resp()
1689 fcprsp->scsi_status = scsi_status; in ocs_scsi_send_resp()
1690 *((uint16_t*)fcprsp->status_qualifier) = ocs_htobe16(scsi_status_qualifier); in ocs_scsi_send_resp()
1699 fcprsp->flags |= FCP_RESID_UNDER; in ocs_scsi_send_resp()
1700 *((uint32_t *)fcprsp->fcp_resid) = ocs_htobe32(residual); in ocs_scsi_send_resp()
1702 fcprsp->flags |= FCP_RESID_OVER; in ocs_scsi_send_resp()
1703 *((uint32_t *)fcprsp->fcp_resid) = ocs_htobe32(-residual); in ocs_scsi_send_resp()
[all …]
H A Docs_unsol.c1337 fcp_rsp_iu_t fcprsp; in ocs_sframe_send_task_set_full_or_busy() local
1349 ocs_memset(&fcprsp, 0, sizeof(fcprsp)); in ocs_sframe_send_task_set_full_or_busy()
1351fcprsp.scsi_status = ocs_list_empty(&node->active_ios) ? SCSI_STATUS_BUSY : SCSI_STATUS_TASK_SET_F… in ocs_sframe_send_task_set_full_or_busy()
1353 *((uint32_t*)&fcprsp.fcp_resid) = fcp_dl; in ocs_sframe_send_task_set_full_or_busy()
1356 rc = ocs_sframe_send_fcp_rsp(node, seq, &fcprsp, sizeof(fcprsp) - sizeof(fcprsp.data)); in ocs_sframe_send_task_set_full_or_busy()