Searched refs:bgx_idx (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/vnic/ |
H A D | thunder_bgx.h | 205 void bgx_add_dmac_addr(uint64_t dmac, int node, int bgx_idx, int lmac); 208 const uint8_t *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid); 209 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const uint8_t *mac); 210 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status); 211 void bgx_lmac_internal_loopback(int node, int bgx_idx, 213 uint64_t bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx); 214 uint64_t bgx_get_tx_stats(int node, int bgx_idx, int lmac, int idx);
|
H A D | thunder_bgx.c | 280 bgx_get_lmac_count(int node, int bgx_idx) in bgx_get_lmac_count() argument 284 bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_get_lmac_count() 293 bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status) in bgx_get_lmac_link_state() argument 299 bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_get_lmac_link_state() 310 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid) in bgx_get_lmac_mac() argument 312 struct bgx *bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_get_lmac_mac() 321 bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const uint8_t *mac) in bgx_set_lmac_mac() argument 323 struct bgx *bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_set_lmac_mac() 447 bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx) in bgx_get_rx_stats() argument 451 bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_get_rx_stats() [all …]
|
H A D | nic_main.c | 443 int bgx_idx, lmac; in nic_mbx_send_ready() local 455 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready() 458 mac = bgx_get_lmac_mac(nic->node, bgx_idx, lmac); in nic_mbx_send_ready() 526 int bgx_idx, lmac; in nic_get_bgx_stats() local 529 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 538 bgx_get_rx_stats(nic->node, bgx_idx, lmac, bgx->idx); in nic_get_bgx_stats() 541 bgx_get_tx_stats(nic->node, bgx_idx, lmac, bgx->idx); in nic_get_bgx_stats() 869 int bgx_idx, lmac_idx; in nic_config_loopback() local 874 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[lbk->vf_id]); in nic_config_loopback() 877 bgx_lmac_internal_loopback(nic->node, bgx_idx, lmac_idx, lbk->enable); in nic_config_loopback()
|