Lines Matching refs:a_descr
367 struct atio_descr *a_descr;
375 a_descr = (struct atio_descr *)malloc(sizeof(*a_descr));
376 if (a_descr == NULL) {
382 atio->ccb_h.targ_descr = a_descr;
562 struct atio_descr *a_descr;
566 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
567 bzero(a_descr, sizeof(*a_descr));
568 TAILQ_INIT(&a_descr->cmplt_io);
569 a_descr->flags = atio->ccb_h.flags &
571 /* XXX add a_descr->priority */
573 a_descr->cdb = atio->cdb_io.cdb_bytes;
575 a_descr->cdb = atio->cdb_io.cdb_ptr;
614 struct atio_descr *a_descr;
622 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
630 ctio->ccb_h.flags = a_descr->flags;
633 /* XXX priority needs to be added to a_descr */
636 if ((a_descr->flags & CAM_DIR_IN) != 0)
637 c_descr->offset = a_descr->base_off + a_descr->targ_req;
638 else if ((a_descr->flags & CAM_DIR_MASK) == CAM_DIR_OUT)
639 c_descr->offset = a_descr->base_off + a_descr->init_req;
641 c_descr->offset = a_descr->base_off;
667 warn("ATIO %p aborted", a_descr);
723 struct atio_descr *a_descr;
730 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
732 while ((ccb_h = TAILQ_FIRST(&a_descr->cmplt_io)) != NULL) {
740 TAILQ_REMOVE(&a_descr->cmplt_io, ccb_h,
749 c_descr->offset == a_descr->base_off + a_descr->targ_ack)
751 c_descr->offset == a_descr->base_off + a_descr->init_ack)) {
755 TAILQ_REMOVE(&a_descr->cmplt_io, ccb_h,
766 a_descr, c_descr->event == AIO_DONE?