Lines Matching refs:pdisc
529 struct fc_logi_s *pdisc = (struct fc_logi_s *) (fchs + 1); in fc_pdisc_parse() local
531 if (pdisc->class3.class_valid != 1) in fc_pdisc_parse()
534 if ((be16_to_cpu(pdisc->class3.rxsz) < in fc_pdisc_parse()
536 || (pdisc->class3.rxsz == 0)) in fc_pdisc_parse()
539 if (!wwn_is_equal(pdisc->port_name, port_name)) in fc_pdisc_parse()
542 if (!wwn_is_equal(pdisc->node_name, node_name)) in fc_pdisc_parse()
808 struct fc_logi_s *pdisc = (struct fc_logi_s *) (fchs + 1); in fc_pdisc_build() local
810 memcpy(pdisc, &plogi_tmpl, sizeof(struct fc_logi_s)); in fc_pdisc_build()
812 pdisc->els_cmd.els_code = FC_ELS_PDISC; in fc_pdisc_build()
815 pdisc->csp.rxsz = pdisc->class3.rxsz = cpu_to_be16(pdu_size); in fc_pdisc_build()
816 pdisc->port_name = port_name; in fc_pdisc_build()
817 pdisc->node_name = node_name; in fc_pdisc_build()
825 struct fc_logi_s *pdisc = (struct fc_logi_s *) (fchs + 1); in fc_pdisc_rsp_parse() local
830 if (pdisc->els_cmd.els_code != FC_ELS_ACC) in fc_pdisc_rsp_parse()
833 if (!wwn_is_equal(pdisc->port_name, port_name)) in fc_pdisc_rsp_parse()
836 if (!pdisc->class3.class_valid) in fc_pdisc_rsp_parse()
839 if (be16_to_cpu(pdisc->class3.rxsz) < (FC_MIN_PDUSZ)) in fc_pdisc_rsp_parse()