Lines Matching defs:a_descr
373 struct atio_descr *a_descr;
381 a_descr = (struct atio_descr *)malloc(sizeof(*a_descr));
382 if (a_descr == NULL) {
388 atio->ccb_h.targ_descr = a_descr;
568 struct atio_descr *a_descr;
572 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
573 bzero(a_descr, sizeof(*a_descr));
574 TAILQ_INIT(&a_descr->cmplt_io);
575 a_descr->flags = atio->ccb_h.flags &
577 /* XXX add a_descr->priority */
579 a_descr->cdb = atio->cdb_io.cdb_bytes;
581 a_descr->cdb = atio->cdb_io.cdb_ptr;
620 struct atio_descr *a_descr;
628 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
636 ctio->ccb_h.flags = a_descr->flags;
639 /* XXX priority needs to be added to a_descr */
642 if ((a_descr->flags & CAM_DIR_IN) != 0)
643 c_descr->offset = a_descr->base_off + a_descr->targ_req;
644 else if ((a_descr->flags & CAM_DIR_MASK) == CAM_DIR_OUT)
645 c_descr->offset = a_descr->base_off + a_descr->init_req;
647 c_descr->offset = a_descr->base_off;
673 warn("ATIO %p aborted", a_descr);
729 struct atio_descr *a_descr;
736 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr;
738 while ((ccb_h = TAILQ_FIRST(&a_descr->cmplt_io)) != NULL) {
746 TAILQ_REMOVE(&a_descr->cmplt_io, ccb_h,
755 c_descr->offset == a_descr->base_off + a_descr->targ_ack)
757 c_descr->offset == a_descr->base_off + a_descr->init_ack)) {
761 TAILQ_REMOVE(&a_descr->cmplt_io, ccb_h,
772 a_descr, c_descr->event == AIO_DONE?