FreeBSD kernel CXGBE device code
cudbg_lib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  large_entity
 

Macros

#define min_t(type, _a, _b)   (((type)(_a) < (type)(_b)) ? (type)(_a) : (type)(_b))
 

Functions

static int collect_reg_dump (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_fw_devlog (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_qcfg (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_la (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_ma_la (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_obq_ulp0 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_obq_ulp1 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_obq_ulp2 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_obq_ulp3 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_obq_sge (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_obq_ncsi (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_ibq_tp0 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_ibq_tp1 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_ibq_ulp (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_ibq_sge0 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_ibq_sge1 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_ibq_ncsi (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_edc0_meminfo (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_edc1_meminfo (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_mc0_meminfo (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_mc1_meminfo (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_rss (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_rss_key (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_rss_pf_config (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_rss_vf_config (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_rss_config (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_path_mtu (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_sw_state (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
int collect_wtp_data (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_pm_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_hw_sched (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_tcp_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_tp_err_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_fcoe_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_rdma_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_tp_indirect (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_sge_indirect (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cpl_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_ddp_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_wc_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_ulprx_la (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_lb_stats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_tp_la (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_meminfo (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cim_pif_la (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_clk_info (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_obq_sge_rx_q0 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_obq_sge_rx_q1 (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_macstats (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_pcie_indirect (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_pm_indirect (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_full (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_tx_rate (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_tid (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_pcie_config (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_dump_context (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_mps_tcam (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_vpd_data (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_le_tcam (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_cctrl (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_ma_indirect (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_ulptx_la (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_up_cim_indirect (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_pbt_tables (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_mbox_log (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int collect_hma_indirect (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 
static int read_cim_ibq (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *, int)
 
static int read_cim_obq (struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *, int)
 
int get_entity_hdr (void *outbuf, int i, u32 size, struct cudbg_entity_hdr **)
 
void skip_entity (int entity_code)
 
void reset_skip_entity (void)
 
int is_large_entity (int entity_code)
 

Variables

static int(* process_entity [])(struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *)
 

Macro Definition Documentation

◆ min_t

#define min_t (   type,
  _a,
  _b 
)    (((type)(_a) < (type)(_b)) ? (type)(_a) : (type)(_b))

Definition at line 34 of file cudbg_lib.h.

Function Documentation

◆ collect_cctrl()

static int collect_cctrl ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_ibq_ncsi()

static int collect_cim_ibq_ncsi ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_ibq_sge0()

static int collect_cim_ibq_sge0 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_ibq_sge1()

static int collect_cim_ibq_sge1 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_ibq_tp0()

static int collect_cim_ibq_tp0 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_ibq_tp1()

static int collect_cim_ibq_tp1 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_ibq_ulp()

static int collect_cim_ibq_ulp ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_la()

static int collect_cim_la ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_ma_la()

static int collect_cim_ma_la ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_obq_ncsi()

static int collect_cim_obq_ncsi ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_obq_sge()

static int collect_cim_obq_sge ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_obq_ulp0()

static int collect_cim_obq_ulp0 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_obq_ulp1()

static int collect_cim_obq_ulp1 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_obq_ulp2()

static int collect_cim_obq_ulp2 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_obq_ulp3()

static int collect_cim_obq_ulp3 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_pif_la()

static int collect_cim_pif_la ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cim_qcfg()

static int collect_cim_qcfg ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_clk_info()

static int collect_clk_info ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_cpl_stats()

static int collect_cpl_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_ddp_stats()

static int collect_ddp_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_dump_context()

static int collect_dump_context ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_edc0_meminfo()

static int collect_edc0_meminfo ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_edc1_meminfo()

static int collect_edc1_meminfo ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_fcoe_stats()

static int collect_fcoe_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_full()

static int collect_full ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_fw_devlog()

static int collect_fw_devlog ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_hma_indirect()

static int collect_hma_indirect ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_hw_sched()

static int collect_hw_sched ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_lb_stats()

static int collect_lb_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_le_tcam()

static int collect_le_tcam ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_ma_indirect()

static int collect_ma_indirect ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_macstats()

static int collect_macstats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_mbox_log()

static int collect_mbox_log ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_mc0_meminfo()

static int collect_mc0_meminfo ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_mc1_meminfo()

static int collect_mc1_meminfo ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_meminfo()

static int collect_meminfo ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_mps_tcam()

static int collect_mps_tcam ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_obq_sge_rx_q0()

static int collect_obq_sge_rx_q0 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_obq_sge_rx_q1()

static int collect_obq_sge_rx_q1 ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_path_mtu()

static int collect_path_mtu ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_pbt_tables()

static int collect_pbt_tables ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_pcie_config()

static int collect_pcie_config ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_pcie_indirect()

static int collect_pcie_indirect ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_pm_indirect()

static int collect_pm_indirect ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_pm_stats()

static int collect_pm_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_rdma_stats()

static int collect_rdma_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_reg_dump()

static int collect_reg_dump ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_rss()

static int collect_rss ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_rss_config()

static int collect_rss_config ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_rss_key()

static int collect_rss_key ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_rss_pf_config()

static int collect_rss_pf_config ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_rss_vf_config()

static int collect_rss_vf_config ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_sge_indirect()

static int collect_sge_indirect ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_sw_state()

static int collect_sw_state ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_tcp_stats()

static int collect_tcp_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_tid()

static int collect_tid ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_tp_err_stats()

static int collect_tp_err_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_tp_indirect()

static int collect_tp_indirect ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_tp_la()

static int collect_tp_la ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_tx_rate()

static int collect_tx_rate ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_ulprx_la()

static int collect_ulprx_la ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_ulptx_la()

static int collect_ulptx_la ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_up_cim_indirect()

static int collect_up_cim_indirect ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_vpd_data()

static int collect_vpd_data ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_wc_stats()

static int collect_wc_stats ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

◆ collect_wtp_data()

int collect_wtp_data ( struct cudbg_init pdbg_init,
struct cudbg_buffer dbg_buff,
struct cudbg_error cudbg_err 
)

Definition at line 1297 of file cudbg_wtp.c.

References cudbg_init::adap, is_t5(), is_t6(), t5_wtp_data(), and t6_wtp_data().

Here is the call graph for this function:

◆ get_entity_hdr()

int get_entity_hdr ( void *  outbuf,
int  i,
u32  size,
struct cudbg_entity_hdr **  entity_hdr 
)

Definition at line 555 of file cudbg_lib.c.

References CUDBG_STATUS_SMALL_BUFF, and cudbg_hdr::hdr_len.

Referenced by cudbg_collect().

Here is the caller graph for this function:

◆ is_large_entity()

int is_large_entity ( int  entity_code)

Definition at line 543 of file cudbg_lib.c.

References large_entity_list.

Referenced by cudbg_collect().

Here is the caller graph for this function:

◆ read_cim_ibq()

static int read_cim_ibq ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error ,
int   
)
static

◆ read_cim_obq()

static int read_cim_obq ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error ,
int   
)
static

◆ reset_skip_entity()

void reset_skip_entity ( void  )

Definition at line 525 of file cudbg_lib.c.

References ARRAY_SIZE, and large_entity_list.

Referenced by cudbg_collect().

Here is the caller graph for this function:

◆ skip_entity()

void skip_entity ( int  entity_code)

Definition at line 533 of file cudbg_lib.c.

References large_entity_list, and large_entity::skip_flag.

Referenced by cudbg_collect().

Here is the caller graph for this function:

Variable Documentation

◆ process_entity

int(* process_entity[])(struct cudbg_init *, struct cudbg_buffer *, struct cudbg_error *) ( struct cudbg_init ,
struct cudbg_buffer ,
struct cudbg_error  
)
static

Definition at line 170 of file cudbg_lib.h.

Referenced by cudbg_collect().