Lines Matching refs:scsiqp

2125 #define ASC_DBG_PRT_ASC_SCSI_Q(lvl, scsiqp)  argument
2126 #define ASC_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) argument
2128 #define ADV_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) argument
2156 #define ASC_DBG_PRT_ASC_SCSI_Q(lvl, scsiqp) \ argument
2159 asc_prt_asc_scsi_q(scsiqp); \
2170 #define ASC_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) \ argument
2173 asc_prt_adv_scsi_req_q(scsiqp); \
5896 static void adv_isr_callback(ADV_DVC_VAR *adv_dvc_varp, ADV_SCSI_REQ_Q *scsiqp) in adv_isr_callback() argument
5906 adv_dvc_varp, scsiqp); in adv_isr_callback()
5907 ASC_DBG_PRT_ADV_SCSI_REQ_Q(2, scsiqp); in adv_isr_callback()
5914 scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); in adv_isr_callback()
5940 sense_addr = le32_to_cpu(scsiqp->sense_addr); in adv_isr_callback()
5948 switch (scsiqp->done_status) { in adv_isr_callback()
5958 resid_cnt = le32_to_cpu(scsiqp->data_cnt); in adv_isr_callback()
5969 switch (scsiqp->host_status) { in adv_isr_callback()
5971 set_status_byte(scp, scsiqp->scsi_status); in adv_isr_callback()
5972 if (scsiqp->scsi_status == SAM_STAT_CHECK_CONDITION) { in adv_isr_callback()
5981 ASC_DBG(1, "host_status 0x%x\n", scsiqp->host_status); in adv_isr_callback()
5989 set_status_byte(scp, scsiqp->scsi_status); in adv_isr_callback()
5994 ASC_DBG(1, "done_status 0x%x\n", scsiqp->done_status); in adv_isr_callback()
5995 set_status_byte(scp, scsiqp->scsi_status); in adv_isr_callback()
6006 scsiqp->done_status == QD_NO_ERROR && in adv_isr_callback()
6007 scsiqp->host_status == QHSTA_NO_ERROR) { in adv_isr_callback()
7541 ADV_SCSI_REQ_Q *scsiqp, struct scsi_cmnd *scp, int use_sg) in adv_get_sglist() argument
7598 scsiqp->sg_list_ptr = sg_block; in adv_get_sglist()
7599 scsiqp->sg_real_addr = cpu_to_le32(sgblk_paddr); in adv_get_sglist()
7651 ADV_SCSI_REQ_Q *scsiqp; in adv_build_req() local
7669 scsiqp = &reqp->scsi_req_q; in adv_build_req()
7674 scsiqp->cntl = scsiqp->scsi_cntl = scsiqp->done_status = 0; in adv_build_req()
7679 scsiqp->srb_tag = srb_tag; in adv_build_req()
7692 scsiqp->cdb_len = scp->cmd_len; in adv_build_req()
7694 memcpy(scsiqp->cdb, scp->cmnd, scp->cmd_len < 12 ? scp->cmd_len : 12); in adv_build_req()
7699 memcpy(scsiqp->cdb16, &scp->cmnd[12], cdb16_len); in adv_build_req()
7702 scsiqp->target_id = scp->device->id; in adv_build_req()
7703 scsiqp->target_lun = scp->device->lun; in adv_build_req()
7712 scsiqp->sense_addr = cpu_to_le32(sense_addr); in adv_build_req()
7713 scsiqp->sense_len = SCSI_SENSE_BUFFERSIZE; in adv_build_req()
7725 scsiqp->data_cnt = 0; in adv_build_req()
7727 scsiqp->data_addr = 0; in adv_build_req()
7728 scsiqp->sg_list_ptr = NULL; in adv_build_req()
7729 scsiqp->sg_real_addr = 0; in adv_build_req()
7743 scsiqp->data_cnt = cpu_to_le32(scsi_bufflen(scp)); in adv_build_req()
7745 ret = adv_get_sglist(boardp, reqp, scsiqp, scp, use_sg); in adv_build_req()
7760 ASC_DBG_PRT_ADV_SCSI_REQ_Q(2, scsiqp); in adv_build_req()