/freebsd-11-stable/sys/mips/rmi/dev/xlr/ |
H A D | xgmac_mdio.h | 41 uint32_t phy_addr, uint32_t address); 44 uint32_t phy_addr, uint32_t address, uint32_t data); 47 uint32_t phy_addr, uint32_t dev_ad, uint32_t address); 51 uint32_t phy_addr, uint32_t dev_ad, uint32_t address) 59 ((phy_addr & 0x1F) << 23) | 77 uint32_t phy_addr, uint32_t address) 84 xmdio_address(_mmio, phy_addr, 5, address); 87 ((phy_addr & 0x1F) << 23) | 106 uint32_t phy_addr, uint32_t address, uint32_t data) 112 xmdio_address(_mmio, phy_addr, 50 xmdio_address(volatile unsigned int *_mmio, uint32_t phy_addr, uint32_t dev_ad, uint32_t address) argument 76 xmdio_read(volatile unsigned int *_mmio, uint32_t phy_addr, uint32_t address) argument 105 xmdio_write(volatile unsigned int *_mmio, uint32_t phy_addr, uint32_t address, uint32_t data) argument [all...] |
/freebsd-11-stable/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; 650 static cvmx_helper_link_info_t __get_marvell_phy_link_state(int phy_addr) argument 657 phy_status = cvmx_mdio_read(phy_addr >> 698 __get_broadcom_phy_link_state(int phy_addr) argument 988 int phy_addr; local 1215 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 1481 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-11-stable/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, 584 int (*mdio_read)(adapter_t *adapter, int phy_addr, int mmd_addr, 586 int (*mdio_write)(adapter_t *adapter, int phy_addr, int mmd_addr, 605 int phy_addr, struct cphy_ops *phy_ops, 609 phy->addr = (u8)phy_addr; 840 int t3_mi1_read(adapter_t *adapter, int phy_addr, int mmd_addr, int reg_addr, 842 int t3_mi1_write(adapter_t *adapter, int phy_addr, int mmd_addr, int reg_addr, 845 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr, 847 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr, 604 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 | 213 int t3_tn1010_phy_prep(pinfo_t *pinfo, int phy_addr, argument 216 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &tn1010_ops, mdio_ops,
|
H A D | cxgb_mv88e1xxx.c | 298 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr, argument 304 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &mv88e1xxx_ops, mdio_ops,
|
H A D | cxgb_vsc8211.c | 429 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr, argument 436 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &vsc8211_ops, mdio_ops,
|
H A D | cxgb_ael1002.c | 344 int t3_ael1002_phy_prep(pinfo_t *pinfo, int phy_addr, argument 350 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1002_ops, mdio_ops, 426 int t3_ael1006_phy_prep(pinfo_t *pinfo, int phy_addr, argument 431 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1006_ops, mdio_ops, 1384 int t3_ael2005_phy_prep(pinfo_t *pinfo, int phy_addr, argument 1390 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael2005_ops, mdio_ops, 2136 int t3_ael2020_phy_prep(pinfo_t *pinfo, int phy_addr, argument 2142 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael2020_ops, mdio_ops, 2215 int t3_qt2045_phy_prep(pinfo_t *pinfo, int phy_addr, argument 2221 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, 2296 t3_xaui_direct_phy_prep(pinfo_t *pinfo, int phy_addr, const struct mdio_ops *mdio_ops) argument [all...] |
/freebsd-11-stable/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-11-stable/sys/mips/nlm/ |
H A D | board.h | 70 int phy_addr; member in struct:xlp_port_ivars
|
/freebsd-11-stable/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-11-stable/sys/dev/ixgbe/ |
H A D | ixgbe_phy.c | 287 * @phy_addr: PHY address to probe 291 static bool ixgbe_probe_phy(struct ixgbe_hw *hw, u16 phy_addr) argument 295 if (!ixgbe_validate_phy_addr(hw, phy_addr)) { 297 phy_addr); 329 u16 phy_addr; local 344 phy_addr = (hw->phy.nw_mng_if_sel & 347 if (ixgbe_probe_phy(hw, phy_addr)) 353 for (phy_addr = 0; phy_addr < IXGBE_MAX_PHY_ADDR; phy_addr 404 ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr) argument [all...] |
/freebsd-11-stable/sys/dev/bxe/ |
H A D | bxe_elink.h | 212 #define ELINK_FW_PARAM_SET(phy_addr, phy_type, mdio_access) \ 213 (phy_addr | phy_type | mdio_access << ELINK_FW_PARAM_MDIO_CTRL_OFFSET) 530 elink_status_t elink_phy_read(struct elink_params *params, uint8_t phy_addr, 533 elink_status_t elink_phy_write(struct elink_params *params, uint8_t phy_addr,
|
/freebsd-11-stable/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 2710 bus_addr_t phy_addr = (segs->ds_addr + 0x1F) & ~(bus_addr_t)0x1F; local [all...] |
/freebsd-11-stable/sys/dev/ixl/ |
H A D | i40e_prototype.h | 590 u16 reg, u8 phy_addr, u16 *value); 592 u16 reg, u8 phy_addr, u16 value); 594 u8 page, u16 reg, u8 phy_addr, u16 *value); 596 u8 page, u16 reg, u8 phy_addr, u16 value); 598 u8 page, u16 reg, u8 phy_addr, u16 *value); 600 u8 page, u16 reg, u8 phy_addr, u16 value);
|
H A D | i40e_common.c | 6190 * @phy_addr: PHY address on MDIO interface 6196 u16 reg, u8 phy_addr, u16 *value) 6204 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | 6235 * @phy_addr: PHY address on MDIO interface 6241 u16 reg, u8 phy_addr, u16 value) 6252 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | 6276 * @phy_addr: PHY address on MDIO interface 6282 u8 page, u16 reg, u8 phy_addr, u16 *value) 6291 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | 6314 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIF 6195 i40e_read_phy_register_clause22(struct i40e_hw *hw, u16 reg, u8 phy_addr, u16 *value) argument 6240 i40e_write_phy_register_clause22(struct i40e_hw *hw, u16 reg, u8 phy_addr, u16 value) argument 6281 i40e_read_phy_register_clause45(struct i40e_hw *hw, u8 page, u16 reg, u8 phy_addr, u16 *value) argument 6355 i40e_write_phy_register_clause45(struct i40e_hw *hw, u8 page, u16 reg, u8 phy_addr, u16 value) argument 6422 i40e_write_phy_register(struct i40e_hw *hw, u8 page, u16 reg, u8 phy_addr, u16 value) argument 6459 i40e_read_phy_register(struct i40e_hw *hw, u8 page, u16 reg, u8 phy_addr, u16 *value) argument 6518 u8 phy_addr = 0; local 6585 u8 phy_addr = 0; local 6614 u8 phy_addr = 0; local 6647 u8 phy_addr = 0; local [all...] |
/freebsd-11-stable/sys/dev/e1000/ |
H A D | e1000_phy.c | 3059 u32 phy_addr = 0; local 3065 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) { 3066 hw->phy.addr = phy_addr; 3095 u32 phy_addr = 2; local 3098 phy_addr = 1; 3100 return phy_addr; 3538 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); local 3569 hw->phy.addr = phy_addr; 3647 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); local 3762 u32 phy_addr = 2; local [all...] |
/freebsd-11-stable/sys/mips/rmi/dev/nlge/ |
H A D | if_nlge.c | 209 static void release_tx_desc(vm_paddr_t phy_addr); 1636 phy = sc->phy_addr % 4 + 27; 1676 port_sc->phy_addr, 26); 1677 PDEBUG("Phy_%d: int_status=0x%08x\n", port_sc->phy_addr, 1910 nlge_mediastatus, BMSR_DEFCAPMASK, sc->phy_addr, MII_OFFSET_ANY, 1921 nlge_mii_write_internal(sc->mii_base, sc->phy_addr, 25, 2209 sc->phy_addr, MII_BMSR); 2217 sc->speed = nlge_mii_read_internal(sc->mii_base, sc->phy_addr, 28); 2253 * - phy_addr 2267 sc->phy_addr [all...] |
/freebsd-11-stable/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-11-stable/sys/dev/rt/ |
H A D | if_rtvar.h | 268 int phy_addr; member in struct:rt_softc
|