Searched refs:trc (Results 1 – 9 of 9) sorted by relevance
32 struct snic_trc *trc = &snic_glob->trc; in snic_get_trc_buf() local36 spin_lock_irqsave(&trc->lock, flags); in snic_get_trc_buf()37 td = &trc->buf[trc->wr_idx]; in snic_get_trc_buf()38 trc->wr_idx++; in snic_get_trc_buf()40 if (trc->wr_idx == trc->max_idx) in snic_get_trc_buf()41 trc->wr_idx = 0; in snic_get_trc_buf()43 if (trc->wr_idx != trc->rd_idx) { in snic_get_trc_buf()44 spin_unlock_irqrestore(&trc->lock, flags); in snic_get_trc_buf()49 trc->rd_idx++; in snic_get_trc_buf()50 if (trc->rd_idx == trc->max_idx) in snic_get_trc_buf()[all …]
469 return &snic_glob->trc; in snic_trc_seq_start()535 &snic_glob->trc.enable); in snic_trc_debugfs_init()542 snic_glob->trc.trc_enable = de; in snic_trc_debugfs_init()555 snic_glob->trc.trc_file = de; in snic_trc_debugfs_init()567 debugfs_remove(snic_glob->trc.trc_file); in snic_trc_debugfs_term()568 snic_glob->trc.trc_file = NULL; in snic_trc_debugfs_term()570 debugfs_remove(snic_glob->trc.trc_enable); in snic_trc_debugfs_term()571 snic_glob->trc.trc_enable = NULL; in snic_trc_debugfs_term()
85 if (unlikely(snic_glob->trc.enable)) \
367 struct snic_trc trc ____cacheline_aligned;
136 u8 trc; member212 wfm_hdr->trc += 1; in load_waveform()224 if ((sizeof(*wfm_hdr) + wfm_hdr->trc) > size) in load_waveform()227 for (i = sizeof(*wfm_hdr); i <= sizeof(*wfm_hdr) + wfm_hdr->trc; i++) { in load_waveform()235 cksum_idx = sizeof(*wfm_hdr) + wfm_hdr->trc + 1; in load_waveform()
918 struct atto_hba_trace *trc = &hi->data.trace; in hba_ioctl_callback() local933 if (trc->trace_type == ATTO_TRC_TT_FWCOREDUMP in hba_ioctl_callback()935 if (trc->trace_func == ATTO_TRC_TF_UPLOAD) { in hba_ioctl_callback()937 u32 offset = trc->current_offset; in hba_ioctl_callback()954 memcpy(trc + 1, in hba_ioctl_callback()959 } else if (trc->trace_func == ATTO_TRC_TF_RESET) { in hba_ioctl_callback()964 } else if (trc->trace_func != ATTO_TRC_TF_GET_INFO) { in hba_ioctl_callback()970 trc->trace_mask = 0; in hba_ioctl_callback()971 trc->current_offset = 0; in hba_ioctl_callback()972 trc->total_length = ESAS2R_FWCOREDUMP_SZ; in hba_ioctl_callback()[all …]
1514 u16 htshi, trc, trc_required_mask; in ips_probe() local1570 trc = thm_readw(THM_TRC); in ips_probe()1572 if ((trc & trc_required_mask) != trc_required_mask) { in ips_probe()1578 if (trc & TRC_CORE2_EN) in ips_probe()
82 struct bfa_trc_s *trc = &trcm->trc[tail]; in __bfa_trc() local87 trc->fileno = (u16) fileno; in __bfa_trc()88 trc->line = (u16) line; in __bfa_trc()89 trc->data.u64 = data; in __bfa_trc()90 trc->timestamp = BFA_TRC_TS(trcm); in __bfa_trc()
73 struct bfa_trc_s trc[BFA_TRC_MAX]; member