Lines Matching refs:ccb_h
265 static void xpt_done_process(struct ccb_hdr *ccb_h);
421 if (inccb->ccb_h.func_code == XPT_SCSI_IO) in xptdoioctl()
425 if (inccb->ccb_h.flags & CAM_UNLOCKED) in xptdoioctl()
428 bus = xpt_find_bus(inccb->ccb_h.path_id); in xptdoioctl()
432 switch (inccb->ccb_h.func_code) { in xptdoioctl()
435 if (inccb->ccb_h.target_id != CAM_TARGET_WILDCARD || in xptdoioctl()
436 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { in xptdoioctl()
442 if (inccb->ccb_h.target_id == CAM_TARGET_WILDCARD || in xptdoioctl()
443 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { in xptdoioctl()
452 switch(inccb->ccb_h.func_code) { in xptdoioctl()
466 if (xpt_create_path(&ccb->ccb_h.path, NULL, in xptdoioctl()
467 inccb->ccb_h.path_id, in xptdoioctl()
468 inccb->ccb_h.target_id, in xptdoioctl()
469 inccb->ccb_h.target_lun) != in xptdoioctl()
476 xpt_setup_ccb(&ccb->ccb_h, ccb->ccb_h.path, in xptdoioctl()
477 inccb->ccb_h.pinfo.priority); in xptdoioctl()
479 xpt_path_lock(ccb->ccb_h.path); in xptdoioctl()
481 xpt_path_unlock(ccb->ccb_h.path); in xptdoioctl()
483 xpt_free_path(ccb->ccb_h.path); in xptdoioctl()
500 if (xpt_create_path(&ccb.ccb_h.path, NULL, in xptdoioctl()
501 inccb->ccb_h.path_id, in xptdoioctl()
502 inccb->ccb_h.target_id, in xptdoioctl()
503 inccb->ccb_h.target_lun) != in xptdoioctl()
509 xpt_setup_ccb(&ccb.ccb_h, ccb.ccb_h.path, in xptdoioctl()
510 inccb->ccb_h.pinfo.priority); in xptdoioctl()
514 xpt_free_path(ccb.ccb_h.path); in xptdoioctl()
525 if ((inccb->ccb_h.flags & CAM_DATA_MASK) != in xptdoioctl()
535 old_path = inccb->ccb_h.path; in xptdoioctl()
543 inccb->ccb_h.path = xpt_periph->path; in xptdoioctl()
554 inccb->ccb_h.path = old_path; in xptdoioctl()
568 inccb->ccb_h.path = old_path; in xptdoioctl()
605 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in xptdoioctl()
628 ccb->ccb_h.status = CAM_REQ_CMP_ERR; in xptdoioctl()
688 ccb->ccb_h.path_id = in xptdoioctl()
690 ccb->ccb_h.target_id = in xptdoioctl()
692 ccb->ccb_h.target_lun = in xptdoioctl()
694 ccb->ccb_h.status = CAM_REQ_CMP; in xptdoioctl()
713 ccb->ccb_h.status = CAM_REQ_CMP_ERR; in xptdoioctl()
778 if (done_ccb->ccb_h.ppriv_ptr1 == NULL) { in xpt_rescan_done()
779 xpt_free_path(done_ccb->ccb_h.path); in xpt_rescan_done()
782 done_ccb->ccb_h.cbfcnp = done_ccb->ccb_h.ppriv_ptr1; in xpt_rescan_done()
783 (*done_ccb->ccb_h.cbfcnp)(periph, done_ccb); in xpt_rescan_done()
802 TAILQ_REMOVE(&xsoftc.ccb_scanq, &ccb->ccb_h, sim_links.tqe); in xpt_scanner_thread()
815 mtx = xpt_path_mtx(ccb->ccb_h.path); in xpt_scanner_thread()
816 device = ccb->ccb_h.path->device; in xpt_scanner_thread()
834 if (ccb->ccb_h.path->target->target_id == CAM_TARGET_WILDCARD && in xpt_rescan()
835 ccb->ccb_h.path->device->lun_id == CAM_LUN_WILDCARD) in xpt_rescan()
836 ccb->ccb_h.func_code = XPT_SCAN_BUS; in xpt_rescan()
837 else if (ccb->ccb_h.path->target->target_id != CAM_TARGET_WILDCARD && in xpt_rescan()
838 ccb->ccb_h.path->device->lun_id == CAM_LUN_WILDCARD) in xpt_rescan()
839 ccb->ccb_h.func_code = XPT_SCAN_TGT; in xpt_rescan()
840 else if (ccb->ccb_h.path->target->target_id != CAM_TARGET_WILDCARD && in xpt_rescan()
841 ccb->ccb_h.path->device->lun_id != CAM_LUN_WILDCARD) in xpt_rescan()
842 ccb->ccb_h.func_code = XPT_SCAN_LUN; in xpt_rescan()
844 xpt_print(ccb->ccb_h.path, "illegal scan path\n"); in xpt_rescan()
845 xpt_free_path(ccb->ccb_h.path); in xpt_rescan()
849 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, in xpt_rescan()
850 ("xpt_rescan: func %#x %s\n", ccb->ccb_h.func_code, in xpt_rescan()
851 xpt_action_name(ccb->ccb_h.func_code))); in xpt_rescan()
853 ccb->ccb_h.ppriv_ptr1 = ccb->ccb_h.cbfcnp; in xpt_rescan()
854 ccb->ccb_h.cbfcnp = xpt_rescan_done; in xpt_rescan()
855 xpt_setup_ccb(&ccb->ccb_h, ccb->ccb_h.path, CAM_PRIORITY_XPT); in xpt_rescan()
858 if (ccb->ccb_h.ppriv_ptr1 == NULL) { in xpt_rescan()
860 if (xpt_path_comp(hdr->path, ccb->ccb_h.path) == 0) { in xpt_rescan()
863 xpt_print(ccb->ccb_h.path, "rescan already queued\n"); in xpt_rescan()
864 xpt_free_path(ccb->ccb_h.path); in xpt_rescan()
870 TAILQ_INSERT_TAIL(&xsoftc.ccb_scanq, &ccb->ccb_h, sim_links.tqe); in xpt_rescan()
1166 xpt_setup_ccb(&cdai.ccb_h, path, CAM_PRIORITY_NORMAL); in xpt_getattr()
1167 cdai.ccb_h.func_code = XPT_DEV_ADVINFO; in xpt_getattr()
1189 if ((cdai.ccb_h.status & CAM_DEV_QFRZN) != 0) in xpt_getattr()
1190 cam_release_devq(cdai.ccb_h.path, 0, 0, 0, FALSE); in xpt_getattr()
2514 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, in xpt_action()
2515 ("xpt_action: func %#x %s\n", start_ccb->ccb_h.func_code, in xpt_action()
2516 xpt_action_name(start_ccb->ccb_h.func_code))); in xpt_action()
2523 KASSERT((start_ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 || in xpt_action()
2524 start_ccb->ccb_h.pinfo.priority != CAM_PRIORITY_NONE, in xpt_action()
2527 start_ccb->ccb_h.status = CAM_REQ_INPROG; in xpt_action()
2528 (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb); in xpt_action()
2538 path = start_ccb->ccb_h.path; in xpt_action_default()
2540 ("xpt_action_default: func %#x %s\n", start_ccb->ccb_h.func_code, in xpt_action_default()
2541 xpt_action_name(start_ccb->ccb_h.func_code))); in xpt_action_default()
2543 switch (start_ccb->ccb_h.func_code) { in xpt_action_default()
2566 && start_ccb->ccb_h.target_lun < 8 in xpt_action_default()
2567 && (start_ccb->ccb_h.flags & CAM_CDB_POINTER) == 0) { in xpt_action_default()
2569 start_ccb->ccb_h.target_lun << 5; in xpt_action_default()
2580 if (start_ccb->ccb_h.func_code == XPT_ATA_IO) in xpt_action_default()
2609 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2622 device = abort_ccb->ccb_h.path->device; in xpt_action_default()
2626 if (abort_ccb->ccb_h.pinfo.index > 0) { in xpt_action_default()
2628 abort_ccb->ccb_h.status = in xpt_action_default()
2633 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2638 if (abort_ccb->ccb_h.pinfo.index == CAM_UNQUEUED_INDEX in xpt_action_default()
2639 && (abort_ccb->ccb_h.status & CAM_SIM_QUEUED) == 0) { in xpt_action_default()
2646 abort_ccb->ccb_h.status = in xpt_action_default()
2648 xpt_freeze_devq(abort_ccb->ccb_h.path, 1); in xpt_action_default()
2649 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2654 && (abort_ccb->ccb_h.pinfo.index == CAM_DONEQ_INDEX)) { in xpt_action_default()
2659 start_ccb->ccb_h.status = CAM_UA_ABORT; in xpt_action_default()
2690 ("Calling sim->sim_action(): func=%#x\n", start_ccb->ccb_h.func_code)); in xpt_action_default()
2693 ("sim->sim_action returned: status=%#x\n", start_ccb->ccb_h.status)); in xpt_action_default()
2699 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2707 start_ccb->ccb_h.status = CAM_DEV_NOT_THERE; in xpt_action_default()
2716 cgd->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2745 cgds->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2806 cgdl->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2864 start_ccb->ccb_h.status = CAM_REQ_CMP_ERR; in xpt_action_default()
2866 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2912 csa->ccb_h.status = CAM_RESRC_UNAVAIL; in xpt_action_default()
2923 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
2934 crs->ccb_h.status = CAM_DEV_NOT_THERE; in xpt_action_default()
2958 start_ccb->ccb_h.flags &= ~CAM_DEV_QFREEZE; in xpt_action_default()
2961 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; in xpt_action_default()
2978 start_ccb->ccb_h.flags &= ~CAM_DEV_QFREEZE; in xpt_action_default()
2981 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; in xpt_action_default()
2988 start_ccb->ccb_h.flags &= ~CAM_DEV_QFREEZE; in xpt_action_default()
2991 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; in xpt_action_default()
2996 if ((start_ccb->ccb_h.flags & CAM_DEV_QFREEZE) == 0) in xpt_action_default()
2999 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
3007 start_ccb->ccb_h.status = CAM_FUNC_NOTAVAIL; in xpt_action_default()
3019 start_ccb->ccb_h.path_id, in xpt_action_default()
3020 start_ccb->ccb_h.target_id, in xpt_action_default()
3021 start_ccb->ccb_h.target_lun) != in xpt_action_default()
3023 start_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; in xpt_action_default()
3026 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
3031 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
3035 if ((start_ccb->ccb_h.flags & CAM_DEV_QFREEZE) != 0) in xpt_action_default()
3037 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
3041 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
3049 start_ccb->ccb_h.status = CAM_REQ_CMP; in xpt_action_default()
3051 STAILQ_INSERT_TAIL(&cam_async.cam_doneq, &start_ccb->ccb_h, sim_links.stqe); in xpt_action_default()
3052 start_ccb->ccb_h.pinfo.index = CAM_ASYNC_INDEX; in xpt_action_default()
3061 xpt_print(start_ccb->ccb_h.path, in xpt_action_default()
3063 start_ccb->ccb_h.func_code, in xpt_action_default()
3064 xpt_action_name(start_ccb->ccb_h.func_code)); in xpt_action_default()
3065 start_ccb->ccb_h.status = CAM_PROVIDE_FAIL; in xpt_action_default()
3066 if (start_ccb->ccb_h.func_code & XPT_FC_DEV_QUEUED) { in xpt_action_default()
3073 start_ccb->ccb_h.func_code, in xpt_action_default()
3074 xpt_action_name(start_ccb->ccb_h.func_code), in xpt_action_default()
3075 start_ccb->ccb_h.status)); in xpt_action_default()
3106 timeout = start_ccb->ccb_h.timeout * 10; in xpt_poll_setup()
3107 sim = start_ccb->ccb_h.path->bus->sim; in xpt_poll_setup()
3109 dev = start_ccb->ccb_h.path->device; in xpt_poll_setup()
3136 KASSERT(cam_sim_pollable(start_ccb->ccb_h.path->bus->sim), in xpt_pollwait()
3139 xpt_sim_poll(start_ccb->ccb_h.path->bus->sim); in xpt_pollwait()
3140 if ((start_ccb->ccb_h.status & CAM_STATUS_MASK) in xpt_pollwait()
3153 start_ccb->ccb_h.status = CAM_CMD_TIMEOUT; in xpt_pollwait()
3266 xpt_setup_ccb(&ccb->ccb_h, periph->path, prio); in xpt_run_allocq()
3271 SLIST_INSERT_HEAD(&periph->ccb_list, &ccb->ccb_h, in xpt_run_allocq()
3315 if ((work_ccb->ccb_h.flags & CAM_HIGH_POWER) != 0) { in xpt_run_devq()
3346 if ((work_ccb->ccb_h.flags & CAM_DEV_QFREEZE) != 0) { in xpt_run_devq()
3351 xpt_freeze_devq(work_ccb->ccb_h.path, 1); in xpt_run_devq()
3355 if (work_ccb->ccb_h.func_code == XPT_SCSI_IO) { in xpt_run_devq()
3358 work_ccb->ccb_h.flags |= CAM_TAG_ACTION_VALID; in xpt_run_devq()
3364 work_ccb->ccb_h.flags &= ~CAM_TAG_ACTION_VALID; in xpt_run_devq()
3367 KASSERT(device == work_ccb->ccb_h.path->device, in xpt_run_devq()
3369 device, work_ccb->ccb_h.path->device)); in xpt_run_devq()
3385 work_ccb->ccb_h.qos.periph_data = cam_iosched_now(); in xpt_run_devq()
3406 dst_ccb->ccb_h.retry_count = src_ccb->ccb_h.retry_count; in xpt_merge_ccb()
3407 dst_ccb->ccb_h.func_code = src_ccb->ccb_h.func_code; in xpt_merge_ccb()
3408 dst_ccb->ccb_h.timeout = src_ccb->ccb_h.timeout; in xpt_merge_ccb()
3409 dst_ccb->ccb_h.flags = src_ccb->ccb_h.flags; in xpt_merge_ccb()
3410 bcopy(&(&src_ccb->ccb_h)[1], &(&dst_ccb->ccb_h)[1], in xpt_merge_ccb()
3415 xpt_setup_ccb_flags(struct ccb_hdr *ccb_h, struct cam_path *path, in xpt_setup_ccb_flags() argument
3420 ccb_h->pinfo.priority = priority; in xpt_setup_ccb_flags()
3421 ccb_h->path = path; in xpt_setup_ccb_flags()
3422 ccb_h->path_id = path->bus->path_id; in xpt_setup_ccb_flags()
3424 ccb_h->target_id = path->target->target_id; in xpt_setup_ccb_flags()
3426 ccb_h->target_id = CAM_TARGET_WILDCARD; in xpt_setup_ccb_flags()
3428 ccb_h->target_lun = path->device->lun_id; in xpt_setup_ccb_flags()
3429 ccb_h->pinfo.generation = ++path->device->ccbq.queue.generation; in xpt_setup_ccb_flags()
3431 ccb_h->target_lun = CAM_TARGET_WILDCARD; in xpt_setup_ccb_flags()
3433 ccb_h->pinfo.index = CAM_UNQUEUED_INDEX; in xpt_setup_ccb_flags()
3434 ccb_h->flags = flags; in xpt_setup_ccb_flags()
3435 ccb_h->xflags = 0; in xpt_setup_ccb_flags()
3439 xpt_setup_ccb(struct ccb_hdr *ccb_h, struct cam_path *path, uint32_t priority) in xpt_setup_ccb() argument
3441 xpt_setup_ccb_flags(ccb_h, path, priority, /*flags*/ 0); in xpt_setup_ccb()
3846 xpt_path_assert(free_ccb->ccb_h.path, MA_OWNED); in xpt_release_ccb()
3847 device = free_ccb->ccb_h.path->device; in xpt_release_ccb()
3848 periph = free_ccb->ccb_h.path->periph; in xpt_release_ccb()
3971 scan_ccb->ccb_h.path = path; in xpt_bus_register()
3972 scan_ccb->ccb_h.func_code = XPT_SCAN_BUS; in xpt_bus_register()
4132 struct cam_path *path = ccb->ccb_h.path; in xpt_async_process_dev()
4182 struct cam_path *path = ccb->ccb_h.path; in xpt_async_process_tgt()
4205 path = ccb->ccb_h.path; in xpt_async_process()
4284 if (xpt_clone_path(&ccb->ccb_h.path, path) != 0) { in xpt_async()
4290 ccb->ccb_h.path->periph = NULL; in xpt_async()
4291 ccb->ccb_h.func_code = XPT_ASYNC; in xpt_async()
4292 ccb->ccb_h.cbfcnp = xpt_async_process; in xpt_async()
4293 ccb->ccb_h.flags |= CAM_UNLOCKED; in xpt_async()
4297 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, in xpt_async()
4299 ccb->ccb_h.func_code, in xpt_async()
4300 xpt_action_name(ccb->ccb_h.func_code), in xpt_async()
4308 xpt_free_path(ccb->ccb_h.path); in xpt_async()
4490 if (done_ccb->ccb_h.func_code == XPT_SCSI_IO && in xpt_done()
4495 CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, in xpt_done()
4497 done_ccb->ccb_h.func_code, in xpt_done()
4498 xpt_action_name(done_ccb->ccb_h.func_code), in xpt_done()
4499 done_ccb->ccb_h.status)); in xpt_done()
4500 if ((done_ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0) in xpt_done()
4504 done_ccb->ccb_h.qos.periph_data = cam_iosched_delta_t(done_ccb->ccb_h.qos.periph_data); in xpt_done()
4505 done_ccb->ccb_h.status |= CAM_QOS_VALID; in xpt_done()
4506 hash = (u_int)(done_ccb->ccb_h.path_id + done_ccb->ccb_h.target_id + in xpt_done()
4507 done_ccb->ccb_h.target_lun) % cam_num_doneqs; in xpt_done()
4511 STAILQ_INSERT_TAIL(&queue->cam_doneq, &done_ccb->ccb_h, sim_links.stqe); in xpt_done()
4512 done_ccb->ccb_h.pinfo.index = CAM_DONEQ_INDEX; in xpt_done()
4522 CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, in xpt_done_direct()
4523 ("xpt_done_direct: status %#x\n", done_ccb->ccb_h.status)); in xpt_done_direct()
4524 if ((done_ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0) in xpt_done_direct()
4528 done_ccb->ccb_h.qos.periph_data = cam_iosched_delta_t(done_ccb->ccb_h.qos.periph_data); in xpt_done_direct()
4529 done_ccb->ccb_h.status |= CAM_QOS_VALID; in xpt_done_direct()
4530 xpt_done_process(&done_ccb->ccb_h); in xpt_done_direct()
4556 if (free_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) { in xpt_free_ccb()
4560 periph = free_ccb->ccb_h.path->periph; in xpt_free_ccb()
4589 new_ccb->ccb_h.alloc_flags = alloc_flags; in xpt_get_ccb_nowait()
4609 new_ccb->ccb_h.alloc_flags = alloc_flags; in xpt_get_ccb()
4619 struct ccb_hdr *ccb_h; in cam_periph_getccb() local
4623 while ((ccb_h = SLIST_FIRST(&periph->ccb_list)) == NULL || in cam_periph_getccb()
4624 ccb_h->pinfo.priority != priority) { in cam_periph_getccb()
4633 return ((union ccb *)ccb_h); in cam_periph_getccb()
4968 xpt_setup_ccb(&crs.ccb_h, path, CAM_PRIORITY_NORMAL); in xpt_start_tags()
4969 crs.ccb_h.func_code = XPT_REL_SIMQ; in xpt_start_tags()
4994 xpt_setup_ccb(&crs.ccb_h, path, CAM_PRIORITY_NORMAL); in xpt_stop_tags()
4995 crs.ccb_h.func_code = XPT_REL_SIMQ; in xpt_stop_tags()
5152 xpt_setup_ccb(&csa.ccb_h, path, CAM_PRIORITY_NORMAL); in xpt_register_async()
5153 csa.ccb_h.func_code = XPT_SASYNC_CB; in xpt_register_async()
5158 status = csa.ccb_h.status; in xpt_register_async()
5160 CAM_DEBUG(csa.ccb_h.path, CAM_DEBUG_TRACE, in xpt_register_async()
5191 CAM_DEBUG(work_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("xptaction\n")); in xptaction()
5193 switch (work_ccb->ccb_h.func_code) { in xptaction()
5218 cpi->ccb_h.status = CAM_REQ_CMP; in xptaction()
5222 work_ccb->ccb_h.status = CAM_REQ_INVALID; in xptaction()
5257 xpt_done_process(struct ccb_hdr *ccb_h) in xpt_done_process() argument
5266 if (ccb_h->func_code == XPT_SCSI_IO) { in xpt_done_process()
5267 csio = &((union ccb *)ccb_h)->csio; in xpt_done_process()
5273 if (ccb_h->flags & CAM_HIGH_POWER) { in xpt_done_process()
5307 if (ccb_h->path->bus) in xpt_done_process()
5308 sim = ccb_h->path->bus->sim; in xpt_done_process()
5310 if (ccb_h->status & CAM_RELEASE_SIMQ) { in xpt_done_process()
5313 ccb_h->status &= ~CAM_RELEASE_SIMQ; in xpt_done_process()
5316 if ((ccb_h->flags & CAM_DEV_QFRZDIS) in xpt_done_process()
5317 && (ccb_h->status & CAM_DEV_QFRZN)) { in xpt_done_process()
5318 xpt_release_devq(ccb_h->path, /*count*/1, /*run_queue*/TRUE); in xpt_done_process()
5319 ccb_h->status &= ~CAM_DEV_QFRZN; in xpt_done_process()
5322 if ((ccb_h->func_code & XPT_FC_USER_CCB) == 0) { in xpt_done_process()
5323 struct cam_ed *dev = ccb_h->path->device; in xpt_done_process()
5328 ccb_h, xpt_action_name(ccb_h->func_code))); in xpt_done_process()
5333 cam_ccbq_ccb_done(&dev->ccbq, (union ccb *)ccb_h); in xpt_done_process()
5343 && (ccb_h->status&CAM_STATUS_MASK) != CAM_REQUEUE_REQ)) { in xpt_done_process()
5355 mtx = xpt_path_mtx(ccb_h->path); in xpt_done_process()
5360 xpt_start_tags(ccb_h->path); in xpt_done_process()
5364 if ((ccb_h->flags & CAM_UNLOCKED) == 0) { in xpt_done_process()
5366 mtx = xpt_path_mtx(ccb_h->path); in xpt_done_process()
5377 ccb_h->pinfo.index = CAM_UNQUEUED_INDEX; in xpt_done_process()
5378 (*ccb_h->cbfcnp)(ccb_h->path->periph, (union ccb *)ccb_h); in xpt_done_process()
5390 struct ccb_hdr *ccb_h; in xpt_async_td() local
5402 while ((ccb_h = STAILQ_FIRST(&doneq)) != NULL) { in xpt_async_td()
5404 xpt_done_process(ccb_h); in xpt_async_td()
5415 struct ccb_hdr *ccb_h; in xpt_done_td() local
5431 while ((ccb_h = STAILQ_FIRST(&doneq)) != NULL) { in xpt_done_td()
5433 xpt_done_process(ccb_h); in xpt_done_td()
5444 struct ccb_hdr *ccb_h; in camisr_runqueue() local
5452 while ((ccb_h = STAILQ_FIRST(&queue->cam_doneq)) != NULL) { in camisr_runqueue()
5455 xpt_done_process(ccb_h); in camisr_runqueue()