Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_ras.c File Reference
#include "ocs.h"
#include "ocs_ras.h"

Go to the source code of this file.

Functions

static uint32_t ocs_ras_get_sli_dev_pci_info (ocs_t *ocs)
 
static ocs_ras_adapter_desc_t * ocs_ras_lookup_adapter (ocs_t *ocs)
 
static bool ocs_ras_get_virt_buf_info (ocs_t *ocs, ocs_ras_adapter_desc_t *adapter_desc, int32_t *active_idx, int32_t *offset)
 
static ocs_diag_log_buf_t * ocs_ras_get_virtual_buf (ocs_t *ocs, int32_t *buf_count)
 
uintptr_t ocs_ras_get_lwpd_dma_addr (ocs_os_handle_t *ocs_os)
 
uint32_t * ocs_ras_get_dma_addr_list (ocs_os_handle_t *ocs_os, int32_t *buf_count)
 
static int ocs_ras_gather_logs (void *log_buf, int32_t user_buf_len, ocs_diag_log_buf_t *buf_desc_tbl, int32_t buf_count)
 
int ocs_ras_copy_logs (ocs_t *ocs, void *user_buf, int32_t user_buf_len)
 
static int32_t ocs_ras_alloc_dma_buffers (ocs_t *ocs, ocs_ras_adapter_desc_t *adapter_desc)
 
static void ocs_ras_free_dma_buffers (ocs_ras_adapter_desc_t *adapter_desc)
 
static void ocs_ras_free_adapter_descriptor (ocs_ras_adapter_desc_t *adapter_desc)
 
static void ocs_ras_put_adapter_descriptor (void *cb_arg)
 
int ocs_hal_stop_fw_diagnostic_logging (ocs_hal_t *hal)
 Stop firmware diagnostic logging (RAS). More...
 
int ocs_ras_free_resc (ocs_os_handle_t *ocs_os)
 
int32_t ocs_ras_allocate_resc (ocs_os_handle_t *ocs_os)
 
void ocs_ras_init (uint32_t fw_log_level, uint32_t log_buf_size)
 

Variables

static ocs_ras_subsystem_t ocs_ras_subsystem_g
 

Function Details

int ocs_hal_stop_fw_diagnostic_logging ( ocs_hal_t *  hal)

Stop firmware diagnostic logging (RAS).

Parameters
halHardware context.
Returns
Returns OCS_HAL_RTN_SUCCESS on success.

Definition at line 7016 of file ocs_hal.c.

static int32_t ocs_ras_alloc_dma_buffers ( ocs_t *  ocs,
ocs_ras_adapter_desc_t *  adapter_desc 
)
static

Definition at line 255 of file ocs_ras.c.

int32_t ocs_ras_allocate_resc ( ocs_os_handle_t *  ocs_os)

Definition at line 343 of file ocs_ras.c.

int ocs_ras_copy_logs ( ocs_t *  ocs,
void *  user_buf,
int32_t  user_buf_len 
)

Definition at line 237 of file ocs_ras.c.

static void ocs_ras_free_adapter_descriptor ( ocs_ras_adapter_desc_t *  adapter_desc)
static

Definition at line 295 of file ocs_ras.c.

static void ocs_ras_free_dma_buffers ( ocs_ras_adapter_desc_t *  adapter_desc)
static

Definition at line 279 of file ocs_ras.c.

int ocs_ras_free_resc ( ocs_os_handle_t *  ocs_os)

Definition at line 315 of file ocs_ras.c.

static int ocs_ras_gather_logs ( void *  log_buf,
int32_t  user_buf_len,
ocs_diag_log_buf_t *  buf_desc_tbl,
int32_t  buf_count 
)
static

Definition at line 217 of file ocs_ras.c.

uint32_t* ocs_ras_get_dma_addr_list ( ocs_os_handle_t *  ocs_os,
int32_t *  buf_count 
)

Definition at line 185 of file ocs_ras.c.

uintptr_t ocs_ras_get_lwpd_dma_addr ( ocs_os_handle_t *  ocs_os)

Definition at line 172 of file ocs_ras.c.

static uint32_t ocs_ras_get_sli_dev_pci_info ( ocs_t *  ocs)
static

Definition at line 44 of file ocs_ras.c.

static bool ocs_ras_get_virt_buf_info ( ocs_t *  ocs,
ocs_ras_adapter_desc_t *  adapter_desc,
int32_t *  active_idx,
int32_t *  offset 
)
static

Definition at line 79 of file ocs_ras.c.

static ocs_diag_log_buf_t* ocs_ras_get_virtual_buf ( ocs_t *  ocs,
int32_t *  buf_count 
)
static

Definition at line 103 of file ocs_ras.c.

void ocs_ras_init ( uint32_t  fw_log_level,
uint32_t  log_buf_size 
)

Definition at line 395 of file ocs_ras.c.

static ocs_ras_adapter_desc_t* ocs_ras_lookup_adapter ( ocs_t *  ocs)
static

Definition at line 58 of file ocs_ras.c.

static void ocs_ras_put_adapter_descriptor ( void *  cb_arg)
static

Definition at line 306 of file ocs_ras.c.

Variable Details

ocs_ras_subsystem_t ocs_ras_subsystem_g
static

Definition at line 41 of file ocs_ras.c.