Lines Matching refs:fas
56 #define FAS_MUTEX(fas) (&(fas)->f_mutex)
57 #define FAS_CV(fas) (&(fas)->f_cv)
90 #define TRAN2FAS(tran) ((struct fas *)(tran)->tran_hba_private)
102 struct fas {
127 struct fas *f_next;
188 uchar_t f_last_cmd; /* last cmd sent to fas chip */
335 * dma attrs for fas scsi engine
414 * a queue for packets in case the fas mutex is locked
492 _NOTE(MUTEX_PROTECTS_DATA(fas::f_mutex, fas))
493 _NOTE(MUTEX_PROTECTS_DATA(fas::f_waitQ_mutex, fas::f_waitf fas::f_waitb))
494 _NOTE(MUTEX_PROTECTS_DATA(fas::f_c_mutex, fas::f_c_qf fas::f_c_qb
495 fas::f_c_in_callback))
496 _NOTE(DATA_READABLE_WITHOUT_LOCK(fas::f_flags))
501 _NOTE(SCHEME_PROTECTS_DATA("safe sharing", fas::f_next fas::f_state))
503 fas::f_dma fas::f_dma_attr fas::f_hm_rev))
505 fas::f_target_scsi_options fas::f_scsi_options))
506 _NOTE(SCHEME_PROTECTS_DATA("stable data", fas::f_instance))
508 fas::f_reg_trace_index fas::f_reg_trace))
509 _NOTE(SCHEME_PROTECTS_DATA("protected by kmem lock", fas::f_kmem_cache))
511 fas::f_notag fas::f_suspended fas::f_ndisc))
512 _NOTE(SCHEME_PROTECTS_DATA("stable data", fas::f_dev fas::f_tran))
513 _NOTE(SCHEME_PROTECTS_DATA("only debugging", fas::f_reg_dma_reads))
514 _NOTE(SCHEME_PROTECTS_DATA("safe sharing", fas::f_quiesce_timeid))
520 #define FAS_KSTAT_INTR(fas) KSTAT_INTR_PTR(fas->f_intr_kstat)->\
535 #define FAS_CAN_SCHED ((fas->f_flags & FAS_FLG_NOTIMEOUTS) == 0)
736 extern void fas_dprintf(struct fas *fas, const char *fmt, ...)
741 ((fas->f_instance == fasdebug_instance) || \
744 ((fas->f_instance == fasdebug_instance) || \
748 ((fas->f_instance == fasdebug_instance) || \
751 #define EPRINTF(str) if (EDEBUGGING) fas_dprintf(fas, str)
752 #define EPRINTF1(str, a) if (EDEBUGGING) fas_dprintf(fas, str, a)
753 #define EPRINTF2(str, a, b) if (EDEBUGGING) fas_dprintf(fas, str, a, b)
754 #define EPRINTF3(str, a, b, c) if (EDEBUGGING) fas_dprintf(fas, str, a, b, c)
756 if (EDEBUGGING) fas_dprintf(fas, str, a, b, c, d)
758 if (EDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e)
760 if (EDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e, f)
762 #define DPRINTF(str) if (DDEBUGGING) fas_dprintf(fas, str)
763 #define DPRINTF1(str, a) if (DDEBUGGING) fas_dprintf(fas, str, a)
764 #define DPRINTF2(str, a, b) if (DDEBUGGING) fas_dprintf(fas, str, a, b)
765 #define DPRINTF3(str, a, b, c) if (DDEBUGGING) fas_dprintf(fas, str, a, b, c)
767 if (DDEBUGGING) fas_dprintf(fas, str, a, b, c, d)
769 if (DDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e)
771 if (DDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e, f)
773 #define IPRINTF(str) if (IDEBUGGING) fas_dprintf(fas, str)
774 #define IPRINTF1(str, a) if (IDEBUGGING) fas_dprintf(fas, str, a)
775 #define IPRINTF2(str, a, b) if (IDEBUGGING) fas_dprintf(fas, str, a, b)
776 #define IPRINTF3(str, a, b, c) if (IDEBUGGING) fas_dprintf(fas, str, a, b, c)
778 if (IDEBUGGING) fas_dprintf(fas, str, a, b, c, d)
780 if (IDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e)
782 if (IDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e, f)
824 #define NODISC(tgt) (fas->f_nodisc & (1<<(tgt)))
825 #define NOTAG(tgt) (fas->f_notag & (1<<(tgt)))
826 #define TAGGED(tgt) ((fas->f_notag & (1<<(tgt))) == 0)
827 #define SYNC_KNOWN(tgt) (fas->f_sync_known & (1<<(tgt)))
830 #define MY_ID(fas) ((fas)->f_fasconf & FAS_CONF_BUSID)
831 #define INTPENDING(fas) (fas_dma_reg_read((fas), \
832 &((fas)->f_dma->dma_csr))&DMA_INT_MASK)
837 #define New_state(fas, state)\
838 (fas)->f_laststate = (fas)->f_state, (fas)->f_state = (state)
840 #define CNUM (fas->f_instance)
856 #define FAS_HM_REV(fas) (fas)->f_hm_rev
875 #define FAS_EMPTY_CALLBACKQ(fas) fas_empty_callbackQ(fas)
877 #define FAS_CHECK_WAITQ_AND_FAS_MUTEX_EXIT(fas) \
878 mutex_enter(&fas->f_waitQ_mutex); \
879 if (fas->f_waitf) { \
880 fas_empty_waitQ(fas); \
882 mutex_exit(FAS_MUTEX(fas)); \
883 mutex_exit(&fas->f_waitQ_mutex);