Lines Matching refs:bl_ccb
105 BL_CCB32 *bl_ccb; in scsi_int_dispatch() local
126 bl_ccb = (BL_CCB32 *) in scsi_int_dispatch()
131 unLE(bl->in_boxes[bl->in_nextbox].ccb_phys), (uint32) bl_ccb, in scsi_int_dispatch()
134 release_sem_etc(bl_ccb->done, 1, B_DO_NOT_RESCHEDULE); in scsi_int_dispatch()
387 BL_CCB32 *bl_ccb; in sim_execute_scsi_io() local
414 bl_ccb = bl->first_ccb; in sim_execute_scsi_io()
415 bl->first_ccb = bl_ccb->next; in sim_execute_scsi_io()
418 bl_ccb_phys = VirtToPhys(bl_ccb); in sim_execute_scsi_io()
429 memcpy(bl_ccb->cdb, ccb->cam_cdb_io.cam_cdb_ptr, cdb_len); in sim_execute_scsi_io()
431 memcpy(bl_ccb->cdb, ccb->cam_cdb_io.cam_cdb_bytes, cdb_len); in sim_execute_scsi_io()
435 bl_ccb->direction = BL_CCB_DIR_DEFAULT; in sim_execute_scsi_io()
436 bl_ccb->length_cdb = cdb_len; in sim_execute_scsi_io()
437 bl_ccb->length_sense = ccb->cam_sense_len; in sim_execute_scsi_io()
438 bl_ccb->_reserved1 = bl_ccb->_reserved2 = 0; in sim_execute_scsi_io()
439 bl_ccb->target_id = ccb->cam_ch.cam_target_id; in sim_execute_scsi_io()
440 bl_ccb->lun_tag = ccb->cam_ch.cam_target_lun & 0x07; in sim_execute_scsi_io()
441 bl_ccb->ccb_control = 0; in sim_execute_scsi_io()
442 bl_ccb->link_id = 0; in sim_execute_scsi_io()
443 bl_ccb->link = 0; in sim_execute_scsi_io()
444 bl_ccb->sense = toLE(priv_phys); in sim_execute_scsi_io()
460 bl_ccb->opcode = BL_CCB_OP_INITIATE_RETLEN_SG; in sim_execute_scsi_io()
461 bl_ccb->data = toLE(priv_phys + 256); in sim_execute_scsi_io()
489 bl_ccb->next = bl->first_ccb; in sim_execute_scsi_io()
490 bl->first_ccb = bl_ccb; in sim_execute_scsi_io()
496 bl_ccb->length_data = toLE(sgcount * 8); in sim_execute_scsi_io()
503 bl_ccb->opcode = BL_CCB_OP_INITIATE_RETLEN_SG; in sim_execute_scsi_io()
504 bl_ccb->data = toLE(priv_phys + 256); in sim_execute_scsi_io()
520 bl_ccb->next = bl->first_ccb; in sim_execute_scsi_io()
521 bl->first_ccb = bl_ccb; in sim_execute_scsi_io()
527 bl_ccb->length_data = toLE(i * 8); in sim_execute_scsi_io()
530 bl_ccb->opcode = BL_CCB_OP_INITIATE_RETLEN; in sim_execute_scsi_io()
532 t = bl_ccb->length_data = toLE(ccb->cam_dxfer_len); in sim_execute_scsi_io()
533 bl_ccb->data = toLE((uint32) scratch[0].address); in sim_execute_scsi_io()
538 bl_ccb->target_id, t, bl_ccb->cdb[0]); in sim_execute_scsi_io()
554 acquire_sem(bl_ccb->done); in sim_execute_scsi_io()
562 if(bl_ccb->btstat){ in sim_execute_scsi_io()
564 switch(bl_ccb->btstat){ in sim_execute_scsi_io()
584 dt_printf("buslogic/%d: error stat %02x\n",req,bl_ccb->btstat); in sim_execute_scsi_io()
587 bl_ccb->length_data, ccb->cam_dxfer_len, in sim_execute_scsi_io()
588 bl_ccb->length_sense, ccb->cam_sense_len); in sim_execute_scsi_io()
590 ccb->cam_resid = bl_ccb->length_data; in sim_execute_scsi_io()
595 ccb->cam_scsi_status = bl_ccb->sdstat; in sim_execute_scsi_io()
597 if(bl_ccb->sdstat == 02){ in sim_execute_scsi_io()
603 ccb->cam_sense_resid = bl_ccb->length_sense; in sim_execute_scsi_io()
607 bl_ccb->next = bl->first_ccb; in sim_execute_scsi_io()
608 bl->first_ccb = bl_ccb; in sim_execute_scsi_io()
618 bl_ccb->next = bl->first_ccb; in sim_execute_scsi_io()
619 bl->first_ccb = bl_ccb; in sim_execute_scsi_io()