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

Go to the source code of this file.

Macros

#define BFA_FCS_RPF_RETRIES   (3)
 
#define BFA_FCS_RPF_RETRY_TIMEOUT   (1000) /* 1 sec (In millisecs) */
 

Enumerations

enum  rpf_event {
  RPFSM_EVENT_RPORT_OFFLINE = 1, RPFSM_EVENT_RPORT_ONLINE = 2, RPFSM_EVENT_FCXP_SENT = 3, RPFSM_EVENT_TIMEOUT = 4,
  RPFSM_EVENT_RPSC_COMP = 5, RPFSM_EVENT_RPSC_FAIL = 6, RPFSM_EVENT_RPSC_ERROR = 7
}
 

Functions

 BFA_TRC_FILE (FCS, RPORT)
 
struct bfa_fcs_rport_sbfa_fcs_rport_create (struct bfa_fcs_lport_s *port, u32 rpid)
 
struct bfa_fcs_rport_sbfa_fcs_rport_create_by_wwn (struct bfa_fcs_lport_s *port, wwn_t rpwwn)
 
void bfa_fcs_rport_start (struct bfa_fcs_lport_s *port, struct fchs_s *fchs, struct fc_logi_s *plogi)
 
void bfa_fcs_rport_plogi_create (struct bfa_fcs_lport_s *port, struct fchs_s *fchs, struct fc_logi_s *plogi)
 
void bfa_fcs_rport_plogi (struct bfa_fcs_rport_s *rport, struct fchs_s *rx_fchs, struct fc_logi_s *plogi)
 
void bfa_fcs_rport_scn (struct bfa_fcs_rport_s *rport)
 
void bfa_cb_rport_online (void *cbarg)
 
void bfa_cb_rport_offline (void *cbarg)
 
void bfa_cb_rport_qos_scn_flowid (void *cbarg, struct bfa_rport_qos_attr_s old_qos_attr, struct bfa_rport_qos_attr_s new_qos_attr)
 
void bfa_cb_rport_scn_online (struct bfa_s *bfa)
 
void bfa_cb_rport_scn_no_dev (void *rport)
 
void bfa_cb_rport_scn_offline (struct bfa_s *bfa)
 
void bfa_cb_rport_qos_scn_prio (void *cbarg, struct bfa_rport_qos_attr_s old_qos_attr, struct bfa_rport_qos_attr_s new_qos_attr)
 
void bfa_fcs_rport_uf_recv (struct bfa_fcs_rport_s *rport, struct fchs_s *fchs, u16 len)
 
int bfa_fcs_rport_get_state (struct bfa_fcs_rport_s *rport)
 
void bfa_fcs_rport_set_del_timeout (u8 rport_tmo)
 
void bfa_fcs_rport_prlo (struct bfa_fcs_rport_s *rport, __be16 ox_id)
 
void bfa_fcs_rport_set_max_logins (u32 max_logins)
 
void bfa_fcs_rport_get_attr (struct bfa_fcs_rport_s *rport, struct bfa_rport_attr_s *rport_attr)
 
struct bfa_fcs_rport_sbfa_fcs_rport_lookup (struct bfa_fcs_lport_s *port, wwn_t rpwwn)
 
struct bfa_fcs_rport_sbfa_fcs_rport_lookup_by_nwwn (struct bfa_fcs_lport_s *port, wwn_t rnwwn)
 
void bfa_fcs_rpf_init (struct bfa_fcs_rport_s *rport)
 
void bfa_fcs_rpf_rport_online (struct bfa_fcs_rport_s *rport)
 
void bfa_fcs_rpf_rport_offline (struct bfa_fcs_rport_s *rport)
 

Macro Definition Documentation

#define BFA_FCS_RPF_RETRIES   (3)

Definition at line 3110 of file bfa_fcs_rport.c.

#define BFA_FCS_RPF_RETRY_TIMEOUT   (1000) /* 1 sec (In millisecs) */

Definition at line 3111 of file bfa_fcs_rport.c.

Enumeration Type Documentation

enum rpf_event
Enumerator:
RPFSM_EVENT_RPORT_OFFLINE 
RPFSM_EVENT_RPORT_ONLINE 
RPFSM_EVENT_FCXP_SENT 
RPFSM_EVENT_TIMEOUT 
RPFSM_EVENT_RPSC_COMP 
RPFSM_EVENT_RPSC_FAIL 
RPFSM_EVENT_RPSC_ERROR 

Definition at line 3129 of file bfa_fcs_rport.c.

Function Documentation

void bfa_cb_rport_offline ( void cbarg)

Definition at line 2765 of file bfa_fcs_rport.c.

void bfa_cb_rport_online ( void cbarg)

Definition at line 2742 of file bfa_fcs_rport.c.

void bfa_cb_rport_qos_scn_flowid ( void cbarg,
struct bfa_rport_qos_attr_s  old_qos_attr,
struct bfa_rport_qos_attr_s  new_qos_attr 
)

Definition at line 2788 of file bfa_fcs_rport.c.

void bfa_cb_rport_qos_scn_prio ( void cbarg,
struct bfa_rport_qos_attr_s  old_qos_attr,
struct bfa_rport_qos_attr_s  new_qos_attr 
)

Definition at line 2857 of file bfa_fcs_rport.c.

void bfa_cb_rport_scn_no_dev ( void rport)

Definition at line 2819 of file bfa_fcs_rport.c.

void bfa_cb_rport_scn_offline ( struct bfa_s bfa)

Definition at line 2828 of file bfa_fcs_rport.c.

void bfa_cb_rport_scn_online ( struct bfa_s bfa)

Definition at line 2801 of file bfa_fcs_rport.c.

void bfa_fcs_rpf_init ( struct bfa_fcs_rport_s rport)

Definition at line 3324 of file bfa_fcs_rport.c.

void bfa_fcs_rpf_rport_offline ( struct bfa_fcs_rport_s rport)

Definition at line 3353 of file bfa_fcs_rport.c.

void bfa_fcs_rpf_rport_online ( struct bfa_fcs_rport_s rport)

Definition at line 3338 of file bfa_fcs_rport.c.

struct bfa_fcs_rport_s* bfa_fcs_rport_create ( struct bfa_fcs_lport_s port,
u32  rpid 
)
read

Definition at line 2615 of file bfa_fcs_rport.c.

struct bfa_fcs_rport_s* bfa_fcs_rport_create_by_wwn ( struct bfa_fcs_lport_s port,
wwn_t  rpwwn 
)
read

Definition at line 2637 of file bfa_fcs_rport.c.

void bfa_fcs_rport_get_attr ( struct bfa_fcs_rport_s rport,
struct bfa_rport_attr_s rport_attr 
)

Definition at line 3023 of file bfa_fcs_rport.c.

int bfa_fcs_rport_get_state ( struct bfa_fcs_rport_s rport)

Definition at line 2980 of file bfa_fcs_rport.c.

struct bfa_fcs_rport_s* bfa_fcs_rport_lookup ( struct bfa_fcs_lport_s port,
wwn_t  rpwwn 
)
read

Definition at line 3077 of file bfa_fcs_rport.c.

struct bfa_fcs_rport_s* bfa_fcs_rport_lookup_by_nwwn ( struct bfa_fcs_lport_s port,
wwn_t  rnwwn 
)
read

Definition at line 3092 of file bfa_fcs_rport.c.

void bfa_fcs_rport_plogi ( struct bfa_fcs_rport_s rport,
struct fchs_s rx_fchs,
struct fc_logi_s plogi 
)

Definition at line 2698 of file bfa_fcs_rport.c.

void bfa_fcs_rport_plogi_create ( struct bfa_fcs_lport_s port,
struct fchs_s fchs,
struct fc_logi_s plogi 
)

Definition at line 2675 of file bfa_fcs_rport.c.

void bfa_fcs_rport_prlo ( struct bfa_fcs_rport_s rport,
__be16  ox_id 
)

Definition at line 3002 of file bfa_fcs_rport.c.

void bfa_fcs_rport_scn ( struct bfa_fcs_rport_s rport)

Definition at line 2722 of file bfa_fcs_rport.c.

void bfa_fcs_rport_set_del_timeout ( u8  rport_tmo)

Definition at line 2995 of file bfa_fcs_rport.c.

void bfa_fcs_rport_set_max_logins ( u32  max_logins)

Definition at line 3016 of file bfa_fcs_rport.c.

void bfa_fcs_rport_start ( struct bfa_fcs_lport_s port,
struct fchs_s fchs,
struct fc_logi_s plogi 
)

Definition at line 2656 of file bfa_fcs_rport.c.

void bfa_fcs_rport_uf_recv ( struct bfa_fcs_rport_s rport,
struct fchs_s fchs,
u16  len 
)

Definition at line 2873 of file bfa_fcs_rport.c.

BFA_TRC_FILE ( FCS  ,
RPORT   
)