Home
last modified time | relevance | path

Searched refs:ccb_h (Results 1 – 25 of 141) sorted by relevance

123456

/freebsd-12-stable/sys/dev/twa/
Dtw_osl_cam.c204 struct ccb_hdr *ccb_h = &(ccb->ccb_h); in tw_osli_execute_scsi() local
211 if (ccb_h->target_id >= TW_CL_MAX_NUM_UNITS) { in tw_osli_execute_scsi()
213 ccb_h->path_id, ccb_h->target_id, in tw_osli_execute_scsi()
214 (uintmax_t)ccb_h->target_lun); in tw_osli_execute_scsi()
215 ccb_h->status |= CAM_TID_INVALID; in tw_osli_execute_scsi()
219 if (ccb_h->target_lun >= TW_CL_MAX_NUM_LUNS) { in tw_osli_execute_scsi()
221 ccb_h->path_id, ccb_h->target_id, in tw_osli_execute_scsi()
222 (uintmax_t)ccb_h->target_lun); in tw_osli_execute_scsi()
223 ccb_h->status |= CAM_LUN_INVALID; in tw_osli_execute_scsi()
228 if(ccb_h->flags & CAM_CDB_PHYS) { in tw_osli_execute_scsi()
[all …]
/freebsd-12-stable/share/examples/scsi_target/
Dscsi_target.c338 struct ccb_hdr *ccb_h; in cleanup() local
348 while ((ccb_h = TAILQ_FIRST(&pending_queue)) != NULL) { in cleanup()
349 TAILQ_REMOVE(&pending_queue, ccb_h, periph_links.tqe); in cleanup()
350 free_ccb((union ccb *)ccb_h); in cleanup()
352 while ((ccb_h = TAILQ_FIRST(&work_queue)) != NULL) { in cleanup()
353 TAILQ_REMOVE(&work_queue, ccb_h, periph_links.tqe); in cleanup()
354 free_ccb((union ccb *)ccb_h); in cleanup()
383 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in init_ccbs()
384 atio->ccb_h.targ_descr = a_descr; in init_ccbs()
392 inot->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; in init_ccbs()
[all …]
/freebsd-12-stable/sys/cam/scsi/
Dscsi_targ_bh.c185 bus_path_id = cpi->ccb_h.path_id; in targbhasync()
244 xpt_setup_ccb(&immed_ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhenlun()
245 immed_ccb.ccb_h.func_code = XPT_EN_LUN; in targbhenlun()
252 status = immed_ccb.ccb_h.status; in targbhenlun()
276 atio->ccb_h.ccb_descr = targbhallocdescr(); in targbhenlun()
278 if (atio->ccb_h.ccb_descr == NULL) { in targbhenlun()
284 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhenlun()
285 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in targbhenlun()
286 atio->ccb_h.cbfcnp = targbhdone; in targbhenlun()
287 ((struct targbh_cmd_desc*)atio->ccb_h.ccb_descr)->atio_link = in targbhenlun()
[all …]
Dscsi_target.c282 xpt_setup_ccb(&cdbg.ccb_h, softc->path, CAM_PRIORITY_NORMAL); in targioctl()
283 cdbg.ccb_h.func_code = XPT_DEBUG; in targioctl()
284 cdbg.ccb_h.cbfcnp = targdone; in targioctl()
286 status = cdbg.ccb_h.status & CAM_STATUS_MASK; in targioctl()
368 xpt_setup_ccb(&en_ccb.ccb_h, path, CAM_PRIORITY_NORMAL); in targendislun()
369 en_ccb.ccb_h.func_code = XPT_EN_LUN; in targendislun()
375 status = en_ccb.ccb_h.status & CAM_STATUS_MASK; in targendislun()
397 status = cpi.ccb_h.status & CAM_STATUS_MASK; in targenable()
500 struct ccb_hdr *ccb_h; in targdtor() local
510 while ((ccb_h = TAILQ_FIRST(&softc->user_ccb_queue)) != NULL) { in targdtor()
[all …]
Dscsi_xpt.c675 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, in proberegister()
728 if (((ccb->ccb_h.path->device->flags & CAM_DEV_UNCONFIGURED) == 0) in probeschedule()
729 && (ccb->ccb_h.target_lun == 0)) { in probeschedule()
759 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); in probestart()
1043 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; in probestart()
1053 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); in proberequestdefaultnegotiation()
1054 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestdefaultnegotiation()
1060 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in proberequestdefaultnegotiation()
1075 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); in proberequestbackoff()
1076 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestbackoff()
[all …]
/freebsd-12-stable/sys/dev/isci/
Disci_io_request.c100 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in isci_io_request_complete()
106 if (ccb->ccb_h.func_code == XPT_SMP_IO) { in isci_io_request_complete()
115 ccb->ccb_h.status |= CAM_REQ_CMP; in isci_io_request_complete()
119 ccb->ccb_h.status |= CAM_REQ_CMP; in isci_io_request_complete()
144 ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR; in isci_io_request_complete()
145 ccb->ccb_h.status |= CAM_AUTOSNS_VALID; in isci_io_request_complete()
150 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete()
151 ccb->ccb_h.target_lun, scsiio_cdb_ptr(csio), in isci_io_request_complete()
158 ccb->ccb_h.status |= CAM_REQ_TERMIO; in isci_io_request_complete()
161 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete()
[all …]
/freebsd-12-stable/sys/dev/smartpqi/
Dsmartpqi_cam.c66 cpi->ccb_h.status = CAM_REQ_CMP; in update_sim_properties()
98 cts->ccb_h.status = CAM_REQ_CMP; in get_transport_settings()
119 if (xpt_create_path(&ccb->ccb_h.path, NULL, in os_add_device()
175 if (csio->ccb_h.status & CAM_RELEASE_SIMQ) in pqi_release_camq()
176 xpt_release_simq(xpt_path_sim(csio->ccb_h.path), 0); in pqi_release_camq()
178 csio->ccb_h.status |= CAM_RELEASE_SIMQ; in pqi_release_camq()
244 cdb = (csio->ccb_h.flags & CAM_CDB_POINTER) ? in smartpqi_fix_ld_inquiry()
248 (csio->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN && in smartpqi_fix_ld_inquiry()
253 device = softs->device_list[csio->ccb_h.target_id][csio->ccb_h.target_lun]; in smartpqi_fix_ld_inquiry()
313 csio->ccb_h.status = CAM_REQ_CMP; in os_io_response_success()
[all …]
/freebsd-12-stable/sys/dev/advansys/
Dadvansys.c161 cinfo = (struct adv_ccb_info *)ccb->ccb_h.ccb_cinfo_ptr; in adv_clear_state_really()
163 struct ccb_hdr *ccb_h; in adv_clear_state_really() local
169 ccb_h = LIST_FIRST(&adv->pending_ccbs); in adv_clear_state_really()
170 while (ccb_h != NULL) { in adv_clear_state_really()
171 cinfo = ccb_h->ccb_cinfo_ptr; in adv_clear_state_really()
173 SBT_1MS * ccb_h->timeout, 0, in adv_clear_state_really()
174 adv_timeout, ccb_h, 0); in adv_clear_state_really()
175 ccb_h = LIST_NEXT(ccb_h, sim_links.le); in adv_clear_state_really()
182 ccb->ccb_h.status |= CAM_RELEASE_SIMQ; in adv_clear_state_really()
199 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("adv_action\n")); in adv_action()
[all …]
Dadwcam.c133 LIST_REMOVE(&acb->ccb->ccb_h, sim_links.le); in adwfreeacb()
135 acb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; in adwfreeacb()
137 && (acb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { in adwfreeacb()
138 acb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; in adwfreeacb()
236 adw = (struct adw_softc *)ccb->ccb_h.ccb_adw_ptr; in adwexecuteacb()
244 if (ccb->ccb_h.status == CAM_REQ_INPROG) { in adwexecuteacb()
245 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1); in adwexecuteacb()
246 ccb->ccb_h.status = CAM_REQ_TOO_BIG|CAM_DEV_QFRZN; in adwexecuteacb()
299 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) in adwexecuteacb()
316 if (ccb->ccb_h.status != CAM_REQ_INPROG) { in adwexecuteacb()
[all …]
/freebsd-12-stable/sys/dev/aic/
Daic.c98 (scb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { in aic_free_scb()
99 scb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; in aic_free_scb()
111 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aic_action\n")); in aic_action()
116 switch (ccb->ccb_h.func_code) { in aic_action()
125 ccb->ccb_h.status = CAM_REQUEUE_REQ; in aic_action()
131 ccb->ccb_h.ccb_scb_ptr = scb; in aic_action()
132 ccb->ccb_h.ccb_aic_ptr = aic; in aic_action()
134 scb->target = ccb->ccb_h.target_id; in aic_action()
135 scb->lun = ccb->ccb_h.target_lun; in aic_action()
137 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in aic_action()
[all …]
/freebsd-12-stable/sys/cam/
Dcam_periph.c754 ccb.ccb_h.func_code = XPT_GDEV_TYPE; in camperiphfree()
755 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in camperiphfree()
797 switch(ccb->ccb_h.func_code) { in cam_periph_mapmem()
826 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) in cam_periph_mapmem()
828 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) in cam_periph_mapmem()
832 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; in cam_periph_mapmem()
836 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) in cam_periph_mapmem()
838 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) in cam_periph_mapmem()
842 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; in cam_periph_mapmem()
846 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) in cam_periph_mapmem()
[all …]
Dcam_ccb.h263 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED)
265 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0)
364 struct ccb_hdr ccb_h; member
376 struct ccb_hdr ccb_h; member
401 struct ccb_hdr ccb_h; member
568 struct ccb_hdr ccb_h; member
649 struct ccb_hdr ccb_h; member
688 struct ccb_hdr ccb_h; member
708 struct ccb_hdr ccb_h; member
738 struct ccb_hdr ccb_h; member
[all …]
Dcam_xpt.c275 static void xpt_done_process(struct ccb_hdr *ccb_h);
431 if (inccb->ccb_h.func_code == XPT_SCSI_IO) in xptdoioctl()
435 if (inccb->ccb_h.flags & CAM_UNLOCKED) in xptdoioctl()
438 bus = xpt_find_bus(inccb->ccb_h.path_id); in xptdoioctl()
442 switch (inccb->ccb_h.func_code) { in xptdoioctl()
445 if (inccb->ccb_h.target_id != CAM_TARGET_WILDCARD || in xptdoioctl()
446 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { in xptdoioctl()
452 if (inccb->ccb_h.target_id == CAM_TARGET_WILDCARD || in xptdoioctl()
453 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { in xptdoioctl()
462 switch(inccb->ccb_h.func_code) { in xptdoioctl()
[all …]
/freebsd-12-stable/sys/dev/iscsi_initiator/
Disc_cam.c69 …debug(3, "sid=%d target=%d lun=%jx", sp->sid, ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_l… in _inq()
85 cpi->ccb_h.status = CAM_REQ_CMP; in _inq()
127 isc_session_t *sp = (isc_session_t *)ccb->ccb_h.spriv_ptr0; in scan_callback()
151 ccb->ccb_h.path = sp->cam_path; in ic_scan()
152 ccb->ccb_h.cbfcnp = scan_callback; in ic_scan()
153 ccb->ccb_h.spriv_ptr0 = sp; in ic_scan()
174 struct ccb_hdr *ccb_h = &ccb->ccb_h; in ic_action() local
178 ccb_h->spriv_ptr0 = sp; in ic_action()
180 ccb_h->func_code, ccb->ccb_h.flags, ccb->ccb_h.status, in ic_action()
181 ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun, in ic_action()
[all …]
/freebsd-12-stable/sys/cam/mmc/
Dmmc_xpt.c248 if (cpi.ccb_h.status != CAM_REQ_CMP) { in mmc_scan_lun()
250 request_ccb->ccb_h.status = cpi.ccb_h.status; in mmc_scan_lun()
258 request_ccb->ccb_h.status = CAM_REQ_CMP; /* XXX signal error ? */ in mmc_scan_lun()
277 request_ccb->ccb_h.status = CAM_REQ_CMP_ERR; in mmc_scan_lun()
280 request_ccb->ccb_h.status = CAM_REQ_CMP_ERR; in mmc_scan_lun()
297 request_ccb->ccb_h.status = status; in mmc_scan_lun()
308 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, in mmc_action()
309 ("mmc_action! func_code=%x, action %s\n", start_ccb->ccb_h.func_code, in mmc_action()
310 xpt_action_name(start_ccb->ccb_h.func_code))); in mmc_action()
311 switch (start_ccb->ccb_h.func_code) { in mmc_action()
[all …]
/freebsd-12-stable/sys/cam/ctl/
Dctl_frontend_cam_sim.c254 if (xpt_create_path(&ccb->ccb_h.path, NULL, in cfcs_onoffline()
305 KASSERT(((ccb->ccb_h.flags & CFCS_BAD_CCB_FLAGS) == 0), ("invalid " in cfcs_datamove()
306 "CAM flags %#x", (ccb->ccb_h.flags & CFCS_BAD_CCB_FLAGS))); in cfcs_datamove()
312 switch ((ccb->ccb_h.flags & CAM_DATA_MASK)) { in cfcs_datamove()
342 panic("Invalid CAM flags %#x", ccb->ccb_h.flags); in cfcs_datamove()
414 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in cfcs_datamove()
415 ccb->ccb_h.status |= CAM_REQ_CMP; in cfcs_datamove()
442 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in cfcs_done()
446 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in cfcs_done()
449 ccb->ccb_h.status |= CAM_REQ_CMP; in cfcs_done()
[all …]
Dscsi_ctl.c325 softc->path_id = cpi->ccb_h.path_id; in ctlfeasync()
483 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NONE); in ctlferegister()
484 ccb.ccb_h.func_code = XPT_EN_LUN; in ctlferegister()
489 status = (ccb.ccb_h.status & CAM_STATUS_MASK); in ctlferegister()
492 __func__, ccb.ccb_h.status); in ctlferegister()
525 new_ccb->ccb_h.io_ptr = new_io; in ctlferegister()
526 LIST_INSERT_HEAD(&softc->atio_list, &new_ccb->ccb_h, periph_links.le); in ctlferegister()
528 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, CAM_PRIORITY_NONE); in ctlferegister()
529 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in ctlferegister()
530 new_ccb->ccb_h.cbfcnp = ctlfedone; in ctlferegister()
[all …]
/freebsd-12-stable/sys/powerpc/mpc85xx/
Dfsl_sata.c721 if (xpt_create_path(&ccb->ccb_h.path, NULL, in fsl_sata_phy_check_events()
758 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 || in fsl_sata_done()
764 STAILQ_INSERT_TAIL(&ch->doneq, &ccb->ccb_h, sim_links.stqe); in fsl_sata_done()
771 struct ccb_hdr *ccb_h; in fsl_sata_intr() local
790 while ((ccb_h = STAILQ_FIRST(&tmp_doneq)) != NULL) { in fsl_sata_intr()
792 xpt_done_direct((union ccb *)ccb_h); in fsl_sata_intr()
856 fccb->ccb_h.status = CAM_REQUEUE_REQ | CAM_RELEASE_SIMQ; in fsl_sata_intr_main()
857 if (!(fccb->ccb_h.status & CAM_DEV_QFRZN)) { in fsl_sata_intr_main()
858 xpt_freeze_devq(fccb->ccb_h.path, 1); in fsl_sata_intr_main()
859 fccb->ccb_h.status |= CAM_DEV_QFRZN; in fsl_sata_intr_main()
[all …]
/freebsd-12-stable/sys/dev/aic7xxx/
Daic79xx_osm.c270 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); in ahd_attach()
271 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahd_attach()
318 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, in ahd_done()
328 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in ahd_done()
331 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) in ahd_done()
340 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_done()
349 ccb_path = ccb->ccb_h.path; in ahd_done()
353 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) { in ahd_done()
356 xpt_print_path(ccb->ccb_h.path); in ahd_done()
363 ccb->ccb_h.status |= CAM_REQ_CMP; in ahd_done()
[all …]
Daic7xxx_osm.c220 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); in ahc_attach()
221 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach()
261 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5); in ahc_attach()
262 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach()
320 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, in ahc_done()
340 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in ahc_done()
343 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) in ahc_done()
351 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahc_done()
360 ccb_path = ccb->ccb_h.path; in ahc_done()
364 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) { in ahc_done()
[all …]
/freebsd-12-stable/sys/dev/aacraid/
Daacraid_cam.c166 ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR; in aac_set_scsi_error()
169 ccb->ccb_h.status |= CAM_AUTOSNS_VALID; in aac_set_scsi_error()
206 if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, in aac_cam_rescan()
229 camsc = ccb->ccb_h.sim_priv.entries[0].ptr; in aac_cam_event()
232 ccb->ccb_h.status = CAM_REQUEUE_REQ; in aac_cam_event()
387 ccb->ccb_h.status = CAM_RESRC_UNAVAIL; in aac_container_rw_command()
388 ccb->ccb_h.sim_priv.entries[0].ptr = camsc; in aac_container_rw_command()
404 switch (ccb->ccb_h.flags & CAM_DIR_MASK) { in aac_container_rw_command()
445 raw->ldNum = ccb->ccb_h.target_id; in aac_container_rw_command()
459 raw->ContainerId = ccb->ccb_h.target_id; in aac_container_rw_command()
[all …]
/freebsd-12-stable/sys/cam/ata/
Data_xpt.c299 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, in proberegister()
349 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); in probestart()
352 path = start_ccb->ccb_h.path; in probestart()
412 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in probestart()
413 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in probestart()
435 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in probestart()
436 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in probestart()
448 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in probestart()
449 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in probestart()
548 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in probestart()
[all …]
/freebsd-12-stable/sys/dev/ocs_fc/
Docs_cam.c572 atio->ccb_h.status = CAM_CDB_RECVD; in ocs_scsi_recv_cmd()
573 atio->ccb_h.target_lun = lun; in ocs_scsi_recv_cmd()
578 atio->ccb_h.ccb_io_ptr = io; in ocs_scsi_recv_cmd()
720 inot->ccb_h.status = CAM_MESSAGE_RECV; in ocs_scsi_recv_tmf()
721 inot->ccb_h.target_lun = lun; in ocs_scsi_recv_tmf()
736 STAILQ_INSERT_TAIL(&trsrc->inot, &inot->ccb_h, sim_links.stqe); in ocs_scsi_recv_tmf()
761 STAILQ_INSERT_TAIL(&trsrc->inot, &inot->ccb_h, sim_links.stqe); in ocs_scsi_recv_tmf()
767 xpt_print(inot->ccb_h.path, "%s: func=%#x stat=%#x id=%#x lun=%#x" in ocs_scsi_recv_tmf()
769 __func__, inot->ccb_h.func_code, inot->ccb_h.status, in ocs_scsi_recv_tmf()
770 inot->ccb_h.target_id, in ocs_scsi_recv_tmf()
[all …]
/freebsd-12-stable/sys/dev/aha/
Daha.c693 LIST_REMOVE(&accb->ccb->ccb_h, sim_links.le); in ahafreeccb()
695 && (accb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { in ahafreeccb()
696 accb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; in ahafreeccb()
733 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("ahaaction\n")); in ahaaction()
738 switch (ccb->ccb_h.func_code) { in ahaaction()
751 ccb->ccb_h.status = CAM_REQUEUE_REQ; in ahaaction()
761 ccb->ccb_h.ccb_accb_ptr = accb; in ahaaction()
762 ccb->ccb_h.ccb_aha_ptr = aha; in ahaaction()
767 hccb->target = ccb->ccb_h.target_id; in ahaaction()
768 hccb->lun = ccb->ccb_h.target_lun; in ahaaction()
[all …]
/freebsd-12-stable/sys/dev/amr/
Damr_cam.c123 TAILQ_INSERT_TAIL(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); in amr_enqueue_ccb()
130 TAILQ_INSERT_HEAD(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); in amr_requeue_ccb()
139 TAILQ_REMOVE(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); in amr_dequeue_ccb()
249 switch(ccb->ccb_h.func_code) { in amr_cam_action()
256 struct ccb_hdr *ccbh = &ccb->ccb_h; in amr_cam_action()
290 if (csio->ccb_h.target_lun != 0) in amr_cam_action()
297 csio->ccb_h.sim_priv.entries[0].field= cam_sim_bus(sim); in amr_cam_action()
338 cpi->ccb_h.status = CAM_REQ_CMP; in amr_cam_action()
348 cpi->ccb_h.status = CAM_REQ_CMP; in amr_cam_action()
355 ccb->ccb_h.status = CAM_REQ_CMP; in amr_cam_action()
[all …]

123456