/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/ |
H A D | thunder_bgx.h | 219 void bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, u64 mac, u8 vf); 220 void bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf); 221 void bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode); 223 void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable); 224 void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac); 227 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid); 228 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac); 229 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status); 230 void bgx_lmac_internal_loopback(int node, int bgx_idx, 232 void bgx_config_timestamping(int node, int bgx_idx, in [all...] |
H A D | thunder_bgx.c | 169 static struct bgx *get_bgx(int node, int bgx_idx) in get_bgx() argument 171 int idx = (node * max_bgx_per_node) + bgx_idx; in get_bgx() 192 int bgx_get_lmac_count(int node, int bgx_idx) in bgx_get_lmac_count() argument 196 bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_count() 205 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status) in bgx_get_lmac_link_state() argument 211 bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_link_state() 223 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid) in bgx_get_lmac_mac() argument 225 struct bgx *bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_mac() 234 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac) in bgx_set_lmac_mac() argument 236 struct bgx *bgx = get_bgx(node, bgx_idx); in bgx_set_lmac_mac() 331 bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, u64 cam_dmac, u8 vf_id) bgx_set_dmac_cam_filter() argument 354 bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode) bgx_set_xcast_mode() argument 388 bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf_id) bgx_reset_xcast_mode() argument 402 bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable) bgx_lmac_rx_tx_enable() argument 434 bgx_config_timestamping(int node, int bgx_idx, int lmacid, bool enable) bgx_config_timestamping() argument 462 bgx_lmac_get_pfc(int node, int bgx_idx, int lmacid, void *pause) bgx_lmac_get_pfc() argument 482 bgx_lmac_set_pfc(int node, int bgx_idx, int lmacid, void *pause) bgx_lmac_set_pfc() argument 630 bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx) bgx_get_rx_stats() argument 644 bgx_get_tx_stats(int node, int bgx_idx, int lmac, int idx) bgx_get_tx_stats() argument 657 bgx_lmac_internal_loopback(int node, int bgx_idx, int lmac_idx, bool enable) bgx_lmac_internal_loopback() argument [all...] |
H A D | nic_main.c | 161 int bgx_idx, lmac; in nic_mbx_send_ready() local 170 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready() 173 mac = bgx_get_lmac_mac(nic->node, bgx_idx, lmac); in nic_mbx_send_ready() 233 int bgx_idx, lmac; in nic_get_bgx_stats() local 236 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 244 mbx.bgx_stats.stats = bgx_get_rx_stats(nic->node, bgx_idx, in nic_get_bgx_stats() 247 mbx.bgx_stats.stats = bgx_get_tx_stats(nic->node, bgx_idx, in nic_get_bgx_stats() 762 int bgx_idx, lmac_idx; in nic_config_loopback() local 767 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[lbk->vf_id]); in nic_config_loopback() 770 bgx_lmac_internal_loopback(nic->node, bgx_idx, lmac_id in nic_config_loopback() 889 u8 lmac, bgx_idx; nic_config_timestamp() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/thunder/ |
H A D | thunder_bgx.h | 219 void bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, u64 mac, u8 vf); 220 void bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf); 221 void bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode); 223 void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable); 224 void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac); 227 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid); 228 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac); 229 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status); 230 void bgx_lmac_internal_loopback(int node, int bgx_idx, 232 void bgx_config_timestamping(int node, int bgx_idx, in [all...] |
H A D | thunder_bgx.c | 169 static struct bgx *get_bgx(int node, int bgx_idx) in get_bgx() argument 171 int idx = (node * max_bgx_per_node) + bgx_idx; in get_bgx() 192 int bgx_get_lmac_count(int node, int bgx_idx) in bgx_get_lmac_count() argument 196 bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_count() 205 void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status) in bgx_get_lmac_link_state() argument 211 bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_link_state() 223 const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid) in bgx_get_lmac_mac() argument 225 struct bgx *bgx = get_bgx(node, bgx_idx); in bgx_get_lmac_mac() 234 void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac) in bgx_set_lmac_mac() argument 236 struct bgx *bgx = get_bgx(node, bgx_idx); in bgx_set_lmac_mac() 331 bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, u64 cam_dmac, u8 vf_id) bgx_set_dmac_cam_filter() argument 354 bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode) bgx_set_xcast_mode() argument 388 bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf_id) bgx_reset_xcast_mode() argument 402 bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable) bgx_lmac_rx_tx_enable() argument 434 bgx_config_timestamping(int node, int bgx_idx, int lmacid, bool enable) bgx_config_timestamping() argument 462 bgx_lmac_get_pfc(int node, int bgx_idx, int lmacid, void *pause) bgx_lmac_get_pfc() argument 482 bgx_lmac_set_pfc(int node, int bgx_idx, int lmacid, void *pause) bgx_lmac_set_pfc() argument 627 bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx) bgx_get_rx_stats() argument 641 bgx_get_tx_stats(int node, int bgx_idx, int lmac, int idx) bgx_get_tx_stats() argument 654 bgx_lmac_internal_loopback(int node, int bgx_idx, int lmac_idx, bool enable) bgx_lmac_internal_loopback() argument [all...] |
H A D | nic_main.c | 161 int bgx_idx, lmac; in nic_mbx_send_ready() local 170 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready() 173 mac = bgx_get_lmac_mac(nic->node, bgx_idx, lmac); in nic_mbx_send_ready() 233 int bgx_idx, lmac; in nic_get_bgx_stats() local 236 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 244 mbx.bgx_stats.stats = bgx_get_rx_stats(nic->node, bgx_idx, in nic_get_bgx_stats() 247 mbx.bgx_stats.stats = bgx_get_tx_stats(nic->node, bgx_idx, in nic_get_bgx_stats() 762 int bgx_idx, lmac_idx; in nic_config_loopback() local 767 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[lbk->vf_id]); in nic_config_loopback() 770 bgx_lmac_internal_loopback(nic->node, bgx_idx, lmac_id in nic_config_loopback() 889 u8 lmac, bgx_idx; nic_config_timestamp() local [all...] |