Lines Matching refs:ms_pkt
34 ms_iocb_entry_t *ms_pkt; in qla2x00_prep_ms_iocb() local
36 ms_pkt = (ms_iocb_entry_t *)arg->iocb; in qla2x00_prep_ms_iocb()
37 memset(ms_pkt, 0, sizeof(ms_iocb_entry_t)); in qla2x00_prep_ms_iocb()
39 ms_pkt->entry_type = MS_IOCB_TYPE; in qla2x00_prep_ms_iocb()
40 ms_pkt->entry_count = 1; in qla2x00_prep_ms_iocb()
41 SET_TARGET_ID(ha, ms_pkt->loop_id, SIMPLE_NAME_SERVER); in qla2x00_prep_ms_iocb()
42 ms_pkt->control_flags = cpu_to_le16(CF_READ | CF_HEAD_TAG); in qla2x00_prep_ms_iocb()
43 ms_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla2x00_prep_ms_iocb()
44 ms_pkt->cmd_dsd_count = cpu_to_le16(1); in qla2x00_prep_ms_iocb()
45 ms_pkt->total_dsd_count = cpu_to_le16(2); in qla2x00_prep_ms_iocb()
46 ms_pkt->rsp_bytecount = cpu_to_le32(arg->rsp_size); in qla2x00_prep_ms_iocb()
47 ms_pkt->req_bytecount = cpu_to_le32(arg->req_size); in qla2x00_prep_ms_iocb()
49 put_unaligned_le64(arg->req_dma, &ms_pkt->req_dsd.address); in qla2x00_prep_ms_iocb()
50 ms_pkt->req_dsd.length = ms_pkt->req_bytecount; in qla2x00_prep_ms_iocb()
52 put_unaligned_le64(arg->rsp_dma, &ms_pkt->rsp_dsd.address); in qla2x00_prep_ms_iocb()
53 ms_pkt->rsp_dsd.length = ms_pkt->rsp_bytecount; in qla2x00_prep_ms_iocb()
57 return (ms_pkt); in qla2x00_prep_ms_iocb()
120 qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt, in qla2x00_chk_ms_status() argument
129 if (ms_pkt->entry_status != 0) { in qla2x00_chk_ms_status()
132 routine, ms_pkt->entry_status, vha->d_id.b.domain, in qla2x00_chk_ms_status()
137 ((struct ct_entry_24xx *)ms_pkt)->comp_status); in qla2x00_chk_ms_status()
139 comp_status = le16_to_cpu(ms_pkt->status); in qla2x00_chk_ms_status()
160 if (le16_to_cpu(ms_pkt->loop_id.extended) == in qla2x00_chk_ms_status()
164 if (le16_to_cpu(ms_pkt->loop_id.extended) == in qla2x00_chk_ms_status()
204 ms_iocb_entry_t *ms_pkt; in qla2x00_ga_nxt() local
222 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); in qla2x00_ga_nxt()
239 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "GA_NXT") != in qla2x00_ga_nxt()
290 ms_iocb_entry_t *ms_pkt; in qla2x00_gid_pt() local
314 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); in qla2x00_gid_pt()
330 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "GID_PT") != in qla2x00_gid_pt()
374 ms_iocb_entry_t *ms_pkt; in qla2x00_gpn_id() local
393 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); in qla2x00_gpn_id()
411 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gpn_id()
442 ms_iocb_entry_t *ms_pkt; in qla2x00_gnn_id() local
460 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); in qla2x00_gnn_id()
478 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gnn_id()
1403 ms_iocb_entry_t *ms_pkt; in qla2x00_prep_ms_fdmi_iocb() local
1406 ms_pkt = ha->ms_iocb; in qla2x00_prep_ms_fdmi_iocb()
1407 memset(ms_pkt, 0, sizeof(ms_iocb_entry_t)); in qla2x00_prep_ms_fdmi_iocb()
1409 ms_pkt->entry_type = MS_IOCB_TYPE; in qla2x00_prep_ms_fdmi_iocb()
1410 ms_pkt->entry_count = 1; in qla2x00_prep_ms_fdmi_iocb()
1411 SET_TARGET_ID(ha, ms_pkt->loop_id, vha->mgmt_svr_loop_id); in qla2x00_prep_ms_fdmi_iocb()
1412 ms_pkt->control_flags = cpu_to_le16(CF_READ | CF_HEAD_TAG); in qla2x00_prep_ms_fdmi_iocb()
1413 ms_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla2x00_prep_ms_fdmi_iocb()
1414 ms_pkt->cmd_dsd_count = cpu_to_le16(1); in qla2x00_prep_ms_fdmi_iocb()
1415 ms_pkt->total_dsd_count = cpu_to_le16(2); in qla2x00_prep_ms_fdmi_iocb()
1416 ms_pkt->rsp_bytecount = cpu_to_le32(rsp_size); in qla2x00_prep_ms_fdmi_iocb()
1417 ms_pkt->req_bytecount = cpu_to_le32(req_size); in qla2x00_prep_ms_fdmi_iocb()
1419 put_unaligned_le64(ha->ct_sns_dma, &ms_pkt->req_dsd.address); in qla2x00_prep_ms_fdmi_iocb()
1420 ms_pkt->req_dsd.length = ms_pkt->req_bytecount; in qla2x00_prep_ms_fdmi_iocb()
1422 put_unaligned_le64(ha->ct_sns_dma, &ms_pkt->rsp_dsd.address); in qla2x00_prep_ms_fdmi_iocb()
1423 ms_pkt->rsp_dsd.length = ms_pkt->rsp_bytecount; in qla2x00_prep_ms_fdmi_iocb()
1425 return ms_pkt; in qla2x00_prep_ms_fdmi_iocb()
1469 ms_iocb_entry_t *ms_pkt = ha->ms_iocb; in qla2x00_update_ms_fdmi_iocb() local
1476 ms_pkt->req_bytecount = cpu_to_le32(req_size); in qla2x00_update_ms_fdmi_iocb()
1477 ms_pkt->req_dsd.length = ms_pkt->req_bytecount; in qla2x00_update_ms_fdmi_iocb()
2153 ms_iocb_entry_t *ms_pkt; in qla2x00_fdmi_rhba() local
2167 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, size); in qla2x00_fdmi_rhba()
2214 rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RHBA"); in qla2x00_fdmi_rhba()
2241 ms_iocb_entry_t *ms_pkt; in qla2x00_fdmi_dhba() local
2246 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, DHBA_REQ_SIZE, in qla2x00_fdmi_dhba()
2262 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "DHBA") != in qla2x00_fdmi_dhba()
2287 ms_iocb_entry_t *ms_pkt; in qla2x00_fdmi_rprt() local
2300 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, size); in qla2x00_fdmi_rprt()
2333 rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RPRT"); in qla2x00_fdmi_rprt()
2366 ms_iocb_entry_t *ms_pkt; in qla2x00_fdmi_rpa() local
2385 ms_pkt = ha->isp_ops->prep_ms_fdmi_iocb(vha, 0, size); in qla2x00_fdmi_rpa()
2423 rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, "RPA"); in qla2x00_fdmi_rpa()
2533 ms_iocb_entry_t *ms_pkt; in qla2x00_gfpn_id() local
2551 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); in qla2x00_gfpn_id()
2569 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gfpn_id()
2641 ms_iocb_entry_t *ms_pkt; in qla2x00_gpsc() local
2665 ms_pkt = qla24xx_prep_ms_iocb(vha, &arg); in qla2x00_gpsc()
2683 } else if ((rval = qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gpsc()
2731 ms_iocb_entry_t *ms_pkt; in qla2x00_gff_id() local
2755 ms_pkt = ha->isp_ops->prep_ms_iocb(vha, &arg); in qla2x00_gff_id()
2772 } else if (qla2x00_chk_ms_status(vha, ms_pkt, ct_rsp, in qla2x00_gff_id()