Lines Matching refs:lport

783 static inline int fc_lport_test_ready(struct fc_lport *lport)  in fc_lport_test_ready()  argument
785 return lport->state == LPORT_ST_READY; in fc_lport_test_ready()
793 static inline void fc_set_wwnn(struct fc_lport *lport, u64 wwnn) in fc_set_wwnn() argument
795 lport->wwnn = wwnn; in fc_set_wwnn()
803 static inline void fc_set_wwpn(struct fc_lport *lport, u64 wwpn) in fc_set_wwpn() argument
805 lport->wwpn = wwpn; in fc_set_wwpn()
813 static inline void fc_lport_state_enter(struct fc_lport *lport, in fc_lport_state_enter() argument
816 if (state != lport->state) in fc_lport_state_enter()
817 lport->retry_count = 0; in fc_lport_state_enter()
818 lport->state = state; in fc_lport_state_enter()
825 static inline int fc_lport_init_stats(struct fc_lport *lport) in fc_lport_init_stats() argument
827 lport->stats = alloc_percpu(struct fc_stats); in fc_lport_init_stats()
828 if (!lport->stats) in fc_lport_init_stats()
837 static inline void fc_lport_free_stats(struct fc_lport *lport) in fc_lport_free_stats() argument
839 free_percpu(lport->stats); in fc_lport_free_stats()
846 static inline void *lport_priv(const struct fc_lport *lport) in lport_priv() argument
848 return (void *)(lport + 1); in lport_priv()
862 struct fc_lport *lport; in libfc_host_alloc() local
865 shost = scsi_host_alloc(sht, sizeof(*lport) + priv_size); in libfc_host_alloc()
868 lport = shost_priv(shost); in libfc_host_alloc()
869 lport->host = shost; in libfc_host_alloc()
870 INIT_LIST_HEAD(&lport->ema_list); in libfc_host_alloc()
871 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
872 return lport; in libfc_host_alloc()
900 void fc_lport_recv(struct fc_lport *lport, struct fc_frame *fp);
912 struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport,
918 void fc_rport_recv_req(struct fc_lport *lport, struct fc_frame *fp);
970 void fc_exch_update_stats(struct fc_lport *lport);
971 struct fc_seq *fc_exch_seq_send(struct fc_lport *lport,
984 struct fc_seq *fc_seq_assign(struct fc_lport *lport, struct fc_frame *fp);
997 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp);