Searched refs:mdio_ctl (Results 1 – 6 of 6) sorted by relevance
/openbmc/u-boot/drivers/net/fm/ |
H A D | tgec_phy.c | 22 u32 mdio_ctl; in tgec_mdio_write() local 36 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in tgec_mdio_write() 37 out_be32(®s->mdio_ctl, mdio_ctl); in tgec_mdio_write() 64 u32 mdio_ctl; in tgec_mdio_read() local 78 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in tgec_mdio_read() 79 out_be32(®s->mdio_ctl, mdio_ctl); in tgec_mdio_read() 89 mdio_ctl |= MDIO_CTL_READ; in tgec_mdio_read() 90 out_be32(®s->mdio_ctl, mdio_ctl); in tgec_mdio_read()
|
H A D | memac_phy.c | 42 u32 mdio_ctl; in memac_mdio_write() local 58 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in memac_mdio_write() 59 memac_out_32(®s->mdio_ctl, mdio_ctl); in memac_mdio_write() 87 u32 mdio_ctl; in memac_mdio_read() local 105 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in memac_mdio_read() 106 memac_out_32(®s->mdio_ctl, mdio_ctl); in memac_mdio_read() 117 mdio_ctl |= MDIO_CTL_READ; in memac_mdio_read() 118 memac_out_32(®s->mdio_ctl, mdio_ctl); in memac_mdio_read()
|
/openbmc/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 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() 175 u32 mdio_ctl, mdio_cfg; in enetc_mdio_read_c45() local [all …]
|
/openbmc/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 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 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 227 xgmac_write32(mdio_ctl, ®s->mdio_ctl, endian); in xgmac_mdio_read_c22() 236 xgmac_write32(mdio_ctl | MDIO_CTL_READ, ®s->mdio_ctl, endian); in xgmac_mdio_read_c22() 271 u32 mdio_stat, mdio_ctl; in xgmac_mdio_read_c45() local 286 xgmac_write32(mdio_ctl, ®s->mdio_ctl, endian); in xgmac_mdio_read_c45() [all …]
|
/openbmc/u-boot/include/ |
H A D | fsl_tgec.h | 178 u32 mdio_ctl; /* MDIO control */ member
|
H A D | fsl_memac.h | 236 u32 mdio_ctl; /* MDIO control */ member
|