Lines Matching refs:a_descr
371 struct atio_descr *a_descr; in init_ccbs() local
379 a_descr = (struct atio_descr *)malloc(sizeof(*a_descr)); in init_ccbs()
380 if (a_descr == NULL) { in init_ccbs()
386 atio->ccb_h.targ_descr = a_descr; in init_ccbs()
566 struct atio_descr *a_descr; in handle_read() local
570 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr; in handle_read()
571 bzero(a_descr, sizeof(*a_descr)); in handle_read()
572 TAILQ_INIT(&a_descr->cmplt_io); in handle_read()
573 a_descr->flags = atio->ccb_h.flags & in handle_read()
577 a_descr->cdb = atio->cdb_io.cdb_bytes; in handle_read()
579 a_descr->cdb = atio->cdb_io.cdb_ptr; in handle_read()
618 struct atio_descr *a_descr; in work_atio() local
626 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr; in work_atio()
634 ctio->ccb_h.flags = a_descr->flags; in work_atio()
640 if ((a_descr->flags & CAM_DIR_IN) != 0) in work_atio()
641 c_descr->offset = a_descr->base_off + a_descr->targ_req; in work_atio()
642 else if ((a_descr->flags & CAM_DIR_MASK) == CAM_DIR_OUT) in work_atio()
643 c_descr->offset = a_descr->base_off + a_descr->init_req; in work_atio()
645 c_descr->offset = a_descr->base_off; in work_atio()
671 warn("ATIO %p aborted", a_descr); in work_atio()
727 struct atio_descr *a_descr; in run_queue() local
734 a_descr = (struct atio_descr *)atio->ccb_h.targ_descr; in run_queue()
736 while ((ccb_h = TAILQ_FIRST(&a_descr->cmplt_io)) != NULL) { in run_queue()
744 TAILQ_REMOVE(&a_descr->cmplt_io, ccb_h, in run_queue()
753 c_descr->offset == a_descr->base_off + a_descr->targ_ack) in run_queue()
755 c_descr->offset == a_descr->base_off + a_descr->init_ack)) { in run_queue()
759 TAILQ_REMOVE(&a_descr->cmplt_io, ccb_h, in run_queue()
770 a_descr, c_descr->event == AIO_DONE? in run_queue()