Lines Matching refs:plogi
199 struct fc_logi_s *plogi = (struct fc_logi_s *) (pld); in fc_plogi_x_build() local
201 memcpy(plogi, &plogi_tmpl, sizeof(struct fc_logi_s)); in fc_plogi_x_build()
205 plogi->csp.altbbcred = 1; in fc_plogi_x_build()
207 plogi->els_cmd.els_code = els_code; in fc_plogi_x_build()
213 plogi->csp.rxsz = plogi->class3.rxsz = cpu_to_be16(pdu_size); in fc_plogi_x_build()
214 plogi->csp.bbcred = cpu_to_be16(bb_cr); in fc_plogi_x_build()
216 memcpy(&plogi->port_name, &port_name, sizeof(wwn_t)); in fc_plogi_x_build()
217 memcpy(&plogi->node_name, &node_name, sizeof(wwn_t)); in fc_plogi_x_build()
322 struct fc_logi_s *plogi; in fc_plogi_rsp_parse() local
333 plogi = (struct fc_logi_s *) (fchs + 1); in fc_plogi_rsp_parse()
337 if (!wwn_is_equal(plogi->port_name, port_name)) in fc_plogi_rsp_parse()
340 if (!plogi->class3.class_valid) in fc_plogi_rsp_parse()
343 if (be16_to_cpu(plogi->class3.rxsz) < (FC_MIN_PDUSZ)) in fc_plogi_rsp_parse()
355 struct fc_logi_s *plogi = (struct fc_logi_s *) (fchs + 1); in fc_plogi_parse() local
357 if (plogi->class3.class_valid != 1) in fc_plogi_parse()
360 if ((be16_to_cpu(plogi->class3.rxsz) < FC_MIN_PDUSZ) in fc_plogi_parse()
361 || (be16_to_cpu(plogi->class3.rxsz) > FC_MAX_PDUSZ) in fc_plogi_parse()
362 || (plogi->class3.rxsz == 0)) in fc_plogi_parse()