xgene_enet_pdata
static void xgene_cle_enable_ptree(struct xgene_enet_pdata *pdata,
static int xgene_cle_setup_dbptr(struct xgene_enet_pdata *pdata,
static void xgene_cle_idt_to_hw(struct xgene_enet_pdata *pdata,
static void xgene_cle_dbptr_to_hw(struct xgene_enet_pdata *pdata,
static int xgene_cle_setup_node(struct xgene_enet_pdata *pdata,
static int xgene_cle_setup_ptree(struct xgene_enet_pdata *pdata,
static void xgene_cle_setup_def_dbptr(struct xgene_enet_pdata *pdata,
static int xgene_cle_set_rss_idt(struct xgene_enet_pdata *pdata)
static int xgene_cle_setup_rss(struct xgene_enet_pdata *pdata)
static int xgene_enet_cle_init(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
static void xgene_get_extd_stats(struct xgene_enet_pdata *pdata)
int xgene_extd_stats_init(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata,
static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata,
static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *pdata,
static void xgene_enet_wr_mcx_csr(struct xgene_enet_pdata *pdata,
void xgene_enet_wr_mac(struct xgene_enet_pdata *pdata, u32 wr_addr, u32 wr_data)
static void xgene_enet_rd_csr(struct xgene_enet_pdata *pdata,
static void xgene_enet_rd_diag_csr(struct xgene_enet_pdata *pdata,
static void xgene_enet_rd_mcx_csr(struct xgene_enet_pdata *pdata,
u32 xgene_enet_rd_mac(struct xgene_enet_pdata *pdata, u32 rd_addr)
u32 xgene_enet_rd_stat(struct xgene_enet_pdata *pdata, u32 rd_addr)
static void xgene_gmac_set_mac_addr(struct xgene_enet_pdata *pdata)
static int xgene_enet_ecc_init(struct xgene_enet_pdata *pdata)
static void xgene_gmac_reset(struct xgene_enet_pdata *pdata)
static void xgene_enet_configure_clock(struct xgene_enet_pdata *pdata)
static void xgene_gmac_set_speed(struct xgene_enet_pdata *pdata)
static void xgene_enet_set_frame_size(struct xgene_enet_pdata *pdata, int size)
static void xgene_gmac_enable_tx_pause(struct xgene_enet_pdata *pdata,
static void xgene_gmac_flowctl_tx(struct xgene_enet_pdata *pdata, bool enable)
static void xgene_gmac_flowctl_rx(struct xgene_enet_pdata *pdata, bool enable)
static void xgene_gmac_init(struct xgene_enet_pdata *pdata)
static void xgene_gmac_get_drop_cnt(struct xgene_enet_pdata *pdata,
static void xgene_enet_config_ring_if_assoc(struct xgene_enet_pdata *pdata)
static void xgene_enet_cle_bypass(struct xgene_enet_pdata *pdata,
struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev);
static void xgene_gmac_rx_enable(struct xgene_enet_pdata *pdata)
static void xgene_gmac_tx_enable(struct xgene_enet_pdata *pdata)
static void xgene_gmac_rx_disable(struct xgene_enet_pdata *pdata)
static void xgene_gmac_tx_disable(struct xgene_enet_pdata *pdata)
bool xgene_ring_mgr_init(struct xgene_enet_pdata *p)
static int xgene_enet_reset(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev);
static void xgene_enet_clear(struct xgene_enet_pdata *pdata,
static void xgene_gport_shutdown(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
static int xgene_mdiobus_register(struct xgene_enet_pdata *pdata,
int xgene_enet_mdio_config(struct xgene_enet_pdata *pdata)
void xgene_enet_phy_disconnect(struct xgene_enet_pdata *pdata)
void xgene_enet_mdio_remove(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata;
int xgene_enet_mdio_config(struct xgene_enet_pdata *pdata);
void xgene_enet_mdio_remove(struct xgene_enet_pdata *pdata);
bool xgene_ring_mgr_init(struct xgene_enet_pdata *p);
void xgene_enet_phy_disconnect(struct xgene_enet_pdata *pdata);
u32 xgene_enet_rd_mac(struct xgene_enet_pdata *pdata, u32 rd_addr);
void xgene_enet_wr_mac(struct xgene_enet_pdata *pdata, u32 wr_addr,
u32 xgene_enet_rd_stat(struct xgene_enet_pdata *pdata, u32 rd_addr);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata;
static void xgene_enet_delete_desc_rings(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata;
static void xgene_enet_free_desc_rings(struct xgene_enet_pdata *pdata)
static bool is_irq_mbox_required(struct xgene_enet_pdata *pdata,
static void __iomem *xgene_enet_ring_cmd_base(struct xgene_enet_pdata *pdata,
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata;
static enum xgene_ring_owner xgene_derive_ring_owner(struct xgene_enet_pdata *p)
static u8 xgene_start_cpu_bufnum(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata)
static void xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata)
static int xgene_get_tx_delay(struct xgene_enet_pdata *pdata)
static int xgene_get_rx_delay(struct xgene_enet_pdata *pdata)
static int xgene_enet_get_irqs(struct xgene_enet_pdata *pdata)
static void xgene_enet_check_phy_handle(struct xgene_enet_pdata *pdata)
static void xgene_enet_gpiod_get(struct xgene_enet_pdata *pdata)
static int xgene_enet_get_resources(struct xgene_enet_pdata *pdata)
static int xgene_enet_init_hw(struct xgene_enet_pdata *pdata)
static void xgene_enet_setup_ops(struct xgene_enet_pdata *pdata)
static void xgene_enet_napi_add(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata;
ndev = alloc_etherdev_mqs(sizeof(struct xgene_enet_pdata),
struct xgene_enet_pdata *pdata;
struct xgene_enet_pdata *pdata;
struct xgene_enet_pdata *pdata = netdev_priv(cp_ring->ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(tx_ring->ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata;
struct xgene_enet_pdata *pdata;
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
struct xgene_enet_pdata *pdata;
static void xgene_enet_napi_enable(struct xgene_enet_pdata *pdata)
static void xgene_enet_napi_disable(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
void (*init)(struct xgene_enet_pdata *pdata);
void (*reset)(struct xgene_enet_pdata *pdata);
void (*tx_enable)(struct xgene_enet_pdata *pdata);
void (*rx_enable)(struct xgene_enet_pdata *pdata);
void (*tx_disable)(struct xgene_enet_pdata *pdata);
void (*rx_disable)(struct xgene_enet_pdata *pdata);
void (*get_drop_cnt)(struct xgene_enet_pdata *pdata, u32 *rx, u32 *tx);
void (*set_speed)(struct xgene_enet_pdata *pdata);
void (*set_mac_addr)(struct xgene_enet_pdata *pdata);
void (*set_framesize)(struct xgene_enet_pdata *pdata, int framesize);
void (*set_mss)(struct xgene_enet_pdata *pdata, u16 mss, u8 index);
void (*enable_tx_pause)(struct xgene_enet_pdata *pdata, bool enable);
void (*flowctl_rx)(struct xgene_enet_pdata *pdata, bool enable);
void (*flowctl_tx)(struct xgene_enet_pdata *pdata, bool enable);
int (*reset)(struct xgene_enet_pdata *pdata);
void (*clear)(struct xgene_enet_pdata *pdata,
void (*cle_bypass)(struct xgene_enet_pdata *pdata,
void (*shutdown)(struct xgene_enet_pdata *pdata);
int (*cle_init)(struct xgene_enet_pdata *pdata);
struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev);
int xgene_extd_stats_init(struct xgene_enet_pdata *pdata);
struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev);
struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev);
static void xgene_enet_config_ring_if_assoc(struct xgene_enet_pdata *p)
static void xgene_mii_phy_write(struct xgene_enet_pdata *p, u8 phy_id,
static u32 xgene_mii_phy_read(struct xgene_enet_pdata *p, u8 phy_id, u32 reg)
static void xgene_enet_wr_csr(struct xgene_enet_pdata *p, u32 offset, u32 val)
static void xgene_sgmac_reset(struct xgene_enet_pdata *p)
static void xgene_sgmac_set_mac_addr(struct xgene_enet_pdata *p)
static u32 xgene_enet_link_status(struct xgene_enet_pdata *p)
static void xgene_enet_wr_clkrst_csr(struct xgene_enet_pdata *p, u32 offset,
static void xgene_sgmii_configure(struct xgene_enet_pdata *p)
static void xgene_sgmii_tbi_control_reset(struct xgene_enet_pdata *p)
static void xgene_sgmii_reset(struct xgene_enet_pdata *p)
static void xgene_sgmac_set_speed(struct xgene_enet_pdata *p)
static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *p,
static void xgene_sgmac_set_frame_size(struct xgene_enet_pdata *pdata, int size)
static void xgene_sgmii_enable_autoneg(struct xgene_enet_pdata *p)
static void xgene_sgmac_rxtx(struct xgene_enet_pdata *p, u32 bits, bool set)
static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *p,
static void xgene_sgmac_flowctl_tx(struct xgene_enet_pdata *p, bool enable)
static void xgene_sgmac_flowctl_rx(struct xgene_enet_pdata *pdata, bool enable)
static void xgene_sgmac_init(struct xgene_enet_pdata *p)
static void xgene_enet_wr_mcx_csr(struct xgene_enet_pdata *pdata,
static void xgene_sgmac_rx_enable(struct xgene_enet_pdata *p)
static void xgene_sgmac_tx_enable(struct xgene_enet_pdata *p)
static void xgene_sgmac_rx_disable(struct xgene_enet_pdata *p)
static void xgene_sgmac_tx_disable(struct xgene_enet_pdata *p)
static int xgene_enet_reset(struct xgene_enet_pdata *p)
static u32 xgene_enet_rd_csr(struct xgene_enet_pdata *p, u32 offset)
static void xgene_enet_cle_bypass(struct xgene_enet_pdata *p,
static u32 xgene_enet_rd_diag_csr(struct xgene_enet_pdata *p, u32 offset)
static void xgene_enet_clear(struct xgene_enet_pdata *pdata,
static void xgene_enet_shutdown(struct xgene_enet_pdata *p)
struct xgene_enet_pdata *p = container_of(to_delayed_work(work),
struct xgene_enet_pdata, link_work);
static u32 xgene_enet_rd_mcx_csr(struct xgene_enet_pdata *p, u32 offset)
static void xgene_sgmac_enable_tx_pause(struct xgene_enet_pdata *p, bool enable)
static int xgene_enet_ecc_init(struct xgene_enet_pdata *p)
static void xgene_sgmac_get_drop_cnt(struct xgene_enet_pdata *pdata,
static bool xgene_enet_rd_pcs(struct xgene_enet_pdata *pdata,
static void xgene_enet_rd_axg_csr(struct xgene_enet_pdata *pdata,
static int xgene_enet_ecc_init(struct xgene_enet_pdata *pdata)
static void xgene_xgmac_get_drop_cnt(struct xgene_enet_pdata *pdata,
static void xgene_enet_config_ring_if_assoc(struct xgene_enet_pdata *pdata)
static void xgene_xgmac_reset(struct xgene_enet_pdata *pdata)
static void xgene_pcs_reset(struct xgene_enet_pdata *pdata)
static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata,
static void xgene_xgmac_set_mac_addr(struct xgene_enet_pdata *pdata)
static void xgene_xgmac_set_mss(struct xgene_enet_pdata *pdata,
static void xgene_xgmac_set_frame_size(struct xgene_enet_pdata *pdata, int size)
static u32 xgene_enet_link_status(struct xgene_enet_pdata *pdata)
static void xgene_xgmac_enable_tx_pause(struct xgene_enet_pdata *pdata,
static void xgene_xgmac_flowctl_tx(struct xgene_enet_pdata *pdata, bool enable)
static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata,
static void xgene_xgmac_flowctl_rx(struct xgene_enet_pdata *pdata, bool enable)
static void xgene_xgmac_init(struct xgene_enet_pdata *pdata)
static void xgene_xgmac_rx_enable(struct xgene_enet_pdata *pdata)
static void xgene_xgmac_tx_enable(struct xgene_enet_pdata *pdata)
static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *pdata,
static void xgene_xgmac_rx_disable(struct xgene_enet_pdata *pdata)
static void xgene_xgmac_tx_disable(struct xgene_enet_pdata *pdata)
static int xgene_enet_reset(struct xgene_enet_pdata *pdata)
static void xgene_enet_xgcle_bypass(struct xgene_enet_pdata *pdata,
static void xgene_enet_shutdown(struct xgene_enet_pdata *pdata)
static void xgene_enet_clear(struct xgene_enet_pdata *pdata,
static int xgene_enet_gpio_lookup(struct xgene_enet_pdata *pdata)
struct xgene_enet_pdata *pdata = container_of(to_delayed_work(work),
struct xgene_enet_pdata, link_work);
static void xgene_enet_wr_pcs(struct xgene_enet_pdata *pdata,
static void xgene_enet_wr_axg_csr(struct xgene_enet_pdata *pdata,
static void xgene_enet_rd_csr(struct xgene_enet_pdata *pdata,
static void xgene_enet_rd_diag_csr(struct xgene_enet_pdata *pdata,