| /freebsd-13.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-13.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-13.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-13.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-13.1/sys/dev/neta/ |
| H A D | if_mvneta_fdt.c | 202 sc->phy_addr = MII_PHY_ANY; in mvneta_fdt_phy_acquire() 215 if (OF_getencprop(phy_handle, "reg", &sc->phy_addr, in mvneta_fdt_phy_acquire() 216 sizeof(sc->phy_addr)) <= 0) { in mvneta_fdt_phy_acquire()
|
| /freebsd-13.1/sys/contrib/dev/iwlwifi/fw/ |
| H A D | paging.c | 255 __le32 phy_addr; in iwl_send_paging_cmd() local 258 phy_addr = cpu_to_le32(addr); in iwl_send_paging_cmd() 259 paging_cmd.device_phy_addr[blk_idx] = phy_addr; in iwl_send_paging_cmd()
|
| /freebsd-13.1/sys/dev/hptiop/ |
| H A D | hptiop.c | 834 u_int64_t phy_addr; in hptiop_send_sync_request_mv() local 837 phy_addr = hba->ctlcfgcmd_phy | in hptiop_send_sync_request_mv() 858 u_int64_t phy_addr; in hptiop_send_sync_request_mvfrey() local 864 phy_addr = hba->ctlcfgcmd_phy; in hptiop_send_sync_request_mvfrey() 1301 u_int64_t phy_addr; in hptiop_post_ioctl_command_mvfrey() local 1304 phy_addr = hba->ctlcfgcmd_phy; in hptiop_post_ioctl_command_mvfrey() 2521 req_phy = srb->phy_addr; in hptiop_post_req_mv() 2575 req_phy = srb->phy_addr; in hptiop_post_req_mvfrey() 2736 (phy_addr >> 5); in hptiop_map_srb() 2741 tmp_srb->phy_addr = phy_addr; in hptiop_map_srb() [all …]
|
| /freebsd-13.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-13.1/sys/dev/xilinx/ |
| H A D | if_xaevar.h | 62 int phy_addr; member
|
| H A D | if_xae.c | 107 xae_miibus_read_reg(sc->dev, sc->phy_addr, _r) 109 xae_miibus_write_reg(sc->dev, sc->phy_addr, _r, _v) 155 xae_get_phyaddr(phandle_t node, int *phy_addr) in xae_get_phyaddr() argument 170 *phy_addr = phy_reg; in xae_get_phyaddr() 1020 if (xae_get_phyaddr(node, &sc->phy_addr) != 0) in xae_attach() 1025 xae_media_status, BMSR_DEFCAPMASK, sc->phy_addr, in xae_attach()
|
| /freebsd-13.1/sys/dev/ixgbe/ |
| H A D | ixgbe_phy.c | 287 static bool ixgbe_probe_phy(struct ixgbe_hw *hw, u16 phy_addr) in ixgbe_probe_phy() argument 291 if (!ixgbe_validate_phy_addr(hw, phy_addr)) { in ixgbe_probe_phy() 293 phy_addr); in ixgbe_probe_phy() 325 u16 phy_addr; in ixgbe_identify_phy_generic() local 340 phy_addr = (hw->phy.nw_mng_if_sel & in ixgbe_identify_phy_generic() 343 if (ixgbe_probe_phy(hw, phy_addr)) in ixgbe_identify_phy_generic() 349 for (phy_addr = 0; phy_addr < IXGBE_MAX_PHY_ADDR; phy_addr++) { in ixgbe_identify_phy_generic() 350 if (ixgbe_probe_phy(hw, phy_addr)) { in ixgbe_identify_phy_generic() 401 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr) in ixgbe_validate_phy_addr() argument 408 hw->phy.addr = phy_addr; in ixgbe_validate_phy_addr()
|
| /freebsd-13.1/sys/dev/e1000/ |
| H A D | e1000_phy.c | 3070 u32 phy_addr = 0; in e1000_determine_phy_address() local 3076 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) { in e1000_determine_phy_address() 3077 hw->phy.addr = phy_addr; in e1000_determine_phy_address() 3107 u32 phy_addr = 2; in e1000_get_phy_addr_for_bm_page() local 3110 phy_addr = 1; in e1000_get_phy_addr_for_bm_page() 3112 return phy_addr; in e1000_get_phy_addr_for_bm_page() 3582 hw->phy.addr = phy_addr; in __e1000_read_phy_reg_hv() 3708 hw->phy.addr = phy_addr; in __e1000_write_phy_reg_hv() 3776 u32 phy_addr = 2; in e1000_get_phy_addr_for_hv_page() local 3779 phy_addr = 1; in e1000_get_phy_addr_for_hv_page() [all …]
|
| /freebsd-13.1/sys/dev/ixl/ |
| H A D | i40e_prototype.h | 626 u16 reg, u8 phy_addr, u16 *value); 628 u16 reg, u8 phy_addr, u16 value); 630 u8 page, u16 reg, u8 phy_addr, u16 *value); 632 u8 page, u16 reg, u8 phy_addr, u16 value); 634 u8 page, u16 reg, u8 phy_addr, u16 *value); 636 u8 page, u16 reg, u8 phy_addr, u16 value);
|
| H A D | i40e_common.c | 6672 reg, phy_addr, value); in i40e_write_phy_register() 6720 phy_addr, value); in i40e_read_phy_register() 6762 u8 phy_addr = 0; in i40e_blink_phy_link_led() local 6773 led_addr, phy_addr, in i40e_blink_phy_link_led() 6782 led_addr, phy_addr, in i40e_blink_phy_link_led() 6829 u8 phy_addr = 0; in i40e_led_get_reg() local 6842 led_addr, phy_addr, in i40e_led_get_reg() 6858 u8 phy_addr = 0; in i40e_led_set_reg() local 6870 led_addr, phy_addr, in i40e_led_set_reg() 6891 u8 phy_addr = 0; in i40e_led_get_phy() local [all …]
|
| /freebsd-13.1/sys/mips/nlm/dev/net/ |
| H A D | xlpge.h | 106 int phy_addr; /* PHY id for the interface */ member
|
| /freebsd-13.1/sys/mips/nlm/ |
| H A D | board.h | 72 int phy_addr; member
|