Lines Matching refs:lport
48 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_adisc_fill() argument
55 put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn); in fc_adisc_fill()
56 put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn); in fc_adisc_fill()
57 hton24(adisc->adisc_port_id, lport->port_id); in fc_adisc_fill()
91 static inline int fc_ct_ns_fill(struct fc_lport *lport, in fc_ct_ns_fill() argument
116 hton24(ct->payload.rft.fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
117 ct->payload.rft.fts = lport->fcts; in fc_ct_ns_fill()
123 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
125 if (lport->service_params & FCP_SPPF_INIT_FCN) in fc_ct_ns_fill()
127 if (lport->service_params & FCP_SPPF_TARG_FCN) in fc_ct_ns_fill()
134 hton24(ct->payload.rn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
135 put_unaligned_be64(lport->wwnn, &ct->payload.rn.fr_wwn); in fc_ct_ns_fill()
139 len = strnlen(fc_host_symbolic_name(lport->host), in fc_ct_ns_fill()
143 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
145 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
150 len = strnlen(fc_host_symbolic_name(lport->host), in fc_ct_ns_fill()
154 put_unaligned_be64(lport->wwnn, &ct->payload.snn.fr_wwn); in fc_ct_ns_fill()
156 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
187 static inline int fc_ct_ms_fill(struct fc_lport *lport, in fc_ct_ms_fill() argument
197 struct fc_host_attrs *fc_host = shost_to_fc_host(lport->host); in fc_ct_ms_fill()
232 put_unaligned_be64(lport->wwpn, &ct->payload.rhba.hbaid.id); in fc_ct_ms_fill()
236 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
250 put_unaligned_be64(lport->wwnn, in fc_ct_ms_fill()
262 fc_host_manufacturer(lport->host), in fc_ct_ms_fill()
274 fc_host_serial_number(lport->host), in fc_ct_ms_fill()
286 fc_host_model(lport->host), in fc_ct_ms_fill()
298 fc_host_model_description(lport->host), in fc_ct_ms_fill()
310 fc_host_hardware_version(lport->host), in fc_ct_ms_fill()
322 fc_host_driver_version(lport->host), in fc_ct_ms_fill()
346 fc_host_firmware_version(lport->host), in fc_ct_ms_fill()
371 put_unaligned_be32(fc_host_max_ct_payload(lport->host), in fc_ct_ms_fill()
384 fc_host_symbolic_name(lport->host), in fc_ct_ms_fill()
406 put_unaligned_be32(fc_host_num_ports(lport->host), in fc_ct_ms_fill()
417 put_unaligned_be64(fc_host_fabric_name(lport->host), in fc_ct_ms_fill()
429 fc_host_bootbios_version(lport->host), in fc_ct_ms_fill()
440 put_unaligned_be32(fc_host_bootbios_state(lport->host), in fc_ct_ms_fill()
452 fc_host_vendor_identifier(lport->host), in fc_ct_ms_fill()
490 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
506 memcpy(&entry->value, fc_host_supported_fc4s(lport->host), in fc_ct_ms_fill()
518 put_unaligned_be32(fc_host_supported_speeds(lport->host), in fc_ct_ms_fill()
529 put_unaligned_be32(lport->link_speed, in fc_ct_ms_fill()
540 put_unaligned_be32(fc_host_maxframe_size(lport->host), in fc_ct_ms_fill()
553 dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
554 strnlen(dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
565 if (strlen(fc_host_system_hostname(lport->host))) in fc_ct_ms_fill()
567 fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
568 strnlen(fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
586 put_unaligned_be64(fc_host_node_name(lport->host), in fc_ct_ms_fill()
597 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
609 fc_host_symbolic_name(lport->host), in fc_ct_ms_fill()
620 put_unaligned_be32(fc_host_port_type(lport->host), in fc_ct_ms_fill()
631 put_unaligned_be32(fc_host_supported_classes(lport->host), in fc_ct_ms_fill()
642 put_unaligned_be64(fc_host_fabric_name(lport->host), in fc_ct_ms_fill()
653 memcpy(&entry->value, fc_host_active_fc4s(lport->host), in fc_ct_ms_fill()
664 put_unaligned_be32(fc_host_port_state(lport->host), in fc_ct_ms_fill()
675 put_unaligned_be32(fc_host_num_discovered_ports(lport->host), in fc_ct_ms_fill()
686 put_unaligned_be32(fc_host_port_id(lport->host), in fc_ct_ms_fill()
696 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
704 put_unaligned_be64(lport->wwpn, &ct->payload.dhba.hbaid.id); in fc_ct_ms_fill()
723 static inline int fc_ct_fill(struct fc_lport *lport, in fc_ct_fill() argument
732 rc = fc_ct_ms_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
737 rc = fc_ct_ns_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
747 static inline void fc_plogi_fill(struct fc_lport *lport, struct fc_frame *fp, in fc_plogi_fill() argument
757 put_unaligned_be64(lport->wwpn, &plogi->fl_wwpn); in fc_plogi_fill()
758 put_unaligned_be64(lport->wwnn, &plogi->fl_wwnn); in fc_plogi_fill()
764 csp->sp_bb_data = htons((u16) lport->mfs); in fc_plogi_fill()
770 csp->sp_e_d_tov = htonl(lport->e_d_tov); in fc_plogi_fill()
772 cp->cp_rdfs = htons((u16) lport->mfs); in fc_plogi_fill()
780 static inline void fc_flogi_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_flogi_fill() argument
789 put_unaligned_be64(lport->wwpn, &flogi->fl_wwpn); in fc_flogi_fill()
790 put_unaligned_be64(lport->wwnn, &flogi->fl_wwnn); in fc_flogi_fill()
795 sp->sp_bb_data = htons((u16) lport->mfs); in fc_flogi_fill()
798 if (lport->does_npiv) in fc_flogi_fill()
805 static inline void fc_fdisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_fdisc_fill() argument
814 put_unaligned_be64(lport->wwpn, &fdisc->fl_wwpn); in fc_fdisc_fill()
815 put_unaligned_be64(lport->wwnn, &fdisc->fl_wwnn); in fc_fdisc_fill()
820 sp->sp_bb_data = htons((u16) lport->mfs); in fc_fdisc_fill()
828 static inline void fc_logo_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_logo_fill() argument
835 hton24(logo->fl_n_port_id, lport->port_id); in fc_logo_fill()
836 logo->fl_n_port_wwn = htonll(lport->wwpn); in fc_logo_fill()
842 static inline void fc_rtv_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rtv_fill() argument
854 static inline void fc_rec_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rec_fill() argument
862 hton24(rec->rec_s_id, lport->port_id); in fc_rec_fill()
870 static inline void fc_prli_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_prli_fill() argument
884 pp->spp.spp_params = htonl(lport->service_params); in fc_prli_fill()
890 static inline void fc_scr_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_scr_fill() argument
903 static inline int fc_els_fill(struct fc_lport *lport, in fc_els_fill() argument
910 fc_adisc_fill(lport, fp); in fc_els_fill()
914 fc_plogi_fill(lport, fp, ELS_PLOGI); in fc_els_fill()
918 fc_flogi_fill(lport, fp); in fc_els_fill()
922 fc_fdisc_fill(lport, fp); in fc_els_fill()
926 fc_logo_fill(lport, fp); in fc_els_fill()
930 fc_rtv_fill(lport, fp); in fc_els_fill()
934 fc_rec_fill(lport, fp); in fc_els_fill()
938 fc_prli_fill(lport, fp); in fc_els_fill()
942 fc_scr_fill(lport, fp); in fc_els_fill()