Searched refs:ccb (Results 101 - 125 of 203) sorted by relevance

123456789

/freebsd-11-stable/sys/dev/firewire/
H A Dsbp.c142 union ccb *ccb; member in struct:sbp_ocb
254 static void sbp_action(struct cam_sim *sim, union ccb *ccb);
256 static void sbp_cam_scan_lun(struct cam_periph *, union ccb *);
969 sbp_cam_scan_lun(struct cam_periph *periph, union ccb *ccb) argument
975 sdev = (struct sbp_dev *) ccb->ccb_h.ccb_sdev_ptr;
983 if ((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) {
992 free(ccb, M_SB
1011 union ccb *ccb; local
1024 ccb = malloc(sizeof(union ccb), M_SBP, M_NOWAIT | M_ZERO); local
1556 union ccb *ccb; local
1831 union ccb *ccb; local
2275 sbp_action(struct cam_sim *sim, union ccb *ccb) argument
[all...]
/freebsd-11-stable/sys/cam/ata/
H A Data_da.c815 static int ada_zone_cmd(struct cam_periph *periph, union ccb *ccb,
818 static void adaprobedone(struct cam_periph *periph, union ccb *ccb);
819 static void adazonedone(struct cam_periph *periph, union ccb *ccb);
821 union ccb *done_ccb);
822 static int adaerror(union ccb *ccb, u_int32_t cam_flags,
962 union ccb *cc local
1077 union ccb ccb; local
2033 ada_zone_cmd(struct cam_periph *periph, union ccb *ccb, struct bio *bp, int *queue_ccb) argument
2583 adaprobedone(struct cam_periph *periph, union ccb *ccb) argument
2604 adazonedone(struct cam_periph *periph, union ccb *ccb) argument
3284 adaerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) argument
3435 union ccb *ccb; local
3488 union ccb *ccb; local
[all...]
H A Data_xpt.c166 static void probestart(struct cam_periph *periph, union ccb *start_ccb);
168 static void probedone(struct cam_periph *periph, union ccb *done_ccb);
171 static void ata_scan_bus(struct cam_periph *periph, union ccb *ccb);
174 union ccb *ccb);
175 static void xptscandone(struct cam_periph *periph, union ccb *done_ccb);
189 static void ata_action(union ccb *start_ccb);
193 static void ata_proto_debug_out(union ccb *ccb);
305 union ccb *ccb; local
2197 ata_proto_debug_out(union ccb *ccb) argument
[all...]
/freebsd-11-stable/sys/cam/scsi/
H A Dscsi_da.c247 typedef void da_delete_func_t (struct cam_periph *periph, union ccb *ccb,
332 union ccb saved_ccb;
1420 static void daprobedone(struct cam_periph *periph, union ccb *ccb);
1426 static void dazonedone(struct cam_periph *periph, union ccb *ccb);
1428 union ccb *done_ccb);
1429 static int daerror(union ccb *ccb, u_int32_
1570 union ccb *ccb; local
1936 union ccb *ccb; local
2283 daprobedone(struct cam_periph *periph, union ccb *ccb) argument
2711 da_zone_cmd(struct cam_periph *periph, union ccb *ccb, struct bio *bp, int *queue_ccb) argument
3655 da_delete_unmap(struct cam_periph *periph, union ccb *ccb, struct bio *bp) argument
3791 da_delete_trim(struct cam_periph *periph, union ccb *ccb, struct bio *bp) argument
3880 da_delete_ws(struct cam_periph *periph, union ccb *ccb, struct bio *bp) argument
3935 cmd6workaround(union ccb *ccb) argument
4039 dazonedone(struct cam_periph *periph, union ccb *ccb) argument
5462 daerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) argument
5563 union ccb *ccb; local
5745 union ccb *ccb; local
[all...]
H A Dscsi_pt.c83 union ccb saved_ccb;
99 union ccb *done_ccb);
101 static int pterror(union ccb *ccb, u_int32_t cam_flags,
105 void (*cbfcnp)(struct cam_periph *, union ccb *),
420 ptstart(struct cam_periph *periph, union ccb *start_ccb)
455 * while we touch the pending ccb list.
473 ptdone(struct cam_periph *periph, union ccb *done_ccb)
549 * while we touch the pending ccb list.
561 pterror(union ccb *cc argument
[all...]
H A Dscsi_xpt.c189 union ccb saved_ccb;
569 static void probestart(struct cam_periph *periph, union ccb *start_ccb);
573 static void probedone(struct cam_periph *periph, union ccb *done_ccb);
579 static void scsi_scan_bus(struct cam_periph *periph, union ccb *ccb);
582 union ccb *ccb);
583 static void xptscandone(struct cam_periph *periph, union ccb *done_ccb);
597 static void scsi_action(union ccb *start_ccb);
601 static void scsi_proto_debug_out(union ccb *cc
694 union ccb *ccb; local
3144 scsi_proto_debug_out(union ccb *ccb) argument
[all...]
H A Dscsi_ch.h472 void (*cbfcnp)(struct cam_periph *, union ccb *),
478 void (*cbfcnp)(struct cam_periph *, union ccb *),
484 void (*cbfcnp)(struct cam_periph *, union ccb *),
490 void (*cbfcnp)(struct cam_periph *, union ccb *),
498 void (*cbfcnp)(struct cam_periph *, union ccb *),
502 void (*cbfcnp)(struct cam_periph *, union ccb *),
H A Dscsi_enc_safte.c233 union ccb *ccb, uint8_t *buf)
243 semb_read_buffer(&ccb->ataio, /*retries*/5,
248 scsi_read_buffer(&ccb->csio, /*retries*/5,
258 union ccb *ccb, uint8_t **bufp, int error, int xfer_len)
329 union ccb *ccb, uint8_t **bufp, int error, int xfer_len)
354 union ccb *ccb, uint8_
232 safte_fill_read_buf_io(enc_softc_t *enc, struct enc_fsm_state *state, union ccb *ccb, uint8_t *buf) argument
257 safte_process_config(enc_softc_t *enc, struct enc_fsm_state *state, union ccb *ccb, uint8_t **bufp, int error, int xfer_len) argument
328 safte_process_gflags(enc_softc_t *enc, struct enc_fsm_state *state, union ccb *ccb, uint8_t **bufp, int error, int xfer_len) argument
353 safte_process_status(enc_softc_t *enc, struct enc_fsm_state *state, union ccb *ccb, uint8_t **bufp, int error, int xfer_len) argument
662 safte_process_slotstatus(enc_softc_t *enc, struct enc_fsm_state *state, union ccb *ccb, uint8_t **bufp, int error, int xfer_len) argument
731 safte_fill_control_request(enc_softc_t *enc, struct enc_fsm_state *state, union ccb *ccb, uint8_t *buf) argument
952 safte_process_control_request(enc_softc_t *enc, struct enc_fsm_state *state, union ccb *ccb, uint8_t **bufp, int error, int xfer_len) argument
[all...]
H A Dscsi_low.c61 * 3) Qtag msg => ccb nexus (slp->sl_Qnexus)
367 void scsi_low_scsi_action_cam(struct cam_sim *, union ccb *);
415 scsi_low_scsi_action_cam(sim, ccb)
417 union ccb *ccb;
427 target = (u_int) (ccb->ccb_h.target_id);
428 lun = (u_int) ccb->ccb_h.target_lun;
435 ccb->ccb_h.func_code, target, lun);
439 switch (ccb->ccb_h.func_code) {
445 ccb
798 union ccb *ccb = (union ccb *) cb->osdep; local
824 union ccb *ccb; local
[all...]
H A Dscsi_sa.h975 void (*cbfcnp)(struct cam_periph *, union ccb *),
980 void (*cbfcnp)(struct cam_periph *, union ccb *),
987 void (*cbfcnp)(struct cam_periph *, union ccb *),
992 void (*cbfcnp)(struct cam_periph *, union ccb *),
997 void (*cbfcnp)(struct cam_periph *, union ccb *),
1003 void (*cbfcnp)(struct cam_periph *, union ccb *),
1010 union ccb *), u_int8_t tag_action,
1016 void (*cbfcnp)(struct cam_periph *, union ccb *),
1026 void (*cbfcnp)(struct cam_periph *, union ccb *),
1031 void (*cbfcnp)(struct cam_periph *, union ccb *),
[all...]
/freebsd-11-stable/sys/cam/
H A Dcam_ccb.h87 CAM_TAG_ACTION_VALID = 0x00008000,/* Use the tag action in this ccb*/
259 #define XPT_FC_IS_DEV_QUEUED(ccb) \
260 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED)
261 #define XPT_FC_IS_QUEUED(ccb) \
262 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0)
339 void (*cbfcnp)(struct cam_periph *, union ccb *);
343 struct cam_path *path; /* Compiled path for this ccb */
729 union ccb *next_ccb; /* Ptr for next CCB for action */
756 scsiio_cdb_ptr(struct ccb_scsiio *ccb) argument
758 return ((ccb
791 atio_cdb_ptr(struct ccb_accept_tio *ccb) argument
1262 union ccb { union
1425 cam_set_ccbstatus(union ccb *ccb, cam_status status) argument
1432 cam_ccb_status(union ccb *ccb) argument
[all...]
H A Dcam_sim.h48 typedef void (*sim_action_func)(struct cam_sim *sim, union ccb *ccb);
H A Dcam_compat.h45 /* The size of the union ccb didn't change when going to 0x17 */
62 void (*cbfcnp)(struct cam_periph *, union ccb *);
65 struct cam_path *path; /* Compiled path for this ccb */
150 void (*cbfcnp)(struct cam_periph *, union ccb *);
153 struct cam_path *path; /* Compiled path for this ccb */
216 #define CAM_0X18_DATA_LEN (sizeof(union ccb) - 2*sizeof(void *) - sizeof(struct ccb_hdr))
/freebsd-11-stable/sys/cam/nvme/
H A Dnvme_da.c136 union ccb *done_ccb);
137 static int ndaerror(union ccb *ccb, u_int32_t cam_flags,
288 union ccb *ccb; local
302 ccb = cam_periph_getccb(periph, CAM_PRIORITY_NORMAL);
303 nda_nvme_flush(softc, &ccb->nvmeio);
304 error = cam_periph_runccb(ccb, ndaerror, /*cam_flags*/0,
311 xpt_release_ccb(ccb);
401 /* xpt_get_ccb returns a zero'd allocation for the ccb, mimi
1049 ndaerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) argument
1089 union ccb *ccb; local
[all...]
/freebsd-11-stable/usr.sbin/camdd/
H A Dcamdd.c185 union ccb ccb; member in struct:camdd_buf_data
488 camdd_buf_status camdd_ccb_status(union ccb *ccb);
1258 union ccb *ccb; local
1293 ccb = cam_getccb(cam_dev);
1295 if (ccb == NULL) {
1296 warnx("%s: error allocating ccb", __func__);
1300 CCB_CLEAR_ALL_EXCEPT_HDR(&ccb
1714 camdd_ccb_status(union ccb *ccb) argument
2110 union ccb ccb; local
2404 union ccb *ccb; local
[all...]
/freebsd-11-stable/sys/dev/isci/
H A Disci_domain.c299 union ccb *ccb = xpt_alloc_ccb_nowait(); local
303 xpt_create_path(&ccb->ccb_h.path, NULL, path,
306 xpt_rescan(ccb);
/freebsd-11-stable/sbin/camcontrol/
H A Dpersist.c431 union ccb *ccb = NULL; local
449 ccb = cam_getccb(device);
450 if (ccb == NULL) {
456 CCB_CLEAR_ALL_EXCEPT_HDR(&ccb->csio);
757 scsi_persistent_reserve_in(&ccb->csio,
839 scsi_persistent_reserve_out(&ccb->csio,
853 ccb->ccb_h.flags |= CAM_DEV_QFRZDIS;
856 ccb->ccb_h.flags |= CAM_PASS_ERR_RECOVER;
858 if (cam_send_ccb(device, ccb) <
[all...]
/freebsd-11-stable/sys/sys/
H A Dbus_dma.h108 union ccb;
224 int bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb,
/freebsd-11-stable/sys/kern/
H A Dsubr_bus_dma.c182 _bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb, argument
192 ccb_h = &ccb->ccb_h;
197 csio = &ccb->csio;
206 ctio = &ccb->ctio;
215 ataio = &ccb->ataio;
225 nvmeio = &ccb->nvmeio;
416 bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb, argument
426 ccb_h = &ccb
[all...]
/freebsd-11-stable/sys/dev/advansys/
H A Dadvlib.c978 union ccb *ccb; local
1021 ccb = adv->ccb_infos[cinfo_index].ccb;
1022 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1);
1023 ccb->ccb_h.status |= CAM_DEV_QFRZN;
1025 /*ccb*/NULL, CAM_REQUEUE_REQ,
1034 callout_reset(&cinfo->timer, 5 * hz, adv_timeout, ccb);
1054 union ccb *ccb; local
1910 union ccb *ccb; local
1995 adv_abort_ccb(struct adv_softc *adv, int target, int lun, union ccb *ccb, u_int32_t status, int queued_only) argument
2048 union ccb *ccb; local
[all...]
/freebsd-11-stable/sys/dev/pms/freebsd/driver/ini/src/
H A Dagtiproto.h25 int agtiapi_QueueCmnd_(struct agtiapi_softc *, union ccb * );
38 int agtiapi_eh_HostReset( struct agtiapi_softc *pmcsc, union ccb *cmnd );
51 static int agtiapi_QueueSMP(struct agtiapi_softc *, union ccb * );
/freebsd-11-stable/sys/dev/aic7xxx/
H A Daic_osm_lib.h106 typedef union ccb *aic_io_ctx_t;
257 static __inline void aic_freeze_ccb(union ccb *ccb);
342 aic_freeze_ccb(union ccb *ccb) argument
344 if ((ccb->ccb_h.status & CAM_DEV_QFRZN) == 0) {
345 ccb->ccb_h.status |= CAM_DEV_QFRZN;
346 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1);
/freebsd-11-stable/tools/tools/vhba/mptest/
H A Dvhba_mptest.c125 xpt_done((union ccb *)ccbh);
438 union ccb *ccb; local
439 ccb = xpt_alloc_ccb_nowait();
440 if (ccb == NULL) {
443 if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, cam_sim_path(vhba->sim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
444 xpt_free_ccb(ccb);
448 xpt_rescan(ccb);
/freebsd-11-stable/sys/dev/iscsi_initiator/
H A Discsivar.h186 union ccb *ccb; member in struct:pduq
248 int scsi_encap(struct cam_sim *sim, union ccb *ccb);
273 XPT_DONE(isc_session_t *sp, union ccb *ccb) argument
276 xpt_done(ccb);
284 XPT_DONE(isc_session_t *sp, union ccb *ccb) argument
287 xpt_done(ccb);
[all...]
/freebsd-11-stable/sbin/iscontrol/
H A Dfsm.c350 union ccb *ccb; local
376 ccb = cam_getccb(sess->camdev);
377 CCB_CLEAR_ALL_EXCEPT_HDR(&ccb->crs);
378 ccb->ccb_h.func_code = XPT_REL_SIMQ;
379 ccb->crs.release_flags = RELSIM_ADJUST_OPENINGS;
380 ccb->crs.openings = sess->op->tags;
381 if(cam_send_ccb(sess->camdev, ccb) < 0)
384 if((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
386 // cam_error_print(sess->camdev, ccb, CAM_ESF_AL
[all...]

Completed in 339 milliseconds

123456789