Lines Matching defs:trcm
106 bfa_trc_init(struct bfa_trc_mod_s *trcm)
108 trcm->head = trcm->tail = trcm->stopped = 0;
109 trcm->ntrc = BFA_TRC_MAX;
114 bfa_trc_stop(struct bfa_trc_mod_s *trcm)
116 trcm->stopped = 1;
127 __bfa_trc(struct bfa_trc_mod_s *trcm, int fileno, int line, u64 data)
129 int tail = trcm->tail;
130 struct bfa_trc_s *trc = &trcm->trc[tail];
132 if (trcm->stopped)
138 trc->timestamp = BFA_TRC_TS(trcm);
141 trcm->tail = (trcm->tail + 1) & (BFA_TRC_MAX - 1);
142 if (trcm->tail == trcm->head)
143 trcm->head = (trcm->head + 1) & (BFA_TRC_MAX - 1);
144 dc_flush(trcm);
149 __bfa_trc32(struct bfa_trc_mod_s *trcm, int fileno, int line, u32 data)
151 int tail = trcm->tail;
152 struct bfa_trc_s *trc = &trcm->trc[tail];
154 if (trcm->stopped)
160 trc->timestamp = BFA_TRC_TS(trcm);
163 trcm->tail = (trcm->tail + 1) & (BFA_TRC_MAX - 1);
164 if (trcm->tail == trcm->head)
165 trcm->head = (trcm->head + 1) & (BFA_TRC_MAX - 1);
166 dc_flush(trcm);