• Home
  • Raw
  • Download

Lines Matching refs:ccb

381     CCB_SCSIIO ccb;  in do_scsi_pt()  local
435 bzero(&ccb, sizeof(ccb)); in do_scsi_pt()
437 uagt.uagt_ccb = (CCB_HEADER *) &ccb; in do_scsi_pt()
438 uagt.uagt_ccblen = sizeof(ccb); in do_scsi_pt()
439 uagt.uagt_snsbuf = ccb.cam_sense_ptr = ptp->sense ? ptp->sense : sensep; in do_scsi_pt()
440 uagt.uagt_snslen = ccb.cam_sense_len = ptp->sense ? ptp->sense_len : in do_scsi_pt()
442 uagt.uagt_buffer = ccb.cam_data_ptr = ptp->dxferp; in do_scsi_pt()
443 uagt.uagt_buflen = ccb.cam_dxfer_len = ptp->dxfer_len; in do_scsi_pt()
445 ccb.cam_timeout = time_secs; in do_scsi_pt()
446 ccb.cam_ch.my_addr = (CCB_HEADER *) &ccb; in do_scsi_pt()
447 ccb.cam_ch.cam_ccb_len = sizeof(ccb); in do_scsi_pt()
448 ccb.cam_ch.cam_func_code = XPT_SCSI_IO; in do_scsi_pt()
449 ccb.cam_ch.cam_flags = ptp->dxfer_dir; in do_scsi_pt()
450 ccb.cam_cdb_len = ptp->cdb_len; in do_scsi_pt()
451 memcpy(ccb.cam_cdb_io.cam_cdb_bytes, ptp->cdb, ptp->cdb_len); in do_scsi_pt()
452 ccb.cam_ch.cam_path_id = fdchan->bus; in do_scsi_pt()
453 ccb.cam_ch.cam_target_id = fdchan->tgt; in do_scsi_pt()
454 ccb.cam_ch.cam_target_lun = fdchan->lun; in do_scsi_pt()
463 if (((ccb.cam_ch.cam_status & CAM_STATUS_MASK) == CAM_REQ_CMP) || in do_scsi_pt()
464 ((ccb.cam_ch.cam_status & CAM_STATUS_MASK) == CAM_REQ_CMP_ERR)) { in do_scsi_pt()
465 ptp->scsi_status = ccb.cam_scsi_status; in do_scsi_pt()
466 ptp->resid = ccb.cam_resid; in do_scsi_pt()
468 ptp->sense_resid = ccb.cam_sense_resid; in do_scsi_pt()
474 if (ccb.cam_ch.cam_status & CAM_SIM_QFRZN) in do_scsi_pt()