Lines Matching defs:ct_req

103  * Returns a pointer to the intitialized @ct_req.
205 struct ct_sns_req *ct_req;
225 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GA_NXT_CMD,
230 ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id);
291 struct ct_sns_req *ct_req;
317 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GID_PT_CMD, gid_pt_rsp_size);
321 ct_req->req.gid_pt.port_type = NS_NX_PORT_TYPE;
375 struct ct_sns_req *ct_req;
396 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GPN_ID_CMD,
401 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id);
443 struct ct_sns_req *ct_req;
463 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GNN_ID_CMD,
468 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id);
587 struct ct_sns_req *ct_req;
630 ct_req = qla2x00_prep_ct_req(ct_sns, RFT_ID_CMD, RFT_ID_RSP_SIZE);
633 ct_req->req.rft_id.port_id = port_id_to_be_id(vha->d_id);
634 ct_req->req.rft_id.fc4_types[2] = 0x01; /* FCP-3 */
637 ct_req->req.rft_id.fc4_types[6] = 1; /* NVMe type 28h */
686 struct ct_sns_req *ct_req;
726 ct_req = qla2x00_prep_ct_req(ct_sns, RFF_ID_CMD, RFF_ID_RSP_SIZE);
729 ct_req->req.rff_id.port_id = port_id_to_be_id(*d_id);
730 ct_req->req.rff_id.fc4_feature = fc4feature;
731 ct_req->req.rff_id.fc4_type = fc4type; /* SCSI-FCP or FC-NVMe */
778 struct ct_sns_req *ct_req;
818 ct_req = qla2x00_prep_ct_req(ct_sns, RNN_ID_CMD, RNN_ID_RSP_SIZE);
821 ct_req->req.rnn_id.port_id = port_id_to_be_id(vha->d_id);
822 memcpy(ct_req->req.rnn_id.node_name, vha->node_name, WWN_SIZE);
885 struct ct_sns_req *ct_req;
925 ct_req = qla2x00_prep_ct_req(ct_sns, RSNN_NN_CMD, RSNN_NN_RSP_SIZE);
928 memcpy(ct_req->req.rsnn_nn.node_name, vha->node_name, WWN_SIZE);
931 qla2x00_get_sym_node_name(vha, ct_req->req.rsnn_nn.sym_node_name,
932 sizeof(ct_req->req.rsnn_nn.sym_node_name));
933 ct_req->req.rsnn_nn.name_len =
934 (uint8_t)strlen(ct_req->req.rsnn_nn.sym_node_name);
937 sp->u.iocb_cmd.u.ctarg.req_size = 24 + 1 + ct_req->req.rsnn_nn.name_len;
1487 * Returns a pointer to the intitialized @ct_req.
2154 struct ct_sns_req *ct_req;
2170 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RHBA_CMD, size);
2174 memcpy(ct_req->req.rhba.hba_identifier, vha->port_name,
2175 sizeof(ct_req->req.rhba.hba_identifier));
2176 size += sizeof(ct_req->req.rhba.hba_identifier);
2178 ct_req->req.rhba.entry_count = cpu_to_be32(1);
2179 size += sizeof(ct_req->req.rhba.entry_count);
2181 memcpy(ct_req->req.rhba.port_name, vha->port_name,
2182 sizeof(ct_req->req.rhba.port_name));
2183 size += sizeof(ct_req->req.rhba.port_name);
2186 ct_req->req.rhba.attrs.count = cpu_to_be32(count);
2187 size += sizeof(ct_req->req.rhba.attrs.count);
2190 entries = &ct_req->req.rhba.attrs.entry;
2199 wwn_to_u64(ct_req->req.rhba.hba_identifier),
2200 wwn_to_u64(ct_req->req.rhba.port_name));
2242 struct ct_sns_req *ct_req;
2249 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, DHBA_CMD, DHBA_RSP_SIZE);
2252 memcpy(ct_req->req.dhba.port_name, vha->port_name, WWN_SIZE);
2254 "DHBA portname = %8phN.\n", ct_req->req.dhba.port_name);
2288 struct ct_sns_req *ct_req;
2302 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RPRT_CMD, size);
2305 memcpy(ct_req->req.rprt.hba_identifier, base_vha->port_name,
2306 sizeof(ct_req->req.rprt.hba_identifier));
2307 size += sizeof(ct_req->req.rprt.hba_identifier);
2308 memcpy(ct_req->req.rprt.port_name, vha->port_name,
2309 sizeof(ct_req->req.rprt.port_name));
2310 size += sizeof(ct_req->req.rprt.port_name);
2312 ct_req->req.rprt.attrs.count = cpu_to_be32(count);
2313 size += sizeof(ct_req->req.rprt.attrs.count);
2315 entries = ct_req->req.rprt.attrs.entry;
2321 wwn_to_u64(ct_req->req.rprt.port_name),
2322 wwn_to_u64(ct_req->req.rprt.port_name));
2367 struct ct_sns_req *ct_req;
2388 ct_req = qla2x00_prep_ct_fdmi_req(ha->ct_sns, RPA_CMD, size);
2392 memcpy(ct_req->req.rpa.port_name, vha->port_name,
2393 sizeof(ct_req->req.rpa.port_name));
2394 size += sizeof(ct_req->req.rpa.port_name);
2397 ct_req->req.rpa.attrs.count = cpu_to_be32(count);
2398 size += sizeof(ct_req->req.rpa.attrs.count);
2401 entries = ct_req->req.rpa.attrs.entry;
2409 "RPA %016llx.\n", wwn_to_u64(ct_req->req.rpa.port_name));
2534 struct ct_sns_req *ct_req;
2554 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GFPN_ID_CMD,
2559 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id);
2642 struct ct_sns_req *ct_req;
2668 ct_req = qla24xx_prep_ct_fm_req(ha->ct_sns, GPSC_CMD,
2673 memcpy(ct_req->req.gpsc.port_name, list[i].fabric_port_name,
2732 struct ct_sns_req *ct_req;
2758 ct_req = qla2x00_prep_ct_req(ha->ct_sns, GFF_ID_CMD,
2763 ct_req->req.port_id.port_id = port_id_to_be_id(list[i].d_id);
2900 struct ct_sns_req *ct_req;
2919 ct_req = qla24xx_prep_ct_fm_req(fcport->ct_desc.ct_sns, GPSC_CMD,
2923 memcpy(ct_req->req.gpsc.port_name, fcport->fabric_port_name,
3050 struct ct_sns_req *ct_req;
3100 ct_req = qla2x00_prep_ct_req(sp->u.iocb_cmd.u.ctarg.req, GFF_ID_CMD, GFF_ID_RSP_SIZE);
3102 ct_req->req.gff_id.port_id[0] = fcport->d_id.b.domain;
3103 ct_req->req.gff_id.port_id[1] = fcport->d_id.b.area;
3104 ct_req->req.gff_id.port_id[2] = fcport->d_id.b.al_pa;
3422 struct ct_sns_req *ct_req =
3428 u16 cmd = be16_to_cpu(ct_req->command);
3516 struct ct_sns_req *ct_req =
3518 u16 cmd = be16_to_cpu(ct_req->command);
3618 struct ct_sns_req *ct_req;
3660 ct_req = qla2x00_prep_ct_req(ct_sns, GNN_FT_CMD,
3664 ct_req->req.gpn_ft.port_type = fc4_type;
3671 sp->handle, ct_req->req.gpn_ft.port_type);
3723 struct ct_sns_req *ct_req;
3827 ct_req = qla2x00_prep_ct_req(ct_sns, GPN_FT_CMD, rspsz);
3830 ct_req->req.gpn_ft.port_type = fc4_type;
3836 sp->handle, ct_req->req.gpn_ft.port_type);
3953 struct ct_sns_req *ct_req;
3972 ct_req = qla2x00_prep_ct_req(fcport->ct_desc.ct_sns, GFPN_ID_CMD,
3976 ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id);