Lines Matching refs:ccb
91 union ccb *ccb;
109 union ccb saved_ccb;
124 static void sgdone(struct cam_periph *periph, union ccb *done_ccb);
125 static int sgsendccb(struct cam_periph *periph, union ccb *ccb);
126 static int sgsendrdwr(struct cam_periph *periph, union ccb *ccb);
127 static int sgerror(union ccb *ccb, uint32_t cam_flags,
399 sgdone(struct cam_periph *periph, union ccb *done_ccb)
504 union ccb *ccb;
553 ccb = cam_periph_getccb(periph, CAM_PRIORITY_NORMAL);
554 csio = &ccb->csio;
559 xpt_release_ccb(ccb);
590 error = sgsendccb(periph, ccb);
594 xpt_release_ccb(ccb);
612 xpt_release_ccb(ccb);
678 union ccb *ccb;
707 ccb = xpt_alloc_ccb();
708 if (ccb == NULL) {
712 csio = &ccb->csio;
760 xpt_setup_ccb(&ccb->ccb_h, periph->path, CAM_PRIORITY_NORMAL);
779 rdwr->ccb = ccb;
781 ccb->ccb_h.ccb_rdwr = rdwr;
782 ccb->ccb_h.ccb_type = SG_CCB_RDWR_IO;
784 error = sgsendrdwr(periph, ccb);
791 xpt_free_ccb(ccb);
838 csio = &rdwr->ccb->csio;
880 xpt_free_ccb(rdwr->ccb);
888 sgsendccb(struct cam_periph *periph, union ccb *ccb)
905 error = cam_periph_mapmem(ccb, &mapinfo, softc->maxio);
910 error = cam_periph_runccb(ccb,
917 cam_periph_unmapmem(ccb, &mapinfo);
924 sgsendrdwr(struct cam_periph *periph, union ccb *ccb)
930 xpt_action(ccb);
935 sgerror(union ccb *ccb, uint32_t cam_flags, uint32_t sense_flags)
940 periph = xpt_path_periph(ccb->ccb_h.path);
943 return (cam_periph_error(ccb, cam_flags, sense_flags,