Lines Matching refs:ct_req
205 struct ct_sns_req *ct_req; in qla2x00_ga_nxt() local
225 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GA_NXT_CMD, in qla2x00_ga_nxt()
230 ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id); in qla2x00_ga_nxt()
291 struct ct_sns_req *ct_req; in qla2x00_gid_pt() local
317 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GID_PT_CMD, gid_pt_rsp_size); in qla2x00_gid_pt()
321 ct_req->req.gid_pt.port_type = NS_NX_PORT_TYPE; in qla2x00_gid_pt()
375 struct ct_sns_req *ct_req; in qla2x00_gpn_id() local
396 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GPN_ID_CMD, in qla2x00_gpn_id()
401 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id); in qla2x00_gpn_id()
443 struct ct_sns_req *ct_req; in qla2x00_gnn_id() local
463 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GNN_ID_CMD, in qla2x00_gnn_id()
468 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id); in qla2x00_gnn_id()
587 struct ct_sns_req *ct_req; in qla_async_rftid() local
630 ct_req = qla2x00_prep_ct_req(ct_sns, RFT_ID_CMD, RFT_ID_RSP_SIZE); in qla_async_rftid()
633 ct_req->req.rft_id.port_id = port_id_to_be_id(vha->d_id); in qla_async_rftid()
634 ct_req->req.rft_id.fc4_types[2] = 0x01; /* FCP-3 */ in qla_async_rftid()
637 ct_req->req.rft_id.fc4_types[6] = 1; /* NVMe type 28h */ in qla_async_rftid()
686 struct ct_sns_req *ct_req; in qla_async_rffid() local
726 ct_req = qla2x00_prep_ct_req(ct_sns, RFF_ID_CMD, RFF_ID_RSP_SIZE); in qla_async_rffid()
729 ct_req->req.rff_id.port_id = port_id_to_be_id(*d_id); in qla_async_rffid()
730 ct_req->req.rff_id.fc4_feature = fc4feature; in qla_async_rffid()
731 ct_req->req.rff_id.fc4_type = fc4type; /* SCSI-FCP or FC-NVMe */ in qla_async_rffid()
778 struct ct_sns_req *ct_req; in qla_async_rnnid() local
818 ct_req = qla2x00_prep_ct_req(ct_sns, RNN_ID_CMD, RNN_ID_RSP_SIZE); in qla_async_rnnid()
821 ct_req->req.rnn_id.port_id = port_id_to_be_id(vha->d_id); in qla_async_rnnid()
822 memcpy(ct_req->req.rnn_id.node_name, vha->node_name, WWN_SIZE); in qla_async_rnnid()
885 struct ct_sns_req *ct_req; in qla_async_rsnn_nn() local
925 ct_req = qla2x00_prep_ct_req(ct_sns, RSNN_NN_CMD, RSNN_NN_RSP_SIZE); in qla_async_rsnn_nn()
928 memcpy(ct_req->req.rsnn_nn.node_name, vha->node_name, WWN_SIZE); in qla_async_rsnn_nn()
931 qla2x00_get_sym_node_name(vha, ct_req->req.rsnn_nn.sym_node_name, in qla_async_rsnn_nn()
932 sizeof(ct_req->req.rsnn_nn.sym_node_name)); in qla_async_rsnn_nn()
933 ct_req->req.rsnn_nn.name_len = in qla_async_rsnn_nn()
934 (uint8_t)strlen(ct_req->req.rsnn_nn.sym_node_name); in qla_async_rsnn_nn()
937 sp->u.iocb_cmd.u.ctarg.req_size = 24 + 1 + ct_req->req.rsnn_nn.name_len; in qla_async_rsnn_nn()
2154 struct ct_sns_req *ct_req; in qla2x00_fdmi_rhba() local
2170 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RHBA_CMD, size); in qla2x00_fdmi_rhba()
2174 memcpy(ct_req->req.rhba.hba_identifier, vha->port_name, in qla2x00_fdmi_rhba()
2175 sizeof(ct_req->req.rhba.hba_identifier)); in qla2x00_fdmi_rhba()
2176 size += sizeof(ct_req->req.rhba.hba_identifier); in qla2x00_fdmi_rhba()
2178 ct_req->req.rhba.entry_count = cpu_to_be32(1); in qla2x00_fdmi_rhba()
2179 size += sizeof(ct_req->req.rhba.entry_count); in qla2x00_fdmi_rhba()
2181 memcpy(ct_req->req.rhba.port_name, vha->port_name, in qla2x00_fdmi_rhba()
2182 sizeof(ct_req->req.rhba.port_name)); in qla2x00_fdmi_rhba()
2183 size += sizeof(ct_req->req.rhba.port_name); in qla2x00_fdmi_rhba()
2186 ct_req->req.rhba.attrs.count = cpu_to_be32(count); in qla2x00_fdmi_rhba()
2187 size += sizeof(ct_req->req.rhba.attrs.count); in qla2x00_fdmi_rhba()
2190 entries = &ct_req->req.rhba.attrs.entry; in qla2x00_fdmi_rhba()
2199 wwn_to_u64(ct_req->req.rhba.hba_identifier), in qla2x00_fdmi_rhba()
2200 wwn_to_u64(ct_req->req.rhba.port_name)); in qla2x00_fdmi_rhba()
2242 struct ct_sns_req *ct_req; in qla2x00_fdmi_dhba() local
2249 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, DHBA_CMD, DHBA_RSP_SIZE); in qla2x00_fdmi_dhba()
2252 memcpy(ct_req->req.dhba.port_name, vha->port_name, WWN_SIZE); in qla2x00_fdmi_dhba()
2254 "DHBA portname = %8phN.\n", ct_req->req.dhba.port_name); in qla2x00_fdmi_dhba()
2288 struct ct_sns_req *ct_req; in qla2x00_fdmi_rprt() local
2302 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RPRT_CMD, size); in qla2x00_fdmi_rprt()
2305 memcpy(ct_req->req.rprt.hba_identifier, base_vha->port_name, in qla2x00_fdmi_rprt()
2306 sizeof(ct_req->req.rprt.hba_identifier)); in qla2x00_fdmi_rprt()
2307 size += sizeof(ct_req->req.rprt.hba_identifier); in qla2x00_fdmi_rprt()
2308 memcpy(ct_req->req.rprt.port_name, vha->port_name, in qla2x00_fdmi_rprt()
2309 sizeof(ct_req->req.rprt.port_name)); in qla2x00_fdmi_rprt()
2310 size += sizeof(ct_req->req.rprt.port_name); in qla2x00_fdmi_rprt()
2312 ct_req->req.rprt.attrs.count = cpu_to_be32(count); in qla2x00_fdmi_rprt()
2313 size += sizeof(ct_req->req.rprt.attrs.count); in qla2x00_fdmi_rprt()
2315 entries = ct_req->req.rprt.attrs.entry; in qla2x00_fdmi_rprt()
2321 wwn_to_u64(ct_req->req.rprt.port_name), in qla2x00_fdmi_rprt()
2322 wwn_to_u64(ct_req->req.rprt.port_name)); in qla2x00_fdmi_rprt()
2367 struct ct_sns_req *ct_req; in qla2x00_fdmi_rpa() local
2388 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RPA_CMD, size); in qla2x00_fdmi_rpa()
2392 memcpy(ct_req->req.rpa.port_name, vha->port_name, in qla2x00_fdmi_rpa()
2393 sizeof(ct_req->req.rpa.port_name)); in qla2x00_fdmi_rpa()
2394 size += sizeof(ct_req->req.rpa.port_name); in qla2x00_fdmi_rpa()
2397 ct_req->req.rpa.attrs.count = cpu_to_be32(count); in qla2x00_fdmi_rpa()
2398 size += sizeof(ct_req->req.rpa.attrs.count); in qla2x00_fdmi_rpa()
2401 entries = ct_req->req.rpa.attrs.entry; in qla2x00_fdmi_rpa()
2409 "RPA %016llx.\n", wwn_to_u64(ct_req->req.rpa.port_name)); in qla2x00_fdmi_rpa()
2534 struct ct_sns_req *ct_req; in qla2x00_gfpn_id() local
2554 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GFPN_ID_CMD, in qla2x00_gfpn_id()
2559 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id); in qla2x00_gfpn_id()
2642 struct ct_sns_req *ct_req; in qla2x00_gpsc() local
2668 ct_req = qla24xx_prep_ct_fm_req(ha->ct_sns, GPSC_CMD, in qla2x00_gpsc()
2673 memcpy(ct_req->req.gpsc.port_name, list[i].fabric_port_name, in qla2x00_gpsc()
2732 struct ct_sns_req *ct_req; in qla2x00_gff_id() local
2758 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GFF_ID_CMD, in qla2x00_gff_id()
2763 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id); in qla2x00_gff_id()
2900 struct ct_sns_req *ct_req; in qla24xx_async_gpsc() local
2919 ct_req = qla24xx_prep_ct_fm_req(fcport->ct_desc.ct_sns, GPSC_CMD, in qla24xx_async_gpsc()
2923 memcpy(ct_req->req.gpsc.port_name, fcport->fabric_port_name, in qla24xx_async_gpsc()
3050 struct ct_sns_req *ct_req; in qla24xx_async_gffid() local
3100 ct_req = qla2x00_prep_ct_req(sp->u.iocb_cmd.u.ctarg.req, GFF_ID_CMD, GFF_ID_RSP_SIZE); in qla24xx_async_gffid()
3102 ct_req->req.gff_id.port_id[0] = fcport->d_id.b.domain; in qla24xx_async_gffid()
3103 ct_req->req.gff_id.port_id[1] = fcport->d_id.b.area; in qla24xx_async_gffid()
3104 ct_req->req.gff_id.port_id[2] = fcport->d_id.b.al_pa; in qla24xx_async_gffid()
3613 struct ct_sns_req *ct_req; in qla_fab_async_scan() local
3750 ct_req = qla2x00_prep_ct_req(ct_sns, GPN_FT_CMD, rspsz); in qla_fab_async_scan()
3751 ct_req->req.gpn_ft.port_type = FC4_TYPE_FCP_SCSI; in qla_fab_async_scan()
3756 ct_req = qla2x00_prep_ct_req(ct_sns, GNN_FT_CMD, rspsz); in qla_fab_async_scan()
3757 ct_req->req.gpn_ft.port_type = FC4_TYPE_FCP_SCSI; in qla_fab_async_scan()
3762 ct_req = qla2x00_prep_ct_req(ct_sns, GPN_FT_CMD, rspsz); in qla_fab_async_scan()
3763 ct_req->req.gpn_ft.port_type = FC4_TYPE_NVME; in qla_fab_async_scan()
3768 ct_req = qla2x00_prep_ct_req(ct_sns, GNN_FT_CMD, rspsz); in qla_fab_async_scan()
3769 ct_req->req.gpn_ft.port_type = FC4_TYPE_NVME; in qla_fab_async_scan()
3784 ct_req->req.gpn_ft.port_type); in qla_fab_async_scan()
3910 struct ct_sns_req *ct_req; in qla24xx_async_gfpnid() local
3929 ct_req = qla2x00_prep_ct_req(fcport->ct_desc.ct_sns, GFPN_ID_CMD, in qla24xx_async_gfpnid()
3933 ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id); in qla24xx_async_gfpnid()