FreeBSD kernel CXGBE device code
adapter Struct Reference

#include <adapter.h>

Collaboration diagram for adapter:

Data Structures

struct  irq
 

Public Member Functions

 SLIST_ENTRY (adapter) link
 
struct adapter::irq __aligned (CACHE_LINE_SIZE) *irq
 
 CXGBE_LIST_HEAD (, clip_entry) *clip_table
 
 TAILQ_HEAD (, clip_entry) clip_pending
 
 TAILQ_HEAD (, sge_fl) sfl
 

Data Fields

device_t dev
 
struct cdev * cdev
 
const struct devnamesnames
 
int regs_rid
 
struct resource * regs_res
 
int msix_rid
 
struct resource * msix_res
 
bus_space_handle_t bh
 
bus_space_tag_t bt
 
bus_size_t mmio_len
 
int udbs_rid
 
struct resource * udbs_res
 
volatile uint8_t * udbs_base
 
unsigned int pf
 
unsigned int mbox
 
unsigned int vpd_busy
 
unsigned int vpd_flag
 
int intr_type
 
int intr_count
 
int sge_gts_reg
 
int sge_kdoorbell_reg
 
bus_dma_tag_t dmat
 
struct sge sge
 
int lro_timeout
 
int sc_do_rxcopy
 
int vxlan_port
 
u_int vxlan_refcount
 
int rawf_base
 
int nrawf
 
struct taskqueue * tq [MAX_NCHAN]
 
struct port_infoport [MAX_NPORTS]
 
uint8_t chan_map [MAX_NCHAN]
 
u_long clip_mask
 
int clip_gen
 
struct timeout_task clip_task
 
void * tom_softc
 
struct tom_tunables tt
 
struct t4_offload_policypolicy
 
struct rwlock policy_lock
 
void * iwarp_softc
 
struct iw_tunables iwt
 
void * iscsi_ulp_softc
 
void * ccr_softc
 
struct l2t_datal2t
 
struct smt_datasmt
 
struct tid_info tids
 
vmem_t * key_map
 
struct tls_tunables tlst
 
uint8_t doorbells
 
int offload_map
 
int bt_map
 
int active_ulds
 
int flags
 
int debug_flags
 
int error_flags
 
char ifp_lockname [16]
 
struct mtx ifp_lock
 
struct ifnet * ifp
 
struct ifmedia media
 
int traceq
 
int tracer_valid
 
int tracer_enabled
 
char fw_version [16]
 
char tp_version [16]
 
char er_version [16]
 
char bs_version [16]
 
char cfg_file [32]
 
u_int cfcsum
 
struct adapter_params params
 
const struct chip_paramschip_params
 
struct t4_virt_res vres
 
uint16_t nbmcaps
 
uint16_t linkcaps
 
uint16_t switchcaps
 
uint16_t niccaps
 
uint16_t toecaps
 
uint16_t rdmacaps
 
uint16_t cryptocaps
 
uint16_t iscsicaps
 
uint16_t fcoecaps
 
struct sysctl_ctx_list ctx
 
struct sysctl_oid * ctrlq_oid
 
struct sysctl_oid * fwq_oid
 
struct mtx sc_lock
 
char lockname [16]
 
struct mtx sfl_lock
 
struct callout sfl_callout
 
struct mtx reg_lock
 
struct memwin memwin [NUM_MEMWIN]
 
struct mtx tc_lock
 
struct task tc_task
 
struct task fatal_error_task
 
struct task reset_task
 
const void * reset_thread
 
int num_resets
 
int incarnation
 
const char * last_op
 
const void * last_op_thr
 
int last_op_flags
 
int swintr
 
int sensor_resets
 
struct callout ktls_tick
 

Detailed Description

Definition at line 864 of file adapter.h.

Member Function Documentation

◆ __aligned()

struct adapter::irq adapter::__aligned ( CACHE_LINE_SIZE  )

◆ CXGBE_LIST_HEAD()

adapter::CXGBE_LIST_HEAD ( clip_entry  )

◆ SLIST_ENTRY()

adapter::SLIST_ENTRY ( adapter  )

◆ TAILQ_HEAD() [1/2]

adapter::TAILQ_HEAD ( clip_entry  )

◆ TAILQ_HEAD() [2/2]

adapter::TAILQ_HEAD ( sge_fl  )

Field Documentation

◆ active_ulds

int adapter::active_ulds

Definition at line 939 of file adapter.h.

◆ bh

bus_space_handle_t adapter::bh

◆ bs_version

char adapter::bs_version[16]

Definition at line 955 of file adapter.h.

Referenced by get_params__pre_init(), and t4_sysctls().

◆ bt

bus_space_tag_t adapter::bt

◆ bt_map

int adapter::bt_map

Definition at line 938 of file adapter.h.

Referenced by t4_attach(), t4_link_l1cfg(), and t4_shutdown_adapter().

◆ ccr_softc

void* adapter::ccr_softc

Definition at line 929 of file adapter.h.

Referenced by ccr_attach(), ccr_detach(), and do_cpl6_fw_pld().

◆ cdev

struct cdev* adapter::cdev

Definition at line 867 of file adapter.h.

Referenced by t4_attach(), t4_detach_common(), and t4vf_attach().

◆ cfcsum

u_int adapter::cfcsum

◆ cfg_file

char adapter::cfg_file[32]

◆ chan_map

uint8_t adapter::chan_map[MAX_NCHAN]

◆ chip_params

◆ clip_gen

int adapter::clip_gen

Definition at line 918 of file adapter.h.

◆ clip_mask

u_long adapter::clip_mask

Definition at line 917 of file adapter.h.

◆ clip_task

struct timeout_task adapter::clip_task

Definition at line 919 of file adapter.h.

Referenced by t4_get_clip_entry(), and t4_release_clip_addr().

◆ cryptocaps

uint16_t adapter::cryptocaps

◆ ctrlq_oid

struct sysctl_oid* adapter::ctrlq_oid

Definition at line 973 of file adapter.h.

Referenced by alloc_ctrlq(), and t4_attach().

◆ ctx

struct sysctl_ctx_list adapter::ctx

◆ debug_flags

◆ dev

◆ dmat

bus_dma_tag_t adapter::dmat

Definition at line 900 of file adapter.h.

Referenced by alloc_ring(), t4_create_dma_tag(), and t4_destroy_dma_tag().

◆ doorbells

uint8_t adapter::doorbells

◆ er_version

char adapter::er_version[16]

Definition at line 954 of file adapter.h.

Referenced by get_params__pre_init(), and t4_sysctls().

◆ error_flags

◆ fatal_error_task

struct task adapter::fatal_error_task

Definition at line 999 of file adapter.h.

Referenced by t4_attach(), and t4_fatal_err().

◆ fcoecaps

uint16_t adapter::fcoecaps

Definition at line 970 of file adapter.h.

Referenced by save_caps_and_params().

◆ flags

◆ fw_version

char adapter::fw_version[16]

Definition at line 952 of file adapter.h.

Referenced by get_params__pre_init(), and t4_sysctls().

◆ fwq_oid

struct sysctl_oid* adapter::fwq_oid

Definition at line 974 of file adapter.h.

Referenced by alloc_fwq(), and t4_attach().

◆ ifp

struct ifnet* adapter::ifp

◆ ifp_lock

struct mtx adapter::ifp_lock

◆ ifp_lockname

char adapter::ifp_lockname[16]

Definition at line 944 of file adapter.h.

Referenced by t4_attach().

◆ incarnation

int adapter::incarnation

Definition at line 1003 of file adapter.h.

Referenced by reset_adapter(), and t4_resume().

◆ intr_count

◆ intr_type

int adapter::intr_type

◆ iscsi_ulp_softc

void* adapter::iscsi_ulp_softc

Definition at line 928 of file adapter.h.

◆ iscsicaps

uint16_t adapter::iscsicaps

Definition at line 969 of file adapter.h.

Referenced by get_params__post_init(), and save_caps_and_params().

◆ iwarp_softc

void* adapter::iwarp_softc

Definition at line 926 of file adapter.h.

◆ iwt

struct iw_tunables adapter::iwt

Definition at line 927 of file adapter.h.

Referenced by t4_map_bar_2().

◆ key_map

vmem_t* adapter::key_map

Definition at line 933 of file adapter.h.

Referenced by t4_attach(), and t4_detach_common().

◆ ktls_tick

struct callout adapter::ktls_tick

Definition at line 1012 of file adapter.h.

Referenced by t4_attach(), and t4_detach_common().

◆ l2t

struct l2t_data* adapter::l2t

◆ last_op

const char* adapter::last_op

Definition at line 1005 of file adapter.h.

Referenced by begin_synchronized_op(), and doom_vi().

◆ last_op_flags

int adapter::last_op_flags

Definition at line 1007 of file adapter.h.

Referenced by begin_synchronized_op(), and doom_vi().

◆ last_op_thr

const void* adapter::last_op_thr

Definition at line 1006 of file adapter.h.

Referenced by begin_synchronized_op(), and doom_vi().

◆ linkcaps

uint16_t adapter::linkcaps

Definition at line 963 of file adapter.h.

Referenced by save_caps_and_params().

◆ lockname

char adapter::lockname[16]

Definition at line 977 of file adapter.h.

Referenced by t4_attach(), and t4vf_attach().

◆ lro_timeout

int adapter::lro_timeout

Definition at line 903 of file adapter.h.

Referenced by service_iq_fl(), and t4_sysctls().

◆ mbox

◆ media

struct ifmedia adapter::media

◆ memwin

struct memwin adapter::memwin[NUM_MEMWIN]

Definition at line 994 of file adapter.h.

Referenced by position_memwin(), rw_via_memwin(), setup_memwin(), and t4_detach_common().

◆ mmio_len

bus_size_t adapter::mmio_len

Definition at line 877 of file adapter.h.

Referenced by t4_ioctl(), t4_map_bars_0_and_4(), and t4vf_ioctl().

◆ msix_res

struct resource* adapter::msix_res

Definition at line 874 of file adapter.h.

Referenced by t4_detach_common(), and t4_map_bars_0_and_4().

◆ msix_rid

int adapter::msix_rid

Definition at line 873 of file adapter.h.

Referenced by t4_detach_common(), and t4_map_bars_0_and_4().

◆ names

const struct devnames* adapter::names

Definition at line 868 of file adapter.h.

Referenced by cxgbe_attach(), t4_attach(), t4_ifnet_unit(), t4_init_devnames(), and t4vf_attach().

◆ nbmcaps

uint16_t adapter::nbmcaps

Definition at line 962 of file adapter.h.

Referenced by save_caps_and_params().

◆ niccaps

uint16_t adapter::niccaps

Definition at line 965 of file adapter.h.

Referenced by get_params__post_init(), and save_caps_and_params().

◆ nrawf

int adapter::nrawf

◆ num_resets

int adapter::num_resets

Definition at line 1002 of file adapter.h.

Referenced by reset_adapter(), and sysctl_reset().

◆ offload_map

int adapter::offload_map

Definition at line 937 of file adapter.h.

◆ params

struct adapter_params adapter::params

Definition at line 958 of file adapter.h.

Referenced by add_eq_sysctls(), add_fl_sysctls(), alloc_eq(), alloc_eq_hwq(), alloc_iq_fl_hwq(), alloc_txq(), bind_txq_to_traffic_class(), calculate_iaq(), ccr_init_port(), cfg_itype_and_nqueues(), chan_rate(), check_fspec_against_fconf_iconf(), chip_id(), chip_rev(), clear_stats(), collect_cim_la(), collect_clk_info(), collect_fw_devlog(), collect_hw_sched(), collect_lb_stats(), collect_macstats(), collect_rss_config(), collect_vpd_data(), core_ticks_per_usec(), core_ticks_to_us(), ctrl_eq_alloc(), cudbg_collect(), cur_max_read_depth(), cxgbe_sysctls(), dack_ticks_to_usec(), eth_eq_alloc(), eth_rx(), fixup_devlog_params(), get_filter_mode(), get_params__post_init(), get_params__pre_init(), hashfilter_ntuple(), hwsz_ok(), init_eq(), init_fl(), init_iq(), is_ethoffload(), is_fpga(), is_hashfilter(), is_offload(), is_t4(), is_t5(), is_t6(), last_flit_to_ns(), max_rx_payload(), read_filter_mode_and_ingress_config(), read_i2c(), save_caps_and_params(), sbuf_cim_la(), sbuf_cim_la4(), sbuf_cim_la6(), sbuf_devlog(), set_filter(), set_filter_mask(), set_filter_mode(), set_offload_policy(), set_params__post_init(), set_params__pre_init(), set_sched_class_params(), set_tcamfilter(), setup_pad_and_pack_boundaries(), sysctl_bufsizes(), sysctl_cctrl(), sysctl_reset_sensor(), sysctl_tc(), sysctl_tp_la_mask(), sysctl_tx_vm_wr(), sysctl_vdd(), t4_add_mac(), t4_alloc_vi_func(), t4_attach(), t4_bar2_sge_qregs(), t4_change_mac(), t4_cim_read_la(), t4_configure_add_smac(), t4_filter_field_shift(), t4_flash_bootcfg_addr(), t4_flash_cfg_addr(), t4_flash_erase_sectors(), t4_get_flash_params(), t4_get_mps_bg_map(), t4_get_tx_sched(), t4_get_version_info(), t4_init_devlog_params(), t4_init_rx_buf_info(), t4_init_sge_params(), t4_init_tp_params(), t4_init_tx_sched(), t4_link_l1cfg(), t4_load_boot(), t4_load_bootcfg(), t4_load_cfg(), t4_load_fw(), t4_max_fr_depth(), t4_port_init(), t4_prep_adapter(), t4_read_flash(), t4_reserve_cl_rl_kbps(), t4_seeprom_read(), t4_seeprom_wait(), t4_seeprom_write(), t4_set_desc(), t4_set_filter_cfg(), t4_set_sched_bps(), t4_set_sched_queue(), t4_setup_intr_handlers(), t4_sge_sysctls(), t4_sysctls(), t4_tp_read_la(), t4_tweak_chip_settings(), t4_update_port_info(), t4_verify_chip_settings(), t4_write_flash(), t4vf_attach(), t4vf_get_rss_glb_config(), t4vf_get_sge_params(), t4vf_get_vfres(), t4vf_ioctl(), t4vf_prep_adapter(), tcp_ticks_to_us(), update_tx_sched(), us_to_core_ticks(), us_to_tcp_ticks(), and write_flash().

◆ pf

◆ policy

struct t4_offload_policy* adapter::policy

Definition at line 923 of file adapter.h.

Referenced by set_offload_policy(), t4_attach(), and t4_detach_common().

◆ policy_lock

struct rwlock adapter::policy_lock

Definition at line 924 of file adapter.h.

Referenced by set_offload_policy(), t4_attach(), and t4_detach_common().

◆ port

◆ rawf_base

int adapter::rawf_base

◆ rdmacaps

uint16_t adapter::rdmacaps

Definition at line 967 of file adapter.h.

Referenced by get_params__post_init(), save_caps_and_params(), and t4_map_bar_2().

◆ reg_lock

◆ regs_res

struct resource* adapter::regs_res

Definition at line 872 of file adapter.h.

Referenced by t4_detach_common(), and t4_map_bars_0_and_4().

◆ regs_rid

int adapter::regs_rid

Definition at line 871 of file adapter.h.

Referenced by t4_detach_common(), and t4_map_bars_0_and_4().

◆ reset_task

struct task adapter::reset_task

Definition at line 1000 of file adapter.h.

Referenced by sysctl_reset(), and t4_attach().

◆ reset_thread

◆ sc_do_rxcopy

int adapter::sc_do_rxcopy

Definition at line 904 of file adapter.h.

Referenced by get_scatter_segment(), and t4_sysctls().

◆ sc_lock

struct mtx adapter::sc_lock

Definition at line 976 of file adapter.h.

Referenced by begin_synchronized_op(), doom_vi(), t4_attach(), t4_detach_common(), and t4vf_attach().

◆ sensor_resets

int adapter::sensor_resets

Definition at line 1010 of file adapter.h.

Referenced by sysctl_reset_sensor().

◆ sfl_callout

struct callout adapter::sfl_callout

◆ sfl_lock

struct mtx adapter::sfl_lock

◆ sge

◆ sge_gts_reg

int adapter::sge_gts_reg

Definition at line 897 of file adapter.h.

Referenced by alloc_iq_fl_hwq(), service_iq(), service_iq_fl(), t4_attach(), and t4vf_attach().

◆ sge_kdoorbell_reg

int adapter::sge_kdoorbell_reg

Definition at line 898 of file adapter.h.

Referenced by ring_eq_db(), ring_fl_db(), t4_attach(), and t4vf_attach().

◆ smt

struct smt_data* adapter::smt

◆ swintr

int adapter::swintr

Definition at line 1009 of file adapter.h.

Referenced by t4_intr_err(), and t4_sysctls().

◆ switchcaps

uint16_t adapter::switchcaps

Definition at line 964 of file adapter.h.

Referenced by save_caps_and_params().

◆ tc_lock

◆ tc_task

struct task adapter::tc_task

Definition at line 997 of file adapter.h.

Referenced by t4_free_tx_sched(), t4_init_tx_sched(), and t4_update_tx_sched().

◆ tids

◆ tlst

struct tls_tunables adapter::tlst

Definition at line 934 of file adapter.h.

Referenced by set_params__post_init(), and t4_sysctls().

◆ toecaps

uint16_t adapter::toecaps

Definition at line 966 of file adapter.h.

Referenced by get_params__post_init(), save_caps_and_params(), and set_params__post_init().

◆ tom_softc

void* adapter::tom_softc

Definition at line 921 of file adapter.h.

◆ tp_version

char adapter::tp_version[16]

Definition at line 953 of file adapter.h.

Referenced by get_params__pre_init(), and t4_sysctls().

◆ tq

struct taskqueue* adapter::tq[MAX_NCHAN]

◆ traceq

int adapter::traceq

Definition at line 948 of file adapter.h.

Referenced by cxgbe_detach(), cxgbe_init_synchronized(), t4_attach(), and t4_cloner_create().

◆ tracer_enabled

int adapter::tracer_enabled

Definition at line 950 of file adapter.h.

Referenced by t4_set_tracer().

◆ tracer_valid

int adapter::tracer_valid

Definition at line 949 of file adapter.h.

Referenced by t4_get_tracer(), and t4_set_tracer().

◆ tt

struct tom_tunables adapter::tt

Definition at line 922 of file adapter.h.

Referenced by max_rx_payload(), t4_detach_common(), and t4_sysctls().

◆ udbs_base

volatile uint8_t* adapter::udbs_base

Definition at line 880 of file adapter.h.

Referenced by alloc_eq_hwq(), alloc_iq_fl_hwq(), and t4_map_bar_2().

◆ udbs_res

struct resource* adapter::udbs_res

Definition at line 879 of file adapter.h.

Referenced by t4_detach_common(), and t4_map_bar_2().

◆ udbs_rid

int adapter::udbs_rid

Definition at line 878 of file adapter.h.

Referenced by t4_detach_common(), and t4_map_bar_2().

◆ vpd_busy

unsigned int adapter::vpd_busy

Definition at line 884 of file adapter.h.

Referenced by t4_seeprom_read(), t4_seeprom_wait(), and t4_seeprom_write().

◆ vpd_flag

unsigned int adapter::vpd_flag

Definition at line 885 of file adapter.h.

Referenced by t4_seeprom_read(), t4_seeprom_wait(), and t4_seeprom_write().

◆ vres

◆ vxlan_port

int adapter::vxlan_port

Definition at line 906 of file adapter.h.

Referenced by enable_vxlan_rx(), t4_vxlan_start(), and t4_vxlan_stop().

◆ vxlan_refcount

u_int adapter::vxlan_refcount

Definition at line 907 of file adapter.h.

Referenced by t4_attach(), t4_resume(), t4_vxlan_start(), t4_vxlan_stop(), and update_mac_settings().


The documentation for this struct was generated from the following file: