Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/mips/cavium/octe/
H A Dethernet-mv88e61xx.c82 cvm_oct_mv88e61xx_smi_read(struct ifnet *ifp, int phy_id, int location) in cvm_oct_mv88e61xx_smi_read() argument
91 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD, in cvm_oct_mv88e61xx_smi_read()
93 MV88E61XX_SMI_CMD_READ | MV88E61XX_SMI_CMD_PHY(phy_id) | in cvm_oct_mv88e61xx_smi_read()
100 return (cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT)); in cvm_oct_mv88e61xx_smi_read()
104 cvm_oct_mv88e61xx_smi_write(struct ifnet *ifp, int phy_id, int location, int val) in cvm_oct_mv88e61xx_smi_write() argument
109 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT, val); in cvm_oct_mv88e61xx_smi_write()
110 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD, in cvm_oct_mv88e61xx_smi_write()
112 MV88E61XX_SMI_CMD_WRITE | MV88E61XX_SMI_CMD_PHY(phy_id) | in cvm_oct_mv88e61xx_smi_write()
125 cmd = cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD); in cvm_oct_mv88e61xx_smi_wait()
H A Dethernet-mdio.c62 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location) in cvm_oct_mdio_read() argument
70 smi_cmd.s.phy_adr = phy_id; in cvm_oct_mdio_read()
95 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val) in cvm_oct_mdio_write() argument
107 smi_cmd.s.phy_adr = phy_id; in cvm_oct_mdio_write()
129 priv->phy_id = cvmx_helper_board_get_mii_address(priv->port); in cvm_oct_mdio_setup_device()
H A Docte.c149 if (priv->phy_id != -1) { in octe_attach()
153 BMSR_DEFCAPMASK, priv->phy_id, MII_OFFSET_ANY, 0); in octe_attach()
159 device_printf(dev, "missing phy %u device %s\n", priv->phy_id, priv->phy_device); in octe_attach()
235 KASSERT(phy == priv->phy_id, in octe_miibus_readreg()
236 ("read from phy %u but our phy is %u", phy, priv->phy_id)); in octe_miibus_readreg()
258 KASSERT(phy == priv->phy_id, in octe_miibus_writereg()
259 ("write to phy %u but our phy is %u", phy, priv->phy_id)); in octe_miibus_writereg()
H A Dethernet-mdio.h38 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location);
39 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val);
H A Dcavium-ethernet.h77 int phy_id; member
/freebsd-13.1/sys/contrib/octeon-sdk/
H A Dcvmx-mdio.h379 static inline int cvmx_mdio_read(int bus_id, int phy_id, int location) in cvmx_mdio_read() argument
391 rv = mdiobus_read(bus, phy_id, location); in cvmx_mdio_read()
405 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_read()
431 static inline int cvmx_mdio_write(int bus_id, int phy_id, int location, int val) in cvmx_mdio_write() argument
443 rv = mdiobus_write(bus, phy_id, location, (u16)val); in cvmx_mdio_write()
461 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_write()
487 static inline int cvmx_mdio_45_read(int bus_id, int phy_id, int device, int location) in cvmx_mdio_45_read() argument
504 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_45_read()
517 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_45_read()
568 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_45_write()
[all …]
/freebsd-13.1/sys/dev/isci/scil/
H A Dscic_sds_controller.c829 U32 phy_id; in scic_sds_controller_afe_initialization() local
851 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++) in scic_sds_controller_afe_initialization()
941 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++) in scic_sds_controller_afe_initialization()
1033 U32 phy_id; in scic_sds_controller_afe_initialization() local
1128 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++) in scic_sds_controller_afe_initialization()
1192 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1200 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1209 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1219 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
1227 scu_afe_xcvr[phy_id].afe_channel_control, in scic_sds_controller_afe_initialization()
[all …]
H A Dscic_sds_port_registers.h121 #define SCU_PCSPExCR_WRITE(port, phy_id, value) \ argument
124 (port)->port_pe_configuration_register[phy_id], \
131 #define SCU_PCSPExCR_READ(port, phy_id) \ argument
134 (port)->port_pe_configuration_register[phy_id] \
H A Dscif_sas_smp_io_request.h122 U8 phy_id,
H A Dscif_sas_smp_io_request.c411 U8 phy_id, in scif_sas_smp_request_construct_config_route_info() argument
426 config_route_info.request.configure_route_information.phy_identifier = phy_id; in scif_sas_smp_request_construct_config_route_info()
/freebsd-13.1/sys/arm64/broadcom/brcmmdio/
H A Dmdio_ns2_pcie_phy.c53 uint32_t phy_id; member
91 err = MDIO_WRITEREG(device_get_parent(dev), sc->phy_id, in ns2_pci_phy_init()
97 err = MDIO_WRITEREG(device_get_parent(dev), sc->phy_id, in ns2_pci_phy_init()
156 sc->phy_id = buf[0]; in ns2_pcie_phy_fdt_attach()
/freebsd-13.1/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-13.1/sys/dev/firewire/
H A Dfirewire.h305 phy_id:6, member
322 phy_id:6, member
340 phy_id:6, member
367 phy_id:6, member
384 phy_id:6, member
398 phy_id:6, member
H A Dfwphyreg.h45 uint8_t phy_id:6, member
78 phy_id:6;
H A Dfirewire.c1276 s->p1.phy_id, s->p1.port3, s->p1.port4, in fw_print_sid()
1281 s->p2.phy_id, s->p2.port11, s->p2.port12, in fw_print_sid()
1285 s->p1.phy_id, s->p1.sequence_num); in fw_print_sid()
1290 s->p0.phy_id, s->p0.link_active, s->p0.gap_count, in fw_print_sid()
1331 node = self_id->p0.phy_id; in fw_sidrcv()
1333 fc->max_node = self_id->p0.phy_id; in fw_sidrcv()
1343 if ((fc->irm == -1 || self_id->p0.phy_id > fc->irm) && in fw_sidrcv()
1345 fc->irm = self_id->p0.phy_id; in fw_sidrcv()
1675 if (s->p0.phy_id == node) in fw_find_self_id()
/freebsd-13.1/sys/contrib/dev/iwlwifi/mvm/
H A Dquota.c93 int i, phy_id = -1, beacon_int = 0; in iwl_mvm_adjust_quota_for_noa() local
102 phy_id = mvmvif->phy_ctxt->id; in iwl_mvm_adjust_quota_for_noa()
113 if (id != phy_id) in iwl_mvm_adjust_quota_for_noa()
/freebsd-13.1/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-13.1/sys/dev/igc/
H A Digc_phy.c137 u16 phy_id; in igc_get_phy_id() local
144 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id()
148 phy->id = (u32)(phy_id << 16); in igc_get_phy_id()
150 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id()
154 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id()
155 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id()
H A Digc_phy.h28 enum igc_phy_type igc_get_phy_type_from_id(u32 phy_id);
/freebsd-13.1/sys/dev/e1000/
H A De1000_82571.c465 u16 phy_id = 0; in e1000_get_phy_id_82571() local
484 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82571()
488 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id_82571()
490 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id_82571()
494 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571()
495 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id_82571()
/freebsd-13.1/sys/contrib/dev/iwlwifi/fw/api/
H A Ddatapath.h267 __le32 phy_id; member
/freebsd-13.1/sys/dev/axgbe/
H A Dxgbe-phy-v2.c365 uint32_t phy_id; member
878 unsigned int phy_id = phy_data->phy_id; in xgbe_phy_finisar_phy_quirks() local
883 if ((phy_id & 0xfffffff0) != 0x01ff0cc0) in xgbe_phy_finisar_phy_quirks()
908 unsigned int phy_id = phy_data->phy_id; in xgbe_phy_belfuse_phy_quirks() local
925 if ((phy_id & 0xfffffff0) != 0x03625d10) in xgbe_phy_belfuse_phy_quirks()
996 phy_data->phy_id = (phy_reg & 0xffff) << 16; in xgbe_get_phy_id()
1003 phy_data->phy_id |= (phy_reg & 0xffff); in xgbe_get_phy_id()
1065 phy_data->sfp_phy_avail, phy_data->phy_id); in xgbe_phy_find_phy_device()
1103 axgbe_printf(2, "Get phy_id 0x%08x\n", phy_data->phy_id); in xgbe_phy_find_phy_device()
/freebsd-13.1/sys/dev/ixgbe/
H A Dixgbe_phy.c403 u16 phy_id = 0; in ixgbe_validate_phy_addr() local
410 IXGBE_MDIO_PMA_PMD_DEV_TYPE, &phy_id); in ixgbe_validate_phy_addr()
412 if (phy_id != 0xFFFF && phy_id != 0x0) in ixgbe_validate_phy_addr()
415 DEBUGOUT1("PHY ID HIGH is 0x%04X\n", phy_id); in ixgbe_validate_phy_addr()
456 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id) in ixgbe_get_phy_type_from_id() argument
462 switch (phy_id) { in ixgbe_get_phy_type_from_id()
H A Dixgbe_phy.h160 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id);
/freebsd-13.1/sys/dts/arm/
H A Dufw.dts228 phy_id = <&davinci_mdio>, <1>;
234 phy_id = <&davinci_mdio>, <2>;

12