Searched refs:phy_addr (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-10.0-release/sys/mips/rmi/dev/xlr/
H A Dxgmac_mdio.h38 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 Drge.c1063 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.0-release/sys/contrib/octeon-sdk/
H A Dcvmx-helper-board.c181 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 Dcvmx-helper-board.h121 * @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 Dcvmx-bootmem.c738 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 Dcvmx-bootmem.h423 * @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 Dcvmx-mgmt-port.c243 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.0-release/sys/dev/cxgb/common/
H A Dcxgb_aq100x.c464 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 Dcxgb_common.h149 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 Dcxgb_tn1010.c212 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 Dcxgb_mv88e1xxx.c297 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 Dcxgb_vsc8211.c427 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 Dcxgb_ael1002.c338 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.0-release/sys/mips/rmi/
H A Dboard.c248 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 Dboard.h236 uint32_t phy_addr; member in struct:xlr_board_info::xlr_gmac_block_t::xlr_gmac_port
/freebsd-10.0-release/sys/mips/nlm/
H A Dboard.h70 int phy_addr; member in struct:xlp_port_ivars
/freebsd-10.0-release/sys/mips/nlm/dev/net/
H A Dxlpge.h104 int phy_addr; /* PHY id for the interface */ member in struct:nlm_xlpge_softc
/freebsd-10.0-release/sys/dev/bxe/
H A Dbxe_elink.h216 #define ELINK_FW_PARAM_SET(phy_addr, phy_type, mdio_access) \
217 (phy_addr | phy_type | mdio_access << ELINK_FW_PARAM_MDIO_CTRL_OFFSET)
529 elink_status_t elink_phy_read(struct elink_params *params, uint8_t phy_addr,
532 elink_status_t elink_phy_write(struct elink_params *params, uint8_t phy_addr,
/freebsd-10.0-release/sys/dev/ixgbe/
H A Dixgbe_phy.h116 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr);
H A Dixgbe_phy.c97 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.0-release/sys/dev/hptiop/
H A Dhptiop.c837 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.0-release/sys/dev/e1000/
H A De1000_phy.c3054 u32 phy_addr = 0; local
3060 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) {
3061 hw->phy.addr = phy_addr;
3090 u32 phy_addr = 2; local
3093 phy_addr = 1;
3095 return phy_addr;
3546 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); local
3578 hw->phy.addr = phy_addr;
3656 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); local
3772 u32 phy_addr = 2; local
[all...]
/freebsd-10.0-release/sys/dev/ixgb/
H A Dixgb_hw.h700 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.0-release/sys/mips/rmi/dev/nlge/
H A Dif_nlge.c209 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.0-release/sys/dev/rt/
H A Dif_rtvar.h255 int phy_addr; member in struct:rt_softc

Completed in 381 milliseconds

12