Searched refs:mdio_ctl (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_mdio.c | 62 u32 mdio_ctl, mdio_cfg; in enetc_mdio_write_c22() local 77 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write_c22() 78 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CTL, mdio_ctl); in enetc_mdio_write_c22() 95 u32 mdio_ctl, mdio_cfg; in enetc_mdio_write_c45() local 108 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write_c45() 109 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CTL, mdio_ctl); in enetc_mdio_write_c45() 132 u32 mdio_ctl, mdio_cfg; in enetc_mdio_read_c22() local 147 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read_c22() 148 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CTL, mdio_ctl); in enetc_mdio_read_c22() 151 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CTL, mdio_ctl | MDIO_CTL_READ); in enetc_mdio_read_c22() [all …]
|
/linux/drivers/net/ethernet/freescale/ |
H A D | xgmac_mdio.c | 34 __be32 mdio_ctl; /* MDIO control */ member 138 u32 mdio_ctl, mdio_stat; in xgmac_mdio_write_c22() local 150 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_write_c22() 151 xgmac_write32(mdio_ctl, ®s->mdio_ctl, endian); in xgmac_mdio_write_c22() 169 u32 mdio_ctl, mdio_stat; in xgmac_mdio_write_c45() local 182 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_write_c45() 183 xgmac_write32(mdio_ctl, ®s->mdio_ctl, endian); in xgmac_mdio_write_c45() 214 uint32_t mdio_ctl; in xgmac_mdio_read_c22() local 226 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_read_c22() 227 xgmac_write32(mdio_ctl, ®s->mdio_ctl, endian); in xgmac_mdio_read_c22() [all …]
|