Lines Matching refs:scb
229 ahc_scb_timer_reset(struct scb *scb, u_int usec) in ahc_scb_timer_reset() argument
519 static inline void ahc_set_transaction_status(struct scb *, uint32_t);
521 static inline void ahc_set_scsi_status(struct scb *, uint32_t);
523 static inline uint32_t ahc_get_transaction_status(struct scb *);
525 static inline uint32_t ahc_get_scsi_status(struct scb *);
526 static inline void ahc_set_transaction_tag(struct scb *, int, u_int);
527 static inline u_long ahc_get_transfer_length(struct scb *);
528 static inline int ahc_get_transfer_dir(struct scb *);
529 static inline void ahc_set_residual(struct scb *, u_long);
530 static inline void ahc_set_sense_residual(struct scb *scb, u_long resid);
531 static inline u_long ahc_get_residual(struct scb *);
532 static inline u_long ahc_get_sense_residual(struct scb *);
533 static inline int ahc_perform_autosense(struct scb *);
535 struct scb *);
539 struct scb *scb);
540 static inline void ahc_freeze_scb(struct scb *scb);
550 void ahc_set_transaction_status(struct scb *scb, uint32_t status) in ahc_set_transaction_status() argument
552 ahc_cmd_set_transaction_status(scb->io_ctx,status); in ahc_set_transaction_status()
563 void ahc_set_scsi_status(struct scb *scb, uint32_t status) in ahc_set_scsi_status() argument
565 ahc_cmd_set_scsi_status(scb->io_ctx, status); in ahc_set_scsi_status()
575 uint32_t ahc_get_transaction_status(struct scb *scb) in ahc_get_transaction_status() argument
577 return (ahc_cmd_get_transaction_status(scb->io_ctx)); in ahc_get_transaction_status()
587 uint32_t ahc_get_scsi_status(struct scb *scb) in ahc_get_scsi_status() argument
589 return (ahc_cmd_get_scsi_status(scb->io_ctx)); in ahc_get_scsi_status()
593 void ahc_set_transaction_tag(struct scb *scb, int enabled, u_int type) in ahc_set_transaction_tag() argument
602 u_long ahc_get_transfer_length(struct scb *scb) in ahc_get_transfer_length() argument
604 return (scb->platform_data->xfer_len); in ahc_get_transfer_length()
608 int ahc_get_transfer_dir(struct scb *scb) in ahc_get_transfer_dir() argument
610 return (scb->io_ctx->sc_data_direction); in ahc_get_transfer_dir()
614 void ahc_set_residual(struct scb *scb, u_long resid) in ahc_set_residual() argument
616 scsi_set_resid(scb->io_ctx, resid); in ahc_set_residual()
620 void ahc_set_sense_residual(struct scb *scb, u_long resid) in ahc_set_sense_residual() argument
622 scb->platform_data->sense_resid = resid; in ahc_set_sense_residual()
626 u_long ahc_get_residual(struct scb *scb) in ahc_get_residual() argument
628 return scsi_get_resid(scb->io_ctx); in ahc_get_residual()
632 u_long ahc_get_sense_residual(struct scb *scb) in ahc_get_sense_residual() argument
634 return (scb->platform_data->sense_resid); in ahc_get_sense_residual()
638 int ahc_perform_autosense(struct scb *scb) in ahc_perform_autosense() argument
649 ahc_get_sense_bufsize(struct ahc_softc *ahc, struct scb *scb) in ahc_get_sense_bufsize() argument
662 ahc_platform_scb_free(struct ahc_softc *ahc, struct scb *scb) in ahc_platform_scb_free() argument
668 void ahc_platform_freeze_devq(struct ahc_softc *ahc, struct scb *scb);
671 ahc_freeze_scb(struct scb *scb) in ahc_freeze_scb() argument
673 if ((scb->io_ctx->result & (CAM_DEV_QFRZN << 16)) == 0) { in ahc_freeze_scb()
674 scb->io_ctx->result |= CAM_DEV_QFRZN << 16; in ahc_freeze_scb()
675 scb->platform_data->dev->qfrozen++; in ahc_freeze_scb()
687 void ahc_done(struct ahc_softc*, struct scb*);
690 void ahc_print_path(struct ahc_softc *, struct scb *);