/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_mdio.c | 10 int sja1105_pcs_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg) argument 18 addr = (mmd << 16) | reg; 20 if (mmd != MDIO_MMD_VEND1 && mmd != MDIO_MMD_VEND2) 23 if (mmd == MDIO_MMD_VEND2 && (reg & GENMASK(15, 0)) == MII_PHYSID1) 25 if (mmd == MDIO_MMD_VEND2 && (reg & GENMASK(15, 0)) == MII_PHYSID2) 35 int sja1105_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, argument 43 addr = (mmd << 16) | reg; 46 if (mmd != MDIO_MMD_VEND1 && mmd ! 52 sja1110_pcs_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg) argument 97 sja1110_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, int reg, u16 val) argument 169 sja1105_base_t1_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg) argument 208 sja1105_base_t1_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, int reg, u16 val) argument [all...] |
H A D | sja1105.h | 154 int (*pcs_mdio_read_c45)(struct mii_bus *bus, int phy, int mmd, 156 int (*pcs_mdio_write_c45)(struct mii_bus *bus, int phy, int mmd, 312 int sja1105_pcs_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg); 313 int sja1105_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, int reg, 315 int sja1110_pcs_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg); 316 int sja1110_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, int reg,
|
/linux-master/drivers/net/ethernet/microchip/ |
H A D | lan743x_main.h | 1177 int lan743x_sgmii_read(struct lan743x_adapter *adapter, u8 mmd, u16 addr);
|
H A D | lan743x_main.c | 941 int lan743x_sgmii_read(struct lan743x_adapter *adapter, u8 mmd, u16 addr) argument 947 if (mmd > 31) { 949 "%s mmd should <= 31\n", __func__); 955 mmd_access = mmd << SGMII_ACC_SGMII_MMD_SHIFT_; 972 u8 mmd, u16 addr, u16 val) 977 if (mmd > 31) { 979 "%s mmd should <= 31\n", __func__); 986 mmd_access = mmd << SGMII_ACC_SGMII_MMD_SHIFT_; 971 lan743x_sgmii_write(struct lan743x_adapter *adapter, u8 mmd, u16 addr, u16 val) argument
|
/linux-master/drivers/net/mdio/ |
H A D | mdio-ipq4019.c | 68 static int ipq4019_mdio_read_c45(struct mii_bus *bus, int mii_id, int mmd, argument 84 /* issue the phy address and mmd */ 85 writel((mii_id << 8) | mmd, priv->membase + MDIO_ADDR_REG); 141 static int ipq4019_mdio_write_c45(struct mii_bus *bus, int mii_id, int mmd, argument 157 /* issue the phy address and mmd */ 158 writel((mii_id << 8) | mmd, priv->membase + MDIO_ADDR_REG);
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 6533 * @mmd: the PHY MMD to access (0 for clause 22 PHYs) 6540 unsigned int mmd, unsigned int reg, u16 *valp) 6553 FW_LDST_CMD_MMD_V(mmd)); 6567 * @mmd: the PHY MMD to access (0 for clause 22 PHYs) 6574 unsigned int mmd, unsigned int reg, u16 val) 6586 FW_LDST_CMD_MMD_V(mmd)); 6539 t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, u16 *valp) argument 6573 t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, u16 val) argument
|
H A D | cxgb4.h | 2036 unsigned int mmd, unsigned int reg, u16 *valp); 2038 unsigned int mmd, unsigned int reg, u16 val);
|
/linux-master/drivers/mmc/host/ |
H A D | renesas_sdhi_core.c | 909 struct tmio_mmc_data *mmd = pdev->dev.platform_data; local 1017 if (mmd) 1018 *mmc_data = *mmd;
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/macsec/ |
H A D | macsec_api.c | 43 static int aq_mss_mdio_read(struct aq_hw_s *hw, u16 mmd, u16 addr, u16 *data) argument 45 *data = aq_mdio_read_word(hw, mmd, addr); 49 static int aq_mss_mdio_write(struct aq_hw_s *hw, u16 mmd, u16 addr, u16 data) argument 51 aq_mdio_write_word(hw, mmd, addr, data);
|
/linux-master/drivers/net/ethernet/chelsio/cxgb/ |
H A D | cphy.h | 101 static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg, argument 104 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, 110 static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg, argument 113 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd,
|
/linux-master/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | t3_hw.c | 321 * @mmd: the device address 329 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, argument 335 ret = t3_mdio_read(phy, mmd, reg, &val); 338 ret = t3_mdio_write(phy, mmd, reg, val | set); 346 * @mmd: the device address of the PHY block to reset 350 * @mmd should be 0 for 10/100/1000 PHYs and the device address to reset 353 int t3_phy_reset(struct cphy *phy, int mmd, int wait) argument 358 err = t3_mdio_change_bits(phy, mmd, MDIO_CTRL1, MDIO_CTRL1_LPOWER, 364 err = t3_mdio_read(phy, mmd, MDIO_CTRL1, &ctl);
|
H A D | common.h | 529 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, argument 564 int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg); 569 static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg, argument 572 return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd, 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);
|
H A D | aq100x.c | 194 static int aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) argument
|
/linux-master/arch/x86/boot/ |
H A D | genimage.sh | 189 mmd "$1"EFI "$1"EFI/Boot
|
/linux-master/drivers/net/ |
H A D | mdio.c | 28 int mmd, stat2, devs1, devs2; local 32 for (mmd = 1; mmd <= 5; mmd++) { 34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); 40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); 41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2);
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_phy.c | 26 u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr) argument 28 u16 phy_addr = aq_hw->phy_id << 5 | mmd; 52 void aq_mdio_write_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr, u16 data) argument 54 u16 phy_addr = aq_hw->phy_id << 5 | mmd; 78 u16 aq_phy_read_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address) argument 91 err = aq_mdio_read_word(aq_hw, mmd, address); 99 void aq_phy_write_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address, u16 data) argument 109 aq_mdio_write_word(aq_hw, mmd, address, data);
|
H A D | aq_phy.h | 22 u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr); 24 void aq_mdio_write_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr, u16 data); 26 u16 aq_phy_read_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address); 28 void aq_phy_write_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address, u16 data);
|
/linux-master/drivers/vfio/platform/reset/ |
H A D | vfio_platform_amdxgbe.c | 27 static unsigned int xmdio_read(void __iomem *ioaddr, unsigned int mmd, argument 32 mmd_address = (mmd << 16) | ((reg) & 0xffff); 38 static void xmdio_write(void __iomem *ioaddr, unsigned int mmd, argument 43 mmd_address = (mmd << 16) | ((reg) & 0xffff);
|
/linux-master/drivers/net/ethernet/sfc/falcon/ |
H A D | txc43128_phy.c | 205 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) argument 219 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); 223 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); 226 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 234 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); 238 bctl = ef4_mdio_read(efx, mmd, TXC_BIST_CTL); 243 int count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane); 249 count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane); 261 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 0); 359 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) argument 373 txc_analog_lane_power(struct ef4_nic *efx, int mmd) argument 411 txc_reset_logic_mmd(struct ef4_nic *efx, int mmd) argument [all...] |
H A D | qt202x_phy.c | 461 int mmd, reg_base, rc, i; local 464 mmd = MDIO_MMD_PCS; 467 mmd = MDIO_MMD_PMAPMD; 472 rc = ef4_mdio_read(efx, mmd, reg_base + ee->offset + i);
|
H A D | mdio_10g.c | 31 int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, argument 39 ef4_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET); 43 ctrl = ef4_mdio_read(port, mmd, MDIO_CTRL1); 51 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) argument 55 if (mmd != MDIO_MMD_AN) { 57 status = ef4_mdio_read(efx, mmd, MDIO_STAT2); 60 "PHY MMD %d not responding.\n", mmd); 81 int mmd = 0; local 86 stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); 90 " MMD %d\n", mmd); 115 int mmd = 0, probe_mmd, devs1, devs2; local 198 ef4_mdio_set_mmd_lpower(struct ef4_nic *efx, int lpower, int mmd) argument 215 int mmd = 0; local [all...] |
H A D | mdio_10g.h | 33 static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) argument 35 u16 id_low = ef4_mdio_read(efx, mmd, MDIO_DEVID2); 36 u16 id_hi = ef4_mdio_read(efx, mmd, MDIO_DEVID1); 56 const char *ef4_mdio_mmd_name(int mmd); 64 int ef4_mdio_reset_mmd(struct ef4_nic *efx, int mmd, int spins, int spintime);
|