/freebsd-12-stable/sys/dev/ixgbe/ |
H A D | ixgbe_x550.c | 252 u32 swfw_mask = hw->phy.phy_semaphore_mask; 364 hw->phy.type = ixgbe_phy_x550em_kx4; 367 hw->phy.type = ixgbe_phy_x550em_xfi; 372 hw->phy.type = ixgbe_phy_x550em_kr; 378 hw->phy.type = ixgbe_phy_ext_1g_t; 382 hw->phy.type = ixgbe_phy_fw; 384 hw->phy.phy_semaphore_mask |= IXGBE_GSSR_PHY1_SM; 386 hw->phy.phy_semaphore_mask |= IXGBE_GSSR_PHY0_SM; 453 * ixgbe_get_phy_id_fw - Get the phy ID via firmware command 470 hw->phy 608 struct ixgbe_phy_info *phy = &hw->phy; local 2273 struct ixgbe_phy_info *phy = &hw->phy; local [all...] |
H A D | ixgbe_82598.c | 123 struct ixgbe_phy_info *phy = &hw->phy; local 132 phy->ops.init = ixgbe_init_phy_ops_82598; 165 phy->ops.read_i2c_eeprom = ixgbe_read_i2c_eeprom_82598; 166 phy->ops.read_i2c_sff8472 = ixgbe_read_i2c_sff8472_82598; 195 struct ixgbe_phy_info *phy = &hw->phy; local 202 phy->ops.identify(hw); 211 switch (hw->phy.type) { 213 phy [all...] |
H A D | ixgbe_82599.c | 86 if (hw->phy.multispeed_fiber) { 97 (hw->phy.smart_speed == ixgbe_smart_speed_auto || 98 hw->phy.smart_speed == ixgbe_smart_speed_on) && 119 struct ixgbe_phy_info *phy = &hw->phy; local 127 hw->phy.qsfp_shared_i2c_bus = TRUE; 139 phy->ops.read_i2c_byte = ixgbe_read_i2c_byte_82599; 140 phy->ops.write_i2c_byte = ixgbe_write_i2c_byte_82599; 143 ret_val = phy->ops.identify(hw); 149 if (hw->phy 325 struct ixgbe_phy_info *phy = &hw->phy; local [all...] |
/freebsd-12-stable/sys/arm64/rockchip/ |
H A D | rk3399_emmcphy.c | 51 #include <dev/extres/phy/phy.h> 105 { "rockchip,rk3399-emmc-phy", 1 }, 133 intptr_t phy; local 139 phy = phynode_get_id(phynode); 143 device_printf(dev, "Phy id: %ld\n", phy); 145 if (phy != 0) { 146 device_printf(dev, "Unknown phy: %ld\n", phy); 281 intptr_t phy; local [all...] |
H A D | rk_usb2phy.c | 50 #include <dev/extres/phy/phy_usb.h> 95 static int rk_usb2phy_get_mode(struct phynode *phy, int *mode); 96 static int rk_usb2phy_set_mode(struct phynode *phy, int mode); 119 intptr_t phy; local 123 phy = phynode_get_id(phynode); 126 if (phy != RK3399_USBPHY_HOST) 150 intptr_t phy; local 154 phy = phynode_get_id(phynode); 157 if (phy != RK3399_USBPHY_HOST) 169 intptr_t phy; local [all...] |
H A D | rk_typec_phy.c | 50 #include <dev/extres/phy/phy_usb.h> 115 { "rockchip,rk3399-typec-phy", 1 }, 142 static int rk_typec_phy_get_mode(struct phynode *phy, int *mode); 143 static int rk_typec_phy_set_mode(struct phynode *phy, int mode); 192 intptr_t phy; local 197 phy = phynode_get_id(phynode); 200 if (phy != RK3399_TYPEC_PHY_USB3) 294 intptr_t phy; local 298 phy = phynode_get_id(phynode); 301 if (phy ! 313 intptr_t phy; local [all...] |
/freebsd-12-stable/sys/dev/cxgb/common/ |
H A D | cxgb_common.h | 555 int (*reset)(struct cphy *phy, int wait); 557 int (*intr_enable)(struct cphy *phy); 558 int (*intr_disable)(struct cphy *phy); 559 int (*intr_clear)(struct cphy *phy); 560 int (*intr_handler)(struct cphy *phy); 562 int (*autoneg_enable)(struct cphy *phy); 563 int (*autoneg_restart)(struct cphy *phy); 565 int (*advertise)(struct cphy *phy, unsigned int advertise_map); 566 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable); 567 int (*set_speed_duplex)(struct cphy *phy, in 592 mdio_read(struct cphy *phy, int mmd, int reg, unsigned int *valp) argument 598 mdio_write(struct cphy *phy, int mmd, int reg, unsigned int val) argument 605 cphy_init(struct cphy *phy, adapter_t *adapter, pinfo_t *pinfo, int phy_addr, struct cphy_ops *phy_ops, const struct mdio_ops *mdio_ops, unsigned int caps, const char *desc) argument [all...] |
H A D | cxgb_mv88e1xxx.c | 222 static int mv88e1xxx_set_speed_duplex(struct cphy *phy, int speed, int duplex) argument 224 int err = t3_set_phy_speed_duplex(phy, speed, duplex); 228 err = mv88e1xxx_reset(phy, 0); 302 struct cphy *phy = &pinfo->phy; local 305 cphy_init(phy, pinfo->adapter, pinfo, phy_addr, &mv88e1xxx_ops, mdio_ops, 311 err = mdio_write(phy, 0, MV88E1XXX_EXTENDED_ADDR, 0xb); 313 err = mdio_write(phy, 0, MV88E1XXX_EXTENDED_DATA, 0x8004); 316 err = mv88e1xxx_downshift_set(phy, 1); /* Enable downshift */
|
/freebsd-12-stable/sys/dev/dpaa/ |
H A D | fman_mdio.c | 77 static int pqmdio_miibus_readreg(device_t dev, int phy, int reg); 78 static int pqmdio_miibus_writereg(device_t dev, int phy, int reg, int value); 156 pqmdio_miibus_readreg(device_t dev, int phy, int reg) argument 165 MDIO_WRITE4(sc, MDIO_MIIMADD, (phy << 8) | reg); 183 pqmdio_miibus_writereg(device_t dev, int phy, int reg, int value) argument 194 MDIO_WRITE4(sc, MDIO_MIIMADD, (phy << 8) | reg);
|
/freebsd-12-stable/sys/dev/bwi/ |
H A D | bwirf.c | 230 struct bwi_phy *phy = &mac->mac_phy; local 272 switch (phy->phy_mode) { 305 if (phy->phy_rev == 6) 388 struct bwi_phy *phy = &mac->mac_phy; local 444 if (phy->phy_rev >= 3) 456 phy->phy_rev >= 7) { 680 struct bwi_phy *phy = &mac->mac_phy; local 684 if ((phy->phy_flags & BWI_PHY_F_LINKED) == 0) 713 if (phy->phy_rev >= 7 && (sc->sc_card_flags & BWI_CARD_F_EXT_LNA)) { 771 struct bwi_phy *phy local 1089 struct bwi_phy *phy = &mac->mac_phy; local 1262 struct bwi_phy *phy = &mac->mac_phy; local 1393 struct bwi_phy *phy = &mac->mac_phy; local 1649 struct bwi_phy *phy = &mac->mac_phy; local 1768 struct bwi_phy *phy = &mac->mac_phy; local 1921 struct bwi_phy *phy = &mac->mac_phy; local 2279 struct bwi_phy *phy = &mac->mac_phy; local 2295 struct bwi_phy *phy = &mac->mac_phy; local [all...] |
/freebsd-12-stable/sys/dev/bhnd/cores/pci/ |
H A D | bhnd_pcivar.h | 57 int bhnd_pcie_mdio_read(struct bhnd_pci_softc *sc, int phy, 59 int bhnd_pcie_mdio_write(struct bhnd_pci_softc *sc, int phy, 61 int bhnd_pcie_mdio_read_ext(struct bhnd_pci_softc *sc, int phy, 63 int bhnd_pcie_mdio_write_ext(struct bhnd_pci_softc *sc, int phy,
|
H A D | bhnd_pci.c | 385 bhnd_pcie_mdio_read(struct bhnd_pci_softc *sc, int phy, int reg) argument 396 cmd = BHND_PCIE_MDIODATA_ADDR(phy, reg); 410 bhnd_pcie_mdio_write(struct bhnd_pci_softc *sc, int phy, int reg, int val) argument 420 cmd = BHND_PCIE_MDIODATA_ADDR(phy, reg) | (val & BHND_PCIE_MDIODATA_DATA_MASK); 431 bhnd_pcie_mdio_read_ext(struct bhnd_pci_softc *sc, int phy, int devaddr, argument 439 return (bhnd_pcie_mdio_read(sc, phy, reg)); 444 phy != BHND_PCIE_PHYADDR_SD) 454 cmd = BHND_PCIE_MDIODATA_ADDR(phy, BHND_PCIE_SD_ADDREXT) | devaddr; 459 cmd = BHND_PCIE_MDIODATA_ADDR(phy, reg); 473 bhnd_pcie_mdio_write_ext(struct bhnd_pci_softc *sc, int phy, in argument [all...] |
/freebsd-12-stable/sys/dev/mii/ |
H A D | mii_bitbang.c | 120 mii_bitbang_readreg(device_t dev, mii_bitbang_ops_t ops, int phy, int reg) argument 128 mii_bitbang_sendbits(dev, ops, phy, 5); 168 mii_bitbang_writereg(device_t dev, mii_bitbang_ops_t ops, int phy, int reg, argument 176 mii_bitbang_sendbits(dev, ops, phy, 5);
|
H A D | rlswitch.c | 371 rlswitch_status(struct mii_softc *phy) argument 373 struct mii_data *mii = phy->mii_pdata; 379 IFM_100_TX | IFM_FDX | mii_phy_flowstatus(phy); 385 int phy, reg, val; local 390 for (phy = 0; phy <= 5; phy++) { 391 printf("PHY%i:", phy); 393 val = MIIBUS_READREG(sc->mii_dev, phy, reg);
|
/freebsd-12-stable/sys/dev/tx/ |
H A D | if_txvar.h | 145 #define PHY_READ_2(sc, phy, reg) \ 146 epic_read_phy_reg((sc), (phy), (reg)) 147 #define PHY_WRITE_2(sc, phy, reg, val) \ 148 epic_write_phy_reg((sc), (phy), (reg), (val))
|
/freebsd-12-stable/sys/dev/etherswitch/ip17x/ |
H A D | ip17x.c | 164 int err, phy, port; local 171 for (phy = 0; phy < MII_NPHY; phy++) { 172 if (((1 << phy) & sc->phymask) == 0) 174 sc->phyport[phy] = port; 175 sc->portphy[port] = phy; 191 BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0); 198 phy); 410 int err, phy; local 464 int phy; local [all...] |
/freebsd-12-stable/sys/dev/etherswitch/arswitch/ |
H A D | arswitch.c | 86 static inline int arswitch_portforphy(int phy); 94 static int arswitch_setled(struct arswitch_softc *sc, int phy, int led, 173 int phy, err = 0; local 178 for (phy = 0; phy < sc->numphys; phy++) { 179 sc->ifp[phy] = if_alloc(IFT_ETHER); 180 if (sc->ifp[phy] == NULL) { 186 sc->ifp[phy]->if_softc = sc; 187 sc->ifp[phy] 736 arswitch_portforphy(int phy) argument 744 int phy = port-1; local 754 int phy = port-1; local 1094 arswitch_setled(struct arswitch_softc *sc, int phy, int led, int style) argument 1290 arswitch_readphy(device_t dev, int phy, int reg) argument 1298 arswitch_writephy(device_t dev, int phy, int reg, int val) argument [all...] |
/freebsd-12-stable/sys/dev/etherswitch/ukswitch/ |
H A D | ukswitch.c | 118 int phy, port = 0, err = 0; local 123 for (phy = 0; phy < MII_NPHY; phy++) { 124 if (((1 << phy) & sc->phymask) == 0) 126 sc->ifpport[phy] = port; 127 sc->portphy[port] = phy; 145 BMSR_DEFCAPMASK, phy + sc->phyoffset, MII_OFFSET_ANY, 0); 152 phy); 268 ukswitch_portforphy(struct ukswitch_softc *sc, int phy) argument 362 int err, phy; local 475 ukswitch_readphy(device_t dev, int phy, int reg) argument 496 ukswitch_writephy(device_t dev, int phy, int reg, int data) argument [all...] |
/freebsd-12-stable/sys/arm/allwinner/ |
H A D | aw_usbphy.c | 52 #include <dev/extres/phy/phy_usb.h> 123 { "allwinner,sun4i-a10-usb-phy", (uintptr_t)&a10_usbphy_conf }, 124 { "allwinner,sun5i-a13-usb-phy", (uintptr_t)&a13_usbphy_conf }, 125 { "allwinner,sun6i-a31-usb-phy", (uintptr_t)&a31_usbphy_conf }, 126 { "allwinner,sun7i-a20-usb-phy", (uintptr_t)&a20_usbphy_conf }, 127 { "allwinner,sun8i-h3-usb-phy", (uintptr_t)&h3_usbphy_conf }, 128 { "allwinner,sun50i-a64-usb-phy", (uintptr_t)&a64_usbphy_conf }, 129 { "allwinner,sun8i-a83t-usb-phy", (uintptr_t)&a83t_usbphy_conf }, 146 static int awusbphy_phy_enable(struct phynode *phy, bool enable); 147 static int awusbphy_get_mode(struct phynode *phy, in 333 intptr_t phy; local 402 intptr_t phy; local [all...] |
/freebsd-12-stable/sys/dev/etherswitch/micrel/ |
H A D | ksz8995ma.c | 209 int phy, port, err; local 216 for (phy = 0; phy < sc->numports; phy++) { 217 if (phy == sc->cpuport) 219 if (((1 << phy) & sc->phymask) == 0) 221 sc->ifpport[phy] = port; 222 sc->portphy[port] = phy; 242 BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0); 249 phy); 399 ksz8995ma_portforphy(struct ksz8995ma_softc *sc, int phy) argument 505 int phy, err; local 569 int phy, err; local 808 ksz8995ma_readphy(device_t dev, int phy, int reg) argument 840 ksz8995ma_writephy(device_t dev, int phy, int reg, int data) argument [all...] |
/freebsd-12-stable/sys/dev/pci/ |
H A D | pci_dw_mv.c | 52 #include <dev/extres/phy/phy.h> 96 phy_t phy[MV_MAX_LANES]; member in struct:pci_mv_softc 113 rv = phy_get_by_ofw_idx(sc->dev, sc->node, i, &(sc->phy[i])); 115 device_printf(sc->dev, "Cannot get phy[%d]\n", i); 116 /* XXX revert when phy driver will be implemented */ 123 if (sc->phy[i] == NULL) 125 rv = phy_enable(sc->phy[i]); 127 device_printf(sc->dev, "Cannot enable phy[%d]\n", i); 135 if (sc->phy[ [all...] |
/freebsd-12-stable/sys/dev/usb/controller/ |
H A D | usb_nop_xceiv.c | 49 #include <dev/extres/phy/phy_usb.h> 66 static int usb_nop_xceiv_phy_enable(struct phynode *phy, bool enable); 81 intptr_t phy; local 85 phy = phynode_get_id(phynode); 88 if (phy != 0) 91 /* Enable the phy clock */
|
/freebsd-12-stable/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_ppr.c | 147 struct bwn_phy *phy = &mac->mac_phy; local 289 if (phy->type == BWN_PHYTYPE_N && phy->rev >= 3) 295 if (phy->type == BWN_PHYTYPE_N && phy->rev >= 3) 313 if (phy->type == BWN_PHYTYPE_N && phy->rev >= 3) 319 if (phy->type == BWN_PHYTYPE_N && phy->rev >= 3)
|
/freebsd-12-stable/sys/dev/etherswitch/infineon/ |
H A D | adm6996fc.c | 165 int phy, port, err; local 172 for (phy = 0; phy < sc->numports; phy++) { 173 if (((1 << phy) & sc->phymask) == 0) 175 sc->ifpport[phy] = port; 176 sc->portphy[port] = phy; 196 BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0); 203 phy); 218 for (phy 341 adm6996fc_portforphy(struct adm6996fc_softc *sc, int phy) argument 446 int err, phy; local 758 adm6996fc_readphy(device_t dev, int phy, int reg) argument 780 adm6996fc_writephy(device_t dev, int phy, int reg, int data) argument [all...] |
/freebsd-12-stable/sys/dev/vnic/ |
H A D | thunder_mdio.c | 217 thunder_mdio_c45_addr(struct thunder_mdio_softc *sc, int phy, int reg) argument 234 smi_cmd |= ((phy << SMI_CMD_PHY_ADR_SHIFT) & SMI_CMD_PHY_ADR_MASK); 257 thunder_mdio_read(device_t dev, int phy, int reg) argument 278 err = thunder_mdio_c45_addr(sc, phy, reg); 286 smi_cmd |= ((phy << SMI_CMD_PHY_ADR_SHIFT) & SMI_CMD_PHY_ADR_MASK); 309 thunder_mdio_write(device_t dev, int phy, int reg, int data) argument 333 smi_cmd |= ((phy << SMI_CMD_PHY_ADR_SHIFT) & SMI_CMD_PHY_ADR_MASK); 445 thunder_mdio_phy_connect(device_t dev, int lmacid, int phy) argument 470 BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0); 473 device_printf(dev, "Could not attach PHY%d\n", phy); 487 thunder_mdio_phy_disconnect(device_t dev, int lmacid, int phy) argument [all...] |