/freebsd/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/sys/dev/cxgb/common/ |
H A D | cxgb_common.h | 148 int (*read)(adapter_t *adapter, int phy_addr, int mmd_addr, 150 int (*write)(adapter_t *adapter, int phy_addr, int mmd_addr, 583 int (*mdio_read)(adapter_t *adapter, int phy_addr, int mmd_addr, 585 int (*mdio_write)(adapter_t *adapter, int phy_addr, int mmd_addr, 604 int phy_addr, struct cphy_ops *phy_ops, in cphy_init() argument 608 phy->addr = (u8)phy_addr; in cphy_init() 839 int t3_mi1_read(adapter_t *adapter, int phy_addr, int mmd_addr, int reg_addr, 841 int t3_mi1_write(adapter_t *adapter, int phy_addr, int mmd_addr, int reg_addr, 844 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr, 846 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr, [all …]
|
H A D | cxgb_aq100x.c | 463 t3_aq100x_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_aq100x_phy_prep() argument 471 cphy_init(&pinfo->phy, adapter, pinfo, phy_addr, &aq100x_ops, mdio_ops, in t3_aq100x_phy_prep() 479 gpio = phy_addr ? F_GPIO10_OUT_VAL : F_GPIO6_OUT_VAL; in t3_aq100x_phy_prep() 496 phy_addr, err, v); in t3_aq100x_phy_prep() 506 phy_addr, v); in t3_aq100x_phy_prep() 514 CH_WARN(adapter, "PHY%d: unknown firmware %d.%d\n", phy_addr, in t3_aq100x_phy_prep() 521 phy_addr); in t3_aq100x_phy_prep() 531 "(0x%x, 0x%x).\n", phy_addr, v, v2); in t3_aq100x_phy_prep() 536 "(0x%x).\n", phy_addr, v); in t3_aq100x_phy_prep()
|
H A D | cxgb_ael1002.c | 343 int t3_ael1002_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael1002_phy_prep() argument 349 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1002_ops, mdio_ops, in t3_ael1002_phy_prep() 425 int t3_ael1006_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael1006_phy_prep() argument 430 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael1006_ops, mdio_ops, in t3_ael1006_phy_prep() 1383 int t3_ael2005_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael2005_phy_prep() argument 1389 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael2005_ops, mdio_ops, in t3_ael2005_phy_prep() 2135 int t3_ael2020_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_ael2020_phy_prep() argument 2141 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &ael2020_ops, mdio_ops, in t3_ael2020_phy_prep() 2214 int t3_qt2045_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_qt2045_phy_prep() argument 2220 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &qt2045_ops, mdio_ops, in t3_qt2045_phy_prep() [all …]
|
H A D | cxgb_tn1010.c | 212 int t3_tn1010_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_tn1010_phy_prep() argument 215 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &tn1010_ops, mdio_ops, in t3_tn1010_phy_prep()
|
H A D | cxgb_mv88e1xxx.c | 297 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_mv88e1xxx_phy_prep() argument 303 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &mv88e1xxx_ops, mdio_ops, in t3_mv88e1xxx_phy_prep()
|
H A D | cxgb_vsc8211.c | 428 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr, in t3_vsc8211_phy_prep() argument 435 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &vsc8211_ops, mdio_ops, in t3_vsc8211_phy_prep()
|
/freebsd/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/sys/dev/neta/ |
H A D | if_mvneta_fdt.c | 207 sc->phy_addr = MII_PHY_ANY; in mvneta_fdt_phy_acquire() 220 if (OF_getencprop(phy_handle, "reg", &sc->phy_addr, in mvneta_fdt_phy_acquire() 221 sizeof(sc->phy_addr)) <= 0) { in mvneta_fdt_phy_acquire()
|
H A D | if_mvnetavar.h | 270 int phy_addr; member
|
/freebsd/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/sys/dev/hptiop/ |
H A D | hptiop.c | 825 u_int64_t phy_addr; in hptiop_send_sync_request_mv() local 828 phy_addr = hba->ctlcfgcmd_phy | in hptiop_send_sync_request_mv() 833 hptiop_mv_inbound_write(phy_addr, hba); in hptiop_send_sync_request_mv() 849 u_int64_t phy_addr; in hptiop_send_sync_request_mvfrey() local 855 phy_addr = hba->ctlcfgcmd_phy; in hptiop_send_sync_request_mvfrey() 859 | ((phy_addr >> 16) & 0xffff0000); in hptiop_send_sync_request_mvfrey() 860 reqhdr->context = ((phy_addr & 0xffffffff) << 32 ) in hptiop_send_sync_request_mvfrey() 872 hba->u.mvfrey.inlist[index].addr = phy_addr; in hptiop_send_sync_request_mvfrey() 1292 u_int64_t phy_addr; in hptiop_post_ioctl_command_mvfrey() local 1295 phy_addr = hba->ctlcfgcmd_phy; in hptiop_post_ioctl_command_mvfrey() [all …]
|
/freebsd/sys/dev/bxe/ |
H A D | bxe_elink.h | 212 #define ELINK_FW_PARAM_SET(phy_addr, phy_type, mdio_access) \ argument 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/sys/dev/ixgbe/ |
H A D | ixgbe_phy.c | 286 static bool ixgbe_probe_phy(struct ixgbe_hw *hw, u16 phy_addr) in ixgbe_probe_phy() argument 290 if (!ixgbe_validate_phy_addr(hw, phy_addr)) { in ixgbe_probe_phy() 292 phy_addr); in ixgbe_probe_phy() 324 u16 phy_addr; in ixgbe_identify_phy_generic() local 339 phy_addr = (hw->phy.nw_mng_if_sel & in ixgbe_identify_phy_generic() 342 if (ixgbe_probe_phy(hw, phy_addr)) in ixgbe_identify_phy_generic() 348 for (phy_addr = 0; phy_addr < IXGBE_MAX_PHY_ADDR; phy_addr++) { in ixgbe_identify_phy_generic() 349 if (ixgbe_probe_phy(hw, phy_addr)) { in ixgbe_identify_phy_generic() 400 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr) in ixgbe_validate_phy_addr() argument 407 hw->phy.addr = phy_addr; in ixgbe_validate_phy_addr()
|
H A D | ixgbe_phy.h | 160 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr);
|
/freebsd/sys/dev/xilinx/ |
H A D | if_xae.c | 104 xae_miibus_read_reg(sc->dev, sc->phy_addr, _r) 106 xae_miibus_write_reg(sc->dev, sc->phy_addr, _r, _v) 152 xae_get_phyaddr(phandle_t node, int *phy_addr) in xae_get_phyaddr() argument 167 *phy_addr = phy_reg; in xae_get_phyaddr() 1005 if (xae_get_phyaddr(node, &sc->phy_addr) != 0) in xae_attach() 1010 xae_media_status, BMSR_DEFCAPMASK, sc->phy_addr, in xae_attach()
|
H A D | if_xaevar.h | 60 int phy_addr; member
|
/freebsd/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() 3551 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); in __e1000_read_phy_reg_hv() local 3582 hw->phy.addr = phy_addr; in __e1000_read_phy_reg_hv() 3661 u32 phy_addr = hw->phy.addr = e1000_get_phy_addr_for_hv_page(page); in __e1000_write_phy_reg_hv() local 3708 hw->phy.addr = phy_addr; in __e1000_write_phy_reg_hv() [all …]
|
/freebsd/sys/dev/ixl/ |
H A D | i40e_prototype.h | 625 u16 reg, u8 phy_addr, u16 *value); 627 u16 reg, u8 phy_addr, u16 value); 629 u8 page, u16 reg, u8 phy_addr, u16 *value); 631 u8 page, u16 reg, u8 phy_addr, u16 value); 633 u8 page, u16 reg, u8 phy_addr, u16 *value); 635 u8 page, u16 reg, u8 phy_addr, u16 value);
|
H A D | i40e_common.c | 6433 u16 reg, u8 phy_addr, u16 *value) in i40e_read_phy_register_clause22() argument 6441 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | in i40e_read_phy_register_clause22() 6478 u16 reg, u8 phy_addr, u16 value) in i40e_write_phy_register_clause22() argument 6489 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | in i40e_write_phy_register_clause22() 6519 u8 page, u16 reg, u8 phy_addr, u16 *value) in i40e_read_phy_register_clause45() argument 6528 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | in i40e_read_phy_register_clause45() 6551 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | in i40e_read_phy_register_clause45() 6593 u8 page, u16 reg, u8 phy_addr, u16 value) in i40e_write_phy_register_clause45() argument 6602 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | in i40e_write_phy_register_clause45() 6627 (phy_addr << I40E_GLGEN_MSCA_PHYADD_SHIFT) | in i40e_write_phy_register_clause45() [all …]
|
/freebsd/sys/dev/etherswitch/felix/ |
H A D | felix.c | 358 uint32_t phy_addr; in felix_attach() local 430 size = OF_getencprop(node, "reg", &phy_addr, sizeof(phy_addr)); in felix_attach() 438 sc->ports[port].phyaddr = phy_addr; in felix_attach() 442 phy_addr, MII_OFFSET_ANY, 0); in felix_attach()
|
/freebsd/sys/dev/enetc/ |
H A D | enetc.h | 97 int phy_addr; member
|
/freebsd/sys/contrib/device-tree/Bindings/mmc/ |
H A D | marvell,xenon-sdhci.txt | 143 <phy_addr 0x4>; 164 <phy_addr 0x4>;
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_freebsd_admin.c | 486 admin->phy_addr = admin->dma_mem.dma_baddr; in adf_init_admin_comms() 570 reg_val = (u64)admin->phy_addr; in adf_init_admin_comms()
|
/freebsd/sys/dev/fdt/ |
H A D | fdt_common.c | 380 fdt_get_phyaddr(phandle_t node, device_t dev, int *phy_addr, void **phy_sc) in fdt_get_phyaddr() argument 397 *phy_addr = phy_reg; in fdt_get_phyaddr()
|