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), 255); in fc_ct_ns_fill()
142 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
144 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
149 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
152 put_unaligned_be64(lport->wwnn, &ct->payload.snn.fr_wwn); in fc_ct_ns_fill()
154 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
185 static inline int fc_ct_ms_fill(struct fc_lport *lport, in fc_ct_ms_fill() argument
195 struct fc_host_attrs *fc_host = shost_to_fc_host(lport->host); in fc_ct_ms_fill()
230 put_unaligned_be64(lport->wwpn, &ct->payload.rhba.hbaid.id); in fc_ct_ms_fill()
234 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
248 put_unaligned_be64(lport->wwnn, in fc_ct_ms_fill()
260 fc_host_manufacturer(lport->host), in fc_ct_ms_fill()
272 fc_host_serial_number(lport->host), in fc_ct_ms_fill()
284 fc_host_model(lport->host), in fc_ct_ms_fill()
296 fc_host_model_description(lport->host), in fc_ct_ms_fill()
308 fc_host_hardware_version(lport->host), in fc_ct_ms_fill()
320 fc_host_driver_version(lport->host), in fc_ct_ms_fill()
344 fc_host_firmware_version(lport->host), in fc_ct_ms_fill()
369 put_unaligned_be32(fc_host_max_ct_payload(lport->host), in fc_ct_ms_fill()
382 fc_host_symbolic_name(lport->host), in fc_ct_ms_fill()
404 put_unaligned_be32(fc_host_num_ports(lport->host), in fc_ct_ms_fill()
415 put_unaligned_be64(fc_host_fabric_name(lport->host), in fc_ct_ms_fill()
427 fc_host_bootbios_version(lport->host), in fc_ct_ms_fill()
438 put_unaligned_be32(fc_host_bootbios_state(lport->host), in fc_ct_ms_fill()
450 fc_host_vendor_identifier(lport->host), in fc_ct_ms_fill()
488 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
504 memcpy(&entry->value, fc_host_supported_fc4s(lport->host), in fc_ct_ms_fill()
516 put_unaligned_be32(fc_host_supported_speeds(lport->host), in fc_ct_ms_fill()
527 put_unaligned_be32(lport->link_speed, in fc_ct_ms_fill()
538 put_unaligned_be32(fc_host_maxframe_size(lport->host), in fc_ct_ms_fill()
551 dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
552 strnlen(dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
563 if (strlen(fc_host_system_hostname(lport->host))) in fc_ct_ms_fill()
565 fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
566 strnlen(fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
584 put_unaligned_be64(fc_host_node_name(lport->host), in fc_ct_ms_fill()
595 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
607 fc_host_symbolic_name(lport->host), in fc_ct_ms_fill()
618 put_unaligned_be32(fc_host_port_type(lport->host), in fc_ct_ms_fill()
629 put_unaligned_be32(fc_host_supported_classes(lport->host), in fc_ct_ms_fill()
640 put_unaligned_be64(fc_host_fabric_name(lport->host), in fc_ct_ms_fill()
651 memcpy(&entry->value, fc_host_active_fc4s(lport->host), in fc_ct_ms_fill()
662 put_unaligned_be32(fc_host_port_state(lport->host), in fc_ct_ms_fill()
673 put_unaligned_be32(fc_host_num_discovered_ports(lport->host), in fc_ct_ms_fill()
684 put_unaligned_be32(fc_host_port_id(lport->host), in fc_ct_ms_fill()
694 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
702 put_unaligned_be64(lport->wwpn, &ct->payload.dhba.hbaid.id); in fc_ct_ms_fill()
721 static inline int fc_ct_fill(struct fc_lport *lport, in fc_ct_fill() argument
730 rc = fc_ct_ms_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
735 rc = fc_ct_ns_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
745 static inline void fc_plogi_fill(struct fc_lport *lport, struct fc_frame *fp, in fc_plogi_fill() argument
755 put_unaligned_be64(lport->wwpn, &plogi->fl_wwpn); in fc_plogi_fill()
756 put_unaligned_be64(lport->wwnn, &plogi->fl_wwnn); in fc_plogi_fill()
762 csp->sp_bb_data = htons((u16) lport->mfs); in fc_plogi_fill()
768 csp->sp_e_d_tov = htonl(lport->e_d_tov); in fc_plogi_fill()
770 cp->cp_rdfs = htons((u16) lport->mfs); in fc_plogi_fill()
778 static inline void fc_flogi_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_flogi_fill() argument
787 put_unaligned_be64(lport->wwpn, &flogi->fl_wwpn); in fc_flogi_fill()
788 put_unaligned_be64(lport->wwnn, &flogi->fl_wwnn); in fc_flogi_fill()
793 sp->sp_bb_data = htons((u16) lport->mfs); in fc_flogi_fill()
796 if (lport->does_npiv) in fc_flogi_fill()
803 static inline void fc_fdisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_fdisc_fill() argument
812 put_unaligned_be64(lport->wwpn, &fdisc->fl_wwpn); in fc_fdisc_fill()
813 put_unaligned_be64(lport->wwnn, &fdisc->fl_wwnn); in fc_fdisc_fill()
818 sp->sp_bb_data = htons((u16) lport->mfs); in fc_fdisc_fill()
826 static inline void fc_logo_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_logo_fill() argument
833 hton24(logo->fl_n_port_id, lport->port_id); in fc_logo_fill()
834 logo->fl_n_port_wwn = htonll(lport->wwpn); in fc_logo_fill()
840 static inline void fc_rtv_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rtv_fill() argument
852 static inline void fc_rec_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rec_fill() argument
860 hton24(rec->rec_s_id, lport->port_id); in fc_rec_fill()
868 static inline void fc_prli_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_prli_fill() argument
882 pp->spp.spp_params = htonl(lport->service_params); in fc_prli_fill()
888 static inline void fc_scr_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_scr_fill() argument
901 static inline int fc_els_fill(struct fc_lport *lport, in fc_els_fill() argument
908 fc_adisc_fill(lport, fp); in fc_els_fill()
912 fc_plogi_fill(lport, fp, ELS_PLOGI); in fc_els_fill()
916 fc_flogi_fill(lport, fp); in fc_els_fill()
920 fc_fdisc_fill(lport, fp); in fc_els_fill()
924 fc_logo_fill(lport, fp); in fc_els_fill()
928 fc_rtv_fill(lport, fp); in fc_els_fill()
932 fc_rec_fill(lport, fp); in fc_els_fill()
936 fc_prli_fill(lport, fp); in fc_els_fill()
940 fc_scr_fill(lport, fp); in fc_els_fill()