This file contains code related to operating in RQ Pair mode.
Definition in file ocs_hal_rqpair.c.
|
| static int32_t | ocs_hal_rqpair_find (ocs_hal_t *hal, uint16_t rq_id) |
| | Find the RQ index of RQ_ID. More...
|
| |
| static ocs_hal_sequence_t * | ocs_hal_rqpair_get (ocs_hal_t *hal, uint16_t rqindex, uint16_t bufindex) |
| | Return pointer to RQ buffer entry. More...
|
| |
| static int32_t | ocs_hal_rqpair_put (ocs_hal_t *hal, ocs_hal_sequence_t *seq) |
| | Posts an RQ buffer to a queue and update the verification structures. More...
|
| |
| int32_t | ocs_hal_rqpair_process_rq (ocs_hal_t *hal, hal_cq_t *cq, uint8_t *cqe) |
| | Process receive queue completions for RQ Pair mode. More...
|
| |
| int32_t | ocs_hal_rqpair_tow_cmd_process (ocs_hal_t *hal, hal_cq_t *cq, uint8_t *cqe) |
| | Process receive queue completions for RQ Pair mode - Auto xfer rdy. More...
|
| |
| int32_t | ocs_hal_rqpair_tow_data_process (ocs_hal_t *hal, hal_cq_t *cq, uint8_t *cqe) |
| | Process CQ completions for Auto xfer rdy data phases. More...
|
| |
| ocs_hal_rtn_e | ocs_hal_rqpair_sequence_free (ocs_hal_t *hal, ocs_hal_sequence_t *seq) |
| | Return RQ buffers (while in RQ pair mode). More...
|
| |
| ocs_hal_rtn_e | ocs_hal_rqpair_tow_buffer_alloc (ocs_hal_t *hal, uint32_t num_buffers) |
| | Allocate tow buffers. More...
|
| |
| static void | ocs_hal_rqpair_tow_dnrx_check (ocs_hal_t *hal) |
| | Post Auto xfer rdy buffers to the XRIs posted with DNRX. More...
|
| |
| static int32_t | ocs_hal_rqpair_auto_xfer_rdy_move_to_port_cb (ocs_hal_t *hal, int32_t status, uint8_t *mqe, void *arg) |
| | Called when the POST_SGL_PAGE command completes. More...
|
| |
| ocs_hal_rtn_e | ocs_hal_rqpair_tow_move_to_port (ocs_hal_t *hal, ocs_hal_io_t *io) |
| | Prepares an XRI to move to the chip. More...
|
| |
| void | ocs_hal_rqpair_tow_move_to_host (ocs_hal_t *hal, ocs_hal_io_t *io) |
| | Prepares an XRI to move back to the host. More...
|
| |
|
Attach an TOW XRI buffer to an IO
- Description
- Puts the data SGL into the SGL list for the IO object
Note: io_lock must be held.
- Parameters
-
| hal | Hardware context allocated by the caller. |
| io | Pointer to the IO object. |
- Returns
- Returns the value of DNRX bit in the TRSP and ABORT WQEs.
|
| static ocs_hal_rtn_e | ocs_hal_rqpair_tow_buffer_sequence_reset (ocs_hal_t *hal, ocs_hal_sequence_t *seq) |
| | Return tow buffers (while in RQ pair mode). More...
|
| |
| uint8_t | ocs_hal_rqpair_tow_xri_buffer_attach (ocs_hal_t *hal, ocs_hal_io_t *io, int32_t reuse_buf) |
| |
| static void | ocs_hal_rqpair_tow_buffer_free (ocs_hal_t *hal) |
| | Free tow buffers. More...
|
| |
| ocs_hal_rtn_e | ocs_hal_rqpair_init (ocs_hal_t *hal) |
| | Configure the rq_pair function from ocs_hal_init(). Must be after the IOs are setup and the state is active. More...
|
| |
| void | ocs_hal_rqpair_teardown (ocs_hal_t *hal) |
| | Tear down the rq_pair function from ocs_hal_teardown(). More...
|
| |