Home
last modified time | relevance | path

Searched refs:mmd (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dmdio_10g.c34 int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, in ef4_mdio_reset_mmd() argument
42 ef4_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET); in ef4_mdio_reset_mmd()
46 ctrl = ef4_mdio_read(port, mmd, MDIO_CTRL1); in ef4_mdio_reset_mmd()
54 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd() argument
58 if (mmd != MDIO_MMD_AN) { in ef4_mdio_check_mmd()
60 status = ef4_mdio_read(efx, mmd, MDIO_STAT2); in ef4_mdio_check_mmd()
63 "PHY MMD %d not responding.\n", mmd); in ef4_mdio_check_mmd()
84 int mmd = 0; in ef4_mdio_wait_reset_mmds() local
89 stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); in ef4_mdio_wait_reset_mmds()
93 " MMD %d\n", mmd); in ef4_mdio_wait_reset_mmds()
[all …]
Dtxc43128_phy.c208 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) in txc_bist_one() argument
222 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
226 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
229 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, in txc_bist_one()
237 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
241 bctl = ef4_mdio_read(efx, mmd, TXC_BIST_CTL); in txc_bist_one()
246 int count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane); in txc_bist_one()
252 count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane); in txc_bist_one()
264 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 0); in txc_bist_one()
362 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) in txc_glrgs_lane_power() argument
[all …]
Dmdio_10g.h36 static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) in ef4_mdio_read_id() argument
38 u16 id_low = ef4_mdio_read(efx, mmd, MDIO_DEVID2); in ef4_mdio_read_id()
39 u16 id_hi = ef4_mdio_read(efx, mmd, MDIO_DEVID1); in ef4_mdio_read_id()
59 const char *ef4_mdio_mmd_name(int mmd);
67 int ef4_mdio_reset_mmd(struct ef4_nic *efx, int mmd, int spins, int spintime);
Dqt202x_phy.c464 int mmd, reg_base, rc, i; in qt202x_phy_get_module_eeprom() local
467 mmd = MDIO_MMD_PCS; in qt202x_phy_get_module_eeprom()
470 mmd = MDIO_MMD_PMAPMD; in qt202x_phy_get_module_eeprom()
475 rc = ef4_mdio_read(efx, mmd, reg_base + ee->offset + i); in qt202x_phy_get_module_eeprom()
/Linux-v4.19/drivers/vfio/platform/reset/
Dvfio_platform_amdxgbe.c38 static unsigned int xmdio_read(void *ioaddr, unsigned int mmd, in xmdio_read() argument
43 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_read()
49 static void xmdio_write(void *ioaddr, unsigned int mmd, in xmdio_write() argument
54 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_write()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb/
Dcphy.h110 static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg, in cphy_mdio_read() argument
113 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_read()
119 static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg, in cphy_mdio_write() argument
122 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_write()
/Linux-v4.19/drivers/net/
Dmdio.c31 int mmd, stat2, devs1, devs2; in mdio45_probe() local
35 for (mmd = 1; mmd <= 5; mmd++) { in mdio45_probe()
37 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe()
43 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe()
44 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/
Dcommon.h529 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable);
561 static inline int t3_mdio_read(struct cphy *phy, int mmd, int reg, in t3_mdio_read() argument
564 int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg); in t3_mdio_read()
569 static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg, in t3_mdio_write() argument
572 return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd, in t3_mdio_write()
654 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear,
656 int t3_phy_reset(struct cphy *phy, int mmd, int wait);
Daq100x.c194 static int aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) in aq100x_set_loopback() argument
Dt3_hw.c328 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, in t3_mdio_change_bits() argument
334 ret = t3_mdio_read(phy, mmd, reg, &val); in t3_mdio_change_bits()
337 ret = t3_mdio_write(phy, mmd, reg, val | set); in t3_mdio_change_bits()
352 int t3_phy_reset(struct cphy *phy, int mmd, int wait) in t3_phy_reset() argument
357 err = t3_mdio_change_bits(phy, mmd, MDIO_CTRL1, MDIO_CTRL1_LPOWER, in t3_phy_reset()
363 err = t3_mdio_read(phy, mmd, MDIO_CTRL1, &ctl); in t3_phy_reset()
/Linux-v4.19/drivers/mmc/host/
Drenesas_sdhi_core.c552 struct tmio_mmc_data *mmd = pdev->dev.platform_data; in renesas_sdhi_probe() local
644 if (mmd) in renesas_sdhi_probe()
645 *mmc_data = *mmd; in renesas_sdhi_probe()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h1779 unsigned int mmd, unsigned int reg, u16 *valp);
1781 unsigned int mmd, unsigned int reg, u16 val);
Dt4_hw.c6444 unsigned int mmd, unsigned int reg, u16 *valp) in t4_mdio_rd() argument
6457 FW_LDST_CMD_MMD_V(mmd)); in t4_mdio_rd()
6478 unsigned int mmd, unsigned int reg, u16 val) in t4_mdio_wr() argument
6490 FW_LDST_CMD_MMD_V(mmd)); in t4_mdio_wr()