Home
last modified time | relevance | path

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

12

/freebsd-14.2/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-14.2/sys/dev/cxgb/common/
H A Dcxgb_common.h604 int phy_addr, struct cphy_ops *phy_ops, in cphy_init() argument
608 phy->addr = (u8)phy_addr; in cphy_init()
844 int t3_mv88e1xxx_phy_prep(pinfo_t *pinfo, int phy_addr,
846 int t3_vsc8211_phy_prep(pinfo_t *pinfo, int phy_addr,
849 int t3_ael1002_phy_prep(pinfo_t *pinfo, int phy_addr,
851 int t3_ael1006_phy_prep(pinfo_t *pinfo, int phy_addr,
853 int t3_ael2005_phy_prep(pinfo_t *pinfo, int phy_addr,
855 int t3_ael2020_phy_prep(pinfo_t *pinfo, int phy_addr,
857 int t3_qt2045_phy_prep(pinfo_t *pinfo, int phy_addr,
859 int t3_tn1010_phy_prep(pinfo_t *pinfo, int phy_addr,
[all …]
H A Dcxgb_aq100x.c463 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 Dcxgb_ael1002.c343 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
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()
2228 if (!phy_addr && !mdio_read(phy, MDIO_DEV_PMA_PMD, MII_BMSR, &stat) && in t3_qt2045_phy_prep()
[all …]
H A Dcxgb_tn1010.c212 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 Dcxgb_mv88e1xxx.c297 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 Dcxgb_vsc8211.c428 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-14.2/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-14.2/sys/dev/neta/
H A Dif_mvneta_fdt.c207 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 Dif_mvnetavar.h270 int phy_addr; member
/freebsd-14.2/sys/contrib/dev/iwlwifi/fw/
H A Dpaging.c255 __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-14.2/sys/dev/hptiop/
H A Dhptiop.c826 u_int64_t phy_addr; in hptiop_send_sync_request_mv() local
829 phy_addr = hba->ctlcfgcmd_phy | in hptiop_send_sync_request_mv()
850 u_int64_t phy_addr; in hptiop_send_sync_request_mvfrey() local
856 phy_addr = hba->ctlcfgcmd_phy; in hptiop_send_sync_request_mvfrey()
1293 u_int64_t phy_addr; in hptiop_post_ioctl_command_mvfrey() local
1296 phy_addr = hba->ctlcfgcmd_phy; in hptiop_post_ioctl_command_mvfrey()
2517 req_phy = srb->phy_addr; in hptiop_post_req_mv()
2571 req_phy = srb->phy_addr; in hptiop_post_req_mvfrey()
2732 (phy_addr >> 5); in hptiop_map_srb()
2737 tmp_srb->phy_addr = phy_addr; in hptiop_map_srb()
[all …]
/freebsd-14.2/sys/dev/bxe/
H A Dbxe_elink.h212 #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-14.2/sys/dev/xilinx/
H A Dif_xaevar.h60 int phy_addr; member
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()
1006 if (xae_get_phyaddr(node, &sc->phy_addr) != 0) in xae_attach()
1011 xae_media_status, BMSR_DEFCAPMASK, sc->phy_addr, in xae_attach()
/freebsd-14.2/sys/dev/ixgbe/
H A Dixgbe_phy.c286 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 Dixgbe_phy.h158 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr);
/freebsd-14.2/sys/dev/e1000/
H A De1000_phy.c3069 u32 phy_addr = 0; in e1000_determine_phy_address() local
3075 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) { in e1000_determine_phy_address()
3076 hw->phy.addr = phy_addr; in e1000_determine_phy_address()
3106 u32 phy_addr = 2; in e1000_get_phy_addr_for_bm_page() local
3109 phy_addr = 1; in e1000_get_phy_addr_for_bm_page()
3111 return phy_addr; in e1000_get_phy_addr_for_bm_page()
3581 hw->phy.addr = phy_addr; in __e1000_read_phy_reg_hv()
3707 hw->phy.addr = phy_addr; in __e1000_write_phy_reg_hv()
3775 u32 phy_addr = 2; in e1000_get_phy_addr_for_hv_page() local
3778 phy_addr = 1; in e1000_get_phy_addr_for_hv_page()
[all …]
/freebsd-14.2/sys/dev/ixl/
H A Di40e_prototype.h625 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 Di40e_common.c6667 reg, phy_addr, value); in i40e_write_phy_register()
6717 phy_addr, value); in i40e_read_phy_register()
6759 u8 phy_addr = 0; in i40e_blink_phy_link_led() local
6770 led_addr, phy_addr, in i40e_blink_phy_link_led()
6779 led_addr, phy_addr, in i40e_blink_phy_link_led()
6826 u8 phy_addr = 0; in i40e_led_get_reg() local
6839 led_addr, phy_addr, in i40e_led_get_reg()
6855 u8 phy_addr = 0; in i40e_led_set_reg() local
6867 led_addr, phy_addr, in i40e_led_set_reg()
6888 u8 phy_addr = 0; in i40e_led_get_phy() local
[all …]
/freebsd-14.2/sys/dev/etherswitch/felix/
H A Dfelix.c359 uint32_t phy_addr; in felix_attach() local
431 size = OF_getencprop(node, "reg", &phy_addr, sizeof(phy_addr)); in felix_attach()
439 sc->ports[port].phyaddr = phy_addr; in felix_attach()
443 phy_addr, MII_OFFSET_ANY, 0); in felix_attach()
/freebsd-14.2/sys/dev/enetc/
H A Denetc.h98 int phy_addr; member
/freebsd-14.2/sys/contrib/device-tree/Bindings/mmc/
H A Dmarvell,xenon-sdhci.txt143 <phy_addr 0x4>;
164 <phy_addr 0x4>;
/freebsd-14.2/sys/dev/qat/qat_common/
H A Dadf_freebsd_admin.c486 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-14.2/sys/dev/fdt/
H A Dfdt_common.c381 fdt_get_phyaddr(phandle_t node, device_t dev, int *phy_addr, void **phy_sc) in fdt_get_phyaddr() argument
398 *phy_addr = phy_reg; in fdt_get_phyaddr()

12