/freebsd-11-stable/sys/cam/ |
H A D | cam_xpt_sim.h | 48 void xpt_done(union ccb *done_ccb); 49 void xpt_done_direct(union ccb *done_ccb);
|
H A D | cam_iosched.h | 61 int cam_iosched_bio_complete(struct cam_iosched_softc *isc, struct bio *bp, union ccb *done_ccb);
|
H A D | cam_periph.c | 70 union ccb *done_ccb); 1142 cam_periph_done_panic(struct cam_periph *periph, union ccb *done_ccb) argument 1145 panic("%s: already done with ccb %p", __func__, done_ccb); 1149 cam_periph_done(struct cam_periph *periph, union ccb *done_ccb) argument 1153 xpt_path_assert(done_ccb->ccb_h.path, MA_OWNED); 1154 done_ccb->ccb_h.cbfcnp = cam_periph_done_panic; 1155 wakeup(&done_ccb->ccb_h.cbfcnp); 1285 camperiphdone(struct cam_periph *periph, union ccb *done_ccb) argument 1293 &done_ccb->csio.cdb_io.cdb_bytes; 1294 status = done_ccb [all...] |
H A D | cam_queue.h | 175 cam_ccbq_ccb_done(struct cam_ccbq *ccbq, union ccb *done_ccb); 277 cam_ccbq_ccb_done(struct cam_ccbq *ccbq, union ccb *done_ccb) argument
|
H A D | cam_xpt.c | 766 xpt_rescan_done(struct cam_periph *periph, union ccb *done_ccb) argument 769 if (done_ccb->ccb_h.ppriv_ptr1 == NULL) { 770 xpt_free_path(done_ccb->ccb_h.path); 771 xpt_free_ccb(done_ccb); 773 done_ccb->ccb_h.cbfcnp = done_ccb->ccb_h.ppriv_ptr1; 774 (*done_ccb->ccb_h.cbfcnp)(periph, done_ccb); 4503 xpt_done(union ccb *done_ccb) argument 4508 CAM_DEBUG(done_ccb 4531 xpt_done_direct(union ccb *done_ccb) argument [all...] |
H A D | cam_iosched.c | 1356 union ccb *done_ccb) 1382 cam_iosched_io_metric_update(isc, done_ccb->ccb_h.qos.sim_data, 1355 cam_iosched_bio_complete(struct cam_iosched_softc *isc, struct bio *bp, union ccb *done_ccb) argument
|
/freebsd-11-stable/sys/cam/scsi/ |
H A D | scsi_xpt.c | 573 static void probedone(struct cam_periph *periph, union ccb *done_ccb); 583 static void xptscandone(struct cam_periph *periph, union ccb *done_ccb); 1150 probedone(struct cam_periph *periph, union ccb *done_ccb) argument 1157 CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probedone\n")); 1160 path = done_ccb->ccb_h.path; 1161 priority = done_ccb->ccb_h.pinfo.priority; 1167 if (cam_ccb_status(done_ccb) != CAM_REQ_CMP) { 1169 if (cam_periph_error(done_ccb, 0, 1176 else if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) 1178 xpt_release_devq(done_ccb 2391 xptscandone(struct cam_periph *periph, union ccb *done_ccb) argument [all...] |
H A D | scsi_targ_bh.c | 138 union ccb *done_ccb); 525 targbhdone(struct cam_periph *periph, union ccb *done_ccb) argument 531 switch (done_ccb->ccb_h.func_code) { 539 atio = &done_ccb->atio; 545 xpt_free_ccb(done_ccb); 650 atio = (struct ccb_accept_tio*)done_ccb->ccb_h.ccb_atio; 662 done_ccb->ccb_h.flags &= ~CAM_SEND_SENSE; 663 done_ccb->ccb_h.status &= ~CAM_SENT_SENSE; 672 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) { 674 cam_release_devq(done_ccb [all...] |
H A D | scsi_pt.c | 99 union ccb *done_ccb); 473 ptdone(struct cam_periph *periph, union ccb *done_ccb) argument 482 csio = &done_ccb->csio; 489 bp = (struct bio *)done_ccb->ccb_h.ccb_bp; 490 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 499 error = pterror(done_ccb, CAM_RETRY_SELTO, sf); 535 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) 536 cam_release_devq(done_ccb->ccb_h.path, 551 LIST_REMOVE(&done_ccb->ccb_h, periph_links.le); 557 xpt_release_ccb(done_ccb); [all...] |
H A D | scsi_da.c | 1428 union ccb *done_ccb); 4186 dadone(struct cam_periph *periph, union ccb *done_ccb) argument 4194 priority = done_ccb->ccb_h.pinfo.priority; 4198 csio = &done_ccb->csio; 4207 bp = (struct bio *)done_ccb->ccb_h.ccb_bp; 4208 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 4217 error = daerror(done_ccb, CAM_RETRY_SELTO, sf); 4226 bp = (struct bio *)done_ccb->ccb_h.ccb_bp; 4271 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) 4272 cam_release_devq(done_ccb [all...] |
H A D | scsi_pass.c | 172 union ccb *done_ccb); 887 passdone(struct cam_periph *periph, union ccb *done_ccb) argument 896 csio = &done_ccb->csio; 901 io_req = done_ccb->ccb_h.ccb_ioreq; 906 if (((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) 907 && (done_ccb->ccb_h.flags & CAM_PASS_ERR_RECOVER) 911 error = passerror(done_ccb, CAM_RETRY_SELTO, 927 bcopy(done_ccb, &io_req->ccb, sizeof(*done_ccb)); 932 switch (done_ccb [all...] |
H A D | scsi_cd.c | 1108 cddone(struct cam_periph *periph, union ccb *done_ccb) argument 1116 csio = &done_ccb->csio; 1124 bp = (struct bio *)done_ccb->ccb_h.ccb_bp; 1127 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 1130 if ((done_ccb->ccb_h.ccb_state & CD_CCB_RETRY_UA) != 0) 1135 error = cderror(done_ccb, CAM_RETRY_SELTO, sf); 1152 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) 1153 cam_release_devq(done_ccb->ccb_h.path, 1172 LIST_REMOVE(&done_ccb->ccb_h, periph_links.le); 1214 (error = cderror(done_ccb, CAM_RETRY_SELT [all...] |
H A D | scsi_target.c | 143 union ccb *done_ccb); 762 targdone(struct cam_periph *periph, union ccb *done_ccb) argument 767 CAM_DEBUG(periph->path, CAM_DEBUG_PERIPH, ("targdone %p\n", done_ccb)); 769 TAILQ_REMOVE(&softc->pending_ccb_queue, &done_ccb->ccb_h, 771 status = done_ccb->ccb_h.status & CAM_STATUS_MASK; 775 targfreeccb(softc, done_ccb); 782 switch (done_ccb->ccb_h.func_code) { 788 TAILQ_INSERT_TAIL(&softc->user_ccb_queue, &done_ccb->ccb_h, 796 done_ccb->ccb_h.func_code);
|
H A D | scsi_ch.c | 192 union ccb *done_ccb); 602 chdone(struct cam_periph *periph, union ccb *done_ccb) argument 608 csio = &done_ccb->csio; 610 switch(done_ccb->ccb_h.ccb_state) { 623 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP){ 656 error = cherror(done_ccb, CAM_RETRY_SELTO, 673 done_ccb->csio.cdb_io.cdb_bytes; 674 frozen = (done_ccb->ccb_h.status & 689 xpt_action(done_ccb); 697 cam_release_devq(done_ccb [all...] |
H A D | scsi_sg.c | 124 static void sgdone(struct cam_periph *periph, union ccb *done_ccb); 399 sgdone(struct cam_periph *periph, union ccb *done_ccb) argument 405 csio = &done_ccb->csio; 421 rdwr = done_ccb->ccb_h.ccb_rdwr;
|
H A D | scsi_sa.c | 2778 sadone(struct cam_periph *periph, union ccb *done_ccb) argument 2786 csio = &done_ccb->csio; 2789 bp = (struct bio *)done_ccb->ccb_h.ccb_bp; 2791 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 2792 if ((error = saerror(done_ccb, 0, 0)) == ERESTART) { 2855 cam_release_devq(done_ccb->ccb_h.path, 0, 0, 0, 0); 2862 xpt_release_ccb(done_ccb);
|
/freebsd-11-stable/sys/cam/ctl/ |
H A D | scsi_ctl.c | 185 union ccb *done_ccb); 1086 ctlfedone(struct cam_periph *periph, union ccb *done_ccb) argument 1096 KASSERT((done_ccb->ccb_h.flags & CAM_UNLOCKED) != 0, 1100 done_ccb->ccb_h.func_code); 1107 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) { 1113 done_ccb->ccb_h.status &= ~CAM_DEV_QFRZN; 1121 switch (done_ccb->ccb_h.func_code) { 1124 LIST_REMOVE(&done_ccb->ccb_h, periph_links.le); 1125 atio = &done_ccb->atio; 1128 ctlfe_free_ccb(periph, done_ccb); [all...] |
/freebsd-11-stable/sys/cam/ata/ |
H A D | ata_xpt.c | 168 static void probedone(struct cam_periph *periph, union ccb *done_ccb); 175 static void xptscandone(struct cam_periph *periph, union ccb *done_ccb); 731 probedone(struct cam_periph *periph, union ccb *done_ccb) argument 746 CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probedone\n")); 749 path = done_ccb->ccb_h.path; 750 priority = done_ccb->ccb_h.pinfo.priority; 754 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 755 if (cam_periph_error(done_ccb, 763 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) { 767 status = done_ccb 1643 xptscandone(struct cam_periph *periph, union ccb *done_ccb) argument [all...] |
H A D | ata_pmp.c | 122 union ccb *done_ccb); 581 pmpdone(struct cam_periph *periph, union ccb *done_ccb) argument 591 ataio = &done_ccb->ataio; 595 priority = done_ccb->ccb_h.pinfo.priority; 597 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 598 if (cam_periph_error(done_ccb, 0, 0, NULL) == ERESTART) { 600 } else if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) { 601 cam_release_devq(done_ccb->ccb_h.path, 612 xpt_release_ccb(done_ccb); 663 xpt_release_ccb(done_ccb); [all...] |
H A D | ata_da.c | 821 union ccb *done_ccb); 2748 adadone(struct cam_periph *periph, union ccb *done_ccb) argument 2757 ataio = &done_ccb->ataio; 2758 path = done_ccb->ccb_h.path; 2759 priority = done_ccb->ccb_h.pinfo.priority; 2772 bp = (struct bio *)done_ccb->ccb_h.ccb_bp; 2773 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 2774 error = adaerror(done_ccb, 0, 0); 2780 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) 2801 if ((done_ccb [all...] |
/freebsd-11-stable/sys/cam/nvme/ |
H A D | nvme_da.c | 136 union ccb *done_ccb); 949 ndadone(struct cam_periph *periph, union ccb *done_ccb) argument 952 struct ccb_nvmeio *nvmeio = &done_ccb->nvmeio; 957 path = done_ccb->ccb_h.path; 970 bp = (struct bio *)done_ccb->ccb_h.ccb_bp; 971 if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { 972 error = ndaerror(done_ccb, 0, 0); 978 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) 985 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) 1000 cam_iosched_bio_complete(softc->cam_iosched, bp, done_ccb); [all...] |
/freebsd-11-stable/sys/dev/mpr/ |
H A D | mpr_sas_lsi.c | 132 union ccb *done_ccb); 1559 mprsas_stop_unit_done(struct cam_periph *periph, union ccb *done_ccb) argument 1564 if (done_ccb == NULL) 1567 sassc = (struct mprsas_softc *)done_ccb->ccb_h.ppriv_ptr1; 1569 xpt_path_string(done_ccb->ccb_h.path, path_str, sizeof(path_str)); 1578 xpt_free_path(done_ccb->ccb_h.path); 1579 xpt_free_ccb(done_ccb);
|
H A D | mpr_sas.c | 139 union ccb *done_ccb); 3790 mprsas_read_cap_done(struct cam_periph *periph, union ccb *done_ccb) argument 3797 if (done_ccb == NULL) 3808 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) ) { 3809 done_ccb->ccb_h.status &= ~CAM_DEV_QFRZN; 3810 xpt_release_devq(done_ccb->ccb_h.path, 3814 rcap_buf = (struct scsi_read_capacity_eedp *)done_ccb->csio.data_ptr; 3820 sassc = (struct mprsas_softc *)done_ccb->ccb_h.ppriv_ptr1; 3821 KASSERT(done_ccb->ccb_h.target_id < sassc->maxtargets, ("Target %d out " 3822 "of bounds in mprsas_read_cap_done\n", done_ccb [all...] |
/freebsd-11-stable/sys/dev/mps/ |
H A D | mps_sas_lsi.c | 130 union ccb *done_ccb); 1212 mpssas_stop_unit_done(struct cam_periph *periph, union ccb *done_ccb) argument 1217 if (done_ccb == NULL) 1220 sassc = (struct mpssas_softc *)done_ccb->ccb_h.ppriv_ptr1; 1222 xpt_path_string(done_ccb->ccb_h.path, path_str, sizeof(path_str)); 1231 xpt_free_path(done_ccb->ccb_h.path); 1232 xpt_free_ccb(done_ccb);
|
H A D | mps_sas.c | 145 static void mpssas_read_cap_done(struct cam_periph *periph, union ccb *done_ccb); 3505 mpssas_read_cap_done(struct cam_periph *periph, union ccb *done_ccb) argument 3512 if (done_ccb == NULL) 3523 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) ) { 3524 done_ccb->ccb_h.status &= ~CAM_DEV_QFRZN; 3525 xpt_release_devq(done_ccb->ccb_h.path, 3529 rcap_buf = (struct scsi_read_capacity_eedp *)done_ccb->csio.data_ptr; 3535 sassc = (struct mpssas_softc *)done_ccb->ccb_h.ppriv_ptr1; 3536 KASSERT(done_ccb->ccb_h.target_id < sassc->maxtargets, 3538 done_ccb [all...] |