Searched refs:phy_id (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-11-stable/sys/mips/cavium/octe/
H A Dethernet-mdio.h37 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location);
38 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val);
H A Dethernet-mv88e61xx.c80 cvm_oct_mv88e61xx_smi_read(struct ifnet *ifp, int phy_id, int location) argument
89 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD,
91 MV88E61XX_SMI_CMD_READ | MV88E61XX_SMI_CMD_PHY(phy_id) |
98 return (cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT));
102 cvm_oct_mv88e61xx_smi_write(struct ifnet *ifp, int phy_id, int location, int val) argument
107 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT, val);
108 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD,
110 MV88E61XX_SMI_CMD_WRITE | MV88E61XX_SMI_CMD_PHY(phy_id) |
123 cmd = cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD);
H A Dethernet-mdio.c57 * @param phy_id The MII phy id
61 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location) argument
69 smi_cmd.s.phy_adr = phy_id;
91 * @param phy_id The MII phy id
95 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val) argument
107 smi_cmd.s.phy_adr = phy_id;
129 priv->phy_id = cvmx_helper_board_get_mii_address(priv->port);
H A Dcavium-ethernet.h76 int phy_id; member in struct:__anon12172
H A Docte.c148 if (priv->phy_id != -1) {
152 BMSR_DEFCAPMASK, priv->phy_id, MII_OFFSET_ANY, 0);
158 device_printf(dev, "missing phy %u device %s\n", priv->phy_id, priv->phy_device);
234 KASSERT(phy == priv->phy_id,
235 ("read from phy %u but our phy is %u", phy, priv->phy_id));
257 KASSERT(phy == priv->phy_id,
258 ("write to phy %u but our phy is %u", phy, priv->phy_id));
H A Dethernet-common.c328 if (priv->phy_id == 16)
/freebsd-11-stable/sys/dev/isci/scil/
H A Dscic_sds_port_registers.h119 #define SCU_PCSPExCR_WRITE(port, phy_id, value) \
122 (port)->port_pe_configuration_register[phy_id], \
129 #define SCU_PCSPExCR_READ(port, phy_id) \
132 (port)->port_pe_configuration_register[phy_id] \
H A Dscic_sds_controller.c827 U32 phy_id; local
849 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++)
853 this_controller, scu_afe_xcvr[phy_id].afe_channel_control, 0x00000157);
856 this_controller, scu_afe_xcvr[phy_id].afe_xcvr_control0, 0x38016d1a);
859 this_controller, scu_afe_xcvr[phy_id].afe_xcvr_control1, 0x01501014);
862 this_controller, scu_afe_xcvr[phy_id].afe_tx_control, 0x00000000);
865 this_controller, scu_afe_xcvr[phy_id].afe_tx_amp_control0, 0x000bdd08);
867 this_controller, scu_afe_xcvr[phy_id]
1031 U32 phy_id; local
[all...]
H A Dscif_sas_smp_io_request.h120 U8 phy_id,
H A Dscif_sas_smp_io_request.c400 * @param[in] phy_id The phy, whose route entry at route_index is to be configured.
409 U8 phy_id,
424 config_route_info.request.configure_route_information.phy_identifier = phy_id;
406 scif_sas_smp_request_construct_config_route_info( struct SCIF_SAS_CONTROLLER * fw_controller, struct SCIF_SAS_REMOTE_DEVICE * fw_device, U8 phy_id, U16 route_index, SCI_SAS_ADDRESS_T destination_sas_address, BOOL disable_expander_route_entry ) argument
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-mdio.h374 * @param phy_id The MII phy id
379 static inline int cvmx_mdio_read(int bus_id, int phy_id, int location) argument
391 rv = mdiobus_read(bus, phy_id, location);
405 smi_cmd.s.phy_adr = phy_id;
424 * @param phy_id The MII phy id
431 static inline int cvmx_mdio_write(int bus_id, int phy_id, int location, int val) argument
443 rv = mdiobus_write(bus, phy_id, location, (u16)val);
461 smi_cmd.s.phy_adr = phy_id;
480 * @param phy_id The MII phy id
487 static inline int cvmx_mdio_45_read(int bus_id, int phy_id, in argument
551 cvmx_mdio_45_write(int bus_id, int phy_id, int device, int location, int val) argument
[all...]
/freebsd-11-stable/sys/dev/firewire/
H A Dfwphyreg.h43 uint8_t phy_id:6, member in struct:phyreg_base
76 phy_id:6;
H A Dfirewire.h303 phy_id:6, member in struct:fw_self_id::__anon10089
320 phy_id:6, member in struct:fw_self_id::__anon10090
338 phy_id:6, member in struct:fw_self_id::__anon10091
365 phy_id:6, member in struct:fw_self_id::__anon10092
382 phy_id:6, member in struct:fw_self_id::__anon10093
396 phy_id:6, member in struct:fw_self_id::__anon10094
H A Dfirewire.c1274 s->p1.phy_id, s->p1.port3, s->p1.port4,
1279 s->p2.phy_id, s->p2.port11, s->p2.port12,
1283 s->p1.phy_id, s->p1.sequence_num);
1288 s->p0.phy_id, s->p0.link_active, s->p0.gap_count,
1329 node = self_id->p0.phy_id;
1331 fc->max_node = self_id->p0.phy_id;
1341 if ((fc->irm == -1 || self_id->p0.phy_id > fc->irm) &&
1343 fc->irm = self_id->p0.phy_id;
1673 if (s->p0.phy_id == node)
/freebsd-11-stable/sys/dev/e1000/
H A De1000_82571.c468 u16 phy_id = 0; local
487 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id);
491 phy->id = (u32)(phy_id << 16);
493 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id);
497 phy->id |= (u32)(phy_id);
498 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK);
H A De1000_phy.c222 u16 phy_id; local
231 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id);
235 phy->id = (u32)(phy_id << 16);
237 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id);
241 phy->id |= (u32)(phy_id & PHY_REVISION_MASK);
242 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK);
2986 * @phy_id: phy_id read from the phy
2990 enum e1000_phy_type e1000_get_phy_type_from_id(u32 phy_id) argument
2994 switch (phy_id) {
[all...]
H A De1000_phy.h89 enum e1000_phy_type e1000_get_phy_type_from_id(u32 phy_id);
H A De1000_82575.c664 u16 phy_id; local
725 ret_val = e1000_read_phy_reg_sgmii_82575(hw, PHY_ID1, &phy_id);
728 phy_id, phy->addr);
733 if (phy_id == M88_VENDOR)
/freebsd-11-stable/sys/dev/cxgb/
H A Dcxgb_ioctl.h183 uint32_t phy_id; member in struct:ch_mii_data
H A Dcxgb_main.c2556 mmd = mid->phy_id >> 8;
2562 error = phy->mdio_read(sc, mid->phy_id & 0x1f, mmd,
2565 error = phy->mdio_read(sc, mid->phy_id & 0x1f, 0,
2578 mmd = mid->phy_id >> 8;
2584 error = phy->mdio_write(sc, mid->phy_id & 0x1f,
2587 error = phy->mdio_write(sc, mid->phy_id & 0x1f, 0,
/freebsd-11-stable/sys/dev/ixgbe/
H A Dixgbe_phy.h161 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id);
H A Dixgbe_phy.c406 u16 phy_id = 0; local
413 IXGBE_MDIO_PMA_PMD_DEV_TYPE, &phy_id);
415 if (phy_id != 0xFFFF && phy_id != 0x0)
418 DEBUGOUT1("PHY ID HIGH is 0x%04X\n", phy_id);
456 * @phy_id: PHY ID information
459 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id) argument
465 switch (phy_id) {
/freebsd-11-stable/usr.sbin/fwcontrol/
H A Dfwcontrol.c537 printf("%02d sequel packet\n", sid.p0.phy_id);
542 sid.p0.phy_id,
605 b.phy_id, b.r, b.cps,
/freebsd-11-stable/sys/dev/ixgb/
H A Dixgb_hw.h699 uint32_t phy_id; /* Phy Identifier */ member in struct:ixgb_hw
/freebsd-11-stable/sys/contrib/alpine-hal/eth/
H A Dal_hal_eth_mac_regs.h140 uint32_t phy_id[2]; member in struct:al_eth_mac_10g

Completed in 219 milliseconds

12