Define common SLI-4 structures and function prototypes
Definition in file sli4.h.
|
| static uint32_t | sli_eq_doorbell (uint16_t n_popped, uint16_t id, uint8_t arm) |
| |
| static uint32_t | sli_cq_doorbell (uint16_t n_popped, uint16_t id, uint8_t arm) |
| |
| static uint32_t | sli_get_max_queue (sli4_t *sli4, sli4_qtype_e qtype) |
| |
| static uint32_t | sli_get_max_qentries (sli4_t *sli4, sli4_qtype_e qtype) |
| |
| static uint32_t | sli_get_max_sge (sli4_t *sli4) |
| |
| static uint32_t | sli_is_dif_capable (sli4_t *sli4) |
| |
| static uint32_t | sli_is_dif_inline_capable (sli4_t *sli4) |
| |
| static uint32_t | sli_is_dif_separate_capable (sli4_t *sli4) |
| |
| static uint32_t | sli_is_sgl_chaining_capable (sli4_t *sli4) |
| |
| static uint32_t | sli_is_dual_ulp_capable (sli4_t *sli4) |
| |
| static uint32_t | sli_is_ulp_enabled (sli4_t *sli4, uint16_t ulp) |
| |
| static void | sli_chain_sge_build (sli4_t *sli4, sli4_chain_sge_t *sge, uint32_t icd_index, uint32_t frag_num, uint32_t offset) |
| |
| static uint32_t | sli_get_sli_rev (sli4_t *sli4) |
| |
| static uint32_t | sli_get_sli_family (sli4_t *sli4) |
| |
| static uint32_t | sli_get_if_type (sli4_t *sli4) |
| |
| static void * | sli_get_vpd (sli4_t *sli4) |
| |
| static uint32_t | sli_get_vpd_len (sli4_t *sli4) |
| |
| static char * | sli_get_ipl_name (sli4_t *sli4) |
| |
| static uint32_t | sli_convert_mask_to_count (uint32_t method, uint32_t mask) |
| |
| int32_t | sli_cmd_mailbox_queue_entry (sli4_t *, void *, size_t, uint64_t, uint32_t, ocs_dma_t *) |
| | Write a MQE header in the provided buffer. More...
|
| |
| int32_t | sli_cmd_common_tcp_upload (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint16_t wq_id, uint8_t graceful) |
| | Write a COMMON_TCP_UPLOAD command. More...
|
| |
| int32_t | sli_cmd_common_nop (sli4_t *, void *, size_t, uint64_t, uint64_t) |
| | Write a COMMON_NOP command. More...
|
| |
| int32_t | sli_cmd_common_set_be_configuration_and_resources (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint8_t *mac_addr) |
| | Write a COMMON_COMMON_SET_BE_CONFIGURATION_AND_RESOURCES command. More...
|
| |
| int32_t | sli_cmd_common_get_profile_list (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t start_profile_index, ocs_dma_t *dma) |
| | Write a COMMON_COMMON_GET_PROFILE_LIST command. More...
|
| |
| int32_t | sli_cmd_common_get_active_profile (sli4_t *sli4, void *buf, size_t size, uint64_t tag) |
| | Write a COMMON_COMMON_GET_ACTIVE_PROFILE command. More...
|
| |
| int32_t | sli_cmd_common_set_active_profile (sli4_t *sli4, void *buf, size_t size, uint64_t tag, uint32_t fd, uint32_t active_profile_id) |
| | Write a COMMON_COMMON_SET_ACTIVE_PROFILE command. More...
|
| |
| int32_t | sli_cmd_common_get_reconfig_link_info (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *dma) |
| | Write a COMMON_COMMON_GET_RECONFIG_LINK_INFO command. More...
|
| |
| int32_t | sli_cmd_common_set_reconfig_link_id (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *dma, uint32_t fd, uint32_t active_link_config_id) |
| | Write a COMMON_COMMON_SET_RECONFIG_LINK_ID command. More...
|
| |
| int32_t | sli_cmd_common_get_function_config (sli4_t *sli4, void *buf, size_t size, uint64_t tag) |
| | Write a COMMON_COMMON_GET_FUNCTION_CONFIG command. More...
|
| |
| int32_t | sli_cmd_common_get_profile_config (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *dma) |
| | Write a COMMON_COMMON_GET_PROFILE_CONFIG command. More...
|
| |
| int32_t | sli_cmd_common_set_profile_config (sli4_t *sli4, void *buf, size_t size, uint64_t tag, ocs_dma_t *dma, uint8_t profile_id, uint32_t descriptor_count, uint8_t isap) |
| | Write a COMMON_COMMON_SET_PROFILE_CONFIG command. More...
|
| |
| int32_t | sli_cmd_common_set_features (sli4_t *, void *, size_t, uint32_t, uint32_t, void *) |
| | Write a COMMON_SET_FEATURES command. More...
|
| |
| int32_t | sli_cqe_mq (void *) |
| | Check mailbox/queue completion entry. More...
|
| |
| int32_t | sli_cqe_async (sli4_t *, void *) |
| | Check asynchronous event completion entry. More...
|
| |
| int32_t | sli_setup (sli4_t *, ocs_os_handle_t, sli4_port_type_e) |
| | Setup the SLI context. More...
|
| |
| int32_t | sli_raise_ue (sli4_t *) |
| |
| int32_t | sli_init (sli4_t *) |
| |
| int32_t | sli_reset (sli4_t *) |
| |
| int32_t | sli_fw_reset (sli4_t *) |
| |
| int32_t | sli_teardown (sli4_t *) |
| | Tear down a SLI context. More...
|
| |
| int32_t | sli_callback (sli4_t *, sli4_callback_e, void *, void *) |
| | Register a callback for the given event. More...
|
| |
| int32_t | sli_bmbx_command (sli4_t *) |
| | Submit a command to the bootstrap mailbox and check the status. More...
|
| |
| int32_t | __sli_queue_init (sli4_t *, sli4_queue_t *, uint32_t, uint32_t, size_t, uint32_t, uint32_t) |
| | Initialize a queue object. More...
|
| |
| int32_t | __sli_create_queue (sli4_t *, sli4_queue_t *) |
| | Issue command to create queue. More...
|
| |
| int32_t | sli_eq_modify_delay (sli4_t *sli4, sli4_queue_t *eq, uint32_t num_eq, uint32_t shift, uint32_t delay_mult) |
| | Modify the delay timer for all the EQs. More...
|
| |
| int32_t | sli_queue_alloc (sli4_t *, uint32_t, sli4_queue_t *, uint32_t, sli4_queue_t *, uint16_t) |
| | Allocate a queue. More...
|
| |
| int32_t | sli_queue_free (sli4_t *, sli4_queue_t *) |
| | Free a queue. More...
|
| |
| int32_t | sli_queue_reset (sli4_t *, sli4_queue_t *) |
| | Zero all queue entries and reset the indexes. More...
|
| |
| int32_t | sli_queue_is_empty (sli4_t *, sli4_queue_t *) |
| | Check if the given queue is empty. More...
|
| |
| int32_t | sli_queue_arm (sli4_t *, sli4_queue_t *, uint8_t) |
| | Arm or dis-arm a queue. More...
|
| |
| int32_t | _sli_queue_write (sli4_t *, sli4_queue_t *, uint8_t *) |
| | Write an entry to the queue object. More...
|
| |
| int32_t | sli_queue_write (sli4_t *, sli4_queue_t *, uint8_t *) |
| | Write an entry to the queue object. More...
|
| |
| int32_t | sli_queue_read (sli4_t *, sli4_queue_t *, uint8_t *) |
| | Read an entry from the queue object. More...
|
| |
| int32_t | sli_queue_index (sli4_t *, sli4_queue_t *) |
| |
| int32_t | sli_queue_poke (sli4_t *, sli4_queue_t *, uint32_t, uint8_t *) |
| |
| int32_t | _sli_queue_poke (sli4_t *, sli4_queue_t *, uint32_t, uint8_t *) |
| |
| int32_t | sli_queue_peek (sli4_t *, sli4_queue_t *, uint32_t, uint8_t *) |
| |
| int32_t | _sli_queue_peek (sli4_t *, sli4_queue_t *, uint32_t, uint8_t *) |
| |
| int32_t | sli_queue_iscsi_wq_write (sli4_t *sli4, sli4_queue_t *q, uint8_t *entry, void *io) |
| |
| int32_t | sli_queue_iscsi_wqe_invalidate (sli4_t *sli4, sli4_queue_t *q, void *io) |
| |
| void * | sli_queue_iscsi_wqe_complete (sli4_t *sli4, sli4_queue_t *q, uint8_t wqe_index) |
| | Processes a solicited IO completion. Moves the WRB to the free list. More...
|
| |
| int32_t | sli_queue_iscsi_tcp_ack (sli4_t *sli4, sli4_queue_t *q, uint8_t wqe_index) |
| | Processes a TCP ACK completion. More...
|
| |
| void * | sli_queue_iscsi_icd_lookup (sli4_t *sli4, sli4_queue_t *q, uint16_t icd_index) |
| | Returns the IO tied to a specific ICD index. More...
|
| |
| void * | sli_queue_iscsi_icd_invalid (sli4_t *sli4, sli4_queue_t *q, uint16_t icd_index, uint8_t *wait_for_tcp_ack, uint8_t tcp_ack_status) |
| | Processes a target command invalidation IO completion. Moves the WRB to the free list. More...
|
| |
| uint32_t | sli_queue_iscsi_free_cnt (sli4_t *sli4, sli4_queue_t *q) |
| | Return the number of free WRB entries. More...
|
| |
| void | sli_queue_iscsi_cleanup (void *hal, sli4_t *sli4, sli4_queue_t *q) |
| | Moves any WQE entries from the busy back to the free list when a connection is uploaded. More...
|
| |
| int32_t | sli_eq_parse (sli4_t *, uint8_t *, uint16_t *) |
| | Parse an EQ entry to retrieve the CQ_ID for this event. More...
|
| |
| int32_t | sli_cq_parse (sli4_t *, sli4_queue_t *, uint8_t *, sli4_qentry_fields_t *) |
| | Parse a CQ entry to retrieve event type and associated queue. More...
|
| |
| void | sli_interrupt_set (sli4_t *, uint8_t) |
| |
| uint32_t | sli_reg_read (sli4_t *, sli4_regname_e) |
| | Read the given SLI register. More...
|
| |
| void | sli_reg_write (sli4_t *, sli4_regname_e, uint32_t) |
| | Write the value to the given SLI register. More...
|
| |
| int32_t | sli_fw_error_status (sli4_t *) |
| | Read the SLIPORT_SEMAPHORE and SLIPORT_STATUS registers to check if the port status indicates that a FW error has occurred. More...
|
| |