Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/cavium/thunder/
H A Dthunder_bgx.c43 struct bgx *bgx; member
67 struct bgx { struct
79 static struct bgx *bgx_vnic[MAX_BGX_THUNDER]; argument
107 static u64 bgx_reg_read(struct bgx *bgx, u8 lmac, u64 offset) in bgx_reg_read() argument
109 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_read()
114 static void bgx_reg_write(struct bgx *bgx, u8 lmac, u64 offset, u64 val) in bgx_reg_write() argument
116 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_write()
121 static void bgx_reg_modify(struct bgx *bgx, u8 lmac, u64 offset, u64 val) in bgx_reg_modify() argument
123 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_modify()
128 static int bgx_poll_reg(struct bgx *bgx, u8 lmac, u64 reg, u64 mask, bool zero) in bgx_poll_reg() argument
[all …]
H A Dnic_main.c53 #define NIC_SET_VF_LMAC_MAP(bgx, lmac) (((bgx & 0xF) << 4) | (lmac & 0xF)) argument
231 static void nic_get_bgx_stats(struct nicpf *nic, struct bgx_stats_msg *bgx) in nic_get_bgx_stats() argument
236 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
237 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats()
240 mbx.bgx_stats.vf_id = bgx->vf_id; in nic_get_bgx_stats()
241 mbx.bgx_stats.rx = bgx->rx; in nic_get_bgx_stats()
242 mbx.bgx_stats.idx = bgx->idx; in nic_get_bgx_stats()
243 if (bgx->rx) in nic_get_bgx_stats()
245 lmac, bgx->idx); in nic_get_bgx_stats()
248 lmac, bgx->idx); in nic_get_bgx_stats()
[all …]
H A Dthunder_bgx.h224 int bgx_get_lmac_count(int node, int bgx);