/freebsd-10.0-release/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-10.0-release/sys/dev/cxgb/common/ |
H A D | cxgb_aq100x.c | 70 (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:__anon7825 136 int mmd; member in struct:__anon7826 154 int mmd; member in struct:__anon7827 316 aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) argument
|
H A D | cxgb_common.h | 559 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable); 584 static inline int mdio_read(struct cphy *phy, int mmd, int reg, argument 587 return phy->mdio_read(phy->adapter, phy->addr, mmd, reg, valp); 590 static inline int mdio_write(struct cphy *phy, int mmd, int reg, argument 593 return phy->mdio_write(phy->adapter, phy->addr, mmd, reg, val); 683 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, 685 int t3_phy_reset(struct cphy *phy, int mmd, int wait);
|
H A D | cxgb_mv88e1xxx.c | 182 static int mv88e1xxx_set_loopback(struct cphy *cphy, int mmd, int dir, int on) argument
|
H A D | cxgb_t3_hw.c | 363 * @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-10.0-release/sys/dev/msk/ |
H A D | if_msk.c | 1597 struct msk_mii_data *mmd; local 1607 mmd = device_get_ivars(dev); 1608 port = mmd->port; 1720 mmd->mii_flags); 1746 struct msk_mii_data *mmd; local 1958 mmd = malloc(sizeof(struct msk_mii_data), M_DEVBUF, M_WAITOK | M_ZERO); 1959 if (mmd == NULL) { 1965 mmd->port = MSK_PORT_A; 1966 mmd->pmd = sc->msk_pmd; 1967 mmd [all...] |
/freebsd-10.0-release/sys/dev/cxgbe/common/ |
H A D | common.h | 568 unsigned int mmd, unsigned int reg, unsigned int *valp); 570 unsigned int mmd, unsigned int reg, unsigned int val);
|
H A D | t4_hw.c | 4182 * @mmd: the PHY MMD to access (0 for clause 22 PHYs) 4189 unsigned int mmd, unsigned int reg, unsigned int *valp) 4199 V_FW_LDST_CMD_MMD(mmd)); 4213 * @mmd: the PHY MMD to access (0 for clause 22 PHYs) 4220 unsigned int mmd, unsigned int reg, unsigned int val) 4229 V_FW_LDST_CMD_MMD(mmd)); 4188 t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int *valp) argument 4219 t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int val) argument
|
/freebsd-10.0-release/sys/dev/cxgb/ |
H A D | cxgb_main.c | 2482 int mmd, error = 0; local 2509 mmd = mid->phy_id >> 8; 2510 if (!mmd) 2511 mmd = MDIO_DEV_PCS; 2512 else if (mmd > MDIO_DEV_VEND2) 2515 error = phy->mdio_read(sc, mid->phy_id & 0x1f, mmd, 2531 mmd = mid->phy_id >> 8; 2532 if (!mmd) 2533 mmd = MDIO_DEV_PCS; 2534 else if (mmd > MDIO_DEV_VEND [all...] |
/freebsd-10.0-release/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);
|