Home
last modified time | relevance | path

Searched refs:mmd (Results 1 - 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
H A Dmdio_10g.c31 int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, in ef4_mdio_reset_mmd() argument
39 ef4_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET); in ef4_mdio_reset_mmd()
43 ctrl = ef4_mdio_read(port, mmd, MDIO_CTRL1); in ef4_mdio_reset_mmd()
51 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd() argument
55 if (mmd != MDIO_MMD_AN) { in ef4_mdio_check_mmd()
57 status = ef4_mdio_read(efx, mmd, MDIO_STAT2); in ef4_mdio_check_mmd()
60 "PHY MMD %d not responding.\n", mmd); in ef4_mdio_check_mmd()
81 int mmd = 0; in ef4_mdio_wait_reset_mmds() local
86 stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); in ef4_mdio_wait_reset_mmds()
90 " MMD %d\n", mmd); in ef4_mdio_wait_reset_mmds()
115 int mmd = 0, probe_mmd, devs1, devs2; ef4_mdio_check_mmds() local
198 ef4_mdio_set_mmd_lpower(struct ef4_nic *efx, int lpower, int mmd) ef4_mdio_set_mmd_lpower() argument
215 int mmd = 0; ef4_mdio_set_mmds_lpower() local
[all...]
H A Dtxc43128_phy.c205 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) in txc_bist_one() argument
219 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
223 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
226 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, in txc_bist_one()
234 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
238 bctl = ef4_mdio_read(efx, mmd, TXC_BIST_CTL); in txc_bist_one()
243 int count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane); in txc_bist_one()
249 count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane); in txc_bist_one()
261 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 0); in txc_bist_one()
359 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) in txc_glrgs_lane_power() argument
373 txc_analog_lane_power(struct ef4_nic *efx, int mmd) txc_analog_lane_power() argument
411 txc_reset_logic_mmd(struct ef4_nic *efx, int mmd) txc_reset_logic_mmd() argument
[all...]
H A Dmdio_10g.h33 static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) in ef4_mdio_read_id() argument
35 u16 id_low = ef4_mdio_read(efx, mmd, MDIO_DEVID2); in ef4_mdio_read_id()
36 u16 id_hi = ef4_mdio_read(efx, mmd, MDIO_DEVID1); in ef4_mdio_read_id()
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);
H A Dqt202x_phy.c461 int mmd, reg_base, rc, i; in qt202x_phy_get_module_eeprom() local
464 mmd = MDIO_MMD_PCS; in qt202x_phy_get_module_eeprom()
467 mmd = MDIO_MMD_PMAPMD; in qt202x_phy_get_module_eeprom()
472 rc = ef4_mdio_read(efx, mmd, reg_base + ee->offset + i); in qt202x_phy_get_module_eeprom()
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/
H A Dmdio_10g.c31 int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, in ef4_mdio_reset_mmd() argument
39 ef4_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET); in ef4_mdio_reset_mmd()
43 ctrl = ef4_mdio_read(port, mmd, MDIO_CTRL1); in ef4_mdio_reset_mmd()
51 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd() argument
55 if (mmd != MDIO_MMD_AN) { in ef4_mdio_check_mmd()
57 status = ef4_mdio_read(efx, mmd, MDIO_STAT2); in ef4_mdio_check_mmd()
60 "PHY MMD %d not responding.\n", mmd); in ef4_mdio_check_mmd()
81 int mmd = 0; in ef4_mdio_wait_reset_mmds() local
86 stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); in ef4_mdio_wait_reset_mmds()
90 " MMD %d\n", mmd); in ef4_mdio_wait_reset_mmds()
115 int mmd = 0, probe_mmd, devs1, devs2; ef4_mdio_check_mmds() local
198 ef4_mdio_set_mmd_lpower(struct ef4_nic *efx, int lpower, int mmd) ef4_mdio_set_mmd_lpower() argument
215 int mmd = 0; ef4_mdio_set_mmds_lpower() local
[all...]
H A Dtxc43128_phy.c205 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) in txc_bist_one() argument
219 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
223 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
226 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, in txc_bist_one()
234 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, bctl); in txc_bist_one()
238 bctl = ef4_mdio_read(efx, mmd, TXC_BIST_CTL); in txc_bist_one()
243 int count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0ERRCNT + lane); in txc_bist_one()
249 count = ef4_mdio_read(efx, mmd, TXC_BIST_RX0FRMCNT + lane); in txc_bist_one()
261 ef4_mdio_write(efx, mmd, TXC_BIST_CTL, 0); in txc_bist_one()
359 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) in txc_glrgs_lane_power() argument
373 txc_analog_lane_power(struct ef4_nic *efx, int mmd) txc_analog_lane_power() argument
411 txc_reset_logic_mmd(struct ef4_nic *efx, int mmd) txc_reset_logic_mmd() argument
[all...]
H A Dmdio_10g.h33 static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) in ef4_mdio_read_id() argument
35 u16 id_low = ef4_mdio_read(efx, mmd, MDIO_DEVID2); in ef4_mdio_read_id()
36 u16 id_hi = ef4_mdio_read(efx, mmd, MDIO_DEVID1); in ef4_mdio_read_id()
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);
H A Dqt202x_phy.c461 int mmd, reg_base, rc, i; in qt202x_phy_get_module_eeprom() local
464 mmd = MDIO_MMD_PCS; in qt202x_phy_get_module_eeprom()
467 mmd = MDIO_MMD_PMAPMD; in qt202x_phy_get_module_eeprom()
472 rc = ef4_mdio_read(efx, mmd, reg_base + ee->offset + i); in qt202x_phy_get_module_eeprom()
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/
H A Dsja1105_mdio.c10 int sja1105_pcs_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg) in sja1105_pcs_mdio_read_c45() argument
18 addr = (mmd << 16) | reg; in sja1105_pcs_mdio_read_c45()
20 if (mmd != MDIO_MMD_VEND1 && mmd != MDIO_MMD_VEND2) in sja1105_pcs_mdio_read_c45()
23 if (mmd == MDIO_MMD_VEND2 && (reg & GENMASK(15, 0)) == MII_PHYSID1) in sja1105_pcs_mdio_read_c45()
25 if (mmd == MDIO_MMD_VEND2 && (reg & GENMASK(15, 0)) == MII_PHYSID2) in sja1105_pcs_mdio_read_c45()
35 int sja1105_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, in sja1105_pcs_mdio_write_c45() argument
43 addr = (mmd << 16) | reg; in sja1105_pcs_mdio_write_c45()
46 if (mmd != MDIO_MMD_VEND1 && mmd ! in sja1105_pcs_mdio_write_c45()
52 sja1110_pcs_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg) sja1110_pcs_mdio_read_c45() argument
97 sja1110_pcs_mdio_write_c45(struct mii_bus *bus, int phy, int reg, int mmd, u16 val) sja1110_pcs_mdio_write_c45() argument
169 sja1105_base_t1_mdio_read_c45(struct mii_bus *bus, int phy, int mmd, int reg) sja1105_base_t1_mdio_read_c45() argument
208 sja1105_base_t1_mdio_write_c45(struct mii_bus *bus, int phy, int mmd, int reg, u16 val) sja1105_base_t1_mdio_write_c45() argument
[all...]
H A Dsja1105.h154 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,
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
H A Daq_phy.c26 u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr) in aq_mdio_read_word() argument
28 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_read_word()
52 void aq_mdio_write_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr, u16 data) in aq_mdio_write_word() argument
54 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_write_word()
78 u16 aq_phy_read_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address) in aq_phy_read_reg() argument
91 err = aq_mdio_read_word(aq_hw, mmd, address); in aq_phy_read_reg()
99 void aq_phy_write_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address, u16 data) in aq_phy_write_reg() argument
109 aq_mdio_write_word(aq_hw, mmd, address, data); in aq_phy_write_reg()
H A Daq_phy.h22 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);
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/
H A Daq_phy.c26 u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr) in aq_mdio_read_word() argument
28 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_read_word()
52 void aq_mdio_write_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr, u16 data) in aq_mdio_write_word() argument
54 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_write_word()
78 u16 aq_phy_read_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address) in aq_phy_read_reg() argument
91 err = aq_mdio_read_word(aq_hw, mmd, address); in aq_phy_read_reg()
99 void aq_phy_write_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address, u16 data) in aq_phy_write_reg() argument
109 aq_mdio_write_word(aq_hw, mmd, address, data); in aq_phy_write_reg()
H A Daq_phy.h22 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);
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/
H A 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()
/kernel/linux/linux-5.10/drivers/vfio/platform/reset/
H A Dvfio_platform_amdxgbe.c27 static unsigned int xmdio_read(void __iomem *ioaddr, unsigned int mmd, in xmdio_read() argument
32 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_read()
38 static void xmdio_write(void __iomem *ioaddr, unsigned int mmd, in xmdio_write() argument
43 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_write()
/kernel/linux/linux-6.6/drivers/vfio/platform/reset/
H A Dvfio_platform_amdxgbe.c27 static unsigned int xmdio_read(void __iomem *ioaddr, unsigned int mmd, in xmdio_read() argument
32 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_read()
38 static void xmdio_write(void __iomem *ioaddr, unsigned int mmd, in xmdio_write() argument
43 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_write()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb/
H A Dcphy.h101 static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg, in cphy_mdio_read() argument
104 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_read()
110 static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg, in cphy_mdio_write() argument
113 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_write()
/kernel/linux/linux-5.10/drivers/net/mdio/
H A Dmdio-ipq4019.c59 unsigned int mmd = (regnum >> 16) & 0x1F; in ipq4019_mdio_read() local
69 /* issue the phy address and mmd */ in ipq4019_mdio_read()
70 writel((mii_id << 8) | mmd, priv->membase + MDIO_ADDR_REG); in ipq4019_mdio_read()
122 unsigned int mmd = (regnum >> 16) & 0x1F; in ipq4019_mdio_write() local
132 /* issue the phy address and mmd */ in ipq4019_mdio_write()
133 writel((mii_id << 8) | mmd, priv->membase + MDIO_ADDR_REG); in ipq4019_mdio_write()
/kernel/linux/linux-5.10/drivers/net/
H A Dmdio.c28 int mmd, stat2, devs1, devs2; in mdio45_probe() local
32 for (mmd = 1; mmd <= 5; mmd++) { in mdio45_probe()
34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe()
40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe()
41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe()
/kernel/linux/linux-6.6/drivers/net/
H A Dmdio.c28 int mmd, stat2, devs1, devs2; in mdio45_probe() local
32 for (mmd = 1; mmd <= 5; mmd++) { in mdio45_probe()
34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe()
40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe()
41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
H A 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);
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/
H A 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);
/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dmdio-ipq4019.c56 static int ipq4019_mdio_read_c45(struct mii_bus *bus, int mii_id, int mmd, in ipq4019_mdio_read_c45() argument
72 /* issue the phy address and mmd */ in ipq4019_mdio_read_c45()
73 writel((mii_id << 8) | mmd, priv->membase + MDIO_ADDR_REG); in ipq4019_mdio_read_c45()
129 static int ipq4019_mdio_write_c45(struct mii_bus *bus, int mii_id, int mmd, in ipq4019_mdio_write_c45() argument
145 /* issue the phy address and mmd */ in ipq4019_mdio_write_c45()
146 writel((mii_id << 8) | mmd, priv->membase + MDIO_ADDR_REG); in ipq4019_mdio_write_c45()
/kernel/linux/linux-6.6/arch/x86/boot/
H A Dgenimage.sh189 mmd "$1"EFI "$1"EFI/Boot

Completed in 15 milliseconds

12