/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | ael1002.c | 118 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL_I2C_CTRL, ael_i2c_rd() 125 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_STAT, &stat); ael_i2c_rd() 129 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_DATA, ael_i2c_rd() 145 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, MDIO_PMA_TXDIS, !!enable); ael1002_power_down() 148 MDIO_MMD_PMAPMD, MDIO_CTRL1, ael1002_power_down() 158 (err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL100X_TX_CONFIG1, 1)) || ael1002_reset() 159 (err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL1002_PWR_DOWN_HI, 0)) || ael1002_reset() 160 (err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL1002_PWR_DOWN_LO, 0)) || ael1002_reset() 161 (err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL1002_XFI_EQL, 0x18)) || ael1002_reset() 162 (err = t3_mdio_change_bits(phy, MDIO_MMD_PMAPMD, AEL1002_LB_EN, ael1002_reset() 181 int err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, get_link_status_r() 224 return t3_phy_reset(phy, MDIO_MMD_PMAPMD, wait); ael1006_reset() 296 { MDIO_MMD_PMAPMD, 0xc003, 0xffff, 0x181 }, ael2005_setup_sr_edc() 297 { MDIO_MMD_PMAPMD, 0xc010, 0xffff, 0x448a }, ael2005_setup_sr_edc() 298 { MDIO_MMD_PMAPMD, 0xc04a, 0xffff, 0x5200 }, ael2005_setup_sr_edc() 317 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, ael2005_setup_sr_edc() 328 { MDIO_MMD_PMAPMD, 0xc04a, 0xffff, 0x5a00 }, ael2005_setup_twinax_edc() 332 { MDIO_MMD_PMAPMD, 0xc014, 0xffff, 0xfe16 }, ael2005_setup_twinax_edc() 333 { MDIO_MMD_PMAPMD, 0xc015, 0xffff, 0xa000 }, ael2005_setup_twinax_edc() 353 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, ael2005_setup_twinax_edc() 366 v = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_CTRL, &stat); ael2005_get_module_type() 378 int err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_CTRL, 0x200); ael2005_intr_enable() 384 int err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_CTRL, 0x100); ael2005_intr_disable() 390 int err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_CTRL, 0xd00); ael2005_intr_clear() 397 { MDIO_MMD_PMAPMD, 0xc001, 0, 1 << 5 }, ael2005_reset() 398 { MDIO_MMD_PMAPMD, 0xc017, 0, 1 << 5 }, ael2005_reset() 399 { MDIO_MMD_PMAPMD, 0xc013, 0xffff, 0xf341 }, ael2005_reset() 400 { MDIO_MMD_PMAPMD, 0xc210, 0xffff, 0x8000 }, ael2005_reset() 401 { MDIO_MMD_PMAPMD, 0xc210, 0xffff, 0x8100 }, ael2005_reset() 402 { MDIO_MMD_PMAPMD, 0xc210, 0xffff, 0x8000 }, ael2005_reset() 403 { MDIO_MMD_PMAPMD, 0xc210, 0xffff, 0 }, ael2005_reset() 407 { MDIO_MMD_PMAPMD, 0xca00, 0xffff, 0x0080 }, ael2005_reset() 408 { MDIO_MMD_PMAPMD, 0xca12, 0xffff, 0 }, ael2005_reset() 415 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, ael2005_reset() 420 err = t3_phy_reset(phy, MDIO_MMD_PMAPMD, 0); ael2005_reset() 459 ret = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_STAT, &stat); ael2005_intr_handler() 464 ret = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_CTRL, ael2005_intr_handler() 516 return t3_mdio_change_bits(phy, MDIO_MMD_PMAPMD, AEL_OPT_SETTINGS, 0, t3_ael2005_phy_prep() 527 { MDIO_MMD_PMAPMD, 0xcc01, 0xffff, 0x488a }, ael2020_setup_sr_edc() 530 { MDIO_MMD_PMAPMD, 0xcb1b, 0xffff, 0x0200 }, ael2020_setup_sr_edc() 531 { MDIO_MMD_PMAPMD, 0xcb1c, 0xffff, 0x00f0 }, ael2020_setup_sr_edc() 532 { MDIO_MMD_PMAPMD, 0xcc06, 0xffff, 0x00e0 }, ael2020_setup_sr_edc() 555 { MDIO_MMD_PMAPMD, 0xff28, 0xffff, 0x4001 }, ael2020_setup_twinax_edc() 556 { MDIO_MMD_PMAPMD, 0xff2a, 0xffff, 0x0002 }, ael2020_setup_twinax_edc() 562 { MDIO_MMD_PMAPMD, 0xd000, 0xffff, 0x5200 }, ael2020_setup_twinax_edc() 568 { MDIO_MMD_PMAPMD, 0xd080, 0xffff, 0x0100 }, ael2020_setup_twinax_edc() 569 { MDIO_MMD_PMAPMD, 0xd092, 0xffff, 0x0000 }, ael2020_setup_twinax_edc() 591 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, ael2020_setup_twinax_edc() 609 v = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2020_GPIO_STAT, &stat); ael2020_get_module_type() 629 { MDIO_MMD_PMAPMD, AEL2020_GPIO_CFG+AEL2020_GPIO_LSTAT, ael2020_intr_enable() 631 { MDIO_MMD_PMAPMD, AEL2020_GPIO_CTRL, ael2020_intr_enable() 635 { MDIO_MMD_PMAPMD, AEL2020_GPIO_CTRL, ael2020_intr_enable() 669 { MDIO_MMD_PMAPMD, AEL2020_GPIO_CTRL, ael2020_intr_disable() 673 { MDIO_MMD_PMAPMD, AEL2020_GPIO_CTRL, ael2020_intr_disable() 700 int err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2020_GPIO_INTR, &stat); ael2020_intr_clear() 706 { MDIO_MMD_PMAPMD, 0xc003, 0xffff, 0x3101 }, 709 { MDIO_MMD_PMAPMD, 0xcd40, 0xffff, 0x0001 }, 712 { MDIO_MMD_PMAPMD, 0xff02, 0xffff, 0x0023 }, 713 { MDIO_MMD_PMAPMD, 0xff03, 0xffff, 0x0000 }, 714 { MDIO_MMD_PMAPMD, 0xff04, 0xffff, 0x0000 }, 728 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, ael2020_reset() 733 err = t3_phy_reset(phy, MDIO_MMD_PMAPMD, 125); ael2020_reset() 770 ret = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2020_GPIO_INTR, &stat); ael2020_intr_handler() 839 int err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, get_link_status_x() 884 !t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_STAT1, &stat) && t3_qt2045_phy_prep()
|
H A D | aq100x.c | 82 int err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AQ_IMASK_PMA, IMASK_PMA); aq100x_intr_enable() 100 t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_STAT1, &v); aq100x_intr_clear() 115 t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_STAT1, &v); aq100x_intr_handler() 123 MDIO_MMD_PMAPMD, MDIO_CTRL1, aq100x_power_down() 197 MDIO_MMD_PMAPMD, MDIO_CTRL1, aq100x_set_loopback() 214 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AQ_LINK_STAT, &v); aq100x_get_link_status()
|
H A D | t3_hw.c | 477 return t3_mdio_write(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, t3_phy_lasi_intr_enable() 483 return t3_mdio_write(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, 0); t3_phy_lasi_intr_disable() 490 return t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val); t3_phy_lasi_intr_clear() 496 int err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, t3_phy_lasi_intr_handler()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
H A D | mv88x201x.c | 64 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, &led); led_link() 68 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); led_link() 71 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); led_link() 88 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, mv88x201x_interrupt_enable() 105 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, 0x0); mv88x201x_interrupt_disable() 125 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_RXSTAT, &val); mv88x201x_interrupt_clear() 126 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_TXSTAT, &val); mv88x201x_interrupt_clear() 127 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val); mv88x201x_interrupt_clear() 132 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); mv88x201x_interrupt_clear() 136 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); mv88x201x_interrupt_clear() 138 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val); mv88x201x_interrupt_clear() 142 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_RXSTAT, &val); mv88x201x_interrupt_clear() 143 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_TXSTAT, &val); mv88x201x_interrupt_clear() 178 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); mv88x201x_get_link_status() 227 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT2, &val); mv88x201x_phy_create()
|
H A D | my3126.c | 46 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); my3126_interrupt_handler() 117 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); my3126_get_link_status()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | tenxpress.c | 158 efx_mdio_set_flag(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_CTRL_REG, tenxpress_init() 160 efx_mdio_write(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_OVERR_REG, tenxpress_init() 233 reg = efx_mdio_read(efx, MDIO_MMD_PMAPMD, PMA_PMD_XCONTROL_REG); tenxpress_special_reset() 235 efx_mdio_write(efx, MDIO_MMD_PMAPMD, PMA_PMD_XCONTROL_REG, reg); tenxpress_special_reset() 281 reg = efx_mdio_read(efx, MDIO_MMD_PMAPMD, sfx7101_check_bad_lp() 294 efx_mdio_write(efx, MDIO_MMD_PMAPMD, sfx7101_check_bad_lp() 378 efx_mdio_write(efx, MDIO_MMD_PMAPMD, PMA_PMD_XCONTROL_REG, reg); sfx7101_phy_fini() 414 efx_mdio_write(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_OVERR_REG, reg); tenxpress_set_id_led()
|
H A D | txc43128_phy.c | 189 int rc = efx_mdio_reset_mmd(efx, MDIO_MMD_PMAPMD, txc_reset_phy() 302 efx_mdio_write(efx, MDIO_MMD_PMAPMD, txc_apply_defaults() 304 efx_mdio_write(efx, MDIO_MMD_PMAPMD, txc_apply_defaults() 306 efx_mdio_write(efx, MDIO_MMD_PMAPMD, txc_apply_defaults() 308 efx_mdio_write(efx, MDIO_MMD_PMAPMD, txc_apply_defaults() 410 txc_analog_lane_power(efx, MDIO_MMD_PMAPMD); txc_set_power() 481 efx_mdio_write(efx, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, 0); txc43128_phy_fini()
|
H A D | qt202x_phy.c | 56 efx_mdio_write(p, MDIO_MMD_PMAPMD, addr, mode); falcon_qt202x_set_led() 207 efx_mdio_set_flag(efx, MDIO_MMD_PMAPMD, MDIO_CTRL1, qt2025c_bug17190_workaround() 210 efx_mdio_set_flag(efx, MDIO_MMD_PMAPMD, MDIO_CTRL1, qt2025c_bug17190_workaround() 418 &efx->mdio, efx->mdio.prtad, MDIO_MMD_PMAPMD, qt202x_phy_reconfigure() 469 mmd = MDIO_MMD_PMAPMD; qt202x_phy_get_module_eeprom()
|
H A D | mdio_10g.c | 183 efx_mdio_set_flag(efx, MDIO_MMD_PMAPMD, efx_mdio_transmit_disable() 190 efx_mdio_set_flag(efx, MDIO_MMD_PMAPMD, efx_mdio_phy_reconfigure()
|
/linux-4.1.27/drivers/net/ |
H A D | mdio.c | 115 if (devad == MDIO_MMD_PMAPMD || devad == MDIO_MMD_PCS || mdio45_links_ok() 201 reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD, mdio45_ethtool_gset_npage() 210 reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD, mdio45_ethtool_gset_npage() 237 reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD, mdio45_ethtool_gset_npage() 245 reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD, mdio45_ethtool_gset_npage() 314 reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD, mdio45_ethtool_gset_npage() 327 switch (mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD, mdio45_ethtool_gset_npage()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_82598.c | 559 hw->phy.ops.read_reg(hw, 0xC79F, MDIO_MMD_PMAPMD, &link_reg); ixgbe_check_mac_link_82598() 560 hw->phy.ops.read_reg(hw, 0xC79F, MDIO_MMD_PMAPMD, &link_reg); ixgbe_check_mac_link_82598() 561 hw->phy.ops.read_reg(hw, 0xC00C, MDIO_MMD_PMAPMD, ixgbe_check_mac_link_82598() 574 MDIO_MMD_PMAPMD, ixgbe_check_mac_link_82598() 577 MDIO_MMD_PMAPMD, ixgbe_check_mac_link_82598() 1025 MDIO_MMD_PMAPMD, ixgbe_read_i2c_phy_82598() 1032 MDIO_MMD_PMAPMD, ixgbe_read_i2c_phy_82598() 1048 MDIO_MMD_PMAPMD, &sfp_data); ixgbe_read_i2c_phy_82598()
|
H A D | ixgbe_phy.c | 265 MDIO_MMD_PMAPMD, ixgbe_identify_phy_generic() 324 status = hw->phy.ops.read_reg(hw, MDIO_DEVID1, MDIO_MMD_PMAPMD, ixgbe_get_phy_id() 329 status = hw->phy.ops.read_reg(hw, MDIO_DEVID2, MDIO_MMD_PMAPMD, ixgbe_get_phy_id() 753 status = hw->phy.ops.read_reg(hw, MDIO_SPEED, MDIO_MMD_PMAPMD, ixgbe_get_copper_link_capabilities_generic() 1005 MDIO_MMD_PMAPMD, eword); ixgbe_reset_phy_nl() 2133 MDIO_MMD_PMAPMD, &phy_data); ixgbe_tn_check_overtemp()
|
/linux-4.1.27/drivers/net/phy/ |
H A D | amd-xgbe-phy.c | 449 ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL); amd_xgbe_an_enable_kr_training() 454 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, ret); amd_xgbe_an_enable_kr_training() 463 ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL); amd_xgbe_an_disable_kr_training() 468 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, ret); amd_xgbe_an_disable_kr_training() 850 ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_FEC_CTRL); amd_xgbe_an_tx_training() 858 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_FEC_CTRL, ret); amd_xgbe_an_tx_training() 861 ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL); amd_xgbe_an_tx_training() 869 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, amd_xgbe_an_tx_training() 1798 ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_FEC_ABILITY); amd_xgbe_phy_probe()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | mdio.h | 17 #define MDIO_MMD_PMAPMD 1 /* Physical Medium Attachment/ macro 117 #define MDIO_DEVS_PMAPMD MDIO_DEVS_PRESENT(MDIO_MMD_PMAPMD)
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/ |
H A D | ixgb_hw.c | 201 MDIO_MMD_PMAPMD); ixgb_identify_xpak_vendor() 1194 MDIO_MMD_PMAPMD, ixgb_optics_reset() 1200 MDIO_MMD_PMAPMD); ixgb_optics_reset()
|
/linux-4.1.27/drivers/net/ethernet/neterion/ |
H A D | s2io.c | 3254 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); s2io_updt_xpak_counter() 3272 s2io_mdio_write(MDIO_MMD_PMAPMD, addr, val16, dev); s2io_updt_xpak_counter() 3273 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); s2io_updt_xpak_counter() 3278 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); s2io_updt_xpak_counter() 3310 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); s2io_updt_xpak_counter()
|