Home
last modified time | relevance | path

Searched refs:bgx_idx (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/cavium/thunder/
Dthunder_bgx.h213 void bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, u64 mac, u8 vf);
214 void bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf);
215 void bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode);
217 void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable);
218 void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac);
221 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid);
222 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac);
223 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status);
224 void bgx_lmac_internal_loopback(int node, int bgx_idx,
226 void bgx_config_timestamping(int node, int bgx_idx, int lmacid, bool enable);
[all …]
Dthunder_bgx.c172 static struct bgx *get_bgx(int node, int bgx_idx) in get_bgx() argument
174 int idx = (node * max_bgx_per_node) + bgx_idx; in get_bgx()
195 int bgx_get_lmac_count(int node, int bgx_idx) in bgx_get_lmac_count() argument
199 bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_count()
208 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status) in bgx_get_lmac_link_state() argument
214 bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_link_state()
226 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid) in bgx_get_lmac_mac() argument
228 struct bgx *bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_mac()
237 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac) in bgx_set_lmac_mac() argument
239 struct bgx *bgx = get_bgx(node, bgx_idx); in bgx_set_lmac_mac()
[all …]
Dnic_main.c170 int bgx_idx, lmac; in nic_mbx_send_ready() local
179 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready()
182 mac = bgx_get_lmac_mac(nic->node, bgx_idx, lmac); in nic_mbx_send_ready()
242 int bgx_idx, lmac; in nic_get_bgx_stats() local
245 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
253 mbx.bgx_stats.stats = bgx_get_rx_stats(nic->node, bgx_idx, in nic_get_bgx_stats()
256 mbx.bgx_stats.stats = bgx_get_tx_stats(nic->node, bgx_idx, in nic_get_bgx_stats()
771 int bgx_idx, lmac_idx; in nic_config_loopback() local
776 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[lbk->vf_id]); in nic_config_loopback()
779 bgx_lmac_internal_loopback(nic->node, bgx_idx, lmac_idx, lbk->enable); in nic_config_loopback()
[all …]