Lines Matching defs:ccb
87 static void mfip_cam_action(struct cam_sim *, union ccb *);
206 mfip_cam_action(struct cam_sim *sim, union ccb *ccb)
213 switch (ccb->ccb_h.func_code) {
216 struct ccb_pathinq *cpi = &ccb->cpi;
240 ccb->ccb_h.status = CAM_REQ_CMP;
243 ccb->ccb_h.status = CAM_REQ_CMP;
248 &ccb->cts.proto_specific.scsi;
250 &ccb->cts.xport_specific.sas;
252 ccb->cts.protocol = PROTO_SCSI;
253 ccb->cts.protocol_version = SCSI_REV_2;
254 ccb->cts.transport = XPORT_SAS;
255 ccb->cts.transport_version = 0;
263 ccb->ccb_h.status = CAM_REQ_CMP;
267 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
271 struct ccb_hdr *ccbh = &ccb->ccb_h;
272 struct ccb_scsiio *csio = &ccb->csio;
285 ccb->ccb_h.status = CAM_REQ_INVALID;
289 xpt_done(ccb);
296 union ccb *ccb;
317 ccb = xpt_alloc_ccb_nowait();
318 if (ccb == NULL) {
321 "Cannot allocate ccb for bus rescan.\n");
326 if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(sim),
328 xpt_free_ccb(ccb);
334 xpt_rescan(ccb);
343 union ccb *ccb = data;
344 struct ccb_hdr *ccbh = &ccb->ccb_h;
345 struct ccb_scsiio *csio = &ccb->csio;
379 cm->cm_private = ccb;
382 cm->cm_data = ccb;
406 union ccb *ccb = cm->cm_private;
407 struct ccb_hdr *ccbh = &ccb->ccb_h;
408 struct ccb_scsiio *csio = &ccb->csio;
466 xpt_done(ccb);