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

Go to the source code of this file.

Functions

 DECLARE_PER_CPU (struct bnx2fc_percpu_s, bnx2fc_percpu)
 
int bnx2fc_send_stat_req (struct bnx2fc_hba *hba)
 
int bnx2fc_send_fw_fcoe_init_msg (struct bnx2fc_hba *hba)
 
int bnx2fc_send_fw_fcoe_destroy_msg (struct bnx2fc_hba *hba)
 
int bnx2fc_send_session_ofld_req (struct fcoe_port *port, struct bnx2fc_rport *tgt)
 
int bnx2fc_send_session_disable_req (struct fcoe_port *port, struct bnx2fc_rport *tgt)
 
int bnx2fc_send_session_destroy_req (struct bnx2fc_hba *hba, struct bnx2fc_rport *tgt)
 
void bnx2fc_process_l2_frame_compl (struct bnx2fc_rport *tgt, unsigned char *buf, u32 frame_len, u16 l2_oxid)
 
void bnx2fc_process_cq_compl (struct bnx2fc_rport *tgt, u16 wqe)
 
void bnx2fc_arm_cq (struct bnx2fc_rport *tgt)
 
struct bnx2fc_workbnx2fc_alloc_work (struct bnx2fc_rport *tgt, u16 wqe)
 
int bnx2fc_process_new_cqes (struct bnx2fc_rport *tgt)
 
void bnx2fc_indicate_kcqe (void *context, struct kcqe *kcq[], u32 num_cqe)
 
void bnx2fc_add_2_sq (struct bnx2fc_rport *tgt, u16 xid)
 
void bnx2fc_ring_doorbell (struct bnx2fc_rport *tgt)
 
int bnx2fc_map_doorbell (struct bnx2fc_rport *tgt)
 
charbnx2fc_get_next_rqe (struct bnx2fc_rport *tgt, u8 num_items)
 
void bnx2fc_return_rqe (struct bnx2fc_rport *tgt, u8 num_items)
 
void bnx2fc_init_seq_cleanup_task (struct bnx2fc_cmd *seq_clnp_req, struct fcoe_task_ctx_entry *task, struct bnx2fc_cmd *orig_io_req, u32 offset)
 
void bnx2fc_init_cleanup_task (struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u16 orig_xid)
 
void bnx2fc_init_mp_task (struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task)
 
void bnx2fc_init_task (struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task)
 
int bnx2fc_setup_task_ctx (struct bnx2fc_hba *hba)
 
void bnx2fc_free_task_ctx (struct bnx2fc_hba *hba)
 
int bnx2fc_setup_fw_resc (struct bnx2fc_hba *hba)
 
void bnx2fc_free_fw_resc (struct bnx2fc_hba *hba)
 

Function Documentation

void bnx2fc_add_2_sq ( struct bnx2fc_rport tgt,
u16  xid 
)

Definition at line 1395 of file bnx2fc_hwi.c.

struct bnx2fc_work* bnx2fc_alloc_work ( struct bnx2fc_rport tgt,
u16  wqe 
)
read

Definition at line 996 of file bnx2fc_hwi.c.

void bnx2fc_arm_cq ( struct bnx2fc_rport tgt)

Definition at line 982 of file bnx2fc_hwi.c.

void bnx2fc_free_fw_resc ( struct bnx2fc_hba hba)

Definition at line 2162 of file bnx2fc_hwi.c.

void bnx2fc_free_task_ctx ( struct bnx2fc_hba hba)

Definition at line 1947 of file bnx2fc_hwi.c.

char* bnx2fc_get_next_rqe ( struct bnx2fc_rport tgt,
u8  num_items 
)

Definition at line 1445 of file bnx2fc_hwi.c.

void bnx2fc_indicate_kcqe ( void context,
struct kcqe kcq[],
u32  num_cqe 
)

bnx2fc_indicae_kcqe - process KCQE

: adapter structure pointer : kcqe pointer : Number of completion queue elements

Generic KCQ event handler

Definition at line 1323 of file bnx2fc_hwi.c.

void bnx2fc_init_cleanup_task ( struct bnx2fc_cmd io_req,
struct fcoe_task_ctx_entry task,
u16  orig_xid 
)

Definition at line 1562 of file bnx2fc_hwi.c.

void bnx2fc_init_mp_task ( struct bnx2fc_cmd io_req,
struct fcoe_task_ctx_entry task 
)

Definition at line 1600 of file bnx2fc_hwi.c.

void bnx2fc_init_seq_cleanup_task ( struct bnx2fc_cmd seq_clnp_req,
struct fcoe_task_ctx_entry task,
struct bnx2fc_cmd orig_io_req,
u32  offset 
)

Definition at line 1472 of file bnx2fc_hwi.c.

void bnx2fc_init_task ( struct bnx2fc_cmd io_req,
struct fcoe_task_ctx_entry task 
)

Definition at line 1696 of file bnx2fc_hwi.c.

int bnx2fc_map_doorbell ( struct bnx2fc_rport tgt)

Definition at line 1426 of file bnx2fc_hwi.c.

void bnx2fc_process_cq_compl ( struct bnx2fc_rport tgt,
u16  wqe 
)

Definition at line 871 of file bnx2fc_hwi.c.

void bnx2fc_process_l2_frame_compl ( struct bnx2fc_rport tgt,
unsigned char buf,
u32  frame_len,
u16  l2_oxid 
)

Definition at line 542 of file bnx2fc_hwi.c.

int bnx2fc_process_new_cqes ( struct bnx2fc_rport tgt)

Definition at line 1009 of file bnx2fc_hwi.c.

void bnx2fc_return_rqe ( struct bnx2fc_rport tgt,
u8  num_items 
)

Definition at line 1460 of file bnx2fc_hwi.c.

void bnx2fc_ring_doorbell ( struct bnx2fc_rport tgt)

Definition at line 1412 of file bnx2fc_hwi.c.

int bnx2fc_send_fw_fcoe_destroy_msg ( struct bnx2fc_hba hba)

Definition at line 140 of file bnx2fc_hwi.c.

int bnx2fc_send_fw_fcoe_init_msg ( struct bnx2fc_hba hba)

bnx2fc_send_fw_fcoe_init_msg - initiates initial handshake with FCoE f/w

: adapter structure pointer

Send down FCoE firmware init KWQEs which initiates the initial handshake with the f/w.

Definition at line 60 of file bnx2fc_hwi.c.

int bnx2fc_send_session_destroy_req ( struct bnx2fc_hba hba,
struct bnx2fc_rport tgt 
)

bnx2fc_send_session_destroy_req - initiates FCoE Session destroy

: port structure pointer : bnx2fc_rport structure pointer

Definition at line 485 of file bnx2fc_hwi.c.

int bnx2fc_send_session_disable_req ( struct fcoe_port port,
struct bnx2fc_rport tgt 
)

bnx2fc_send_session_disable_req - initiates FCoE Session disable

: port structure pointer : bnx2fc_rport structure pointer

Definition at line 420 of file bnx2fc_hwi.c.

int bnx2fc_send_session_ofld_req ( struct fcoe_port port,
struct bnx2fc_rport tgt 
)

bnx2fc_send_session_ofld_req - initiates FCoE Session offload process

: port structure pointer : bnx2fc_rport structure pointer

Definition at line 165 of file bnx2fc_hwi.c.

int bnx2fc_send_stat_req ( struct bnx2fc_hba hba)

Definition at line 28 of file bnx2fc_hwi.c.

int bnx2fc_setup_fw_resc ( struct bnx2fc_hba hba)

bnx2fc_setup_fw_resc - Allocate and map hash table and dummy buffer

: Pointer to adapter structure

Definition at line 2101 of file bnx2fc_hwi.c.

int bnx2fc_setup_task_ctx ( struct bnx2fc_hba hba)

bnx2fc_setup_task_ctx - allocate and map task context

: pointer to adapter structure

allocate memory for task context, and associated BD table to be used by firmware

Definition at line 1857 of file bnx2fc_hwi.c.

DECLARE_PER_CPU ( struct bnx2fc_percpu_s  ,
bnx2fc_percpu   
)