Lines Matching refs:trcm
98 bfa_trc_init(struct bfa_trc_mod_s *trcm) in bfa_trc_init() argument
100 trcm->head = trcm->tail = trcm->stopped = 0; in bfa_trc_init()
101 trcm->ntrc = BFA_TRC_MAX; in bfa_trc_init()
105 bfa_trc_stop(struct bfa_trc_mod_s *trcm) in bfa_trc_stop() argument
107 trcm->stopped = 1; in bfa_trc_stop()
111 __bfa_trc(struct bfa_trc_mod_s *trcm, int fileno, int line, u64 data) in __bfa_trc() argument
113 int tail = trcm->tail; in __bfa_trc()
114 struct bfa_trc_s *trc = &trcm->trc[tail]; in __bfa_trc()
116 if (trcm->stopped) in __bfa_trc()
122 trc->timestamp = BFA_TRC_TS(trcm); in __bfa_trc()
124 trcm->tail = (trcm->tail + 1) & (BFA_TRC_MAX - 1); in __bfa_trc()
125 if (trcm->tail == trcm->head) in __bfa_trc()
126 trcm->head = (trcm->head + 1) & (BFA_TRC_MAX - 1); in __bfa_trc()
131 __bfa_trc32(struct bfa_trc_mod_s *trcm, int fileno, int line, u32 data) in __bfa_trc32() argument
133 int tail = trcm->tail; in __bfa_trc32()
134 struct bfa_trc_s *trc = &trcm->trc[tail]; in __bfa_trc32()
136 if (trcm->stopped) in __bfa_trc32()
142 trc->timestamp = BFA_TRC_TS(trcm); in __bfa_trc32()
144 trcm->tail = (trcm->tail + 1) & (BFA_TRC_MAX - 1); in __bfa_trc32()
145 if (trcm->tail == trcm->head) in __bfa_trc32()
146 trcm->head = (trcm->head + 1) & (BFA_TRC_MAX - 1); in __bfa_trc32()