Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bnx2fc_io.c File Reference
#include "bnx2fc.h"

Go to the source code of this file.

Macros

#define RESERVE_FREE_LIST_INDEX   num_possible_cpus()
 

Functions

void bnx2fc_cmd_timer_set (struct bnx2fc_cmd *io_req, unsigned int timer_msec)
 
struct bnx2fc_cmd_mgrbnx2fc_cmd_mgr_alloc (struct bnx2fc_hba *hba, u16 min_xid, u16 max_xid)
 
void bnx2fc_cmd_mgr_free (struct bnx2fc_cmd_mgr *cmgr)
 
struct bnx2fc_cmdbnx2fc_elstm_alloc (struct bnx2fc_rport *tgt, int type)
 
struct bnx2fc_cmdbnx2fc_cmd_alloc (struct bnx2fc_rport *tgt)
 
void bnx2fc_cmd_release (struct kref *ref)
 
int bnx2fc_init_mp_req (struct bnx2fc_cmd *io_req)
 
int bnx2fc_initiate_abts (struct bnx2fc_cmd *io_req)
 
int bnx2fc_initiate_seq_cleanup (struct bnx2fc_cmd *orig_io_req, u32 offset, enum fc_rctl r_ctl)
 
int bnx2fc_initiate_cleanup (struct bnx2fc_cmd *io_req)
 
int bnx2fc_eh_target_reset (struct scsi_cmnd *sc_cmd)
 
int bnx2fc_eh_device_reset (struct scsi_cmnd *sc_cmd)
 
int bnx2fc_expl_logo (struct fc_lport *lport, struct bnx2fc_cmd *io_req)
 
int bnx2fc_eh_abort (struct scsi_cmnd *sc_cmd)
 
void bnx2fc_process_seq_cleanup_compl (struct bnx2fc_cmd *seq_clnp_req, struct fcoe_task_ctx_entry *task, u8 rx_state)
 
void bnx2fc_process_cleanup_compl (struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq)
 
void bnx2fc_process_abts_compl (struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq)
 
void bnx2fc_process_tm_compl (struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq)
 
void bnx2fc_build_fcp_cmnd (struct bnx2fc_cmd *io_req, struct fcp_cmnd *fcp_cmnd)
 
int bnx2fc_queuecommand (struct Scsi_Host *host, struct scsi_cmnd *sc_cmd)
 
void bnx2fc_process_scsi_cmd_compl (struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq)
 
int bnx2fc_post_io_req (struct bnx2fc_rport *tgt, struct bnx2fc_cmd *io_req)
 

Macro Definition Documentation

#define RESERVE_FREE_LIST_INDEX   num_possible_cpus()

Definition at line 15 of file bnx2fc_io.c.

Function Documentation

void bnx2fc_build_fcp_cmnd ( struct bnx2fc_cmd io_req,
struct fcp_cmnd fcp_cmnd 
)

Definition at line 1698 of file bnx2fc_io.c.

struct bnx2fc_cmd* bnx2fc_cmd_alloc ( struct bnx2fc_rport tgt)
read

Definition at line 492 of file bnx2fc_io.c.

struct bnx2fc_cmd_mgr* bnx2fc_cmd_mgr_alloc ( struct bnx2fc_hba hba,
u16  min_xid,
u16  max_xid 
)
read

Definition at line 242 of file bnx2fc_io.c.

void bnx2fc_cmd_mgr_free ( struct bnx2fc_cmd_mgr cmgr)

Definition at line 364 of file bnx2fc_io.c.

void bnx2fc_cmd_release ( struct kref ref)

Definition at line 547 of file bnx2fc_io.c.

void bnx2fc_cmd_timer_set ( struct bnx2fc_cmd io_req,
unsigned int  timer_msec 
)

Definition at line 27 of file bnx2fc_io.c.

int bnx2fc_eh_abort ( struct scsi_cmnd sc_cmd)

bnx2fc_eh_abort - eh_abort_handler api to abort an outstanding SCSI command

: SCSI_ML command pointer

SCSI abort request handler

Definition at line 1155 of file bnx2fc_io.c.

int bnx2fc_eh_device_reset ( struct scsi_cmnd sc_cmd)

bnx2fc_eh_device_reset - Reset a single LUN

: SCSI command

Set from SCSI host template to send task mgmt command to the target and wait for the response

Definition at line 1100 of file bnx2fc_io.c.

int bnx2fc_eh_target_reset ( struct scsi_cmnd sc_cmd)

bnx2fc_eh_target_reset: Reset a target

: SCSI command

Set from SCSI host template to send task mgmt command to the target and wait for the response

Definition at line 1087 of file bnx2fc_io.c.

struct bnx2fc_cmd* bnx2fc_elstm_alloc ( struct bnx2fc_rport tgt,
int  type 
)
read

Definition at line 422 of file bnx2fc_io.c.

int bnx2fc_expl_logo ( struct fc_lport lport,
struct bnx2fc_cmd io_req 
)

Definition at line 1105 of file bnx2fc_io.c.

int bnx2fc_init_mp_req ( struct bnx2fc_cmd io_req)

Definition at line 609 of file bnx2fc_io.c.

int bnx2fc_initiate_abts ( struct bnx2fc_cmd io_req)

Definition at line 842 of file bnx2fc_io.c.

int bnx2fc_initiate_cleanup ( struct bnx2fc_cmd io_req)

Definition at line 1021 of file bnx2fc_io.c.

int bnx2fc_initiate_seq_cleanup ( struct bnx2fc_cmd orig_io_req,
u32  offset,
enum fc_rctl  r_ctl 
)

Definition at line 951 of file bnx2fc_io.c.

int bnx2fc_post_io_req ( struct bnx2fc_rport tgt,
struct bnx2fc_cmd io_req 
)

Definition at line 1966 of file bnx2fc_io.c.

void bnx2fc_process_abts_compl ( struct bnx2fc_cmd io_req,
struct fcoe_task_ctx_entry task,
u8  num_rq 
)

Definition at line 1344 of file bnx2fc_io.c.

void bnx2fc_process_cleanup_compl ( struct bnx2fc_cmd io_req,
struct fcoe_task_ctx_entry task,
u8  num_rq 
)

Definition at line 1331 of file bnx2fc_io.c.

void bnx2fc_process_scsi_cmd_compl ( struct bnx2fc_cmd io_req,
struct fcoe_task_ctx_entry task,
u8  num_rq 
)

Definition at line 1879 of file bnx2fc_io.c.

void bnx2fc_process_seq_cleanup_compl ( struct bnx2fc_cmd seq_clnp_req,
struct fcoe_task_ctx_entry task,
u8  rx_state 
)

Definition at line 1296 of file bnx2fc_io.c.

void bnx2fc_process_tm_compl ( struct bnx2fc_cmd io_req,
struct fcoe_task_ctx_entry task,
u8  num_rq 
)

Definition at line 1503 of file bnx2fc_io.c.

int bnx2fc_queuecommand ( struct Scsi_Host host,
struct scsi_cmnd sc_cmd 
)

bnx2fc_queuecommand - Queuecommand function of the scsi template

: The Scsi_Host the command was issued to : struct scsi_cmnd to be executed

This is the IO strategy routine, called by SCSI-ML

Definition at line 1828 of file bnx2fc_io.c.