Lines Matching refs:lport
88 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_adisc_fill() argument
95 put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn); in fc_adisc_fill()
96 put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn); in fc_adisc_fill()
97 hton24(adisc->adisc_port_id, lport->port_id); in fc_adisc_fill()
131 static inline int fc_ct_ns_fill(struct fc_lport *lport, in fc_ct_ns_fill() argument
156 hton24(ct->payload.rft.fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
157 ct->payload.rft.fts = lport->fcts; in fc_ct_ns_fill()
163 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
165 if (lport->service_params & FCP_SPPF_INIT_FCN) in fc_ct_ns_fill()
167 if (lport->service_params & FCP_SPPF_TARG_FCN) in fc_ct_ns_fill()
174 hton24(ct->payload.rn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
175 put_unaligned_be64(lport->wwnn, &ct->payload.rn.fr_wwn); in fc_ct_ns_fill()
179 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
182 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
184 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
189 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
192 put_unaligned_be64(lport->wwnn, &ct->payload.snn.fr_wwn); in fc_ct_ns_fill()
194 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
215 static inline int fc_ct_ms_fill(struct fc_lport *lport, in fc_ct_ms_fill() argument
246 put_unaligned_be64(lport->wwpn, &ct->payload.rhba.hbaid.id); in fc_ct_ms_fill()
250 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
264 put_unaligned_be64(lport->wwnn, in fc_ct_ms_fill()
276 fc_host_manufacturer(lport->host), in fc_ct_ms_fill()
288 fc_host_serial_number(lport->host), in fc_ct_ms_fill()
300 fc_host_model(lport->host), in fc_ct_ms_fill()
312 fc_host_model_description(lport->host), in fc_ct_ms_fill()
324 fc_host_hardware_version(lport->host), in fc_ct_ms_fill()
336 fc_host_driver_version(lport->host), in fc_ct_ms_fill()
348 fc_host_optionrom_version(lport->host), in fc_ct_ms_fill()
360 fc_host_firmware_version(lport->host), in fc_ct_ms_fill()
392 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
408 memcpy(&entry->value, fc_host_supported_fc4s(lport->host), in fc_ct_ms_fill()
420 put_unaligned_be32(fc_host_supported_speeds(lport->host), in fc_ct_ms_fill()
431 put_unaligned_be32(lport->link_speed, in fc_ct_ms_fill()
442 put_unaligned_be32(fc_host_maxframe_size(lport->host), in fc_ct_ms_fill()
455 dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
456 strnlen(dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
467 if (strlen(fc_host_system_hostname(lport->host))) in fc_ct_ms_fill()
469 fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
470 strnlen(fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
482 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
490 put_unaligned_be64(lport->wwpn, &ct->payload.dhba.hbaid.id); in fc_ct_ms_fill()
509 static inline int fc_ct_fill(struct fc_lport *lport, in fc_ct_fill() argument
518 rc = fc_ct_ms_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
523 rc = fc_ct_ns_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
533 static inline void fc_plogi_fill(struct fc_lport *lport, struct fc_frame *fp, in fc_plogi_fill() argument
543 put_unaligned_be64(lport->wwpn, &plogi->fl_wwpn); in fc_plogi_fill()
544 put_unaligned_be64(lport->wwnn, &plogi->fl_wwnn); in fc_plogi_fill()
550 csp->sp_bb_data = htons((u16) lport->mfs); in fc_plogi_fill()
556 csp->sp_e_d_tov = htonl(lport->e_d_tov); in fc_plogi_fill()
558 cp->cp_rdfs = htons((u16) lport->mfs); in fc_plogi_fill()
566 static inline void fc_flogi_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_flogi_fill() argument
575 put_unaligned_be64(lport->wwpn, &flogi->fl_wwpn); in fc_flogi_fill()
576 put_unaligned_be64(lport->wwnn, &flogi->fl_wwnn); in fc_flogi_fill()
581 sp->sp_bb_data = htons((u16) lport->mfs); in fc_flogi_fill()
584 if (lport->does_npiv) in fc_flogi_fill()
591 static inline void fc_fdisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_fdisc_fill() argument
600 put_unaligned_be64(lport->wwpn, &fdisc->fl_wwpn); in fc_fdisc_fill()
601 put_unaligned_be64(lport->wwnn, &fdisc->fl_wwnn); in fc_fdisc_fill()
606 sp->sp_bb_data = htons((u16) lport->mfs); in fc_fdisc_fill()
614 static inline void fc_logo_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_logo_fill() argument
621 hton24(logo->fl_n_port_id, lport->port_id); in fc_logo_fill()
622 logo->fl_n_port_wwn = htonll(lport->wwpn); in fc_logo_fill()
628 static inline void fc_rtv_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rtv_fill() argument
640 static inline void fc_rec_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rec_fill() argument
648 hton24(rec->rec_s_id, lport->port_id); in fc_rec_fill()
656 static inline void fc_prli_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_prli_fill() argument
670 pp->spp.spp_params = htonl(lport->service_params); in fc_prli_fill()
676 static inline void fc_scr_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_scr_fill() argument
689 static inline int fc_els_fill(struct fc_lport *lport, in fc_els_fill() argument
696 fc_adisc_fill(lport, fp); in fc_els_fill()
700 fc_plogi_fill(lport, fp, ELS_PLOGI); in fc_els_fill()
704 fc_flogi_fill(lport, fp); in fc_els_fill()
708 fc_fdisc_fill(lport, fp); in fc_els_fill()
712 fc_logo_fill(lport, fp); in fc_els_fill()
716 fc_rtv_fill(lport, fp); in fc_els_fill()
720 fc_rec_fill(lport, fp); in fc_els_fill()
724 fc_prli_fill(lport, fp); in fc_els_fill()
728 fc_scr_fill(lport, fp); in fc_els_fill()