Lines Matching refs:atio

366 		struct ccb_accept_tio *atio;
370 atio = (struct ccb_accept_tio *)malloc(sizeof(*atio));
371 if (atio == NULL) {
377 free(atio);
381 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
382 atio->ccb_h.targ_descr = a_descr;
383 send_ccb((union ccb *)atio, /*priority*/1);
466 oo += run_queue(c_descr->atio);
496 retval = work_atio(&ccb->atio);
561 struct ccb_accept_tio *atio;
565 atio = &ccb->atio;
566 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
569 a_descr->flags = atio->ccb_h.flags &
572 if ((atio->ccb_h.flags & CAM_CDB_POINTER) == 0)
573 a_descr->cdb = atio->cdb_io.cdb_bytes;
575 a_descr->cdb = atio->cdb_io.cdb_ptr;
593 oo += run_queue(c_descr->atio);
611 work_atio(struct ccb_accept_tio *atio)
620 warnx("Working on ATIO %p", atio);
622 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
631 ctio->tag_id = atio->tag_id;
632 ctio->init_id = atio->init_id;
635 c_descr->atio = atio;
647 if (atio->sense_len != 0) {
652 atio->sense_len);
654 sense = (struct scsi_sense_data_fixed *)&atio->sense_data;
661 status = atio->ccb_h.status & CAM_STATUS_MASK;
664 ret = tcmd_handle(atio, ctio, ATIO_WORK);
669 TAILQ_REMOVE(&work_queue, &atio->ccb_h, periph_links.tqe);
670 send_ccb((union ccb *)atio, /*priority*/1);
691 if (c_descr->atio == NULL) {
694 ioq = &((struct atio_descr *)c_descr->atio->ccb_h.targ_descr)->cmplt_io;
721 run_queue(struct ccb_accept_tio *atio)
727 if (atio == NULL)
730 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
743 send_ccb((union ccb *)atio, /*priority*/1);
757 tcmd_handle(atio, ctio, c_descr->event);
761 send_ccb((union ccb *)atio, /*priority*/1);