Home
last modified time | relevance | path

Searched refs:trc (Results 1 – 15 of 15) sorted by relevance

/drivers/scsi/snic/
Dsnic_trc.c32 struct snic_trc *trc = &snic_glob->trc; in snic_get_trc_buf() local
36 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 …]
Dsnic_debugfs.c416 return &snic_glob->trc; in snic_trc_seq_start()
457 snic_glob->trc.trc_enable = debugfs_create_bool("tracing_enable", in snic_trc_debugfs_init()
460 &snic_glob->trc.enable); in snic_trc_debugfs_init()
462 snic_glob->trc.trc_file = debugfs_create_file("trace", in snic_trc_debugfs_init()
474 debugfs_remove(snic_glob->trc.trc_file); in snic_trc_debugfs_term()
475 snic_glob->trc.trc_file = NULL; in snic_trc_debugfs_term()
477 debugfs_remove(snic_glob->trc.trc_enable); in snic_trc_debugfs_term()
478 snic_glob->trc.trc_enable = NULL; in snic_trc_debugfs_term()
Dsnic_trc.h85 if (unlikely(snic_glob->trc.enable)) \
Dsnic.h367 struct snic_trc trc ____cacheline_aligned;
/drivers/video/fbdev/
Dmetronomefb.c136 u8 trc; member
212 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()
/drivers/scsi/esas2r/
Desas2r_ioctl.c914 struct atto_hba_trace *trc = &hi->data.trace; in hba_ioctl_callback() local
929 if (trc->trace_type == ATTO_TRC_TT_FWCOREDUMP in hba_ioctl_callback()
931 if (trc->trace_func == ATTO_TRC_TF_UPLOAD) { in hba_ioctl_callback()
933 u32 offset = trc->current_offset; in hba_ioctl_callback()
950 memcpy(trc + 1, in hba_ioctl_callback()
955 } else if (trc->trace_func == ATTO_TRC_TF_RESET) { in hba_ioctl_callback()
960 } else if (trc->trace_func != ATTO_TRC_TF_GET_INFO) { in hba_ioctl_callback()
966 trc->trace_mask = 0; in hba_ioctl_callback()
967 trc->current_offset = 0; in hba_ioctl_callback()
968 trc->total_length = ESAS2R_FWCOREDUMP_SZ; in hba_ioctl_callback()
[all …]
/drivers/misc/mei/
Dmei_dev.h315 int (*trc_status)(struct mei_device *dev, u32 *trc);
748 static inline int mei_trc_status(struct mei_device *dev, u32 *trc) in mei_trc_status() argument
751 return dev->ops->trc_status(dev, trc); in mei_trc_status()
Dmain.c938 u32 trc; in trc_show() local
941 ret = mei_trc_status(dev, &trc); in trc_show()
944 return sprintf(buf, "%08X\n", trc); in trc_show()
946 static DEVICE_ATTR_RO(trc);
Dhw-me.c183 static int mei_me_trc_status(struct mei_device *dev, u32 *trc) in mei_me_trc_status() argument
190 *trc = mei_me_reg_read(hw, ME_TRC); in mei_me_trc_status()
191 trace_mei_reg_read(dev->dev, "ME_TRC", ME_TRC, *trc); in mei_me_trc_status()
/drivers/platform/x86/
Dintel_ips.c1444 u16 htshi, trc, trc_required_mask; in ips_probe() local
1484 trc = thm_readw(THM_TRC); in ips_probe()
1486 if ((trc & trc_required_mask) != trc_required_mask) { in ips_probe()
1491 if (trc & TRC_CORE2_EN) in ips_probe()
/drivers/scsi/bfa/
Dbfa_core.c74 struct bfa_trc_s *trc = &trcm->trc[tail]; in __bfa_trc() local
79 trc->fileno = (u16) fileno; in __bfa_trc()
80 trc->line = (u16) line; in __bfa_trc()
81 trc->data.u64 = data; in __bfa_trc()
82 trc->timestamp = BFA_TRC_TS(trcm); in __bfa_trc()
Dbfa_cs.h65 struct bfa_trc_s trc[BFA_TRC_MAX]; member
/drivers/gpu/drm/amd/display/dc/inc/
Ddce_calcs.h215 struct bw_fixed trc; member
/drivers/gpu/drm/amd/display/dc/calcs/
Ddce_calcs.c1115 …her_total_pte_request_groups), data->cursor_total_request_groups)), vbios->trc), bw_int_to_fixed(1… in calculate_bandwidth()
1116 …v(bw_mul(data->mcifwr_total_number_of_data_request_page_close_open, vbios->trc), bw_int_to_fixed(1… in calculate_bandwidth()
2064 vbios.trc = bw_int_to_fixed(50); in bw_calcs_init()
2180 vbios.trc = bw_int_to_fixed(48); in bw_calcs_init()
2293 vbios.trc = bw_int_to_fixed(48); in bw_calcs_init()
2409 vbios.trc = bw_int_to_fixed(48); in bw_calcs_init()
2525 vbios.trc = bw_int_to_fixed(50); in bw_calcs_init()
2638 vbios.trc = bw_int_to_fixed(48); in bw_calcs_init()
Dcalcs_logger.h159 DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] trc: %d", bw_fixed_to_int(vbios->trc)); in print_bw_calcs_vbios()