mmd 641 drivers/mmc/host/renesas_sdhi_core.c struct tmio_mmc_data *mmd = pdev->dev.platform_data; mmd 754 drivers/mmc/host/renesas_sdhi_core.c if (mmd) mmd 755 drivers/mmc/host/renesas_sdhi_core.c *mmc_data = *mmd; mmd 110 drivers/net/ethernet/chelsio/cxgb/cphy.h static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg, mmd 113 drivers/net/ethernet/chelsio/cxgb/cphy.h int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, mmd 119 drivers/net/ethernet/chelsio/cxgb/cphy.h static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg, mmd 122 drivers/net/ethernet/chelsio/cxgb/cphy.h return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, mmd 194 drivers/net/ethernet/chelsio/cxgb3/aq100x.c static int aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) mmd 529 drivers/net/ethernet/chelsio/cxgb3/common.h int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable); mmd 561 drivers/net/ethernet/chelsio/cxgb3/common.h static inline int t3_mdio_read(struct cphy *phy, int mmd, int reg, mmd 564 drivers/net/ethernet/chelsio/cxgb3/common.h int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg); mmd 569 drivers/net/ethernet/chelsio/cxgb3/common.h static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg, mmd 572 drivers/net/ethernet/chelsio/cxgb3/common.h return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd, mmd 654 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, mmd 656 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_phy_reset(struct cphy *phy, int mmd, int wait); mmd 328 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, mmd 334 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = t3_mdio_read(phy, mmd, reg, &val); mmd 337 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = t3_mdio_write(phy, mmd, reg, val | set); mmd 352 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c int t3_phy_reset(struct cphy *phy, int mmd, int wait) mmd 357 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c err = t3_mdio_change_bits(phy, mmd, MDIO_CTRL1, MDIO_CTRL1_LPOWER, mmd 363 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c err = t3_mdio_read(phy, mmd, MDIO_CTRL1, &ctl); mmd 1828 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int mmd, unsigned int reg, u16 *valp); mmd 1830 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int mmd, unsigned int reg, u16 val); mmd 6553 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int mmd, unsigned int reg, u16 *valp) mmd 6566 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c FW_LDST_CMD_MMD_V(mmd)); mmd 6587 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int mmd, unsigned int reg, u16 val) mmd 6599 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c FW_LDST_CMD_MMD_V(mmd)); mmd 31 drivers/net/ethernet/sfc/falcon/mdio_10g.c int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, mmd 39 drivers/net/ethernet/sfc/falcon/mdio_10g.c ef4_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET); mmd 43 drivers/net/ethernet/sfc/falcon/mdio_10g.c ctrl = ef4_mdio_read(port, mmd, MDIO_CTRL1); mmd 51 drivers/net/ethernet/sfc/falcon/mdio_10g.c static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) mmd 55 drivers/net/ethernet/sfc/falcon/mdio_10g.c if (mmd != MDIO_MMD_AN) { mmd 57 drivers/net/ethernet/sfc/falcon/mdio_10g.c status = ef4_mdio_read(efx, mmd, MDIO_STAT2); mmd 60 drivers/net/ethernet/sfc/falcon/mdio_10g.c "PHY MMD %d not responding.\n", mmd); mmd 81 drivers/net/ethernet/sfc/falcon/mdio_10g.c int mmd = 0; mmd 86 drivers/net/ethernet/sfc/falcon/mdio_10g.c stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); mmd 90 drivers/net/ethernet/sfc/falcon/mdio_10g.c " MMD %d\n", mmd); mmd 94 drivers/net/ethernet/sfc/falcon/mdio_10g.c in_reset |= (1 << mmd); mmd 97 drivers/net/ethernet/sfc/falcon/mdio_10g.c mmd++; mmd 115 drivers/net/ethernet/sfc/falcon/mdio_10g.c int mmd = 0, probe_mmd, devs1, devs2; mmd 143 drivers/net/ethernet/sfc/falcon/mdio_10g.c if ((mmd_mask & 1) && ef4_mdio_check_mmd(efx, mmd)) mmd 146 drivers/net/ethernet/sfc/falcon/mdio_10g.c mmd++; mmd 199 drivers/net/ethernet/sfc/falcon/mdio_10g.c int lpower, int mmd) mmd 201 drivers/net/ethernet/sfc/falcon/mdio_10g.c int stat = ef4_mdio_read(efx, mmd, MDIO_STAT1); mmd 204 drivers/net/ethernet/sfc/falcon/mdio_10g.c mmd, lpower); mmd 207 drivers/net/ethernet/sfc/falcon/mdio_10g.c ef4_mdio_set_flag(efx, mmd, MDIO_CTRL1, mmd 215 drivers/net/ethernet/sfc/falcon/mdio_10g.c int mmd = 0; mmd 219 drivers/net/ethernet/sfc/falcon/mdio_10g.c ef4_mdio_set_mmd_lpower(efx, low_power, mmd); mmd 221 drivers/net/ethernet/sfc/falcon/mdio_10g.c mmd++; mmd 33 drivers/net/ethernet/sfc/falcon/mdio_10g.h static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) mmd 35 drivers/net/ethernet/sfc/falcon/mdio_10g.h u16 id_low = ef4_mdio_read(efx, mmd, MDIO_DEVID2); mmd 36 drivers/net/ethernet/sfc/falcon/mdio_10g.h u16 id_hi = ef4_mdio_read(efx, mmd, MDIO_DEVID1); mmd 56 drivers/net/ethernet/sfc/falcon/mdio_10g.h const char *ef4_mdio_mmd_name(int mmd); mmd 64 drivers/net/ethernet/sfc/falcon/mdio_10g.h int ef4_mdio_reset_mmd(struct ef4_nic *efx, int mmd, int spins, int spintime); mmd 461 drivers/net/ethernet/sfc/falcon/qt202x_phy.c int mmd, reg_base, rc, i; mmd 464 drivers/net/ethernet/sfc/falcon/qt202x_phy.c mmd = MDIO_MMD_PCS; mmd 467 drivers/net/ethernet/sfc/falcon/qt202x_phy.c mmd = MDIO_MMD_PMAPMD; mmd 472 drivers/net/ethernet/sfc/falcon/qt202x_phy.c rc = ef4_mdio_read(efx, mmd, reg_base + ee->offset + i); mmd 205 drivers/net/ethernet/sfc/falcon/txc43128_phy.c static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) mmd 219 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); mmd 223 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); mmd 226 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_BIST_CTL, mmd 234 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); mmd 238 drivers/net/ethernet/sfc/falcon/txc43128_phy.c bctl = ef4_mdio_read(efx, mmd, TXC_BIST_CTL); mmd 243 drivers/net/ethernet/sfc/falcon/txc43128_phy.c int count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane); mmd 249 drivers/net/ethernet/sfc/falcon/txc43128_phy.c count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane); mmd 261 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 0); mmd 359 drivers/net/ethernet/sfc/falcon/txc43128_phy.c static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) mmd 362 drivers/net/ethernet/sfc/falcon/txc43128_phy.c int ctl = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); mmd 369 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, ctl); mmd 373 drivers/net/ethernet/sfc/falcon/txc43128_phy.c static void txc_analog_lane_power(struct ef4_nic *efx, int mmd) mmd 379 drivers/net/ethernet/sfc/falcon/txc43128_phy.c int txctl = ef4_mdio_read(efx, mmd, TXC_ALRGS_ATXCTL); mmd 380 drivers/net/ethernet/sfc/falcon/txc43128_phy.c int rxctl = ef4_mdio_read(efx, mmd, TXC_ALRGS_ARXCTL); mmd 390 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_ALRGS_ATXCTL, txctl); mmd 391 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_ALRGS_ARXCTL, rxctl); mmd 411 drivers/net/ethernet/sfc/falcon/txc43128_phy.c static void txc_reset_logic_mmd(struct ef4_nic *efx, int mmd) mmd 413 drivers/net/ethernet/sfc/falcon/txc43128_phy.c int val = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); mmd 417 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, val); mmd 419 drivers/net/ethernet/sfc/falcon/txc43128_phy.c val = ef4_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); mmd 28 drivers/net/mdio.c int mmd, stat2, devs1, devs2; mmd 32 drivers/net/mdio.c for (mmd = 1; mmd <= 5; mmd++) { mmd 34 drivers/net/mdio.c stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); mmd 40 drivers/net/mdio.c devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); mmd 41 drivers/net/mdio.c devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); mmd 27 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c static unsigned int xmdio_read(void *ioaddr, unsigned int mmd, mmd 32 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c mmd_address = (mmd << 16) | ((reg) & 0xffff); mmd 38 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c static void xmdio_write(void *ioaddr, unsigned int mmd, mmd 43 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c mmd_address = (mmd << 16) | ((reg) & 0xffff);