| /freebsd-12.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-helper-board.c | 181 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 D | cvmx-bootmem.c | 757 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 D | cvmx-helper-board.h | 130 int cvmx_helper_board_link_set_phy(int phy_addr, cvmx_helper_board_set_phy_link_flags_types_t link_…
|
| H A D | cvmx-mgmt-port.c | 243 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 D | cvmx-bootmem.h | 430 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 D | fman_memac_mii_acc.c | 37 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 D | cxgb_common.h | 606 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 D | cxgb_aq100x.c | 465 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 D | cxgb_ael1002.c | 345 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 D | cxgb_tn1010.c | 214 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 D | cxgb_mv88e1xxx.c | 299 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 D | cxgb_vsc8211.c | 430 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 D | fsl_fman_memac_mii_acc.h | 72 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 D | if_mvneta_fdt.c | 181 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 D | hptiop.c | 839 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 D | bxe_elink.h | 214 #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 D | ixgbe_phy.c | 292 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 D | if_xae.c | 105 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 D | if_xaevar.h | 62 int phy_addr; member
|
| /freebsd-12.1/sys/dev/e1000/ |
| H A D | e1000_phy.c | 3060 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 D | i40e_prototype.h | 578 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 D | i40e_common.c | 6407 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 D | xlpge.h | 106 int phy_addr; /* PHY id for the interface */ member
|
| /freebsd-12.1/sys/mips/nlm/ |
| H A D | board.h | 72 int phy_addr; member
|
| /freebsd-12.1/usr.sbin/bhyve/ |
| H A D | pci_e82545.c | 407 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()
|