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

/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-ixf18201.h93 * @param mmd MMD address (block within device)
97 void cvmx_ixf18201_mii_write(int mii_addr, int mmd, uint16_t reg, uint16_t val);
102 * @param mmd MMD address (block within device)
106 int cvmx_ixf18201_mii_read(int mii_addr, int mmd, uint16_t reg);
H A Dcvmx-ixf18201.c135 void cvmx_ixf18201_mii_write(int mii_addr, int mmd, uint16_t reg, uint16_t val) argument
143 cmd_val |= (mmd & 0x1f) << 16; // Set MMD
162 cmd_val |= (mmd & 0x1f) << 16; // Set MMD
174 int cvmx_ixf18201_mii_read(int mii_addr, int mmd, uint16_t reg) argument
182 cmd_val |= (mmd & 0x1f) << 16; // Set MMD
198 cmd_val |= (mmd & 0x1f) << 16; // Set MMD
/freebsd-11-stable/sys/dev/cxgb/common/
H A Dcxgb_aq100x.c70 (void) mdio_write(phy, regs[i].mmd, regs[i].reg, regs[i].val); \
76 (void) mdio_read(phy, regs[i].mmd, regs[i].reg, &v); \
118 int mmd; member in struct:__anon9571
136 int mmd; member in struct:__anon9572
154 int mmd; member in struct:__anon9573
316 aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) argument
H A Dcxgb_common.h565 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable);
591 static inline int mdio_read(struct cphy *phy, int mmd, int reg, argument
594 return phy->mdio_read(phy->adapter, phy->addr, mmd, reg, valp);
597 static inline int mdio_write(struct cphy *phy, int mmd, int reg, argument
600 return phy->mdio_write(phy->adapter, phy->addr, mmd, reg, val);
690 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear,
692 int t3_phy_reset(struct cphy *phy, int mmd, int wait);
H A Dcxgb_mv88e1xxx.c182 static int mv88e1xxx_set_loopback(struct cphy *cphy, int mmd, int dir, int on) argument
H A Dcxgb_t3_hw.c363 * @mmd: the device address
371 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, argument
377 ret = mdio_read(phy, mmd, reg, &val);
380 ret = mdio_write(phy, mmd, reg, val | set);
388 * @mmd: the device address of the PHY block to reset
392 * @mmd should be 0 for 10/100/1000 PHYs and the device address to reset
395 int t3_phy_reset(struct cphy *phy, int mmd, int wait) argument
400 err = t3_mdio_change_bits(phy, mmd, MII_BMCR, BMCR_PDOWN, BMCR_RESET);
405 err = mdio_read(phy, mmd, MII_BMCR, &ctl);
/freebsd-11-stable/sys/dev/msk/
H A Dif_msk.c1594 struct msk_mii_data *mmd; local
1604 mmd = device_get_ivars(dev);
1605 port = mmd->port;
1717 mmd->mii_flags);
1743 struct msk_mii_data *mmd; local
1955 mmd = malloc(sizeof(struct msk_mii_data), M_DEVBUF, M_WAITOK | M_ZERO);
1956 if (mmd == NULL) {
1962 mmd->port = MSK_PORT_A;
1963 mmd->pmd = sc->msk_pmd;
1964 mmd
[all...]
/freebsd-11-stable/sys/dev/cxgb/
H A Dcxgb_main.c2529 int mmd, error = 0; local
2556 mmd = mid->phy_id >> 8;
2557 if (!mmd)
2558 mmd = MDIO_DEV_PCS;
2559 else if (mmd > MDIO_DEV_VEND2)
2562 error = phy->mdio_read(sc, mid->phy_id & 0x1f, mmd,
2578 mmd = mid->phy_id >> 8;
2579 if (!mmd)
2580 mmd = MDIO_DEV_PCS;
2581 else if (mmd > MDIO_DEV_VEND
[all...]
/freebsd-11-stable/sys/dev/cxgbe/common/
H A Dcommon.h783 unsigned int mmd, unsigned int reg, unsigned int *valp);
785 unsigned int mmd, unsigned int reg, unsigned int val);
H A Dt4_hw.c7092 * @mmd: the PHY MMD to access (0 for clause 22 PHYs)
7099 unsigned int mmd, unsigned int reg, unsigned int *valp)
7112 V_FW_LDST_CMD_MMD(mmd));
7126 * @mmd: the PHY MMD to access (0 for clause 22 PHYs)
7133 unsigned int mmd, unsigned int reg, unsigned int val)
7145 V_FW_LDST_CMD_MMD(mmd));
7098 t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int *valp) argument
7132 t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int val) argument
/freebsd-11-stable/tools/tools/cxgbtool/
H A Dcxgbtool.c212 unsigned int cmd, phy_addr, reg, mmd, val; local
222 get_int_arg(argv[start_arg + 1], &mmd) ||
227 p.phy_id = phy_addr | (mmd << 8);

Completed in 137 milliseconds