Lines Matching refs:lport
939 static inline int fc_lport_test_ready(struct fc_lport *lport) in fc_lport_test_ready() argument
941 return lport->state == LPORT_ST_READY; in fc_lport_test_ready()
949 static inline void fc_set_wwnn(struct fc_lport *lport, u64 wwnn) in fc_set_wwnn() argument
951 lport->wwnn = wwnn; in fc_set_wwnn()
959 static inline void fc_set_wwpn(struct fc_lport *lport, u64 wwnn) in fc_set_wwpn() argument
961 lport->wwpn = wwnn; in fc_set_wwpn()
969 static inline void fc_lport_state_enter(struct fc_lport *lport, in fc_lport_state_enter() argument
972 if (state != lport->state) in fc_lport_state_enter()
973 lport->retry_count = 0; in fc_lport_state_enter()
974 lport->state = state; in fc_lport_state_enter()
981 static inline int fc_lport_init_stats(struct fc_lport *lport) in fc_lport_init_stats() argument
983 lport->dev_stats = alloc_percpu(struct fcoe_dev_stats); in fc_lport_init_stats()
984 if (!lport->dev_stats) in fc_lport_init_stats()
993 static inline void fc_lport_free_stats(struct fc_lport *lport) in fc_lport_free_stats() argument
995 free_percpu(lport->dev_stats); in fc_lport_free_stats()
1002 static inline void *lport_priv(const struct fc_lport *lport) in lport_priv() argument
1004 return (void *)(lport + 1); in lport_priv()
1018 struct fc_lport *lport; in libfc_host_alloc() local
1021 shost = scsi_host_alloc(sht, sizeof(*lport) + priv_size); in libfc_host_alloc()
1024 lport = shost_priv(shost); in libfc_host_alloc()
1025 lport->host = shost; in libfc_host_alloc()
1026 INIT_LIST_HEAD(&lport->ema_list); in libfc_host_alloc()
1027 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
1028 return lport; in libfc_host_alloc()