| /freebsd-12.1/sys/mips/cavium/octe/ |
| H A D | ethernet-mv88e61xx.c | 82 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 D | ethernet-mdio.c | 63 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location) in cvm_oct_mdio_read() argument 71 smi_cmd.s.phy_adr = phy_id; in cvm_oct_mdio_read() 97 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val) in cvm_oct_mdio_write() argument 109 smi_cmd.s.phy_adr = phy_id; in cvm_oct_mdio_write() 131 priv->phy_id = cvmx_helper_board_get_mii_address(priv->port); in cvm_oct_mdio_setup_device()
|
| H A D | octe.c | 150 if (priv->phy_id != -1) { in octe_attach() 154 BMSR_DEFCAPMASK, priv->phy_id, MII_OFFSET_ANY, 0); in octe_attach() 160 device_printf(dev, "missing phy %u device %s\n", priv->phy_id, priv->phy_device); in octe_attach() 236 KASSERT(phy == priv->phy_id, in octe_miibus_readreg() 237 ("read from phy %u but our phy is %u", phy, priv->phy_id)); in octe_miibus_readreg() 259 KASSERT(phy == priv->phy_id, in octe_miibus_writereg() 260 ("write to phy %u but our phy is %u", phy, priv->phy_id)); in octe_miibus_writereg()
|
| H A D | ethernet-mdio.h | 39 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location); 40 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val);
|
| H A D | cavium-ethernet.h | 78 int phy_id; member
|
| H A D | ethernet-common.c | 330 if (priv->phy_id == 16) in cvm_oct_common_init()
|
| /freebsd-12.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-mdio.h | 379 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-12.1/sys/dev/isci/scil/ |
| H A D | scic_sds_controller.c | 829 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 D | scic_sds_port_registers.h | 121 #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 D | scif_sas_smp_io_request.h | 122 U8 phy_id,
|
| H A D | scif_sas_smp_io_request.c | 411 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-12.1/sys/dev/firewire/ |
| H A D | firewire.h | 305 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 D | fwphyreg.h | 45 uint8_t phy_id:6, member 78 phy_id:6;
|
| H A D | firewire.c | 1276 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-12.1/sys/dev/e1000/ |
| H A D | e1000_82571.c | 465 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()
|
| H A D | e1000_phy.c | 223 u16 phy_id; in e1000_get_phy_id() local 232 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id() 236 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id() 238 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id() 242 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in e1000_get_phy_id() 243 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id() 2991 enum e1000_phy_type e1000_get_phy_type_from_id(u32 phy_id) in e1000_get_phy_type_from_id() argument 2995 switch (phy_id) { in e1000_get_phy_type_from_id()
|
| H A D | e1000_phy.h | 90 enum e1000_phy_type e1000_get_phy_type_from_id(u32 phy_id);
|
| H A D | e1000_ich8lan.c | 204 u32 phy_id = 0; in e1000_phy_is_accessible_pchlan() local 213 phy_id = (u32)(phy_reg << 16); in e1000_phy_is_accessible_pchlan() 217 phy_id = 0; in e1000_phy_is_accessible_pchlan() 220 phy_id |= (u32)(phy_reg & PHY_REVISION_MASK); in e1000_phy_is_accessible_pchlan() 225 if (hw->phy.id == phy_id) in e1000_phy_is_accessible_pchlan() 227 } else if (phy_id) { in e1000_phy_is_accessible_pchlan() 228 hw->phy.id = phy_id; in e1000_phy_is_accessible_pchlan()
|
| H A D | e1000_82575.c | 659 u16 phy_id; in e1000_get_phy_id_82575() local 720 ret_val = e1000_read_phy_reg_sgmii_82575(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82575() 723 phy_id, phy->addr); in e1000_get_phy_id_82575() 728 if (phy_id == M88_VENDOR) in e1000_get_phy_id_82575()
|
| /freebsd-12.1/sys/dev/ixgbe/ |
| H A D | ixgbe_phy.c | 408 u16 phy_id = 0; in ixgbe_validate_phy_addr() local 415 IXGBE_MDIO_PMA_PMD_DEV_TYPE, &phy_id); in ixgbe_validate_phy_addr() 417 if (phy_id != 0xFFFF && phy_id != 0x0) in ixgbe_validate_phy_addr() 420 DEBUGOUT1("PHY ID HIGH is 0x%04X\n", phy_id); in ixgbe_validate_phy_addr() 461 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id) in ixgbe_get_phy_type_from_id() argument 467 switch (phy_id) { in ixgbe_get_phy_type_from_id()
|
| H A D | ixgbe_phy.h | 162 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id);
|
| /freebsd-12.1/sys/dts/arm/ |
| H A D | ufw.dts | 228 phy_id = <&davinci_mdio>, <1>; 234 phy_id = <&davinci_mdio>, <2>;
|
| /freebsd-12.1/usr.sbin/fwcontrol/ |
| H A D | fwcontrol.c | 539 printf("%02d sequel packet\n", sid.p0.phy_id); in show_topology_map() 544 sid.p0.phy_id, in show_topology_map() 607 b.phy_id, b.r, b.cps, in dump_phy_registers()
|
| /freebsd-12.1/sys/dev/cxgb/ |
| H A D | cxgb_ioctl.h | 184 uint32_t phy_id; member
|
| H A D | cxgb_main.c | 2563 mmd = mid->phy_id >> 8; in cxgb_extension_ioctl() 2569 error = phy->mdio_read(sc, mid->phy_id & 0x1f, mmd, in cxgb_extension_ioctl() 2572 error = phy->mdio_read(sc, mid->phy_id & 0x1f, 0, in cxgb_extension_ioctl() 2585 mmd = mid->phy_id >> 8; in cxgb_extension_ioctl() 2591 error = phy->mdio_write(sc, mid->phy_id & 0x1f, in cxgb_extension_ioctl() 2594 error = phy->mdio_write(sc, mid->phy_id & 0x1f, 0, in cxgb_extension_ioctl()
|