Lines Matching refs:scsiqp

2260 #define ASC_DBG_PRT_ASC_SCSI_Q(lvl, scsiqp)  argument
2261 #define ASC_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) argument
2263 #define ADV_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) argument
2291 #define ASC_DBG_PRT_ASC_SCSI_Q(lvl, scsiqp) \ argument
2294 asc_prt_asc_scsi_q(scsiqp); \
2305 #define ASC_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) \ argument
2308 asc_prt_adv_scsi_req_q(scsiqp); \
6646 static void adv_isr_callback(ADV_DVC_VAR *adv_dvc_varp, ADV_SCSI_REQ_Q *scsiqp) in adv_isr_callback() argument
6656 (ulong)adv_dvc_varp, (ulong)scsiqp); in adv_isr_callback()
6657 ASC_DBG_PRT_ADV_SCSI_REQ_Q(2, scsiqp); in adv_isr_callback()
6664 reqp = (adv_req_t *)ADV_U32_TO_VADDR(scsiqp->srb_ptr); in adv_isr_callback()
6698 switch (scsiqp->done_status) { in adv_isr_callback()
6709 resid_cnt = le32_to_cpu(scsiqp->data_cnt); in adv_isr_callback()
6720 switch (scsiqp->host_status) { in adv_isr_callback()
6722 if (scsiqp->scsi_status == SAM_STAT_CHECK_CONDITION) { in adv_isr_callback()
6739 STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
6741 scp->result = STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
6747 ASC_DBG(1, "host_status 0x%x\n", scsiqp->host_status); in adv_isr_callback()
6756 HOST_BYTE(DID_ABORT) | STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
6760 ASC_DBG(1, "done_status 0x%x\n", scsiqp->done_status); in adv_isr_callback()
6762 HOST_BYTE(DID_ERROR) | STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
6772 scsiqp->done_status == QD_NO_ERROR && in adv_isr_callback()
6773 scsiqp->host_status == QHSTA_NO_ERROR) { in adv_isr_callback()
8498 ADV_SCSI_REQ_Q *scsiqp; in adv_get_sglist() local
8505 scsiqp = (ADV_SCSI_REQ_Q *)ADV_32BALIGN(&reqp->scsi_req_q); in adv_get_sglist()
8559 scsiqp->sg_list_ptr = sg_block; in adv_get_sglist()
8560 scsiqp->sg_real_addr = cpu_to_le32(sg_block_paddr); in adv_get_sglist()
8608 ADV_SCSI_REQ_Q *scsiqp; in adv_build_req() local
8630 scsiqp = (ADV_SCSI_REQ_Q *)ADV_32BALIGN(&reqp->scsi_req_q); in adv_build_req()
8635 scsiqp->cntl = scsiqp->scsi_cntl = scsiqp->done_status = 0; in adv_build_req()
8640 scsiqp->srb_ptr = ADV_VADDR_TO_U32(reqp); in adv_build_req()
8652 scsiqp->cdb_len = scp->cmd_len; in adv_build_req()
8655 scsiqp->cdb[i] = scp->cmnd[i]; in adv_build_req()
8659 scsiqp->cdb16[i - 12] = scp->cmnd[i]; in adv_build_req()
8662 scsiqp->target_id = scp->device->id; in adv_build_req()
8663 scsiqp->target_lun = scp->device->lun; in adv_build_req()
8665 scsiqp->sense_addr = cpu_to_le32(virt_to_bus(&scp->sense_buffer[0])); in adv_build_req()
8666 scsiqp->sense_len = SCSI_SENSE_BUFFERSIZE; in adv_build_req()
8674 scsiqp->data_cnt = 0; in adv_build_req()
8675 scsiqp->vdata_addr = NULL; in adv_build_req()
8677 scsiqp->data_addr = 0; in adv_build_req()
8678 scsiqp->sg_list_ptr = NULL; in adv_build_req()
8679 scsiqp->sg_real_addr = 0; in adv_build_req()
8698 scsiqp->data_cnt = cpu_to_le32(scsi_bufflen(scp)); in adv_build_req()
8717 ASC_DBG_PRT_ADV_SCSI_REQ_Q(2, scsiqp); in adv_build_req()
8720 *adv_scsiqpp = scsiqp; in adv_build_req()