Lines Matching refs:atio

265 		struct ccb_accept_tio *atio;
267 atio = (struct ccb_accept_tio*)malloc(sizeof(*atio), M_SCSIBH,
269 if (atio == NULL) {
274 atio->ccb_h.ccb_descr = targbhallocdescr();
276 if (atio->ccb_h.ccb_descr == NULL) {
277 free(atio, M_SCSIBH);
282 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL);
283 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
284 atio->ccb_h.cbfcnp = targbhdone;
285 ((struct targbh_cmd_desc*)atio->ccb_h.ccb_descr)->atio_link =
287 softc->accept_tio_list = atio;
288 xpt_action((union ccb *)atio);
289 status = atio->ccb_h.status;
344 struct ccb_accept_tio* atio;
354 while ((atio = softc->accept_tio_list) != NULL) {
357 ((struct targbh_cmd_desc*)atio->ccb_h.ccb_descr)->atio_link;
360 ccb.cab.abort_ccb = (union ccb *)atio;
444 struct ccb_accept_tio *atio;
458 atio = (struct ccb_accept_tio*)ccbh;
459 desc = (struct targbh_cmd_desc *)atio->ccb_h.ccb_descr;
462 flags = atio->ccb_h.flags &
474 if (atio->sense_len) {
475 csio->sense_len = atio->sense_len;
476 csio->sense_data = atio->sense_data;
488 atio->tag_id,
489 atio->init_id,
497 start_ccb->ccb_h.target_id = atio->ccb_h.target_id;
498 start_ccb->ccb_h.target_lun = atio->ccb_h.target_lun;
501 start_ccb->ccb_h.ccb_atio = atio;
510 if ((atio->ccb_h.status & CAM_DEV_QFRZN) != 0) {
516 atio->ccb_h.status &= ~CAM_DEV_QFRZN;
534 struct ccb_accept_tio *atio;
539 atio = &done_ccb->atio;
540 descr = (struct targbh_cmd_desc*)atio->ccb_h.ccb_descr;
541 cdb = atio->cdb_io.cdb_bytes;
543 || atio->ccb_h.status == CAM_REQ_ABORTED) {
568 atio->ccb_h.flags &= ~CAM_DIR_MASK;
569 atio->ccb_h.flags |= CAM_DIR_NONE;
574 bcopy(&no_lun_sense_data, &atio->sense_data,
576 sizeof(atio->sense_data)));
577 atio->sense_len = sizeof(no_lun_sense_data);
587 atio->ccb_h.flags &= ~CAM_DIR_MASK;
588 atio->ccb_h.flags |= CAM_DIR_IN;
603 atio->ccb_h.flags &= ~CAM_DIR_MASK;
604 atio->ccb_h.flags |= CAM_DIR_IN;
617 atio->ccb_h.flags &= ~CAM_DIR_MASK;
618 atio->ccb_h.flags |= CAM_DIR_NONE;
619 bcopy(&no_lun_sense_data, &atio->sense_data,
621 sizeof(atio->sense_data)));
622 atio->sense_len = sizeof (no_lun_sense_data);
631 if ((atio->ccb_h.flags & CAM_DIS_DISCONNECT) != 0) {
632 TAILQ_INSERT_HEAD(&softc->work_queue, &atio->ccb_h,
636 TAILQ_INSERT_TAIL(&softc->work_queue, &atio->ccb_h,
645 struct ccb_accept_tio *atio;
650 atio = (struct ccb_accept_tio*)done_ccb->ccb_h.ccb_atio;
651 desc = (struct targbh_cmd_desc *)atio->ccb_h.ccb_descr;
653 TAILQ_REMOVE(&softc->pending_queue, &atio->ccb_h,
661 atio->sense_len = 0;
692 atio->ccb_h.target_id = CAM_TARGET_WILDCARD;
693 atio->ccb_h.target_lun = CAM_LUN_WILDCARD;
694 xpt_action((union ccb *)atio);
698 free(atio, M_SCSIBH);