• Home
  • Raw
  • Download

Lines Matching refs:lport

76 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp)  in fc_adisc_fill()  argument
83 put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn); in fc_adisc_fill()
84 put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn); in fc_adisc_fill()
85 hton24(adisc->adisc_port_id, lport->port_id); in fc_adisc_fill()
119 static inline int fc_ct_ns_fill(struct fc_lport *lport, in fc_ct_ns_fill() argument
144 hton24(ct->payload.rft.fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
145 ct->payload.rft.fts = lport->fcts; in fc_ct_ns_fill()
151 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
153 if (lport->service_params & FCP_SPPF_INIT_FCN) in fc_ct_ns_fill()
155 if (lport->service_params & FCP_SPPF_TARG_FCN) in fc_ct_ns_fill()
162 hton24(ct->payload.rn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
163 put_unaligned_be64(lport->wwnn, &ct->payload.rn.fr_wwn); in fc_ct_ns_fill()
167 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
170 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
172 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
177 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
180 put_unaligned_be64(lport->wwnn, &ct->payload.snn.fr_wwn); in fc_ct_ns_fill()
182 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
203 static inline int fc_ct_ms_fill(struct fc_lport *lport, in fc_ct_ms_fill() argument
234 put_unaligned_be64(lport->wwpn, &ct->payload.rhba.hbaid.id); in fc_ct_ms_fill()
238 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
252 put_unaligned_be64(lport->wwnn, in fc_ct_ms_fill()
264 fc_host_manufacturer(lport->host), in fc_ct_ms_fill()
276 fc_host_serial_number(lport->host), in fc_ct_ms_fill()
288 fc_host_model(lport->host), in fc_ct_ms_fill()
300 fc_host_model_description(lport->host), in fc_ct_ms_fill()
312 fc_host_hardware_version(lport->host), in fc_ct_ms_fill()
324 fc_host_driver_version(lport->host), in fc_ct_ms_fill()
336 fc_host_optionrom_version(lport->host), in fc_ct_ms_fill()
348 fc_host_firmware_version(lport->host), in fc_ct_ms_fill()
380 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
396 memcpy(&entry->value, fc_host_supported_fc4s(lport->host), in fc_ct_ms_fill()
408 put_unaligned_be32(fc_host_supported_speeds(lport->host), in fc_ct_ms_fill()
419 put_unaligned_be32(lport->link_speed, in fc_ct_ms_fill()
430 put_unaligned_be32(fc_host_maxframe_size(lport->host), in fc_ct_ms_fill()
443 dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
444 strnlen(dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill()
455 if (strlen(fc_host_system_hostname(lport->host))) in fc_ct_ms_fill()
457 fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
458 strnlen(fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
470 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
478 put_unaligned_be64(lport->wwpn, &ct->payload.dhba.hbaid.id); in fc_ct_ms_fill()
497 static inline int fc_ct_fill(struct fc_lport *lport, in fc_ct_fill() argument
506 rc = fc_ct_ms_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
511 rc = fc_ct_ns_fill(lport, fc_id, fp, op, r_ctl, fh_type); in fc_ct_fill()
521 static inline void fc_plogi_fill(struct fc_lport *lport, struct fc_frame *fp, in fc_plogi_fill() argument
531 put_unaligned_be64(lport->wwpn, &plogi->fl_wwpn); in fc_plogi_fill()
532 put_unaligned_be64(lport->wwnn, &plogi->fl_wwnn); in fc_plogi_fill()
538 csp->sp_bb_data = htons((u16) lport->mfs); in fc_plogi_fill()
544 csp->sp_e_d_tov = htonl(lport->e_d_tov); in fc_plogi_fill()
546 cp->cp_rdfs = htons((u16) lport->mfs); in fc_plogi_fill()
554 static inline void fc_flogi_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_flogi_fill() argument
563 put_unaligned_be64(lport->wwpn, &flogi->fl_wwpn); in fc_flogi_fill()
564 put_unaligned_be64(lport->wwnn, &flogi->fl_wwnn); in fc_flogi_fill()
569 sp->sp_bb_data = htons((u16) lport->mfs); in fc_flogi_fill()
572 if (lport->does_npiv) in fc_flogi_fill()
579 static inline void fc_fdisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_fdisc_fill() argument
588 put_unaligned_be64(lport->wwpn, &fdisc->fl_wwpn); in fc_fdisc_fill()
589 put_unaligned_be64(lport->wwnn, &fdisc->fl_wwnn); in fc_fdisc_fill()
594 sp->sp_bb_data = htons((u16) lport->mfs); in fc_fdisc_fill()
602 static inline void fc_logo_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_logo_fill() argument
609 hton24(logo->fl_n_port_id, lport->port_id); in fc_logo_fill()
610 logo->fl_n_port_wwn = htonll(lport->wwpn); in fc_logo_fill()
616 static inline void fc_rtv_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rtv_fill() argument
628 static inline void fc_rec_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_rec_fill() argument
636 hton24(rec->rec_s_id, lport->port_id); in fc_rec_fill()
644 static inline void fc_prli_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_prli_fill() argument
658 pp->spp.spp_params = htonl(lport->service_params); in fc_prli_fill()
664 static inline void fc_scr_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_scr_fill() argument
677 static inline int fc_els_fill(struct fc_lport *lport, in fc_els_fill() argument
684 fc_adisc_fill(lport, fp); in fc_els_fill()
688 fc_plogi_fill(lport, fp, ELS_PLOGI); in fc_els_fill()
692 fc_flogi_fill(lport, fp); in fc_els_fill()
696 fc_fdisc_fill(lport, fp); in fc_els_fill()
700 fc_logo_fill(lport, fp); in fc_els_fill()
704 fc_rtv_fill(lport, fp); in fc_els_fill()
708 fc_rec_fill(lport, fp); in fc_els_fill()
712 fc_prli_fill(lport, fp); in fc_els_fill()
716 fc_scr_fill(lport, fp); in fc_els_fill()