Searched refs:mdio_ctl (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/ |
D | enetc_mdio.c | 61 u32 mdio_ctl, mdio_cfg; in enetc_mdio_write() local 82 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write() 83 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CTL, mdio_ctl); in enetc_mdio_write() 108 u32 mdio_ctl, mdio_cfg; in enetc_mdio_read() local 128 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read() 129 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CTL, mdio_ctl); in enetc_mdio_read() 141 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CTL, mdio_ctl | MDIO_CTL_READ); in enetc_mdio_read()
|
/linux-6.1.9/drivers/net/ethernet/freescale/ |
D | xgmac_mdio.c | 34 __be32 mdio_ctl; /* MDIO control */ member 141 u32 mdio_ctl, mdio_stat; in xgmac_mdio_write() local 163 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_write() 164 xgmac_write32(mdio_ctl, ®s->mdio_ctl, endian); in xgmac_mdio_write() 197 uint32_t mdio_ctl; in xgmac_mdio_read() local 217 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_read() 218 xgmac_write32(mdio_ctl, ®s->mdio_ctl, endian); in xgmac_mdio_read() 236 xgmac_write32(mdio_ctl | MDIO_CTL_READ, ®s->mdio_ctl, endian); in xgmac_mdio_read()
|