Lines Matching refs:a_descr
139 struct atio_descr *a_descr;
147 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
150 if (last_cmd == NULL || last_cmd->cmd != a_descr->cdb[0]) {
154 if (a_descr->cdb[0] == h->cmd)
171 warnx("no done func for %#x???", a_descr->cdb[0]);
175 warnx("cdb %#x not handled", a_descr->cdb[0]);
189 a_descr->cdb[0] != INQUIRY) {
194 cdb_debug(a_descr->cdb, "UA active for %u: ",
221 a_descr->init_req += ctio->dxfer_len;
299 struct atio_descr *a_descr;
303 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
304 inq = (struct scsi_inquiry *)a_descr->cdb;
307 cdb_debug(a_descr->cdb, "INQUIRY from %u: ", atio->init_id);
382 struct atio_descr *a_descr;
384 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
385 rsense = (struct scsi_request_sense *)a_descr->cdb;
391 cdb_debug(a_descr->cdb, "REQ SENSE from %u: ", atio->init_id);
415 struct atio_descr *a_descr;
418 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
427 cdb_debug(a_descr->cdb, "READ CAP from %u (%u, %u): ",
447 struct atio_descr *a_descr;
449 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
450 scsi_cmd = (struct scsi_read_capacity_16 *)a_descr->cdb;
459 cdb_debug(a_descr->cdb, "READ CAP16 from %u (%u, %u): ",
477 struct atio_descr *a_descr;
481 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
485 if ((a_descr->flags & CAM_DIR_MASK) == CAM_DIR_BOTH) {
494 ctio->ccb_h.flags |= a_descr->flags;
497 if ((a_descr->flags & CAM_DIR_IN) != 0) {
501 a_descr, c_descr->offset, a_descr->targ_req);
506 a_descr, c_descr->offset, a_descr->init_req);
517 struct atio_descr *a_descr;
520 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
521 cdb = a_descr->cdb;
564 a_descr->base_off = ((off_t)blkno) * sector_size;
565 a_descr->total_len = count * sector_size;
566 if (a_descr->total_len == 0) {
572 a_descr->flags |= CAM_DIR_OUT;
576 a_descr->flags |= CAM_DIR_IN;
586 struct atio_descr *a_descr;
591 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
595 c_descr->offset = a_descr->base_off + a_descr->targ_req;
596 ctio->dxfer_len = a_descr->total_len - a_descr->targ_req;
598 c_descr->offset = a_descr->base_off + a_descr->init_req;
599 ctio->dxfer_len = a_descr->total_len - a_descr->init_req;
636 a_descr->targ_req += ctio->dxfer_len;
638 if (a_descr->targ_req == a_descr->total_len) {
646 if (a_descr->targ_ack == a_descr->total_len)
648 a_descr->init_req += ctio->dxfer_len;
649 if (a_descr->init_req == a_descr->total_len &&
668 struct atio_descr *a_descr;
671 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
684 a_descr->targ_ack += ctio->dxfer_len;
685 if ((a_descr->flags & CAM_DIR_IN) != 0) {
692 a_descr->init_req += ctio->dxfer_len;
696 if (a_descr->init_req == a_descr->total_len)
709 if ((a_descr->flags & CAM_DIR_MASK) == CAM_DIR_OUT) {
722 a_descr->init_ack += ctio->dxfer_len;
723 if ((a_descr->flags & CAM_DIR_MASK) == CAM_DIR_OUT &&
725 a_descr->targ_req += ctio->dxfer_len;
771 struct atio_descr *a_descr;
773 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
774 cdb_debug(a_descr->cdb, "Sending null ok to %u : ", atio->init_id);
789 struct atio_descr *a_descr;
791 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
792 cdb_debug(a_descr->cdb, "Sending ill req to %u: ", atio->init_id);