Searched refs:bgx_idx (Results 1 – 3 of 3) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
D | thunder_bgx.h | 186 void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable); 187 void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac); 190 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid); 191 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac); 192 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status); 193 void bgx_lmac_internal_loopback(int node, int bgx_idx, 195 u64 bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx); 196 u64 bgx_get_tx_stats(int node, int bgx_idx, int lmac, int idx);
|
D | thunder_bgx.c | 137 int bgx_get_lmac_count(int node, int bgx_idx) in bgx_get_lmac_count() argument 141 bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_get_lmac_count() 150 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status) in bgx_get_lmac_link_state() argument 156 bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_get_lmac_link_state() 167 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid) in bgx_get_lmac_mac() argument 169 struct bgx *bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_get_lmac_mac() 178 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac) in bgx_set_lmac_mac() argument 180 struct bgx *bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_set_lmac_mac() 189 void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable) in bgx_lmac_rx_tx_enable() argument 191 struct bgx *bgx = bgx_vnic[(node * MAX_BGX_PER_CN88XX) + bgx_idx]; in bgx_lmac_rx_tx_enable() [all …]
|
D | nic_main.c | 144 int bgx_idx, lmac; in nic_mbx_send_ready() local 153 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready() 156 mac = bgx_get_lmac_mac(nic->node, bgx_idx, lmac); in nic_mbx_send_ready() 216 int bgx_idx, lmac; in nic_get_bgx_stats() local 219 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 227 mbx.bgx_stats.stats = bgx_get_rx_stats(nic->node, bgx_idx, in nic_get_bgx_stats() 230 mbx.bgx_stats.stats = bgx_get_tx_stats(nic->node, bgx_idx, in nic_get_bgx_stats() 605 int bgx_idx, lmac_idx; in nic_config_loopback() local 610 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[lbk->vf_id]); in nic_config_loopback() 613 bgx_lmac_internal_loopback(nic->node, bgx_idx, lmac_idx, lbk->enable); in nic_config_loopback()
|