Lines Matching defs:atio

266 		struct ccb_accept_tio *atio;
268 atio = (struct ccb_accept_tio*)malloc(sizeof(*atio), M_SCSIBH,
270 if (atio == NULL) {
275 atio->ccb_h.ccb_descr = targbhallocdescr();
277 if (atio->ccb_h.ccb_descr == NULL) {
278 free(atio, M_SCSIBH);
283 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL);
284 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
285 atio->ccb_h.cbfcnp = targbhdone;
286 ((struct targbh_cmd_desc*)atio->ccb_h.ccb_descr)->atio_link =
288 softc->accept_tio_list = atio;
289 xpt_action((union ccb *)atio);
290 status = atio->ccb_h.status;
345 struct ccb_accept_tio* atio;
355 while ((atio = softc->accept_tio_list) != NULL) {
358 ((struct targbh_cmd_desc*)atio->ccb_h.ccb_descr)->atio_link;
361 ccb.cab.abort_ccb = (union ccb *)atio;
445 struct ccb_accept_tio *atio;
465 atio = (struct ccb_accept_tio*)ccbh;
466 desc = (struct targbh_cmd_desc *)atio->ccb_h.ccb_descr;
469 flags = atio->ccb_h.flags &
481 if (atio->sense_len) {
482 csio->sense_len = atio->sense_len;
483 csio->sense_data = atio->sense_data;
495 atio->tag_id,
496 atio->init_id,
504 start_ccb->ccb_h.target_id = atio->ccb_h.target_id;
505 start_ccb->ccb_h.target_lun = atio->ccb_h.target_lun;
508 start_ccb->ccb_h.ccb_atio = atio;
517 if ((atio->ccb_h.status & CAM_DEV_QFRZN) != 0) {
523 atio->ccb_h.status &= ~CAM_DEV_QFRZN;
547 struct ccb_accept_tio *atio;
552 atio = &done_ccb->atio;
553 descr = (struct targbh_cmd_desc*)atio->ccb_h.ccb_descr;
554 cdb = atio->cdb_io.cdb_bytes;
556 || atio->ccb_h.status == CAM_REQ_ABORTED) {
581 atio->ccb_h.flags &= ~CAM_DIR_MASK;
582 atio->ccb_h.flags |= CAM_DIR_NONE;
587 bcopy(&no_lun_sense_data, &atio->sense_data,
589 sizeof(atio->sense_data)));
590 atio->sense_len = sizeof(no_lun_sense_data);
600 atio->ccb_h.flags &= ~CAM_DIR_MASK;
601 atio->ccb_h.flags |= CAM_DIR_IN;
616 atio->ccb_h.flags &= ~CAM_DIR_MASK;
617 atio->ccb_h.flags |= CAM_DIR_IN;
630 atio->ccb_h.flags &= ~CAM_DIR_MASK;
631 atio->ccb_h.flags |= CAM_DIR_NONE;
632 bcopy(&no_lun_sense_data, &atio->sense_data,
634 sizeof(atio->sense_data)));
635 atio->sense_len = sizeof (no_lun_sense_data);
644 if ((atio->ccb_h.flags & CAM_DIS_DISCONNECT) != 0) {
645 TAILQ_INSERT_HEAD(&softc->work_queue, &atio->ccb_h,
649 TAILQ_INSERT_TAIL(&softc->work_queue, &atio->ccb_h,
658 struct ccb_accept_tio *atio;
663 atio = (struct ccb_accept_tio*)done_ccb->ccb_h.ccb_atio;
664 desc = (struct targbh_cmd_desc *)atio->ccb_h.ccb_descr;
666 TAILQ_REMOVE(&softc->pending_queue, &atio->ccb_h,
674 atio->sense_len = 0;
705 atio->ccb_h.target_id = CAM_TARGET_WILDCARD;
706 atio->ccb_h.target_lun = CAM_LUN_WILDCARD;
707 xpt_action((union ccb *)atio);
711 free(atio, M_SCSIBH);