Lines Matching refs:scb
234 ahc_scb_timer_reset(struct scb *scb, u_int usec) in ahc_scb_timer_reset() argument
524 static inline void ahc_set_transaction_status(struct scb *, uint32_t);
526 static inline void ahc_set_scsi_status(struct scb *, uint32_t);
528 static inline uint32_t ahc_get_transaction_status(struct scb *);
530 static inline uint32_t ahc_get_scsi_status(struct scb *);
531 static inline void ahc_set_transaction_tag(struct scb *, int, u_int);
532 static inline u_long ahc_get_transfer_length(struct scb *);
533 static inline int ahc_get_transfer_dir(struct scb *);
534 static inline void ahc_set_residual(struct scb *, u_long);
535 static inline void ahc_set_sense_residual(struct scb *scb, u_long resid);
536 static inline u_long ahc_get_residual(struct scb *);
537 static inline u_long ahc_get_sense_residual(struct scb *);
538 static inline int ahc_perform_autosense(struct scb *);
540 struct scb *);
544 struct scb *scb);
545 static inline void ahc_freeze_scb(struct scb *scb);
555 void ahc_set_transaction_status(struct scb *scb, uint32_t status) in ahc_set_transaction_status() argument
557 ahc_cmd_set_transaction_status(scb->io_ctx,status); in ahc_set_transaction_status()
568 void ahc_set_scsi_status(struct scb *scb, uint32_t status) in ahc_set_scsi_status() argument
570 ahc_cmd_set_scsi_status(scb->io_ctx, status); in ahc_set_scsi_status()
580 uint32_t ahc_get_transaction_status(struct scb *scb) in ahc_get_transaction_status() argument
582 return (ahc_cmd_get_transaction_status(scb->io_ctx)); in ahc_get_transaction_status()
592 uint32_t ahc_get_scsi_status(struct scb *scb) in ahc_get_scsi_status() argument
594 return (ahc_cmd_get_scsi_status(scb->io_ctx)); in ahc_get_scsi_status()
598 void ahc_set_transaction_tag(struct scb *scb, int enabled, u_int type) in ahc_set_transaction_tag() argument
607 u_long ahc_get_transfer_length(struct scb *scb) in ahc_get_transfer_length() argument
609 return (scb->platform_data->xfer_len); in ahc_get_transfer_length()
613 int ahc_get_transfer_dir(struct scb *scb) in ahc_get_transfer_dir() argument
615 return (scb->io_ctx->sc_data_direction); in ahc_get_transfer_dir()
619 void ahc_set_residual(struct scb *scb, u_long resid) in ahc_set_residual() argument
621 scsi_set_resid(scb->io_ctx, resid); in ahc_set_residual()
625 void ahc_set_sense_residual(struct scb *scb, u_long resid) in ahc_set_sense_residual() argument
627 scb->platform_data->sense_resid = resid; in ahc_set_sense_residual()
631 u_long ahc_get_residual(struct scb *scb) in ahc_get_residual() argument
633 return scsi_get_resid(scb->io_ctx); in ahc_get_residual()
637 u_long ahc_get_sense_residual(struct scb *scb) in ahc_get_sense_residual() argument
639 return (scb->platform_data->sense_resid); in ahc_get_sense_residual()
643 int ahc_perform_autosense(struct scb *scb) in ahc_perform_autosense() argument
654 ahc_get_sense_bufsize(struct ahc_softc *ahc, struct scb *scb) in ahc_get_sense_bufsize() argument
667 ahc_platform_scb_free(struct ahc_softc *ahc, struct scb *scb) in ahc_platform_scb_free() argument
673 void ahc_platform_freeze_devq(struct ahc_softc *ahc, struct scb *scb);
676 ahc_freeze_scb(struct scb *scb) in ahc_freeze_scb() argument
678 if ((scb->io_ctx->result & (CAM_DEV_QFRZN << 16)) == 0) { in ahc_freeze_scb()
679 scb->io_ctx->result |= CAM_DEV_QFRZN << 16; in ahc_freeze_scb()
680 scb->platform_data->dev->qfrozen++; in ahc_freeze_scb()
692 void ahc_done(struct ahc_softc*, struct scb*);
695 void ahc_print_path(struct ahc_softc *, struct scb *);