FreeBSD kernel CXGBE device code
|
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include "common/common.h"
#include "cudbg.h"
#include "cudbg_lib_common.h"
Go to the source code of this file.
Functions | |
__FBSDID ("$FreeBSD$") | |
int | get_scratch_buff (struct cudbg_buffer *pdbg_buff, u32 size, struct cudbg_buffer *pscratch_buff) |
void | release_scratch_buff (struct cudbg_buffer *pscratch_buff, struct cudbg_buffer *pdbg_buff) |
static void | init_cudbg_hdr (struct cudbg_init_hdr *hdr) |
void * | cudbg_alloc_handle (void) |
void | cudbg_free_handle (void *handle) |
__FBSDID | ( | "$FreeBSD$" | ) |
void * cudbg_alloc_handle | ( | void | ) |
cudbg_alloc_handle - Allocates and initializes a handle that represents cudbg state. Needs to called first before calling any other function.
returns a pointer to memory that has a cudbg_init structure at the begining and enough space after that for internal book keeping.
Definition at line 81 of file cudbg_common.c.
References cudbg_private::dbg_init, cudbg_init::header, and init_cudbg_hdr().
Referenced by cudbg_dump().
void cudbg_free_handle | ( | void * | handle | ) |
Definition at line 92 of file cudbg_common.c.
int get_scratch_buff | ( | struct cudbg_buffer * | pdbg_buff, |
u32 | size, | ||
struct cudbg_buffer * | pscratch_buff | ||
) |
Definition at line 37 of file cudbg_common.c.
References CUDBG_STATUS_NO_SCRATCH_MEM, cudbg_buffer::data, cudbg_buffer::offset, and cudbg_buffer::size.
Referenced by collect_cctrl(), collect_cim_la(), collect_cim_ma_la(), collect_cim_pif_la(), collect_cim_qcfg(), collect_clk_info(), collect_cpl_stats(), collect_ddp_stats(), collect_dump_context(), collect_fcoe_stats(), collect_full(), collect_fw_devlog(), collect_hma_indirect(), collect_hw_sched(), collect_lb_stats(), collect_ma_indirect(), collect_macstats(), collect_mbox_log(), collect_meminfo(), collect_mps_tcam(), collect_path_mtu(), collect_pbt_tables(), collect_pcie_config(), collect_pcie_indirect(), collect_pm_indirect(), collect_pm_stats(), collect_rdma_stats(), collect_reg_dump(), collect_rss(), collect_rss_config(), collect_rss_key(), collect_rss_pf_config(), collect_rss_vf_config(), collect_sge_indirect(), collect_sw_state(), collect_tcp_stats(), collect_tid(), collect_tp_err_stats(), collect_tp_indirect(), collect_tp_la(), collect_tx_rate(), collect_ulprx_la(), collect_ulptx_la(), collect_up_cim_indirect(), collect_vpd_data(), collect_wc_stats(), compress_buff(), decompress_buffer(), read_cim_ibq(), read_cim_obq(), read_fw_mem(), t5_wtp_data(), t6_wtp_data(), and write_compression_hdr().
|
inlinestatic |
Definition at line 72 of file cudbg_common.c.
References cudbg_init_hdr::build_ver, CUDBG_BUILD_VERSION, CUDBG_MAJOR_VERSION, CUDBG_MINOR_VERSION, cudbg_init_hdr::init_struct_size, cudbg_init_hdr::major_ver, and cudbg_init_hdr::minor_ver.
Referenced by cudbg_alloc_handle().
void release_scratch_buff | ( | struct cudbg_buffer * | pscratch_buff, |
struct cudbg_buffer * | pdbg_buff | ||
) |
Definition at line 59 of file cudbg_common.c.
References cudbg_buffer::data, cudbg_buffer::offset, and cudbg_buffer::size.
Referenced by collect_cctrl(), collect_cim_la(), collect_cim_ma_la(), collect_cim_pif_la(), collect_cim_qcfg(), collect_clk_info(), collect_cpl_stats(), collect_ddp_stats(), collect_dump_context(), collect_fcoe_stats(), collect_full(), collect_fw_devlog(), collect_hma_indirect(), collect_hw_sched(), collect_lb_stats(), collect_ma_indirect(), collect_macstats(), collect_mbox_log(), collect_meminfo(), collect_mps_tcam(), collect_path_mtu(), collect_pbt_tables(), collect_pcie_config(), collect_pcie_indirect(), collect_pm_indirect(), collect_pm_stats(), collect_rdma_stats(), collect_reg_dump(), collect_rss(), collect_rss_config(), collect_rss_key(), collect_rss_pf_config(), collect_rss_vf_config(), collect_sge_indirect(), collect_sw_state(), collect_tcp_stats(), collect_tid(), collect_tp_err_stats(), collect_tp_indirect(), collect_tp_la(), collect_tx_rate(), collect_ulprx_la(), collect_ulptx_la(), collect_up_cim_indirect(), collect_vpd_data(), collect_wc_stats(), compress_buff(), decompress_buffer(), read_cim_ibq(), read_cim_obq(), read_fw_mem(), t5_wtp_data(), t6_wtp_data(), and write_compression_hdr().