Lines Matching defs:atio
552 struct ccb_accept_tio *atio = NULL;
583 atio = (struct ccb_accept_tio *)STAILQ_FIRST(&trsrc->atio);
586 if (atio) {
587 STAILQ_REMOVE_HEAD(&trsrc->atio, sim_links.stqe);
589 atio->ccb_h.status = CAM_CDB_RECVD;
590 atio->ccb_h.target_lun = lun;
591 atio->sense_len = 0;
593 atio->init_id = node->instance_index;
594 atio->tag_id = io->tag;
595 atio->ccb_h.ccb_io_ptr = io;
598 atio->tag_action = MSG_SIMPLE_Q_TAG;
600 atio->tag_action = MSG_HEAD_OF_Q_TAG;
602 atio->tag_action = MSG_ORDERED_Q_TAG;
604 atio->tag_action = MSG_ACA_TASK;
606 atio->tag_action = CAM_TAG_ACTION_NONE;
607 atio->priority = (flags & OCS_SCSI_PRIORITY_MASK) >>
610 atio->cdb_len = cdb_len;
611 ocs_memcpy(atio->cdb_io.cdb_bytes, cdb, cdb_len);
617 xpt_done((union ccb *)atio);
2428 STAILQ_INIT(&trsrc->atio);
2470 struct ccb_accept_tio *atio = NULL;
2472 atio = (struct ccb_accept_tio *)ccb;
2473 atio->init_id = 0x0badbeef;
2474 atio->tag_id = 0xdeadc0de;
2476 STAILQ_INSERT_TAIL(&trsrc->atio, &ccb->ccb_h,
2635 ccb = (union ccb *)STAILQ_FIRST(&trsrc->atio);
2637 STAILQ_REMOVE_HEAD(&trsrc->atio, sim_links.stqe);
2670 STAILQ_FOREACH(cur, &trsrc->atio, sim_links.stqe) {
2674 STAILQ_REMOVE(&trsrc->atio, cur, ccb_hdr,