Home
last modified time | relevance | path

Searched refs:phy_addr (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-12.1/sys/contrib/octeon-sdk/
H A Dcvmx-helper-board.c181 int phy_addr; member
213 phy_info.phy_addr = -1; in __get_phy_info_from_dt()
331 return phy_info.phy_addr; in cvmx_helper_board_get_mii_address_from_dt()
380 if (phy_info.phy_addr >= 0) return phy_info.phy_addr; in cvmx_helper_board_get_mii_address()
657 phy_status = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, 17); in __get_marvell_phy_link_state()
664 int auto_status = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, 0); in __get_marvell_phy_link_state()
706 phy_status = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, 0x19); in __get_broadcom_phy_link_state()
988 int phy_addr; in __cvmx_helper_board_link_get() local
1126 if (phy_addr != -1) in __cvmx_helper_board_link_get()
1482 if (phy_addr != -1) in __cvmx_helper_board_hardware_enable()
[all …]
H A Dcvmx-bootmem.c757 if (cur_addr == 0 || phy_addr < cur_addr) in __cvmx_bootmem_phy_free()
760 if (cur_addr && phy_addr + size > cur_addr) in __cvmx_bootmem_phy_free()
762 else if (phy_addr + size == cur_addr) in __cvmx_bootmem_phy_free()
774 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
782 while (cur_addr && phy_addr > cur_addr) in __cvmx_bootmem_phy_free()
800 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
801 cvmx_bootmem_phy_set_next(phy_addr, 0); in __cvmx_bootmem_phy_free()
814 if (phy_addr + size == cur_addr) in __cvmx_bootmem_phy_free()
823 else if (phy_addr + size == cur_addr) in __cvmx_bootmem_phy_free()
834 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
[all …]
H A Dcvmx-helper-board.h130 int cvmx_helper_board_link_set_phy(int phy_addr, cvmx_helper_board_set_phy_link_flags_types_t link_…
H A Dcvmx-mgmt-port.c243 int phy_addr = cvmx_helper_board_get_mii_address(port_num); in cvmx_mgmt_port_initialize() local
244 if (phy_addr != -1) in cvmx_mgmt_port_initialize()
248 … phy_status.u16 = cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, CVMX_MDIO_PHY_REG_STATUS); in cvmx_mgmt_port_initialize()
H A Dcvmx-bootmem.h430 int __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags);
/freebsd-12.1/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dfman_memac_mii_acc.c37 uint8_t phy_addr, uint8_t reg, uint16_t data) in write_phy_reg_10g() argument
56 iowrite32be(phy_addr, &mii_regs->mdio_ctrl); in write_phy_reg_10g()
73 uint8_t phy_addr, uint8_t reg, uint16_t *data) in read_phy_reg_10g() argument
92 iowrite32be(phy_addr, &mii_regs->mdio_ctrl); in read_phy_reg_10g()
100 tmp_reg = phy_addr; in read_phy_reg_10g()
116 uint8_t phy_addr, uint8_t reg, uint16_t data) in write_phy_reg_1g() argument
130 tmp_reg = (phy_addr << MDIO_CTL_PHY_ADDR_SHIFT); in write_phy_reg_1g()
147 uint8_t phy_addr, uint8_t reg, uint16_t *data) in read_phy_reg_1g() argument
161 tmp_reg = (phy_addr << MDIO_CTL_PHY_ADDR_SHIFT); in read_phy_reg_1g()
181 uint8_t phy_addr, uint8_t reg, uint16_t data, in fman_memac_mii_write_phy_reg() argument
[all …]
/freebsd-12.1/sys/dev/cxgb/common/
H A Dcxgb_common.h606 int phy_addr, struct cphy_ops *phy_ops, in cphy_init() argument
610 phy->addr = (u8)phy_addr; in cphy_init()
846 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr,
848 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr,
851 int t3_ael1002_phy_prep(pinfo_t *pinfo, int phy_addr,
853 int t3_ael1006_phy_prep(pinfo_t *pinfo, int phy_addr,
855 int t3_ael2005_phy_prep(pinfo_t *pinfo, int phy_addr,
857 int t3_ael2020_phy_prep(pinfo_t *pinfo, int phy_addr,
859 int t3_qt2045_phy_prep(pinfo_t *pinfo, int phy_addr,
861 int t3_tn1010_phy_prep(pinfo_t *pinfo, int phy_addr,
[all …]
H A Dcxgb_aq100x.c465 t3_aq100x_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_aq100x_phy_prep() argument
473 cphy_init(&pinfo->phy, adapter, pinfo, phy_addr, &aq100x_ops, mdio_ops, in t3_aq100x_phy_prep()
481 gpio = phy_addr ? F_GPIO10_OUT_VAL : F_GPIO6_OUT_VAL; in t3_aq100x_phy_prep()
498 phy_addr, err, v); in t3_aq100x_phy_prep()
508 phy_addr, v); in t3_aq100x_phy_prep()
516 CH_WARN(adapter, "PHY%d: unknown firmware %d.%d\n", phy_addr, in t3_aq100x_phy_prep()
523 phy_addr); in t3_aq100x_phy_prep()
533 "(0x%x, 0x%x).\n", phy_addr, v, v2); in t3_aq100x_phy_prep()
538 "(0x%x).\n", phy_addr, v); in t3_aq100x_phy_prep()
H A Dcxgb_ael1002.c345 int t3_ael1002_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael1002_phy_prep() argument
351 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1002_ops, mdio_ops, in t3_ael1002_phy_prep()
427 int t3_ael1006_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael1006_phy_prep() argument
432 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1006_ops, mdio_ops, in t3_ael1006_phy_prep()
1385 int t3_ael2005_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael2005_phy_prep() argument
1391 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael2005_ops, mdio_ops, in t3_ael2005_phy_prep()
2137 int t3_ael2020_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael2020_phy_prep() argument
2216 int t3_qt2045_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_qt2045_phy_prep() argument
2222 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &qt2045_ops, mdio_ops, in t3_qt2045_phy_prep()
2230 if (!phy_addr && !mdio_read(phy, MDIO_DEV_PMA_PMD, MII_BMSR, &stat) && in t3_qt2045_phy_prep()
[all …]
H A Dcxgb_tn1010.c214 int t3_tn1010_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_tn1010_phy_prep() argument
217 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &tn1010_ops, mdio_ops, in t3_tn1010_phy_prep()
H A Dcxgb_mv88e1xxx.c299 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_mv88e1xxx_phy_prep() argument
305 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &mv88e1xxx_ops, mdio_ops, in t3_mv88e1xxx_phy_prep()
H A Dcxgb_vsc8211.c430 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_vsc8211_phy_prep() argument
437 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &vsc8211_ops, mdio_ops, in t3_vsc8211_phy_prep()
/freebsd-12.1/sys/contrib/ncsw/inc/flib/
H A Dfsl_fman_memac_mii_acc.h72 uint8_t phy_addr, uint8_t reg, uint16_t *data,
75 uint8_t phy_addr, uint8_t reg, uint16_t data,
/freebsd-12.1/sys/dev/neta/
H A Dif_mvneta_fdt.c181 sc->phy_addr = MII_PHY_ANY; in mvneta_fdt_phy_acquire()
194 if (OF_getencprop(phy_handle, "reg", &sc->phy_addr, in mvneta_fdt_phy_acquire()
195 sizeof(sc->phy_addr)) <= 0) { in mvneta_fdt_phy_acquire()
/freebsd-12.1/sys/dev/hptiop/
H A Dhptiop.c839 u_int64_t phy_addr; in hptiop_send_sync_request_mv() local
842 phy_addr = hba->ctlcfgcmd_phy | in hptiop_send_sync_request_mv()
863 u_int64_t phy_addr; in hptiop_send_sync_request_mvfrey() local
869 phy_addr = hba->ctlcfgcmd_phy; in hptiop_send_sync_request_mvfrey()
1306 u_int64_t phy_addr; in hptiop_post_ioctl_command_mvfrey() local
1309 phy_addr = hba->ctlcfgcmd_phy; in hptiop_post_ioctl_command_mvfrey()
2526 req_phy = srb->phy_addr; in hptiop_post_req_mv()
2580 req_phy = srb->phy_addr; in hptiop_post_req_mvfrey()
2741 (phy_addr >> 5); in hptiop_map_srb()
2746 tmp_srb->phy_addr = phy_addr; in hptiop_map_srb()
[all …]
/freebsd-12.1/sys/dev/bxe/
H A Dbxe_elink.h214 #define ELINK_FW_PARAM_SET(phy_addr, phy_type, mdio_access) \ argument
215 (phy_addr | phy_type | mdio_access << ELINK_FW_PARAM_MDIO_CTRL_OFFSET)
532 elink_status_t elink_phy_read(struct elink_params *params, uint8_t phy_addr,
535 elink_status_t elink_phy_write(struct elink_params *params, uint8_t phy_addr,
/freebsd-12.1/sys/dev/ixgbe/
H A Dixgbe_phy.c292 static bool ixgbe_probe_phy(struct ixgbe_hw *hw, u16 phy_addr) in ixgbe_probe_phy() argument
296 if (!ixgbe_validate_phy_addr(hw, phy_addr)) { in ixgbe_probe_phy()
298 phy_addr); in ixgbe_probe_phy()
330 u16 phy_addr; in ixgbe_identify_phy_generic() local
345 phy_addr = (hw->phy.nw_mng_if_sel & in ixgbe_identify_phy_generic()
348 if (ixgbe_probe_phy(hw, phy_addr)) in ixgbe_identify_phy_generic()
354 for (phy_addr = 0; phy_addr < IXGBE_MAX_PHY_ADDR; phy_addr++) { in ixgbe_identify_phy_generic()
355 if (ixgbe_probe_phy(hw, phy_addr)) { in ixgbe_identify_phy_generic()
406 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr) in ixgbe_validate_phy_addr() argument
413 hw->phy.addr = phy_addr; in ixgbe_validate_phy_addr()
/freebsd-12.1/sys/dev/xilinx/
H A Dif_xae.c105 xae_miibus_read_reg(sc->dev, sc->phy_addr, _r)
107 xae_miibus_write_reg(sc->dev, sc->phy_addr, _r, _v)
153 xae_get_phyaddr(phandle_t node, int *phy_addr) in xae_get_phyaddr() argument
168 *phy_addr = phy_reg; in xae_get_phyaddr()
955 if (xae_get_phyaddr(node, &sc->phy_addr) != 0) in xae_attach()
960 xae_media_status, BMSR_DEFCAPMASK, sc->phy_addr, in xae_attach()
H A Dif_xaevar.h62 int phy_addr; member
/freebsd-12.1/sys/dev/e1000/
H A De1000_phy.c3060 u32 phy_addr = 0; in e1000_determine_phy_address() local
3066 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) { in e1000_determine_phy_address()
3067 hw->phy.addr = phy_addr; in e1000_determine_phy_address()
3096 u32 phy_addr = 2; in e1000_get_phy_addr_for_bm_page() local
3099 phy_addr = 1; in e1000_get_phy_addr_for_bm_page()
3101 return phy_addr; in e1000_get_phy_addr_for_bm_page()
3570 hw->phy.addr = phy_addr; in __e1000_read_phy_reg_hv()
3695 hw->phy.addr = phy_addr; in __e1000_write_phy_reg_hv()
3763 u32 phy_addr = 2; in e1000_get_phy_addr_for_hv_page() local
3766 phy_addr = 1; in e1000_get_phy_addr_for_hv_page()
[all …]
/freebsd-12.1/sys/dev/ixl/
H A Di40e_prototype.h578 u16 reg, u8 phy_addr, u16 *value);
580 u16 reg, u8 phy_addr, u16 value);
582 u8 page, u16 reg, u8 phy_addr, u16 *value);
584 u8 page, u16 reg, u8 phy_addr, u16 value);
586 u8 page, u16 reg, u8 phy_addr, u16 *value);
588 u8 page, u16 reg, u8 phy_addr, u16 value);
H A Di40e_common.c6407 reg, phy_addr, value); in i40e_write_phy_register()
6451 phy_addr, value); in i40e_read_phy_register()
6493 u8 phy_addr = 0; in i40e_blink_phy_link_led() local
6504 led_addr, phy_addr, in i40e_blink_phy_link_led()
6513 led_addr, phy_addr, in i40e_blink_phy_link_led()
6560 u8 phy_addr = 0; in i40e_led_get_reg() local
6573 led_addr, phy_addr, in i40e_led_get_reg()
6589 u8 phy_addr = 0; in i40e_led_set_reg() local
6601 led_addr, phy_addr, in i40e_led_set_reg()
6622 u8 phy_addr = 0; in i40e_led_get_phy() local
[all …]
/freebsd-12.1/sys/mips/nlm/dev/net/
H A Dxlpge.h106 int phy_addr; /* PHY id for the interface */ member
/freebsd-12.1/sys/mips/nlm/
H A Dboard.h72 int phy_addr; member
/freebsd-12.1/usr.sbin/bhyve/
H A Dpci_e82545.c407 uint8_t phy_addr, uint32_t data) in e82545_write_mdi() argument
409 DPRINTF("Write mdi reg:0x%x phy:0x%x data: 0x%x\r\n", reg_addr, phy_addr, data); in e82545_write_mdi()
414 uint8_t phy_addr) in e82545_read_mdi() argument
433 DPRINTF("Unknown mdi read reg:0x%x phy:0x%x\r\n", reg_addr, phy_addr); in e82545_read_mdi()
1771 uint8_t phy_addr = (uint8_t)((value & E1000_MDIC_PHY_MASK) >> in e82545_write_register() local
1782 sc->mdi_control |= e82545_read_mdi(sc, reg_addr, phy_addr); in e82545_write_register()
1785 e82545_write_mdi(sc, reg_addr, phy_addr, in e82545_write_register()

12