Lines Matching refs:srb
846 struct aac_srb *srb; in aac_passthrough_command() local
887 srb = (struct aac_srb *)&fib->data[0]; in aac_passthrough_command()
888 srb->function = AAC_SRB_FUNC_EXECUTE_SCSI; in aac_passthrough_command()
890 srb->flags = AAC_SRB_FLAGS_UNSPECIFIED_DIRECTION; in aac_passthrough_command()
892 srb->flags = AAC_SRB_FLAGS_DATA_IN; in aac_passthrough_command()
894 srb->flags = AAC_SRB_FLAGS_DATA_OUT; in aac_passthrough_command()
896 srb->flags = AAC_SRB_FLAGS_NO_DATA_XFER; in aac_passthrough_command()
902 srb->cdb_len = ccb->csio.cdb_len; in aac_passthrough_command()
904 bcopy(ccb->csio.cdb_io.cdb_ptr, (u_int8_t *)&srb->cdb[0], in aac_passthrough_command()
905 srb->cdb_len); in aac_passthrough_command()
907 bcopy(ccb->csio.cdb_io.cdb_bytes, (u_int8_t *)&srb->cdb[0], in aac_passthrough_command()
908 srb->cdb_len); in aac_passthrough_command()
917 cm->cm_sgtable = &srb->sg_map; in aac_passthrough_command()
925 srb->data_len = ccb->csio.dxfer_len; in aac_passthrough_command()
929 srb->data_len = 0; in aac_passthrough_command()
932 srb->bus = camsc->inf->BusNumber - 1; /* Bus no. rel. to the card */ in aac_passthrough_command()
933 srb->target = ccb->ccb_h.target_id; in aac_passthrough_command()
934 srb->lun = ccb->ccb_h.target_lun; in aac_passthrough_command()
935 srb->timeout = ccb->ccb_h.timeout; /* XXX */ in aac_passthrough_command()
936 srb->retry_limit = 0; in aac_passthrough_command()
937 aac_srb_tole(srb); in aac_passthrough_command()