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

Go to the source code of this file.

Functions

void fcbuild_init (void)
 
void fc_els_req_build (struct fchs_s *fchs, u32 d_id, u32 s_id, __be16 ox_id)
 
enum fc_parse_status fc_els_rsp_parse (struct fchs_s *fchs, int len)
 
u16 fc_flogi_build (struct fchs_s *fchs, struct fc_logi_s *flogi, u32 s_id, u16 ox_id, wwn_t port_name, wwn_t node_name, u16 pdu_size, u8 set_npiv, u8 set_auth, u16 local_bb_credits)
 
u16 fc_flogi_acc_build (struct fchs_s *fchs, struct fc_logi_s *flogi, u32 s_id, __be16 ox_id, wwn_t port_name, wwn_t node_name, u16 pdu_size, u16 local_bb_credits, u8 bb_scn)
 
u16 fc_fdisc_build (struct fchs_s *fchs, struct fc_logi_s *flogi, u32 s_id, u16 ox_id, wwn_t port_name, wwn_t node_name, u16 pdu_size)
 
u16 fc_plogi_build (struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, u16 ox_id, wwn_t port_name, wwn_t node_name, u16 pdu_size, u16 bb_cr)
 
u16 fc_plogi_acc_build (struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, u16 ox_id, wwn_t port_name, wwn_t node_name, u16 pdu_size, u16 bb_cr)
 
enum fc_parse_status fc_plogi_rsp_parse (struct fchs_s *fchs, int len, wwn_t port_name)
 
enum fc_parse_status fc_plogi_parse (struct fchs_s *fchs)
 
u16 fc_prli_build (struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, u16 ox_id)
 
u16 fc_prli_acc_build (struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, __be16 ox_id, enum bfa_lport_role role)
 
enum fc_parse_status fc_prli_rsp_parse (struct fc_prli_s *prli, int len)
 
enum fc_parse_status fc_prli_parse (struct fc_prli_s *prli)
 
u16 fc_logo_build (struct fchs_s *fchs, struct fc_logo_s *logo, u32 d_id, u32 s_id, u16 ox_id, wwn_t port_name)
 
u16 fc_adisc_build (struct fchs_s *fchs, struct fc_adisc_s *adisc, u32 d_id, u32 s_id, __be16 ox_id, wwn_t port_name, wwn_t node_name)
 
u16 fc_adisc_acc_build (struct fchs_s *fchs, struct fc_adisc_s *adisc, u32 d_id, u32 s_id, __be16 ox_id, wwn_t port_name, wwn_t node_name)
 
enum fc_parse_status fc_adisc_rsp_parse (struct fc_adisc_s *adisc, int len, wwn_t port_name, wwn_t node_name)
 
enum fc_parse_status fc_adisc_parse (struct fchs_s *fchs, void *pld, u32 host_dap, wwn_t node_name, wwn_t port_name)
 
enum fc_parse_status fc_pdisc_parse (struct fchs_s *fchs, wwn_t node_name, wwn_t port_name)
 
u16 fc_abts_build (struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id)
 
enum fc_parse_status fc_abts_rsp_parse (struct fchs_s *fchs, int len)
 
u16 fc_rrq_build (struct fchs_s *fchs, struct fc_rrq_s *rrq, u32 d_id, u32 s_id, u16 ox_id, u16 rrq_oxid)
 
u16 fc_logo_acc_build (struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, __be16 ox_id)
 
u16 fc_ls_rjt_build (struct fchs_s *fchs, struct fc_ls_rjt_s *ls_rjt, u32 d_id, u32 s_id, __be16 ox_id, u8 reason_code, u8 reason_code_expl)
 
u16 fc_ba_acc_build (struct fchs_s *fchs, struct fc_ba_acc_s *ba_acc, u32 d_id, u32 s_id, __be16 ox_id, u16 rx_id)
 
u16 fc_ls_acc_build (struct fchs_s *fchs, struct fc_els_cmd_s *els_cmd, u32 d_id, u32 s_id, __be16 ox_id)
 
int fc_logout_params_pages (struct fchs_s *fc_frame, u8 els_code)
 
u16 fc_tprlo_acc_build (struct fchs_s *fchs, struct fc_tprlo_acc_s *tprlo_acc, u32 d_id, u32 s_id, __be16 ox_id, int num_pages)
 
u16 fc_prlo_acc_build (struct fchs_s *fchs, struct fc_prlo_acc_s *prlo_acc, u32 d_id, u32 s_id, __be16 ox_id, int num_pages)
 
u16 fc_rnid_build (struct fchs_s *fchs, struct fc_rnid_cmd_s *rnid, u32 d_id, u32 s_id, u16 ox_id, u32 data_format)
 
u16 fc_rnid_acc_build (struct fchs_s *fchs, struct fc_rnid_acc_s *rnid_acc, u32 d_id, u32 s_id, __be16 ox_id, u32 data_format, struct fc_rnid_common_id_data_s *common_id_data, struct fc_rnid_general_topology_data_s *gen_topo_data)
 
u16 fc_rpsc_build (struct fchs_s *fchs, struct fc_rpsc_cmd_s *rpsc, u32 d_id, u32 s_id, u16 ox_id)
 
u16 fc_rpsc2_build (struct fchs_s *fchs, struct fc_rpsc2_cmd_s *rpsc2, u32 d_id, u32 s_id, u32 *pid_list, u16 npids)
 
u16 fc_rpsc_acc_build (struct fchs_s *fchs, struct fc_rpsc_acc_s *rpsc_acc, u32 d_id, u32 s_id, __be16 ox_id, struct fc_rpsc_speed_info_s *oper_speed)
 
u16 fc_logo_rsp_parse (struct fchs_s *fchs, int len)
 
u16 fc_pdisc_build (struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id, wwn_t port_name, wwn_t node_name, u16 pdu_size)
 
u16 fc_pdisc_rsp_parse (struct fchs_s *fchs, int len, wwn_t port_name)
 
u16 fc_prlo_build (struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id, int num_pages)
 
u16 fc_prlo_rsp_parse (struct fchs_s *fchs, int len)
 
u16 fc_tprlo_build (struct fchs_s *fchs, u32 d_id, u32 s_id, u16 ox_id, int num_pages, enum fc_tprlo_type tprlo_type, u32 tpr_id)
 
u16 fc_tprlo_rsp_parse (struct fchs_s *fchs, int len)
 
enum fc_parse_status fc_rrq_rsp_parse (struct fchs_s *fchs, int len)
 
u16 fc_ba_rjt_build (struct fchs_s *fchs, u32 d_id, u32 s_id, __be16 ox_id, u32 reason_code, u32 reason_expl)
 
u16 fc_gidpn_build (struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, wwn_t port_name)
 
u16 fc_gpnid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, u32 port_id)
 
u16 fc_gnnid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, u32 port_id)
 
u16 fc_ct_rsp_parse (struct ct_hdr_s *cthdr)
 
u16 fc_gs_rjt_build (struct fchs_s *fchs, struct ct_hdr_s *cthdr, u32 d_id, u32 s_id, u16 ox_id, u8 reason_code, u8 reason_code_expl)
 
u16 fc_scr_build (struct fchs_s *fchs, struct fc_scr_s *scr, u8 set_br_reg, u32 s_id, u16 ox_id)
 
u16 fc_rscn_build (struct fchs_s *fchs, struct fc_rscn_pl_s *rscn, u32 s_id, u16 ox_id)
 
u16 fc_rftid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, enum bfa_lport_role roles)
 
u16 fc_rftid_build_sol (struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, u8 *fc4_bitmap, u32 bitmap_size)
 
u16 fc_rffid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, u8 fc4_type, u8 fc4_ftrs)
 
u16 fc_rspnid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, u8 *name)
 
u16 fc_rsnn_nn_build (struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t node_name, u8 *name)
 
u16 fc_gid_ft_build (struct fchs_s *fchs, void *pyld, u32 s_id, u8 fc4_type)
 
u16 fc_rpnid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, wwn_t port_name)
 
u16 fc_rnnid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, wwn_t node_name)
 
u16 fc_rcsid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, u32 cos)
 
u16 fc_rptid_build (struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, u8 port_type)
 
u16 fc_ganxt_build (struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id)
 
u16 fc_fdmi_reqhdr_build (struct fchs_s *fchs, void *pyld, u32 s_id, u16 cmd_code)
 
void fc_get_fc4type_bitmask (u8 fc4_type, u8 *bit_mask)
 
u16 fc_gmal_req_build (struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn)
 
u16 fc_gfn_req_build (struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn)
 

Function Documentation

u16 fc_abts_build ( struct fchs_s fchs,
u32  d_id,
u32  s_id,
u16  ox_id 
)

Definition at line 577 of file bfa_fcbuild.c.

enum fc_parse_status fc_abts_rsp_parse ( struct fchs_s fchs,
int  len 
)

Definition at line 589 of file bfa_fcbuild.c.

u16 fc_adisc_acc_build ( struct fchs_s fchs,
struct fc_adisc_s adisc,
u32  d_id,
u32  s_id,
__be16  ox_id,
wwn_t  port_name,
wwn_t  node_name 
)

Definition at line 512 of file bfa_fcbuild.c.

u16 fc_adisc_build ( struct fchs_s fchs,
struct fc_adisc_s adisc,
u32  d_id,
u32  s_id,
__be16  ox_id,
wwn_t  port_name,
wwn_t  node_name 
)

Definition at line 504 of file bfa_fcbuild.c.

enum fc_parse_status fc_adisc_parse ( struct fchs_s fchs,
void pld,
u32  host_dap,
wwn_t  node_name,
wwn_t  port_name 
)

Definition at line 538 of file bfa_fcbuild.c.

enum fc_parse_status fc_adisc_rsp_parse ( struct fc_adisc_s adisc,
int  len,
wwn_t  port_name,
wwn_t  node_name 
)

Definition at line 521 of file bfa_fcbuild.c.

u16 fc_ba_acc_build ( struct fchs_s fchs,
struct fc_ba_acc_s ba_acc,
u32  d_id,
u32  s_id,
__be16  ox_id,
u16  rx_id 
)

Definition at line 646 of file bfa_fcbuild.c.

u16 fc_ba_rjt_build ( struct fchs_s fchs,
u32  d_id,
u32  s_id,
__be16  ox_id,
u32  reason_code,
u32  reason_expl 
)

Definition at line 1015 of file bfa_fcbuild.c.

u16 fc_ct_rsp_parse ( struct ct_hdr_s cthdr)

Definition at line 1108 of file bfa_fcbuild.c.

void fc_els_req_build ( struct fchs_s fchs,
u32  d_id,
u32  s_id,
__be16  ox_id 
)

Definition at line 175 of file bfa_fcbuild.c.

enum fc_parse_status fc_els_rsp_parse ( struct fchs_s fchs,
int  len 
)

Definition at line 193 of file bfa_fcbuild.c.

u16 fc_fdisc_build ( struct fchs_s fchs,
struct fc_logi_s flogi,
u32  s_id,
u16  ox_id,
wwn_t  port_name,
wwn_t  node_name,
u16  pdu_size 
)

Definition at line 311 of file bfa_fcbuild.c.

u16 fc_fdmi_reqhdr_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  cmd_code 
)

Definition at line 1392 of file bfa_fcbuild.c.

u16 fc_flogi_acc_build ( struct fchs_s fchs,
struct fc_logi_s flogi,
u32  s_id,
__be16  ox_id,
wwn_t  port_name,
wwn_t  node_name,
u16  pdu_size,
u16  local_bb_credits,
u8  bb_scn 
)

Definition at line 289 of file bfa_fcbuild.c.

u16 fc_flogi_build ( struct fchs_s fchs,
struct fc_logi_s flogi,
u32  s_id,
u16  ox_id,
wwn_t  port_name,
wwn_t  node_name,
u16  pdu_size,
u8  set_npiv,
u8  set_auth,
u16  local_bb_credits 
)

Definition at line 251 of file bfa_fcbuild.c.

u16 fc_ganxt_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u32  port_id 
)

Definition at line 1373 of file bfa_fcbuild.c.

void fc_get_fc4type_bitmask ( u8  fc4_type,
u8 bit_mask 
)

Definition at line 1409 of file bfa_fcbuild.c.

u16 fc_gfn_req_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
wwn_t  wwn 
)

Definition at line 1449 of file bfa_fcbuild.c.

u16 fc_gid_ft_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u8  fc4_type 
)

Definition at line 1280 of file bfa_fcbuild.c.

u16 fc_gidpn_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  ox_id,
wwn_t  port_name 
)

Definition at line 1060 of file bfa_fcbuild.c.

u16 fc_gmal_req_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
wwn_t  wwn 
)

Definition at line 1429 of file bfa_fcbuild.c.

u16 fc_gnnid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  ox_id,
u32  port_id 
)

Definition at line 1092 of file bfa_fcbuild.c.

u16 fc_gpnid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  ox_id,
u32  port_id 
)

Definition at line 1076 of file bfa_fcbuild.c.

u16 fc_gs_rjt_build ( struct fchs_s fchs,
struct ct_hdr_s cthdr,
u32  d_id,
u32  s_id,
u16  ox_id,
u8  reason_code,
u8  reason_code_expl 
)

Definition at line 1121 of file bfa_fcbuild.c.

u16 fc_logo_acc_build ( struct fchs_s fchs,
void pld,
u32  d_id,
u32  s_id,
__be16  ox_id 
)

Definition at line 616 of file bfa_fcbuild.c.

u16 fc_logo_build ( struct fchs_s fchs,
struct fc_logo_s logo,
u32  d_id,
u32  s_id,
u16  ox_id,
wwn_t  port_name 
)

Definition at line 468 of file bfa_fcbuild.c.

u16 fc_logo_rsp_parse ( struct fchs_s fchs,
int  len 
)

Definition at line 833 of file bfa_fcbuild.c.

int fc_logout_params_pages ( struct fchs_s fc_frame,
u8  els_code 
)

Definition at line 673 of file bfa_fcbuild.c.

u16 fc_ls_acc_build ( struct fchs_s fchs,
struct fc_els_cmd_s els_cmd,
u32  d_id,
u32  s_id,
__be16  ox_id 
)

Definition at line 662 of file bfa_fcbuild.c.

u16 fc_ls_rjt_build ( struct fchs_s fchs,
struct fc_ls_rjt_s ls_rjt,
u32  d_id,
u32  s_id,
__be16  ox_id,
u8  reason_code,
u8  reason_code_expl 
)

Definition at line 630 of file bfa_fcbuild.c.

u16 fc_pdisc_build ( struct fchs_s fchs,
u32  d_id,
u32  s_id,
u16  ox_id,
wwn_t  port_name,
wwn_t  node_name,
u16  pdu_size 
)

Definition at line 845 of file bfa_fcbuild.c.

enum fc_parse_status fc_pdisc_parse ( struct fchs_s fchs,
wwn_t  node_name,
wwn_t  port_name 
)

Definition at line 555 of file bfa_fcbuild.c.

u16 fc_pdisc_rsp_parse ( struct fchs_s fchs,
int  len,
wwn_t  port_name 
)

Definition at line 863 of file bfa_fcbuild.c.

u16 fc_plogi_acc_build ( struct fchs_s fchs,
void pld,
u32  d_id,
u32  s_id,
u16  ox_id,
wwn_t  port_name,
wwn_t  node_name,
u16  pdu_size,
u16  bb_cr 
)

Definition at line 338 of file bfa_fcbuild.c.

u16 fc_plogi_build ( struct fchs_s fchs,
void pld,
u32  d_id,
u32  s_id,
u16  ox_id,
wwn_t  port_name,
wwn_t  node_name,
u16  pdu_size,
u16  bb_cr 
)

Definition at line 329 of file bfa_fcbuild.c.

enum fc_parse_status fc_plogi_parse ( struct fchs_s fchs)

Definition at line 381 of file bfa_fcbuild.c.

enum fc_parse_status fc_plogi_rsp_parse ( struct fchs_s fchs,
int  len,
wwn_t  port_name 
)

Definition at line 347 of file bfa_fcbuild.c.

u16 fc_prli_acc_build ( struct fchs_s fchs,
void pld,
u32  d_id,
u32  s_id,
__be16  ox_id,
enum bfa_lport_role  role 
)

Definition at line 416 of file bfa_fcbuild.c.

u16 fc_prli_build ( struct fchs_s fchs,
void pld,
u32  d_id,
u32  s_id,
u16  ox_id 
)

Definition at line 397 of file bfa_fcbuild.c.

enum fc_parse_status fc_prli_parse ( struct fc_prli_s prli)

Definition at line 453 of file bfa_fcbuild.c.

enum fc_parse_status fc_prli_rsp_parse ( struct fc_prli_s prli,
int  len 
)

Definition at line 434 of file bfa_fcbuild.c.

u16 fc_prlo_acc_build ( struct fchs_s fchs,
struct fc_prlo_acc_s prlo_acc,
u32  d_id,
u32  s_id,
__be16  ox_id,
int  num_pages 
)

Definition at line 714 of file bfa_fcbuild.c.

u16 fc_prlo_build ( struct fchs_s fchs,
u32  d_id,
u32  s_id,
u16  ox_id,
int  num_pages 
)

Definition at line 886 of file bfa_fcbuild.c.

u16 fc_prlo_rsp_parse ( struct fchs_s fchs,
int  len 
)

Definition at line 910 of file bfa_fcbuild.c.

u16 fc_rcsid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u32  port_id,
u32  cos 
)

Definition at line 1336 of file bfa_fcbuild.c.

u16 fc_rffid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  ox_id,
u8  fc4_type,
u8  fc4_ftrs 
)

Definition at line 1217 of file bfa_fcbuild.c.

u16 fc_rftid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  ox_id,
enum bfa_lport_role  roles 
)

Definition at line 1173 of file bfa_fcbuild.c.

u16 fc_rftid_build_sol ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  ox_id,
u8 fc4_bitmap,
u32  bitmap_size 
)

Definition at line 1197 of file bfa_fcbuild.c.

u16 fc_rnid_acc_build ( struct fchs_s fchs,
struct fc_rnid_acc_s rnid_acc,
u32  d_id,
u32  s_id,
__be16  ox_id,
u32  data_format,
struct fc_rnid_common_id_data_s common_id_data,
struct fc_rnid_general_topology_data_s gen_topo_data 
)

Definition at line 752 of file bfa_fcbuild.c.

u16 fc_rnid_build ( struct fchs_s fchs,
struct fc_rnid_cmd_s rnid,
u32  d_id,
u32  s_id,
u16  ox_id,
u32  data_format 
)

Definition at line 738 of file bfa_fcbuild.c.

u16 fc_rnnid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u32  port_id,
wwn_t  node_name 
)

Definition at line 1318 of file bfa_fcbuild.c.

u16 fc_rpnid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u32  port_id,
wwn_t  port_name 
)

Definition at line 1300 of file bfa_fcbuild.c.

u16 fc_rpsc2_build ( struct fchs_s fchs,
struct fc_rpsc2_cmd_s rpsc2,
u32  d_id,
u32  s_id,
u32 pid_list,
u16  npids 
)

Definition at line 792 of file bfa_fcbuild.c.

u16 fc_rpsc_acc_build ( struct fchs_s fchs,
struct fc_rpsc_acc_s rpsc_acc,
u32  d_id,
u32  s_id,
__be16  ox_id,
struct fc_rpsc_speed_info_s oper_speed 
)

Definition at line 812 of file bfa_fcbuild.c.

u16 fc_rpsc_build ( struct fchs_s fchs,
struct fc_rpsc_cmd_s rpsc,
u32  d_id,
u32  s_id,
u16  ox_id 
)

Definition at line 780 of file bfa_fcbuild.c.

u16 fc_rptid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u32  port_id,
u8  port_type 
)

Definition at line 1355 of file bfa_fcbuild.c.

u16 fc_rrq_build ( struct fchs_s fchs,
struct fc_rrq_s rrq,
u32  d_id,
u32  s_id,
u16  ox_id,
u16  rrq_oxid 
)

Definition at line 599 of file bfa_fcbuild.c.

enum fc_parse_status fc_rrq_rsp_parse ( struct fchs_s fchs,
int  len 
)

Definition at line 1003 of file bfa_fcbuild.c.

u16 fc_rscn_build ( struct fchs_s fchs,
struct fc_rscn_pl_s rscn,
u32  s_id,
u16  ox_id 
)

Definition at line 1153 of file bfa_fcbuild.c.

u16 fc_rsnn_nn_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
wwn_t  node_name,
u8 name 
)

Definition at line 1259 of file bfa_fcbuild.c.

u16 fc_rspnid_build ( struct fchs_s fchs,
void pyld,
u32  s_id,
u16  ox_id,
u8 name 
)

Definition at line 1237 of file bfa_fcbuild.c.

u16 fc_scr_build ( struct fchs_s fchs,
struct fc_scr_s scr,
u8  set_br_reg,
u32  s_id,
u16  ox_id 
)

Definition at line 1136 of file bfa_fcbuild.c.

u16 fc_tprlo_acc_build ( struct fchs_s fchs,
struct fc_tprlo_acc_s tprlo_acc,
u32  d_id,
u32  s_id,
__be16  ox_id,
int  num_pages 
)

Definition at line 690 of file bfa_fcbuild.c.

u16 fc_tprlo_build ( struct fchs_s fchs,
u32  d_id,
u32  s_id,
u16  ox_id,
int  num_pages,
enum fc_tprlo_type  tprlo_type,
u32  tpr_id 
)

Definition at line 944 of file bfa_fcbuild.c.

u16 fc_tprlo_rsp_parse ( struct fchs_s fchs,
int  len 
)

Definition at line 974 of file bfa_fcbuild.c.

void fcbuild_init ( void  )

Definition at line 42 of file bfa_fcbuild.c.