Lines Matching refs:ct_rsp
121 struct ct_sns_rsp *ct_rsp, const char *routine) in qla2x00_chk_ms_status() argument
144 if (ct_rsp->header.response != in qla2x00_chk_ms_status()
150 comp_status, ct_rsp->header.response); in qla2x00_chk_ms_status()
152 0x2078, ct_rsp, in qla2x00_chk_ms_status()
153 offsetof(typeof(*ct_rsp), rsp)); in qla2x00_chk_ms_status()
206 struct ct_sns_rsp *ct_rsp; in qla2x00_ga_nxt() local
227 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_ga_nxt()
239 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "GA_NXT") != in qla2x00_ga_nxt()
244 fcport->d_id = be_to_port_id(ct_rsp->rsp.ga_nxt.port_id); in qla2x00_ga_nxt()
246 memcpy(fcport->node_name, ct_rsp->rsp.ga_nxt.node_name, in qla2x00_ga_nxt()
248 memcpy(fcport->port_name, ct_rsp->rsp.ga_nxt.port_name, in qla2x00_ga_nxt()
251 fcport->fc4_type = (ct_rsp->rsp.ga_nxt.fc4_types[2] & BIT_0) ? in qla2x00_ga_nxt()
254 if (ct_rsp->rsp.ga_nxt.port_type != NS_N_PORT_TYPE && in qla2x00_ga_nxt()
255 ct_rsp->rsp.ga_nxt.port_type != NS_NL_PORT_TYPE) in qla2x00_ga_nxt()
292 struct ct_sns_rsp *ct_rsp; in qla2x00_gid_pt() local
318 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_gid_pt()
330 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "GID_PT") != in qla2x00_gid_pt()
336 gid_data = &ct_rsp->rsp.gid_pt.entries[i]; in qla2x00_gid_pt()
376 struct ct_sns_rsp *ct_rsp; in qla2x00_gpn_id() local
398 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_gpn_id()
411 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gpn_id()
418 ct_rsp->rsp.gpn_id.port_name, WWN_SIZE); in qla2x00_gpn_id()
444 struct ct_sns_rsp *ct_rsp; in qla2x00_gnn_id() local
465 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_gnn_id()
478 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gnn_id()
485 ct_rsp->rsp.gnn_id.node_name, WWN_SIZE); in qla2x00_gnn_id()
2155 struct ct_sns_rsp *ct_rsp; in qla2x00_fdmi_rhba() local
2171 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_fdmi_rhba()
2214 rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RHBA"); in qla2x00_fdmi_rhba()
2216 if (ct_rsp->header.reason_code == CT_REASON_CANNOT_PERFORM && in qla2x00_fdmi_rhba()
2217 ct_rsp->header.explanation_code == in qla2x00_fdmi_rhba()
2226 ct_rsp->header.reason_code, in qla2x00_fdmi_rhba()
2227 ct_rsp->header.explanation_code); in qla2x00_fdmi_rhba()
2243 struct ct_sns_rsp *ct_rsp; in qla2x00_fdmi_dhba() local
2250 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_fdmi_dhba()
2262 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "DHBA") != in qla2x00_fdmi_dhba()
2289 struct ct_sns_rsp *ct_rsp; in qla2x00_fdmi_rprt() local
2303 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_fdmi_rprt()
2333 rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RPRT"); in qla2x00_fdmi_rprt()
2335 if (ct_rsp->header.reason_code == CT_REASON_CANNOT_PERFORM && in qla2x00_fdmi_rprt()
2336 ct_rsp->header.explanation_code == in qla2x00_fdmi_rprt()
2345 ct_rsp->header.reason_code, in qla2x00_fdmi_rprt()
2346 ct_rsp->header.explanation_code); in qla2x00_fdmi_rprt()
2368 struct ct_sns_rsp *ct_rsp; in qla2x00_fdmi_rpa() local
2389 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_fdmi_rpa()
2423 rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RPA"); in qla2x00_fdmi_rpa()
2425 if (ct_rsp->header.reason_code == CT_REASON_CANNOT_PERFORM && in qla2x00_fdmi_rpa()
2426 ct_rsp->header.explanation_code == in qla2x00_fdmi_rpa()
2435 ct_rsp->header.reason_code, in qla2x00_fdmi_rpa()
2436 ct_rsp->header.explanation_code); in qla2x00_fdmi_rpa()
2535 struct ct_sns_rsp *ct_rsp; in qla2x00_gfpn_id() local
2556 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_gfpn_id()
2569 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gfpn_id()
2576 ct_rsp->rsp.gfpn_id.port_name, WWN_SIZE); in qla2x00_gfpn_id()
2643 struct ct_sns_rsp *ct_rsp; in qla2x00_gpsc() local
2670 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_gpsc()
2683 } else if ((rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gpsc()
2687 (ct_rsp->header.reason_code == in qla2x00_gpsc()
2689 ct_rsp->header.reason_code == in qla2x00_gpsc()
2701 be16_to_cpu(ct_rsp->rsp.gpsc.speed)); in qla2x00_gpsc()
2706 be16_to_cpu(ct_rsp->rsp.gpsc.speeds), in qla2x00_gpsc()
2707 be16_to_cpu(ct_rsp->rsp.gpsc.speed)); in qla2x00_gpsc()
2733 struct ct_sns_rsp *ct_rsp; in qla2x00_gff_id() local
2760 ct_rsp = &ha->ct_sns->p.rsp; in qla2x00_gff_id()
2772 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gff_id()
2778 ct_rsp->rsp.gff_id.fc4_features[GFF_FCP_SCSI_OFFSET]; in qla2x00_gff_id()
2787 ct_rsp->rsp.gff_id.fc4_features[GFF_NVME_OFFSET]; in qla2x00_gff_id()
2849 struct ct_sns_rsp *ct_rsp; in qla24xx_async_gpsc_sp_done() local
2852 ct_rsp = &fcport->ct_desc.ct_sns->p.rsp; in qla24xx_async_gpsc_sp_done()
2867 if ((ct_rsp->header.reason_code == in qla24xx_async_gpsc_sp_done()
2869 (ct_rsp->header.reason_code == in qla24xx_async_gpsc_sp_done()
2878 be16_to_cpu(ct_rsp->rsp.gpsc.speed)); in qla24xx_async_gpsc_sp_done()
2883 be16_to_cpu(ct_rsp->rsp.gpsc.speeds), in qla24xx_async_gpsc_sp_done()
2884 be16_to_cpu(ct_rsp->rsp.gpsc.speed)); in qla24xx_async_gpsc_sp_done()
2988 struct ct_sns_rsp *ct_rsp; in qla24xx_async_gffid_sp_done() local
2996 ct_rsp = sp->u.iocb_cmd.u.ctarg.rsp; in qla24xx_async_gffid_sp_done()
2997 fc4_scsi_feat = ct_rsp->rsp.gff_id.fc4_features[GFF_FCP_SCSI_OFFSET]; in qla24xx_async_gffid_sp_done()
2998 fc4_nvme_feat = ct_rsp->rsp.gff_id.fc4_features[GFF_NVME_OFFSET]; in qla24xx_async_gffid_sp_done()
3428 struct ct_sns_gpnft_rsp *ct_rsp = in qla2x00_find_free_fcp_nvme_slot() local
3439 d = &ct_rsp->entries[i]; in qla2x00_find_free_fcp_nvme_slot()