Home
last modified time | relevance | path

Searched refs:cgx (Results 1 – 6 of 6) sorted by relevance

/drivers/net/octeontx2/
A Dcgx.c59 struct cgx *cgx; in nix_get_cgx_lmac() local
155 struct cgx *cgx = lmac->cgx; in cgx_lmac_rx_tx_enable() local
158 if (!cgx || lmac_id >= cgx->lmac_count) in cgx_lmac_rx_tx_enable()
185 struct cgx *cgx = lmac->cgx; in cgx_lmac_internal_loopback() local
191 if (!cgx || lmac_id >= cgx->lmac_count) in cgx_lmac_internal_loopback()
212 static int cgx_lmac_init(struct cgx *cgx) in cgx_lmac_init() argument
221 cgx->cgx_id, cgx->reg_base); in cgx_lmac_init()
235 lmac->cgx = cgx; in cgx_lmac_init()
253 struct cgx *cgx = dev_get_priv(dev); in cgx_probe() local
272 struct cgx *cgx = dev_get_priv(dev); in cgx_remove() local
[all …]
A Dcgx_intf.c43 return cgx_rd_scrx(cgx, lmac, 0); in cgx_rd_scr0()
48 return cgx_rd_scrx(cgx, lmac, 1); in cgx_rd_scr1()
65 scr1.u = cgx_rd_scr1(cgx, lmac); in set_ownership()
67 cgx_wr_scr1(cgx, lmac, scr1.u); in set_ownership()
78 scr1.u = cgx_rd_scr1(cgx, lmac); in wait_for_ownership()
79 scr0.u = cgx_rd_scr0(cgx, lmac); in wait_for_ownership()
92 cgx_wr_scr0(cgx, lmac, scr0.u); in wait_for_ownership()
122 scr1.u = cgx_rd_scr1(cgx, lmac); in cgx_intf_req()
130 cgx_wr_scr1(cgx, lmac, scr1.u); in cgx_intf_req()
136 scr0.u = cgx_rd_scr0(cgx, lmac); in cgx_intf_req()
[all …]
A Dcgx.h42 struct cgx;
47 struct cgx *cgx; member
60 struct cgx { struct
69 static inline void cgx_write(struct cgx *cgx, u8 lmac, u64 offset, u64 val) in cgx_write() argument
71 writeq(val, cgx->reg_base + CMR_SHIFT(lmac) + offset); in cgx_write()
74 static inline u64 cgx_read(struct cgx *cgx, u8 lmac, u64 offset) in cgx_read() argument
76 return readq(cgx->reg_base + CMR_SHIFT(lmac) + offset); in cgx_read()
97 int cgx_intf_get_link_sts(u8 cgx, u8 lmac, u64 *lnk_sts);
98 int cgx_intf_link_up_dwn(u8 cgx, u8 lmac, u8 up_dwn, u64 *lnk_sts);
99 int cgx_intf_get_mac_addr(u8 cgx, u8 lmac, u8 *mac);
A DMakefile6 obj-$(CONFIG_NET_OCTEONTX2) += cgx.o nix_af.o nix.o rvu_pf.o \
A Dnix.c428 NIX_LINK_E_CGXX_LMACX(nix->lmac->cgx->cgx_id, in nix_lf_alloc()
431 NIX_CHAN_E_CGXX_LMACX_CHX(nix->lmac->cgx->cgx_id, in nix_lf_alloc()
438 nix->lmac->cgx->cgx_id, nix->lmac->lmac_id); in nix_lf_alloc()
780 lmac->cgx->cgx_id, lmac->lmac_id, in nix_lf_init()
820 *cgxid = lmac->cgx->cgx_id; in nix_get_cgx_lmac_id()
830 printf(" CGX%d LMAC%d [%s]", lmac->cgx->cgx_id, lmac->lmac_id, in nix_print_mac_info()
A Dnix.h111 struct cgx;

Completed in 16 milliseconds