Lines Matching refs:elreq
749 struct msg_echo_lb elreq; in qla2x00_process_loopback() local
765 memset(&elreq, 0, sizeof(elreq)); in qla2x00_process_loopback()
767 elreq.req_sg_cnt = dma_map_sg(&ha->pdev->dev, in qla2x00_process_loopback()
771 if (!elreq.req_sg_cnt) { in qla2x00_process_loopback()
773 "dma_map_sg returned %d for request.\n", elreq.req_sg_cnt); in qla2x00_process_loopback()
777 elreq.rsp_sg_cnt = dma_map_sg(&ha->pdev->dev, in qla2x00_process_loopback()
781 if (!elreq.rsp_sg_cnt) { in qla2x00_process_loopback()
783 "dma_map_sg returned %d for reply.\n", elreq.rsp_sg_cnt); in qla2x00_process_loopback()
788 if ((elreq.req_sg_cnt != bsg_job->request_payload.sg_cnt) || in qla2x00_process_loopback()
789 (elreq.rsp_sg_cnt != bsg_job->reply_payload.sg_cnt)) { in qla2x00_process_loopback()
794 bsg_job->request_payload.sg_cnt, elreq.req_sg_cnt, in qla2x00_process_loopback()
795 bsg_job->reply_payload.sg_cnt, elreq.rsp_sg_cnt); in qla2x00_process_loopback()
822 elreq.send_dma = req_data_dma; in qla2x00_process_loopback()
823 elreq.rcv_dma = rsp_data_dma; in qla2x00_process_loopback()
824 elreq.transfer_size = req_data_len; in qla2x00_process_loopback()
826 elreq.options = bsg_request->rqst_data.h_vendor.vendor_cmd[1]; in qla2x00_process_loopback()
827 elreq.iteration_count = in qla2x00_process_loopback()
831 ((ha->current_topology == ISP_CFG_F && (elreq.options & 7) >= 2) || in qla2x00_process_loopback()
835 elreq.options == EXTERNAL_LOOPBACK))) { in qla2x00_process_loopback()
840 rval = qla2x00_echo_test(vha, &elreq, response); in qla2x00_process_loopback()
862 "elreq.options=%04x\n", elreq.options); in qla2x00_process_loopback()
864 if (elreq.options == EXTERNAL_LOOPBACK) in qla2x00_process_loopback()
867 config, new_config, elreq.options); in qla2x00_process_loopback()
873 new_config, elreq.options); in qla2x00_process_loopback()
885 rval = qla2x00_loopback_test(vha, &elreq, response); in qla2x00_process_loopback()
933 rval = qla2x00_loopback_test(vha, &elreq, response); in qla2x00_process_loopback()