Lines Matching refs:work_ccb
1944 union ccb *work_ccb, *reset_ccb; in scsi_scan_bus() local
1951 work_ccb = xpt_alloc_ccb_nowait(); in scsi_scan_bus()
1952 if (work_ccb == NULL) { in scsi_scan_bus()
1957 xpt_path_inq(&work_ccb->cpi, request_ccb->ccb_h.path); in scsi_scan_bus()
1958 if (work_ccb->ccb_h.status != CAM_REQ_CMP) { in scsi_scan_bus()
1959 request_ccb->ccb_h.status = work_ccb->ccb_h.status; in scsi_scan_bus()
1960 xpt_free_ccb(work_ccb); in scsi_scan_bus()
1965 if ((work_ccb->cpi.hba_misc & PIM_NOINITIATOR) != 0) { in scsi_scan_bus()
1971 xpt_free_ccb(work_ccb); in scsi_scan_bus()
1977 if ((work_ccb->cpi.hba_inquiry & in scsi_scan_bus()
1979 !(work_ccb->cpi.hba_misc & PIM_NOBUSRESET) && in scsi_scan_bus()
1989 xpt_free_ccb(work_ccb); in scsi_scan_bus()
1998 (work_ccb->cpi.max_target * sizeof (u_int)), M_CAMXPT, M_ZERO|M_NOWAIT); in scsi_scan_bus()
2001 xpt_free_ccb(work_ccb); in scsi_scan_bus()
2008 scan_info->cpi = &work_ccb->cpi; in scsi_scan_bus()
2051 work_ccb = xpt_alloc_ccb_nowait(); in scsi_scan_bus()
2052 if (work_ccb == NULL) { in scsi_scan_bus()
2059 xpt_setup_ccb(&work_ccb->ccb_h, path, in scsi_scan_bus()
2061 work_ccb->ccb_h.func_code = XPT_SCAN_LUN; in scsi_scan_bus()
2062 work_ccb->ccb_h.cbfcnp = scsi_scan_bus; in scsi_scan_bus()
2063 work_ccb->ccb_h.flags |= CAM_UNLOCKED; in scsi_scan_bus()
2064 work_ccb->ccb_h.ppriv_ptr0 = scan_info; in scsi_scan_bus()
2065 work_ccb->crcn.flags = request_ccb->crcn.flags; in scsi_scan_bus()
2066 xpt_action(work_ccb); in scsi_scan_bus()