/freebsd-10.1-release/sys/mips/rmi/dev/xlr/ |
H A D | xgmac_mdio.h | 38 uint32_t phy_addr, uint32_t address); 41 uint32_t phy_addr, uint32_t address, uint32_t data); 44 uint32_t phy_addr, uint32_t dev_ad, uint32_t address); 48 uint32_t phy_addr, uint32_t dev_ad, uint32_t address) 56 ((phy_addr & 0x1F) << 23) | 74 uint32_t phy_addr, uint32_t address) 81 xmdio_address(_mmio, phy_addr, 5, address); 84 ((phy_addr & 0x1F) << 23) | 103 uint32_t phy_addr, uint32_t address, uint32_t data) 109 xmdio_address(_mmio, phy_addr, 47 xmdio_address(volatile unsigned int *_mmio, uint32_t phy_addr, uint32_t dev_ad, uint32_t address) argument 73 xmdio_read(volatile unsigned int *_mmio, uint32_t phy_addr, uint32_t address) argument 102 xmdio_write(volatile unsigned int *_mmio, uint32_t phy_addr, uint32_t address, uint32_t data) argument [all...] |
H A D | rge.c | 1063 int phy_addr = priv->phy_addr; local 1067 priv->speed = rge_mii_read_internal(priv->mii_mmio, phy_addr, 28); 1068 priv->link = rge_mii_read_internal(priv->mii_mmio, phy_addr, 1) & 0x4; 1316 rge_mii_write_internal(priv->mii_mmio, priv->phy_addr, 25, 0xfffffffe); 1782 priv->phy_addr = priv->instance - 2; 1784 priv->phy_addr = priv->instance; 1790 priv->phy_addr = 0; 1796 priv->phy_addr = priv->instance % 4 + 16; 1798 priv->phy_addr [all...] |
/freebsd-10.1-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-helper-board.c | 181 int phy_addr; member in struct:cvmx_phy_info 213 phy_info.phy_addr = -1; 314 phy_info.phy_addr = cvmx_be32_to_cpu(*phy_addr_ptr) | mdio_unit << 8; 331 return phy_info.phy_addr; 379 //cvmx_dprintf("ipd_port=%d phy_addr=%d\n", ipd_port, phy_info.phy_addr); 380 if (phy_info.phy_addr >= 0) return phy_info.phy_addr; 649 static cvmx_helper_link_info_t __get_marvell_phy_link_state(int phy_addr) argument 656 phy_status = cvmx_mdio_read(phy_addr >> 697 __get_broadcom_phy_link_state(int phy_addr) argument 987 int phy_addr; local 1214 cvmx_helper_board_link_set_phy(int phy_addr, cvmx_helper_board_set_phy_link_flags_types_t link_flags, cvmx_helper_link_info_t link_info) argument 1480 int phy_addr = cvmx_helper_board_get_mii_address(0); local [all...] |
H A D | cvmx-helper-board.h | 121 * @param phy_addr The address of the PHY to program 130 int cvmx_helper_board_link_set_phy(int phy_addr, cvmx_helper_board_set_phy_link_flags_types_t link_flags,
|
H A D | cvmx-bootmem.c | 738 int __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags) argument 745 cvmx_dprintf("__cvmx_bootmem_phy_free addr: 0x%llx, size: 0x%llx\n", (ULL)phy_addr, (ULL)size); 757 if (cur_addr == 0 || phy_addr < cur_addr) 760 if (cur_addr && phy_addr + size > cur_addr) 762 else if (phy_addr + size == cur_addr) 765 cvmx_bootmem_phy_set_next(phy_addr, cvmx_bootmem_phy_get_next(cur_addr)); 766 cvmx_bootmem_phy_set_size(phy_addr, cvmx_bootmem_phy_get_size(cur_addr) + size); 767 CVMX_BOOTMEM_DESC_SET_FIELD(head_addr, phy_addr); 773 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); /* OK if cur_addr is 0 */ 774 cvmx_bootmem_phy_set_size(phy_addr, siz [all...] |
H A D | cvmx-bootmem.h | 423 * @param phy_addr physical address of block 430 int __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags);
|
H A D | cvmx-mgmt-port.c | 243 int phy_addr = cvmx_helper_board_get_mii_address(port_num); local 244 if (phy_addr != -1) 248 phy_status.u16 = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, CVMX_MDIO_PHY_REG_STATUS);
|
/freebsd-10.1-release/sys/dev/cxgb/common/ |
H A D | cxgb_aq100x.c | 464 t3_aq100x_phy_prep(pinfo_t *pinfo, int phy_addr, argument 472 cphy_init(&pinfo->phy, adapter, pinfo, phy_addr, &aq100x_ops, mdio_ops, 480 gpio = phy_addr ? F_GPIO10_OUT_VAL : F_GPIO6_OUT_VAL; 497 phy_addr, err, v); 507 phy_addr, v); 515 CH_WARN(adapter, "PHY%d: unknown firmware %d.%d\n", phy_addr, 522 phy_addr); 532 "(0x%x, 0x%x).\n", phy_addr, v, v2); 537 "(0x%x).\n", phy_addr, v);
|
H A D | cxgb_common.h | 149 int (*read)(adapter_t *adapter, int phy_addr, int mmd_addr, 151 int (*write)(adapter_t *adapter, int phy_addr, int mmd_addr, 577 int (*mdio_read)(adapter_t *adapter, int phy_addr, int mmd_addr, 579 int (*mdio_write)(adapter_t *adapter, int phy_addr, int mmd_addr, 598 int phy_addr, struct cphy_ops *phy_ops, 602 phy->addr = (u8)phy_addr; 833 int t3_mi1_read(adapter_t *adapter, int phy_addr, int mmd_addr, int reg_addr, 835 int t3_mi1_write(adapter_t *adapter, int phy_addr, int mmd_addr, int reg_addr, 838 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr, 840 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr, 597 cphy_init(struct cphy *phy, adapter_t *adapter, pinfo_t *pinfo, int phy_addr, struct cphy_ops *phy_ops, const struct mdio_ops *mdio_ops, unsigned int caps, const char *desc) argument [all...] |
H A D | cxgb_tn1010.c | 212 int t3_tn1010_phy_prep(pinfo_t *pinfo, int phy_addr, argument 215 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &tn1010_ops, mdio_ops,
|
H A D | cxgb_mv88e1xxx.c | 297 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr, argument 303 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &mv88e1xxx_ops, mdio_ops,
|
H A D | cxgb_vsc8211.c | 427 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr, argument 434 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &vsc8211_ops, mdio_ops,
|
H A D | cxgb_ael1002.c | 338 int t3_ael1002_phy_prep(pinfo_t *pinfo, int phy_addr, argument 344 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1002_ops, mdio_ops, 420 int t3_ael1006_phy_prep(pinfo_t *pinfo, int phy_addr, argument 425 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1006_ops, mdio_ops, 1378 int t3_ael2005_phy_prep(pinfo_t *pinfo, int phy_addr, argument 1384 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael2005_ops, mdio_ops, 2130 int t3_ael2020_phy_prep(pinfo_t *pinfo, int phy_addr, argument 2136 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael2020_ops, mdio_ops, 2206 int t3_qt2045_phy_prep(pinfo_t *pinfo, int phy_addr, argument 2212 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, 2287 t3_xaui_direct_phy_prep(pinfo_t *pinfo, int phy_addr, const struct mdio_ops *mdio_ops) argument [all...] |
/freebsd-10.1-release/sys/mips/rmi/ |
H A D | board.c | 248 blk0->gmac_port[0].phy_addr = 0; 321 blk1->gmac_port[0].phy_addr = 16; 331 blk0->gmac_port[0].phy_addr = 0; 350 blk1->gmac_port[0].phy_addr = 16; 466 blk0->gmac_port[i].phy_addr = i + 16; 493 blk1->gmac_port[i].phy_addr = i + 20; 537 blk0->gmac_port[i].phy_addr = i; 561 blk1->gmac_port[0].phy_addr = 0; 581 blk2->gmac_port[0].phy_addr = 0;
|
H A D | board.h | 236 uint32_t phy_addr; member in struct:xlr_board_info::xlr_gmac_block_t::xlr_gmac_port
|
/freebsd-10.1-release/sys/mips/nlm/ |
H A D | board.h | 70 int phy_addr; member in struct:xlp_port_ivars
|
/freebsd-10.1-release/sys/mips/nlm/dev/net/ |
H A D | xlpge.h | 104 int phy_addr; /* PHY id for the interface */ member in struct:nlm_xlpge_softc
|
/freebsd-10.1-release/sys/dev/bxe/ |
H A D | bxe_elink.h | 209 #define ELINK_FW_PARAM_SET(phy_addr, phy_type, mdio_access) \ 210 (phy_addr | phy_type | mdio_access << ELINK_FW_PARAM_MDIO_CTRL_OFFSET) 522 elink_status_t elink_phy_read(struct elink_params *params, uint8_t phy_addr, 525 elink_status_t elink_phy_write(struct elink_params *params, uint8_t phy_addr,
|
/freebsd-10.1-release/sys/dev/ixgbe/ |
H A D | ixgbe_phy.h | 116 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr);
|
H A D | ixgbe_phy.c | 97 u32 phy_addr; local 103 for (phy_addr = 0; phy_addr < IXGBE_MAX_PHY_ADDR; phy_addr++) { 104 if (ixgbe_validate_phy_addr(hw, phy_addr)) { 105 hw->phy.addr = phy_addr; 147 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr) argument 154 hw->phy.addr = phy_addr;
|
/freebsd-10.1-release/sys/dev/hptiop/ |
H A D | hptiop.c | 837 u_int64_t phy_addr; local 840 phy_addr = hba->ctlcfgcmd_phy | 845 hptiop_mv_inbound_write(phy_addr, hba); 861 u_int64_t phy_addr; local 867 phy_addr = hba->ctlcfgcmd_phy; 871 | ((phy_addr >> 16) & 0xffff0000); 872 reqhdr->context = ((phy_addr & 0xffffffff) << 32 ) 884 hba->u.mvfrey.inlist[index].addr = phy_addr; 1304 u_int64_t phy_addr; local 1307 phy_addr 2707 bus_addr_t phy_addr = (segs->ds_addr + 0x1F) & ~(bus_addr_t)0x1F; local [all...] |
/freebsd-10.1-release/sys/dev/e1000/ |
H A D | e1000_phy.c | 3058 u32 phy_addr = 0; local 3064 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) { 3065 hw->phy.addr = phy_addr; 3094 u32 phy_addr = 2; local 3097 phy_addr = 1; 3099 return phy_addr; 3538 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); local 3570 hw->phy.addr = phy_addr; 3648 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); local 3764 u32 phy_addr = 2; local [all...] |
/freebsd-10.1-release/sys/dev/ixgb/ |
H A D | ixgb_hw.h | 700 uint32_t phy_addr; /* XGMII address of Phy */ member in struct:ixgb_hw 805 uint32_t phy_addr, 810 uint32_t phy_addr,
|
/freebsd-10.1-release/sys/mips/rmi/dev/nlge/ |
H A D | if_nlge.c | 209 static void release_tx_desc(vm_paddr_t phy_addr); 1634 phy = sc->phy_addr % 4 + 27; 1674 port_sc->phy_addr, 26); 1675 PDEBUG("Phy_%d: int_status=0x%08x\n", port_sc->phy_addr, 1908 nlge_mediastatus, BMSR_DEFCAPMASK, sc->phy_addr, MII_OFFSET_ANY, 1919 nlge_mii_write_internal(sc->mii_base, sc->phy_addr, 25, 2207 sc->phy_addr, MII_BMSR); 2215 sc->speed = nlge_mii_read_internal(sc->mii_base, sc->phy_addr, 28); 2251 * - phy_addr 2265 sc->phy_addr [all...] |
/freebsd-10.1-release/sys/dev/rt/ |
H A D | if_rtvar.h | 255 int phy_addr; member in struct:rt_softc
|