Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/etherswitch/ar40xx/
H A Dar40xx_hw_mdio.c91 ar40xx_hw_phy_mmd_write(struct ar40xx_softc *sc, uint32_t phy_id, in ar40xx_hw_phy_mmd_write() argument
97 MDIO_WRITEREG(sc->sc_mdio_dev, phy_id, AR40XX_MII_ATH_MMD_ADDR, in ar40xx_hw_phy_mmd_write()
99 MDIO_WRITEREG(sc->sc_mdio_dev, phy_id, AR40XX_MII_ATH_MMD_DATA, in ar40xx_hw_phy_mmd_write()
101 MDIO_WRITEREG(sc->sc_mdio_dev, phy_id, AR40XX_MII_ATH_MMD_ADDR, in ar40xx_hw_phy_mmd_write()
103 MDIO_WRITEREG(sc->sc_mdio_dev, phy_id, AR40XX_MII_ATH_MMD_DATA, in ar40xx_hw_phy_mmd_write()
110 ar40xx_hw_phy_mmd_read(struct ar40xx_softc *sc, uint32_t phy_id, in ar40xx_hw_phy_mmd_read() argument
117 MDIO_WRITEREG(sc->sc_mdio_dev, phy_id, AR40XX_MII_ATH_MMD_ADDR, in ar40xx_hw_phy_mmd_read()
119 MDIO_WRITEREG(sc->sc_mdio_dev, phy_id, AR40XX_MII_ATH_MMD_DATA, in ar40xx_hw_phy_mmd_read()
121 MDIO_WRITEREG(sc->sc_mdio_dev, phy_id, AR40XX_MII_ATH_MMD_ADDR, in ar40xx_hw_phy_mmd_read()
124 value = MDIO_READREG(sc->sc_mdio_dev, phy_id, in ar40xx_hw_phy_mmd_read()
H A Dar40xx_hw_mdio.h34 extern int ar40xx_hw_phy_mmd_write(struct ar40xx_softc *sc, uint32_t phy_id,
36 extern int ar40xx_hw_phy_mmd_read(struct ar40xx_softc *sc, uint32_t phy_id,
/freebsd/sys/dev/isci/scil/
H A Dscic_sds_controller.c827 U32 phy_id; in scic_sds_controller_afe_initialization() local
849 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++) in scic_sds_controller_afe_initialization()
939 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++) in scic_sds_controller_afe_initialization()
1031 U32 phy_id; in scic_sds_controller_afe_initialization() local
1126 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++) in scic_sds_controller_afe_initialization()
1190 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1198 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1207 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1217 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1225 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
[all …]
H A Dscic_sds_port_registers.h119 #define SCU_PCSPExCR_WRITE(port, phy_id, value) \ argument
122 (port)->port_pe_configuration_register[phy_id], \
129 #define SCU_PCSPExCR_READ(port, phy_id) \ argument
132 (port)->port_pe_configuration_register[phy_id] \
H A Dscif_sas_smp_io_request.h120 U8 phy_id,
H A Dscif_sas_smp_io_request.c409 U8 phy_id, in scif_sas_smp_request_construct_config_route_info() argument
424 config_route_info.request.configure_route_information.phy_identifier = phy_id; in scif_sas_smp_request_construct_config_route_info()
/freebsd/sys/arm64/broadcom/brcmmdio/
H A Dmdio_ns2_pcie_phy.c50 uint32_t phy_id; member
87 err = MDIO_WRITEREG(device_get_parent(dev), sc->phy_id, in ns2_pci_phy_init()
93 err = MDIO_WRITEREG(device_get_parent(dev), sc->phy_id, in ns2_pci_phy_init()
152 sc->phy_id = buf[0]; in ns2_pcie_phy_fdt_attach()
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dcpsw.txt52 - phy_id : Specifies slave phy id (deprecated, use phy-handle)
61 Note: Exactly one of phy_id, phy-handle, or fixed-link must be specified.
88 phy_id = <&davinci_mdio>, <0>;
95 phy_id = <&davinci_mdio>, <1>;
119 phy_id = <&davinci_mdio>, <0>;
126 phy_id = <&davinci_mdio>, <1>;
/freebsd/sys/dev/firewire/
H A Dfirewire.h303 phy_id:6, member
320 phy_id:6, member
338 phy_id:6, member
365 phy_id:6, member
382 phy_id:6, member
396 phy_id:6, member
H A Dfwphyreg.h44 uint8_t phy_id:6, member
77 phy_id:6;
H A Dfirewire.c1273 s->p1.phy_id, s->p1.port3, s->p1.port4, in fw_print_sid()
1278 s->p2.phy_id, s->p2.port11, s->p2.port12, in fw_print_sid()
1282 s->p1.phy_id, s->p1.sequence_num); in fw_print_sid()
1287 s->p0.phy_id, s->p0.link_active, s->p0.gap_count, in fw_print_sid()
1328 node = self_id->p0.phy_id; in fw_sidrcv()
1330 fc->max_node = self_id->p0.phy_id; in fw_sidrcv()
1340 if ((fc->irm == -1 || self_id->p0.phy_id > fc->irm) && in fw_sidrcv()
1342 fc->irm = self_id->p0.phy_id; in fw_sidrcv()
1672 if (s->p0.phy_id == node) in fw_find_self_id()
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dlink.c83 cmd.phy_id = cpu_to_le32(phyctxt->id); in iwl_mvm_add_link()
85 cmd.phy_id = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_add_link()
142 cmd.phy_id = cpu_to_le32(phyctxt->id); in iwl_mvm_link_changed()
144 cmd.phy_id = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_link_changed()
H A Dquota.c94 int i, phy_id = -1, beacon_int = 0; in iwl_mvm_adjust_quota_for_noa() local
103 phy_id = mvmvif->deflink.phy_ctxt->id; in iwl_mvm_adjust_quota_for_noa()
114 if (id != phy_id) in iwl_mvm_adjust_quota_for_noa()
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_roboswitch.c90 mii->phy_id = ROBO_PHY_ADDR; in wpa_driver_roboswitch_mdio_read()
107 mii->phy_id = ROBO_PHY_ADDR; in wpa_driver_roboswitch_mdio_write()
413 if (if_mii(&drv->ifr)->phy_id != ROBO_PHY_ADDR && in wpa_driver_roboswitch_init()
414 if_mii(&drv->ifr)->phy_id != 0) { in wpa_driver_roboswitch_init()
/freebsd/sys/dev/igc/
H A Digc_phy.c135 u16 phy_id; in igc_get_phy_id() local
142 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id()
146 phy->id = (u32)(phy_id << 16); in igc_get_phy_id()
148 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id()
152 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id()
153 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id()
H A Digc_phy.h26 enum igc_phy_type igc_get_phy_type_from_id(u32 phy_id);
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dreg.h51 u8 phy_id; member
/freebsd/sys/dev/e1000/
H A De1000_82571.c464 u16 phy_id = 0; in e1000_get_phy_id_82571() local
483 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82571()
487 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id_82571()
489 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id_82571()
493 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571()
494 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id_82571()
H A De1000_phy.c228 u16 phy_id; in e1000_get_phy_id() local
237 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id()
241 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id()
243 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id()
247 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in e1000_get_phy_id()
248 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id()
3000 enum e1000_phy_type e1000_get_phy_type_from_id(u32 phy_id) in e1000_get_phy_type_from_id() argument
3004 switch (phy_id) { in e1000_get_phy_type_from_id()
/freebsd/sys/dev/ixgbe/
H A Dixgbe_phy.c402 u16 phy_id = 0; in ixgbe_validate_phy_addr() local
409 IXGBE_MDIO_PMA_PMD_DEV_TYPE, &phy_id); in ixgbe_validate_phy_addr()
411 if (phy_id != 0xFFFF && phy_id != 0x0) in ixgbe_validate_phy_addr()
414 DEBUGOUT1("PHY ID HIGH is 0x%04X\n", phy_id); in ixgbe_validate_phy_addr()
455 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id) in ixgbe_get_phy_type_from_id() argument
461 switch (phy_id) { in ixgbe_get_phy_type_from_id()
H A Dixgbe_phy.h159 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id);
/freebsd/sys/dev/axgbe/
H A Dxgbe-phy-v2.c400 uint32_t phy_id; member
944 unsigned int phy_id = phy_data->phy_id; in xgbe_phy_finisar_phy_quirks() local
949 if ((phy_id & 0xfffffff0) != 0x01ff0cc0) in xgbe_phy_finisar_phy_quirks()
974 unsigned int phy_id = phy_data->phy_id; in xgbe_phy_belfuse_phy_quirks() local
991 if ((phy_id & 0xfffffff0) != 0x03625d10) in xgbe_phy_belfuse_phy_quirks()
1062 phy_data->phy_id = (phy_reg & 0xffff) << 16; in xgbe_get_phy_id()
1069 phy_data->phy_id |= (phy_reg & 0xffff); in xgbe_get_phy_id()
1088 phy_data->sfp_phy_avail, phy_data->phy_id); in xgbe_phy_find_phy_device()
1126 axgbe_printf(2, "Get phy_id 0x%08x\n", phy_data->phy_id); in xgbe_phy_find_phy_device()
/freebsd/sys/dts/arm/
H A Dufw.dts227 phy_id = <&davinci_mdio>, <1>;
233 phy_id = <&davinci_mdio>, <2>;
/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Dmac-cfg.h476 __le32 phy_id; member
/freebsd/usr.sbin/fwcontrol/
H A Dfwcontrol.c538 printf("%02d sequel packet\n", sid.p0.phy_id); in show_topology_map()
543 sid.p0.phy_id, in show_topology_map()
606 b.phy_id, b.r, b.cps, in dump_phy_registers()

12