Home
last modified time | relevance | path

Searched refs:mdio_priv (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_mdio.c34 static inline u32 enetc_mdio_rd(struct enetc_mdio_priv *mdio_priv, int off) in enetc_mdio_rd() argument
36 return enetc_port_rd_mdio(mdio_priv->hw, mdio_priv->mdio_base + off); in enetc_mdio_rd()
39 static inline void enetc_mdio_wr(struct enetc_mdio_priv *mdio_priv, int off, in enetc_mdio_wr() argument
42 enetc_port_wr_mdio(mdio_priv->hw, mdio_priv->mdio_base + off, val); in enetc_mdio_wr()
45 static bool enetc_mdio_is_busy(struct enetc_mdio_priv *mdio_priv) in enetc_mdio_is_busy() argument
47 return enetc_mdio_rd(mdio_priv, ENETC_MDIO_CFG) & MDIO_CFG_BSY; in enetc_mdio_is_busy()
50 static int enetc_mdio_wait_complete(struct enetc_mdio_priv *mdio_priv) in enetc_mdio_wait_complete() argument
54 return readx_poll_timeout(enetc_mdio_is_busy, mdio_priv, in enetc_mdio_wait_complete()
61 struct enetc_mdio_priv *mdio_priv = bus->priv; in enetc_mdio_write_c22() local
70 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CFG, mdio_cfg); in enetc_mdio_write_c22()
[all …]
H A Denetc_pci_mdio.c15 struct enetc_mdio_priv *mdio_priv; in enetc_pci_mdio_probe() local
35 bus = devm_mdiobus_alloc_size(dev, sizeof(*mdio_priv)); in enetc_pci_mdio_probe()
47 mdio_priv = bus->priv; in enetc_pci_mdio_probe()
48 mdio_priv->hw = hw; in enetc_pci_mdio_probe()
49 mdio_priv->mdio_base = ENETC_EMDIO_BASE; in enetc_pci_mdio_probe()
88 struct enetc_mdio_priv *mdio_priv; in enetc_pci_mdio_remove() local
91 mdio_priv = bus->priv; in enetc_pci_mdio_remove()
92 iounmap(mdio_priv->hw->port); in enetc_pci_mdio_remove()
H A Denetc_pf.c827 struct enetc_mdio_priv *mdio_priv; in enetc_mdio_probe() local
831 bus = devm_mdiobus_alloc_size(dev, sizeof(*mdio_priv)); in enetc_mdio_probe()
841 mdio_priv = bus->priv; in enetc_mdio_probe()
842 mdio_priv->hw = &pf->si->hw; in enetc_mdio_probe()
843 mdio_priv->mdio_base = ENETC_EMDIO_BASE; in enetc_mdio_probe()
864 struct enetc_mdio_priv *mdio_priv; in enetc_imdio_create() local
869 bus = mdiobus_alloc_size(sizeof(*mdio_priv)); in enetc_imdio_create()
880 mdio_priv = bus->priv; in enetc_imdio_create()
881 mdio_priv->hw = &pf->si->hw; in enetc_imdio_create()
882 mdio_priv->mdio_base = ENETC_PM_IMDIO_BASE; in enetc_imdio_create()
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_mdio.c12 struct sja1105_mdio_private *mdio_priv = bus->priv; in sja1105_pcs_mdio_read_c45() local
13 struct sja1105_private *priv = mdio_priv->priv; in sja1105_pcs_mdio_read_c45()
38 struct sja1105_mdio_private *mdio_priv = bus->priv; in sja1105_pcs_mdio_write_c45() local
39 struct sja1105_private *priv = mdio_priv->priv; in sja1105_pcs_mdio_write_c45()
54 struct sja1105_mdio_private *mdio_priv = bus->priv; in sja1110_pcs_mdio_read_c45() local
55 struct sja1105_private *priv = mdio_priv->priv; in sja1110_pcs_mdio_read_c45()
100 struct sja1105_mdio_private *mdio_priv = bus->priv; in sja1110_pcs_mdio_write_c45() local
101 struct sja1105_private *priv = mdio_priv->priv; in sja1110_pcs_mdio_write_c45()
154 struct sja1105_mdio_private *mdio_priv = bus->priv; in sja1105_base_t1_mdio_read_c22() local
155 struct sja1105_private *priv = mdio_priv->priv; in sja1105_base_t1_mdio_read_c22()
[all …]
/linux/drivers/net/dsa/ocelot/
H A Dfelix_vsc9959.c960 struct enetc_mdio_priv *mdio_priv; in vsc9959_mdio_bus_alloc() local
994 bus = mdiobus_alloc_size(sizeof(*mdio_priv)); in vsc9959_mdio_bus_alloc()
1004 mdio_priv = bus->priv; in vsc9959_mdio_bus_alloc()
1005 mdio_priv->hw = hw; in vsc9959_mdio_bus_alloc()
1009 mdio_priv->mdio_base = 0; in vsc9959_mdio_bus_alloc()