Home
last modified time | relevance | path

Searched full:mdio_cfg (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dfman_memac_mii_acc.c41 tmp_reg = ioread32be(&mii_regs->mdio_cfg); in write_phy_reg_10g()
49 iowrite32be(tmp_reg, &mii_regs->mdio_cfg); in write_phy_reg_10g()
52 while ((ioread32be(&mii_regs->mdio_cfg)) & MDIO_CFG_BSY) in write_phy_reg_10g()
60 while ((ioread32be(&mii_regs->mdio_cfg)) & MDIO_CFG_BSY) in write_phy_reg_10g()
77 tmp_reg = ioread32be(&mii_regs->mdio_cfg); in read_phy_reg_10g()
85 iowrite32be(tmp_reg, &mii_regs->mdio_cfg); in read_phy_reg_10g()
88 while ((ioread32be(&mii_regs->mdio_cfg)) & MDIO_CFG_BSY) in read_phy_reg_10g()
96 while ((ioread32be(&mii_regs->mdio_cfg)) & MDIO_CFG_BSY) in read_phy_reg_10g()
112 return ioread32be(&mii_regs->mdio_cfg); in read_phy_reg_10g()
121 tmp_reg = ioread32be(&mii_regs->mdio_cfg); in write_phy_reg_1g()
[all …]
H A Dmemac_mii_acc.h62 volatile uint32_t mdio_cfg; /* 0x030 */ member
/freebsd/sys/dev/enetc/
H A Denetc_mdio.c66 uint32_t mdio_cfg, mdio_ctl; in enetc_mdio_read() local
69 mdio_cfg = MDIO_CFG_CLKDIV(ENETC_MDC_DIV) | MDIO_CFG_NEG; in enetc_mdio_read()
73 mdio_cfg |= MDIO_CFG_ENC45; in enetc_mdio_read()
77 mdio_cfg &= ~MDIO_CFG_ENC45; in enetc_mdio_read()
80 ENETC_MDIO_WR4(regs, mdio_base, ENETC_MDIO_CFG, mdio_cfg); in enetc_mdio_read()
114 uint32_t mdio_cfg, mdio_ctl; in enetc_mdio_write() local
117 mdio_cfg = MDIO_CFG_CLKDIV(ENETC_MDC_DIV) | MDIO_CFG_NEG; in enetc_mdio_write()
121 mdio_cfg |= MDIO_CFG_ENC45; in enetc_mdio_write()
125 mdio_cfg &= ~MDIO_CFG_ENC45; in enetc_mdio_write()
128 ENETC_MDIO_WR4(regs, mdio_base, ENETC_MDIO_CFG, mdio_cfg); in enetc_mdio_write()
/freebsd/sys/dev/dpaa2/
H A Dmemac_mdio_common.c123 * 0x0030 MDIO Configuration Register (MDIO_CFG)
134 #define MDIO_CFG 0x00030 macro
177 val = memac_read_4(sc, MDIO_CFG); in memac_miibus_wait_no_busy()
195 cfg = memac_read_4(sc, MDIO_CFG); in memac_miibus_readreg()
198 memac_write_4(sc, MDIO_CFG, cfg); in memac_miibus_readreg()
213 cfg = memac_read_4(sc, MDIO_CFG); in memac_miibus_readreg()
237 cfg = memac_read_4(sc, MDIO_CFG); in memac_miibus_writereg()
240 memac_write_4(sc, MDIO_CFG, cfg); in memac_miibus_writereg()
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dfsl,fman-mdio.yaml51 of MDIO_CFG[BSY] being cleared, when performing an
58 describing that the MDIO_CFG[MDIO_RD_ER] bit may be falsely
61 MDIO_CFG[MDIO_RD_ER] bit set, even when there is no error and
65 MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit.
H A Dfsl-fman.txt303 of MDIO_CFG[BSY] being cleared, when performing an
310 describing that the MDIO_CFG[MDIO_RD_ER] bit may be falsely
313 MDIO_CFG[MDIO_RD_ER] bit set, even when there is no error and
317 MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit.
/freebsd/sys/contrib/ncsw/inc/flib/
H A Dfsl_fman_memac_mii_acc.h65 uint32_t mdio_cfg; /* 0x030 */ member