/freebsd-13-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-ixf18201.h | 93 * @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 D | cvmx-ixf18201.c | 135 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-13-stable/sys/dev/cxgb/common/ |
H A D | cxgb_aq100x.c | 71 (void) mdio_write(phy, regs[i].mmd, regs[i].reg, regs[i].val); \ 77 (void) mdio_read(phy, regs[i].mmd, regs[i].reg, &v); \ 119 int mmd; member in struct:__anon11813 137 int mmd; member in struct:__anon11814 155 int mmd; member in struct:__anon11815 317 aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) argument
|
H A D | cxgb_common.h | 566 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable); 592 static inline int mdio_read(struct cphy *phy, int mmd, int reg, argument 595 return phy->mdio_read(phy->adapter, phy->addr, mmd, reg, valp); 598 static inline int mdio_write(struct cphy *phy, int mmd, int reg, argument 601 return phy->mdio_write(phy->adapter, phy->addr, mmd, reg, val); 691 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, 693 int t3_phy_reset(struct cphy *phy, int mmd, int wait);
|
H A D | cxgb_mv88e1xxx.c | 183 static int mv88e1xxx_set_loopback(struct cphy *cphy, int mmd, int dir, int on) argument
|
H A D | cxgb_t3_hw.c | 364 * @mmd: the device address 372 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, argument 378 ret = mdio_read(phy, mmd, reg, &val); 381 ret = mdio_write(phy, mmd, reg, val | set); 389 * @mmd: the device address of the PHY block to reset 393 * @mmd should be 0 for 10/100/1000 PHYs and the device address to reset 396 int t3_phy_reset(struct cphy *phy, int mmd, int wait) argument 401 err = t3_mdio_change_bits(phy, mmd, MII_BMCR, BMCR_PDOWN, BMCR_RESET); 406 err = mdio_read(phy, mmd, MII_BMCR, &ctl);
|
/freebsd-13-stable/sys/dev/msk/ |
H A D | if_msk.c | 1598 struct msk_mii_data *mmd; local 1608 mmd = device_get_ivars(dev); 1609 port = mmd->port; 1721 mmd->mii_flags); 1747 struct msk_mii_data *mmd; local 1960 mmd = malloc(sizeof(struct msk_mii_data), M_DEVBUF, M_WAITOK | M_ZERO); 1961 mmd->port = MSK_PORT_A; 1962 mmd->pmd = sc->msk_pmd; 1963 mmd->mii_flags |= MIIF_DOPAUSE; 1965 mmd [all...] |
/freebsd-13-stable/sys/dev/cxgb/ |
H A D | cxgb_main.c | 2541 int mmd, error = 0; local 2568 mmd = mid->phy_id >> 8; 2569 if (!mmd) 2570 mmd = MDIO_DEV_PCS; 2571 else if (mmd > MDIO_DEV_VEND2) 2574 error = phy->mdio_read(sc, mid->phy_id & 0x1f, mmd, 2590 mmd = mid->phy_id >> 8; 2591 if (!mmd) 2592 mmd = MDIO_DEV_PCS; 2593 else if (mmd > MDIO_DEV_VEND [all...] |
/freebsd-13-stable/tools/tools/cxgbtool/ |
H A D | cxgbtool.c | 213 unsigned int cmd, phy_addr, reg, mmd, val; local 223 get_int_arg(argv[start_arg + 1], &mmd) || 228 p.phy_id = phy_addr | (mmd << 8);
|
/freebsd-13-stable/sys/dev/cxgbe/common/ |
H A D | common.h | 843 unsigned int mmd, unsigned int reg, unsigned int *valp); 845 unsigned int mmd, unsigned int reg, unsigned int val);
|
H A D | t4_hw.c | 7203 * @mmd: the PHY MMD to access (0 for clause 22 PHYs) 7210 unsigned int mmd, unsigned int reg, unsigned int *valp) 7223 V_FW_LDST_CMD_MMD(mmd)); 7237 * @mmd: the PHY MMD to access (0 for clause 22 PHYs) 7244 unsigned int mmd, unsigned int reg, unsigned int val) 7256 V_FW_LDST_CMD_MMD(mmd)); 7209 t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int *valp) argument 7243 t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int val) argument
|