Lines Matching refs:scsiqp

3853 #define ASC_DBG_PRT_ASC_SCSI_Q(lvl, scsiqp)  argument
3854 #define ASC_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) argument
3856 #define ADV_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) argument
3920 #define ASC_DBG_PRT_ASC_SCSI_Q(lvl, scsiqp) \ argument
3923 asc_prt_asc_scsi_q(scsiqp); \
3934 #define ASC_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) \ argument
3937 asc_prt_adv_scsi_req_q(scsiqp); \
6833 ADV_SCSI_REQ_Q *scsiqp; in adv_build_req() local
6854 scsiqp = (ADV_SCSI_REQ_Q *) ADV_32BALIGN(&reqp->scsi_req_q); in adv_build_req()
6859 scsiqp->cntl = scsiqp->scsi_cntl = scsiqp->done_status = 0; in adv_build_req()
6864 scsiqp->srb_ptr = ASC_VADDR_TO_U32(reqp); in adv_build_req()
6888 scsiqp->cdb_len = scp->cmd_len; in adv_build_req()
6891 scsiqp->cdb[i] = scp->cmnd[i]; in adv_build_req()
6895 scsiqp->cdb16[i - 12] = scp->cmnd[i]; in adv_build_req()
6898 scsiqp->target_id = scp->target; in adv_build_req()
6899 scsiqp->target_lun = scp->lun; in adv_build_req()
6901 scsiqp->sense_addr = cpu_to_le32(virt_to_bus(&scp->sense_buffer[0])); in adv_build_req()
6902 scsiqp->sense_len = sizeof(scp->sense_buffer); in adv_build_req()
6908 scsiqp->data_cnt = cpu_to_le32(scp->request_bufflen); in adv_build_req()
6909 scsiqp->vdata_addr = scp->request_buffer; in adv_build_req()
6910 scsiqp->data_addr = cpu_to_le32(virt_to_bus(scp->request_buffer)); in adv_build_req()
6917 scsiqp->sg_list_ptr = NULL; in adv_build_req()
6918 scsiqp->sg_real_addr = 0; in adv_build_req()
6958 ASC_DBG_PRT_ADV_SCSI_REQ_Q(2, scsiqp); in adv_build_req()
6961 *adv_scsiqpp = scsiqp; in adv_build_req()
6982 ADV_SCSI_REQ_Q *scsiqp; in adv_get_sglist() local
6989 scsiqp = (ADV_SCSI_REQ_Q *) ADV_32BALIGN(&reqp->scsi_req_q); in adv_get_sglist()
7044 scsiqp->sg_list_ptr = sg_block; in adv_get_sglist()
7045 scsiqp->sg_real_addr = cpu_to_le32(sg_block_paddr); in adv_get_sglist()
7257 adv_isr_callback(ADV_DVC_VAR *adv_dvc_varp, ADV_SCSI_REQ_Q *scsiqp) in adv_isr_callback() argument
7271 (ulong) adv_dvc_varp, (ulong) scsiqp); in adv_isr_callback()
7272 ASC_DBG_PRT_ADV_SCSI_REQ_Q(2, scsiqp); in adv_isr_callback()
7279 reqp = (adv_req_t *) ADV_U32_TO_VADDR(scsiqp->srb_ptr); in adv_isr_callback()
7345 switch (scsiqp->done_status) { in adv_isr_callback()
7357 resid_cnt = le32_to_cpu(scsiqp->data_cnt); in adv_isr_callback()
7369 switch (scsiqp->host_status) { in adv_isr_callback()
7371 if (scsiqp->scsi_status == SS_CHK_CONDITION) { in adv_isr_callback()
7386 STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
7388 scp->result = STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
7395 scsiqp->host_status); in adv_isr_callback()
7403 scp->result = HOST_BYTE(DID_ABORT) | STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
7407 ASC_DBG1(1, "adv_isr_callback: done_status 0x%x\n", scsiqp->done_status); in adv_isr_callback()
7408 scp->result = HOST_BYTE(DID_ERROR) | STATUS_BYTE(scsiqp->scsi_status); in adv_isr_callback()
7418 scsiqp->done_status == QD_NO_ERROR && in adv_isr_callback()
7419 scsiqp->host_status == QHSTA_NO_ERROR) { in adv_isr_callback()