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

Go to the source code of this file.

Functions

static int32_t ocs_ramd_server_thread (ocs_thread_t *mythread)
 
int32_t ocs_ramd_start_threads (uint32_t threading_mode, uint32_t arg_thread_cmds)
 
void ocs_ramd_stop_threads (void)
 
void ocs_ramd_thread_ddump (ocs_textbuf_t *textbuf)
 
uint32_t ocs_ramd_get_enable_ramd_threading (void)
 
int32_t ocs_scsi_recv_cmd (ocs_io_t *io, uint32_t lun, uint8_t *cdb, uint32_t cdb_len, uint32_t flags)
 
int32_t scsi_dataphase_cb (ocs_io_t *io, ocs_scsi_io_status_e scsi_status, uint32_t flags, void *arg)
 
int32_t scsi_io_cb (ocs_io_t *io, ocs_scsi_io_status_e scsi_status, uint32_t flags, void *arg)
 
void ocs_ramd_tgt_bounce (void(*fctn)(void *arg), void *arg, uint32_t s_id, uint32_t d_id, uint32_t ox_id)
 

Variables

static uint32_t threads_per_cpu = 2
 
static ocs_array_t * ramd_cmd_array
 
static ocs_cbuf_t * ramd_cmd_free_queue
 
static ocs_atomic_t * ramd_threads_next
 
static ocs_ramd_thread_t ** ramd_threads
 
static uint32_t enable_ramd_threading
 
static uint32_t thread_cmds
 

Function Details

uint32_t ocs_ramd_get_enable_ramd_threading ( void  )

Definition at line 264 of file ocs_ramd_thread.c.

static int32_t ocs_ramd_server_thread ( ocs_thread_t *  mythread)
static

Definition at line 51 of file ocs_ramd_thread.c.

int32_t ocs_ramd_start_threads ( uint32_t  threading_mode,
uint32_t  arg_thread_cmds 
)

Definition at line 104 of file ocs_ramd_thread.c.

void ocs_ramd_stop_threads ( void  )

Definition at line 187 of file ocs_ramd_thread.c.

void ocs_ramd_tgt_bounce ( void(*)(void *arg)  fctn,
void *  arg,
uint32_t  s_id,
uint32_t  d_id,
uint32_t  ox_id 
)

Definition at line 385 of file ocs_ramd_thread.c.

void ocs_ramd_thread_ddump ( ocs_textbuf_t *  textbuf)

Definition at line 220 of file ocs_ramd_thread.c.

int32_t ocs_scsi_recv_cmd ( ocs_io_t *  io,
uint32_t  lun,
uint8_t *  cdb,
uint32_t  cdb_len,
uint32_t  flags 
)

Definition at line 270 of file ocs_ramd_thread.c.

int32_t scsi_dataphase_cb ( ocs_io_t *  io,
ocs_scsi_io_status_e  scsi_status,
uint32_t  flags,
void *  arg 
)

Definition at line 317 of file ocs_ramd_thread.c.

int32_t scsi_io_cb ( ocs_io_t *  io,
ocs_scsi_io_status_e  scsi_status,
uint32_t  flags,
void *  arg 
)

Definition at line 351 of file ocs_ramd_thread.c.

Variable Details

uint32_t enable_ramd_threading
static

Definition at line 47 of file ocs_ramd_thread.c.

ocs_array_t* ramd_cmd_array
static

Definition at line 43 of file ocs_ramd_thread.c.

ocs_cbuf_t* ramd_cmd_free_queue
static

Definition at line 44 of file ocs_ramd_thread.c.

ocs_ramd_thread_t** ramd_threads
static

Definition at line 46 of file ocs_ramd_thread.c.

ocs_atomic_t* ramd_threads_next
static

Definition at line 45 of file ocs_ramd_thread.c.

uint32_t thread_cmds
static

Definition at line 48 of file ocs_ramd_thread.c.

uint32_t threads_per_cpu = 2
static

Definition at line 42 of file ocs_ramd_thread.c.