• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/share/examples/scsi_target/

Lines Matching defs:atio

368 		struct ccb_accept_tio *atio;
372 atio = (struct ccb_accept_tio *)malloc(sizeof(*atio));
373 if (atio == NULL) {
379 free(atio);
383 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
384 atio->ccb_h.targ_descr = a_descr;
385 send_ccb((union ccb *)atio, /*priority*/1);
468 oo += run_queue(c_descr->atio);
498 retval = work_atio(&ccb->atio);
563 struct ccb_accept_tio *atio;
567 atio = &ccb->atio;
568 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
571 a_descr->flags = atio->ccb_h.flags &
574 if ((atio->ccb_h.flags & CAM_CDB_POINTER) == 0)
575 a_descr->cdb = atio->cdb_io.cdb_bytes;
577 a_descr->cdb = atio->cdb_io.cdb_ptr;
595 oo += run_queue(c_descr->atio);
613 work_atio(struct ccb_accept_tio *atio)
622 warnx("Working on ATIO %p", atio);
624 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
633 ctio->tag_id = atio->tag_id;
634 ctio->init_id = atio->init_id;
637 c_descr->atio = atio;
649 if (atio->sense_len != 0) {
654 atio->sense_len);
656 sense = (struct scsi_sense_data_fixed *)&atio->sense_data;
663 status = atio->ccb_h.status & CAM_STATUS_MASK;
666 ret = tcmd_handle(atio, ctio, ATIO_WORK);
671 TAILQ_REMOVE(&work_queue, &atio->ccb_h, periph_links.tqe);
672 send_ccb((union ccb *)atio, /*priority*/1);
693 if (c_descr->atio == NULL) {
696 ioq = &((struct atio_descr *)c_descr->atio->ccb_h.targ_descr)->cmplt_io;
723 run_queue(struct ccb_accept_tio *atio)
729 if (atio == NULL)
732 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
745 send_ccb((union ccb *)atio, /*priority*/1);
759 tcmd_handle(atio, ctio, c_descr->event);
763 send_ccb((union ccb *)atio, /*priority*/1);