Lines Matching refs:vrq

54 		if (rq->vrq->scsi.function == VDA_FUNC_SCSI)  in esas2r_start_request()
58 } else if (likely(rq->vrq->scsi.function == VDA_FUNC_SCSI)) { in esas2r_start_request()
66 rq->vrq->scsi.target_id = cpu_to_le16(t->virt_targ_id); in esas2r_start_request()
85 esas2r_trace("rq->vrq->scsi.handle=%x", rq->vrq->scsi.handle); in esas2r_start_request()
87 if (rq->vrq->scsi.function == VDA_FUNC_SCSI) { in esas2r_start_request()
89 esas2r_trace("rq->vrq->scsi.flags=%x", rq->vrq->scsi.flags); in esas2r_start_request()
124 esas2r_trace("rq->vrq:%p", rq->vrq); in esas2r_local_start_request()
127 if (unlikely(rq->vrq->scsi.function == VDA_FUNC_FLASH in esas2r_local_start_request()
128 && rq->vrq->flash.sub_func == VDA_FLASH_COMMIT)) in esas2r_local_start_request()
176 esas2r_trace("rq->vrq->scsi.handle:%x", rq->vrq->scsi.handle); in esas2r_start_vda_request()
191 union atto_vda_req *vrq = rq->vrq; in esas2r_build_sg_list_sge() local
278 vrq->scsi.chain_offset = (u8) in esas2r_build_sg_list_sge()
281 (u8 *)vrq); in esas2r_build_sg_list_sge()
289 (vrq->scsi.chain_offset + in esas2r_build_sg_list_sge()
346 ((u16)((u8 *)sgc->sge.a64.last - (u8 *)vrq) in esas2r_build_sg_list_sge()
533 u8 *cdb = (u8 *)&rq->vrq->scsi.cdb[0]; in esas2r_build_sg_list_prd()
540 if (rq->vrq->scsi.function == VDA_FUNC_SCSI in esas2r_build_sg_list_prd()
545 switch (rq->vrq->scsi.cdb[0]) { in esas2r_build_sg_list_prd()
591 rq->vrq->scsi.iblk_cnt_prd = 0; in esas2r_build_sg_list_prd()
639 rq->vrq->scsi.iblk_cnt_prd++; in esas2r_build_sg_list_prd()
650 reqsize = ((u16)((u8 *)curr_iblk_chn - (u8 *)rq->vrq)) in esas2r_build_sg_list_prd()
768 u8 lun = (u8)le32_to_cpu(rqaux->vrq->scsi.flags); in esas2r_send_task_mgmt()
785 if (rq->vrq->scsi.function == VDA_FUNC_SCSI in esas2r_send_task_mgmt()
787 && (((u8)le32_to_cpu(rq->vrq->scsi.flags)) == lun in esas2r_send_task_mgmt()
804 rqaux->vrq->scsi.length = 0; in esas2r_send_task_mgmt()
806 rqaux->vrq->scsi.flags |= cpu_to_le32(lun); in esas2r_send_task_mgmt()
807 memset(rqaux->vrq->scsi.cdb, 0, sizeof(rqaux->vrq->scsi.cdb)); in esas2r_send_task_mgmt()
808 rqaux->vrq->scsi.flags |= in esas2r_send_task_mgmt()
818 if (rq->vrq->scsi.function == VDA_FUNC_SCSI in esas2r_send_task_mgmt()
820 && (((u8)le32_to_cpu(rq->vrq->scsi.flags)) == lun in esas2r_send_task_mgmt()