Functions | |
| static int32_t | sli_be3_wqe_ini_write (sli4_t *sli4, void *buf, size_t size, uint16_t lun, uint32_t exp_xfer_len, uint32_t cmdsn, uint16_t icd_index, ocs_hal_dif_info_t *dif_info, sli4_sge_t *sgl, uint32_t n_sge) |
| Write an INITIATOR_WRITE_COMMAND WQE work queue entry. More... | |
| static int32_t | sli_be3_wqe_ini_tmf (sli4_t *sli4, void *buf, size_t size, uint16_t lun, uint32_t cmdsn, uint16_t icd_index, sli4_sge_t *sgl, uint32_t n_sge) |
| Write an INITIATOR_TMF WQE work queue entry. More... | |
| static int32_t | sli_be3_wqe_ini_nop (sli4_t *sli4, void *buf, size_t size, uint8_t dm, uint32_t cmdsn, ocs_dma_t *bhs, ocs_dma_t *payload1, ocs_dma_t *payload2, uint32_t exp_xfer_len, uint16_t icd_index) |
| Write an INITIATOR_NOP_OUT_COMMAND WQE work queue entry. More... | |
| static int32_t | sli_be3_wqe_ini_read (sli4_t *sli4, void *buf, size_t size, uint16_t lun, uint32_t exp_xfer_len, uint32_t cmdsn, uint16_t icd_index, ocs_hal_dif_info_t *dif_info, sli4_sge_t *sgl, uint32_t n_sge) |
| Write an INITIATOR_READ WQE work queue entry. More... | |
| static int32_t | sli_be3_wqe_tgt_sts (sli4_t *sli4, void *buf, size_t size, ocs_dma_t *bhs, uint16_t lun, uint32_t exp_xfer_len, uint32_t exp_data_sn, uint32_t itt, uint16_t icd_index, uint16_t ref_icd_index, ocs_hal_dif_info_t *dif_info, uint32_t r2t_offset, sli4_sge_t *sgl, uint32_t n_sge) |
| Write an TGT_STS_WQE work queue entry. More... | |
| static int32_t | sli_be3_wqe_tgt_datain (sli4_t *sli4, void *buf, size_t size, ocs_dma_t *bhs, uint16_t lun, uint8_t dm, uint8_t underrun, uint8_t overrun, uint32_t exp_xfer_len, uint16_t icd_index, uint16_t ref_icd_index, uint32_t data_sn, uint8_t piggy_back_status, ocs_hal_dif_info_t *dif_info, sli4_sge_t *sgl, uint32_t n_sge) |
| Write a TGT_DATAIN_WQE work queue entry. More... | |
| static int32_t | sli_be3_wqe_tgt_sos (sli4_t *sli4, void *buf, size_t size, ocs_dma_t *bhs, ocs_dma_t *payload1, ocs_dma_t *payload2, uint16_t lun, uint8_t dm, uint32_t exp_xfer_len, uint16_t icd_index) |
| Write a TGT_SOS_WQE work queue entry. More... | |
| static int32_t | sli_be3_wqe_unassisted (sli4_t *sli4, void *buf, size_t size, uint8_t set_dm, uint8_t incr_statsn, uint8_t is_login, ocs_dma_t *bhs, ocs_dma_t *payload1, ocs_dma_t *payload2, uint32_t exp_xfer_len, uint16_t icd_index) |
| Write an DM_CMD_WQE work queue entry. More... | |
| static int32_t | sli_be3_queue_iscsi_wq_write (sli4_t *sli4, sli4_queue_t *q, uint8_t *entry, void *io) |
| Write an WQE entry to the queue object. More... | |
| static int32_t | sli_be3_queue_iscsi_wqe_invalidate (sli4_t *sli4, sli4_queue_t *q, void *io, uint8_t is_for_tm) |
| Writes a 1 to the invalidate bit of the WQE. More... | |
|
static |
Write an WQE entry to the queue object.
| sli4 | SLI context. |
| q | Pointer to the queue object. |
| entry | Pointer to the entry contents. |
| io | Pointer to the IO object. |
Definition at line 714 of file sli4_be3_iscsi.c.
|
static |
Writes a 1 to the invalidate bit of the WQE.
| sli4 | SLI context. |
| q | Pointer to queue object. |
| io | Pointer to the IO object. |
| is_for_tm | TRUE if the IO is being aborted for task management, otherwise FALSE. |
Definition at line 833 of file sli4_be3_iscsi.c.
|
static |
Write an INITIATOR_NOP_OUT_COMMAND WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| dm | Determines whether a dmsg CQE is generated. |
| cmdsn | The iSCSI cmdsn for the command. |
| bhs | Pointer to the basic header segment. |
| payload1 | Optional pointer to payload memory. |
| payload2 | Optional pointer to payload memory. |
| exp_xfer_len | Total number of payload bytes. |
| icd_index | ICD index for this request. |
Definition at line 280 of file sli4_be3_iscsi.c.
|
static |
Write an INITIATOR_READ WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| lun | The LUN value for the command. |
| exp_xfer_len | Total number of payload bytes. |
| cmdsn | iSCSI cmdsn for the command. |
| icd_index | ICD index for this request. |
| dif_info | Pointer to the DIF fields (may be NULL). |
| sgl | Pointer to the SGEs for this IO. |
| n_sge | Number of SGEs present. |
Definition at line 344 of file sli4_be3_iscsi.c.
|
static |
Write an INITIATOR_TMF WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| lun | LUN value for the command. |
| cmdsn | iSCSI cmdsn for the command. |
| icd_index | ICD index for this request. |
| sgl | Pointer to the SGEs for this IO. |
| n_sge | Number of SGEs present. |
Definition at line 240 of file sli4_be3_iscsi.c.
|
static |
Write an INITIATOR_WRITE_COMMAND WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| lun | LUN value for the command. |
| exp_xfer_len | Total number of payload bytes. |
| cmdsn | The iSCSI cmdsn for the command. |
| icd_index | ICD index for this request. |
| dif_info | Pointer to the DIF fields (may be NULL). |
| sgl | Pointer to the SGEs for this IO. |
| n_sge | Number of SGEs present. |
Definition at line 176 of file sli4_be3_iscsi.c.
|
static |
Write a TGT_DATAIN_WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| bhs | Pointer to the basic header segment. |
| lun | The LUN value for the command. |
| dm | Determines whether a dmsg CQE is generated. |
| underrun | Sets the underrun bit in the auto response. |
| overrun | Sets the overrun bit in the auto response. |
| exp_xfer_len | Total number of payload bytes. |
| icd_index | ICD index fr this request. |
| ref_icd_index | Reference ICD Index. |
| data_sn | Starting data sequence number. |
| piggy_back_status | If true, a good status is sent to the initiator. |
| dif_info | Pointer to the DIF fields (may be NULL). |
| sgl | Pointer to the SGEs for this IO. |
| n_sge | Number of SGEs present. |
Definition at line 508 of file sli4_be3_iscsi.c.
|
static |
Write a TGT_SOS_WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| bhs | Pointer to the basic header segment. |
| payload1 | Optional pointer to payload memory. |
| payload2 | Optional pointer to payload memory. |
| lun | The LUN value for the command. |
| dm | Determines whether a dmsg CQE is generated. |
| exp_xfer_len | Total # of payload bytes. |
| icd_index | ICD index fr this request. |
Definition at line 580 of file sli4_be3_iscsi.c.
|
static |
Write an TGT_STS_WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| bhs | Pointer to the basic header segment. |
| lun | LUN value for the command. |
| exp_xfer_len | Total number of payload bytes. |
| exp_data_sn | Expected data sequence number. |
| itt | Initiator transfer tag. |
| icd_index | ICD index for this request. |
| ref_icd_index | Reference ICD Index. |
| dif_info | Pointer to the DIF fields (may be NULL). |
| r2t_offset | R2T buffer offset. |
| sgl | Pointer to the SGEs for this IO. |
| n_sge | Number of SGEs present. |
Definition at line 445 of file sli4_be3_iscsi.c.
|
static |
Write an DM_CMD_WQE work queue entry.
| sli4 | SLI context. |
| buf | Destination buffer for the WQE. |
| size | Buffer size in bytes. |
| set_dm | If TRUE, then a I_T_DMSG_CQE is generated on TCP ACK. |
| incr_statsn | If TRUE, the statsn is incremented by the FW. |
| is_login | If TRUE, the statsn is not updated by FW. |
| bhs | Pointer to the basic header segment. |
| payload1 | Optional pointer to payload memory. |
| payload2 | Optional pointer to payload memory. |
| exp_xfer_len | Total number of payload bytes. |
| icd_index | ICD index for this request. |
Definition at line 638 of file sli4_be3_iscsi.c.