Lines Matching refs:scb

501 static inline void ahd_set_transaction_status(struct scb *, uint32_t);
503 static inline void ahd_set_scsi_status(struct scb *, uint32_t);
505 static inline uint32_t ahd_get_transaction_status(struct scb *);
507 static inline uint32_t ahd_get_scsi_status(struct scb *);
508 static inline void ahd_set_transaction_tag(struct scb *, int, u_int);
509 static inline u_long ahd_get_transfer_length(struct scb *);
510 static inline int ahd_get_transfer_dir(struct scb *);
511 static inline void ahd_set_residual(struct scb *, u_long);
512 static inline void ahd_set_sense_residual(struct scb *scb, u_long resid);
513 static inline u_long ahd_get_residual(struct scb *);
514 static inline u_long ahd_get_sense_residual(struct scb *);
515 static inline int ahd_perform_autosense(struct scb *);
517 struct scb *);
521 struct scb *scb);
522 static inline void ahd_freeze_scb(struct scb *scb);
532 void ahd_set_transaction_status(struct scb *scb, uint32_t status)
534 ahd_cmd_set_transaction_status(scb->io_ctx,status);
545 void ahd_set_scsi_status(struct scb *scb, uint32_t status)
547 ahd_cmd_set_scsi_status(scb->io_ctx, status);
557 uint32_t ahd_get_transaction_status(struct scb *scb)
559 return (ahd_cmd_get_transaction_status(scb->io_ctx));
569 uint32_t ahd_get_scsi_status(struct scb *scb)
571 return (ahd_cmd_get_scsi_status(scb->io_ctx));
575 void ahd_set_transaction_tag(struct scb *scb, int enabled, u_int type)
584 u_long ahd_get_transfer_length(struct scb *scb)
586 return (scb->platform_data->xfer_len);
590 int ahd_get_transfer_dir(struct scb *scb)
592 return (scb->io_ctx->sc_data_direction);
596 void ahd_set_residual(struct scb *scb, u_long resid)
598 scsi_set_resid(scb->io_ctx, resid);
602 void ahd_set_sense_residual(struct scb *scb, u_long resid)
604 scb->platform_data->sense_resid = resid;
608 u_long ahd_get_residual(struct scb *scb)
610 return scsi_get_resid(scb->io_ctx);
614 u_long ahd_get_sense_residual(struct scb *scb)
616 return (scb->platform_data->sense_resid);
620 int ahd_perform_autosense(struct scb *scb)
631 ahd_get_sense_bufsize(struct ahd_softc *ahd, struct scb *scb)
644 ahd_platform_scb_free(struct ahd_softc *ahd, struct scb *scb)
652 void ahd_platform_freeze_devq(struct ahd_softc *ahd, struct scb *scb);
655 ahd_freeze_scb(struct scb *scb)
657 if ((scb->io_ctx->result & (CAM_DEV_QFRZN << 16)) == 0) {
658 scb->io_ctx->result |= CAM_DEV_QFRZN << 16;
659 scb->platform_data->dev->qfrozen++;
670 void ahd_done(struct ahd_softc*, struct scb*);
673 void ahd_print_path(struct ahd_softc *, struct scb *);