Searched refs:phydev (Results 1 - 23 of 23) sorted by relevance

/netgear-R7800-V1.0.2.28/target/linux/generic/files/drivers/net/phy/
H A Dadm6996.c56 struct phy_device *phydev; member in struct:adm6996_priv
76 u16 (*read)(struct phy_device *phydev, enum admreg reg);
77 void (*write)(struct phy_device *phydev, enum admreg reg, u16 val);
97 adm6996_read_mii_reg(struct phy_device *phydev, enum admreg reg) argument
99 return phydev->bus->read(phydev->bus, PHYADDR(reg));
103 adm6996_write_mii_reg(struct phy_device *phydev, enum admreg reg, u16 val) argument
105 phydev->bus->write(phydev->bus, PHYADDR(reg), val);
169 w16(priv->phydev, pri
657 adm6996_read_status(struct phy_device *phydev) argument
668 adm6996_config_aneg(struct phy_device *phydev) argument
[all...]
H A Dmicrel.c26 static int ksz8041_ack_interrupt(struct phy_device *phydev) argument
30 err = phy_read(phydev, KSZ_REG_INT_CTRL);
35 static int ksz8041_config_intr(struct phy_device *phydev) argument
39 if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
40 err = phy_write(phydev, KSZ_REG_INT_CTRL,
43 err = phy_write(phydev, KSZ_REG_INT_CTRL, 0);
H A Dpsb6970.c57 u16 (*read) (struct phy_device* phydev, int reg);
58 void (*write) (struct phy_device* phydev, int reg, u16 val);
71 static u16 psb6970_mii_read(struct phy_device *phydev, int reg) argument
73 return phydev->bus->read(phydev->bus, PHYADDR(reg));
76 static void psb6970_mii_write(struct phy_device *phydev, int reg, u16 val) argument
78 phydev->bus->write(phydev->bus, PHYADDR(reg), val);
357 static int psb6970_read_status(struct phy_device *phydev) argument
359 phydev
370 psb6970_config_aneg(struct phy_device *phydev) argument
[all...]
H A Dmvswitch.c51 r16(struct phy_device *phydev, int addr, int reg) argument
53 return phydev->bus->read(phydev->bus, addr, reg);
57 w16(struct phy_device *phydev, int addr, int reg, u16 val) argument
59 phydev->bus->write(phydev->bus, addr, reg, val);
345 mvswitch_config_aneg(struct phy_device *phydev) argument
H A Dar8216.c2333 static int ar8216_get_vlan_dev(struct phy_device *phydev, int vlanID) argument
2335 struct ar8216_priv *priv = phydev->priv;
2338 sprintf(name, "%s.%d\0", phydev->attached_dev->name, vlanID);
2348 ar8216_read_status(struct phy_device *phydev) argument
2350 struct ar8216_priv *priv = phydev->priv;
2356 if (phydev->addr != 0)
2357 return genphy_read_status(phydev);
2371 ret = ar8216_get_vlan_dev(phydev, i);
2382 ret = ar8216_get_vlan_dev(phydev, i);
2395 ar8216_read_port_link(priv, phydev
2423 ar8216_config_aneg(struct phy_device *phydev) argument
[all...]
/netgear-R7800-V1.0.2.28/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/
H A Dag71xx_phy.c19 struct phy_device *phydev = ag->phy_dev; local
25 if (phydev->link) {
26 if (ag->duplex != phydev->duplex
27 || ag->speed != phydev->speed) {
32 if (phydev->link != ag->link)
35 ag->link = phydev->link;
36 ag->duplex = phydev->duplex;
37 ag->speed = phydev->speed;
107 struct phy_device *phydev = NULL; local
123 if (phydev
[all...]
H A Dag71xx_ethtool.c21 struct phy_device *phydev = ag->phy_dev; local
23 if (!phydev)
26 return phy_ethtool_gset(phydev, cmd);
33 struct phy_device *phydev = ag->phy_dev; local
35 if (!phydev)
38 return phy_ethtool_sset(phydev, cmd);
/netgear-R7800-V1.0.2.28/package/qca-nss-gmac/src/ipq806x/
H A Dnss_gmac_ethtool.c235 struct phy_device *phydev = NULL; local
256 phydev = gmacdev->phydev;
259 phydev->advertising &= ~(ADVERTISED_Pause | ADVERTISED_Asym_Pause);
262 phydev->advertising |=
266 phydev->advertising |= ADVERTISED_Asym_Pause;
268 genphy_config_aneg(gmacdev->phydev);
297 genphy_restart_aneg(gmacdev->phydev);
334 struct phy_device *phydev = NULL; local
361 phydev
435 struct phy_device *phydev = NULL; local
480 struct phy_device *phydev = gmacdev->phydev; local
[all...]
H A Dnss_gmac_dev.c49 struct phy_device *phydev = gmacdev->phydev; local
60 if (phydev->link)
176 if (IS_ERR(gmacdev->phydev)) {
181 data = (uint16_t)phy_read(gmacdev->phydev, reg);
198 if (IS_ERR(gmacdev->phydev))
201 phy_write(gmacdev->phydev, reg, data);
1131 if (gmacdev->phydev->link) {
1133 phy_write(gmacdev->phydev, MII_BMCR,
1134 BMCR_RESET | phy_read(gmacdev->phydev, MII_BMC
1202 struct phy_device *phydev = NULL; local
1300 nss_gmac_ath_phy_mmd_wr(struct phy_device *phydev, uint32_t mmd_dev_addr, uint32_t reg, uint16_t val) argument
1322 nss_gmac_ath_phy_mmd_rd(struct phy_device *phydev, uint32_t mmd_dev_addr, uint32_t reg) argument
1340 nss_gmac_ath_phy_disable_smart_802az(struct phy_device *phydev) argument
1361 nss_gmac_ath_phy_disable_802az(struct phy_device *phydev) argument
[all...]
H A Dnss_gmac_mdiobus.c122 struct phy_device *phydev = NULL; local
148 phydev = miibus->phy_map[gmacdev->phy_base];
149 if (!phydev) {
156 phydev->interface = gmacdev->phy_mii_type;
H A Dnss_gmac_ctrl.c932 static int32_t nss_gmac_phy_fixup(struct phy_device *phydev) argument
937 if (nss_gmac_ath_phy_disable_smart_802az(phydev) != 0)
941 if (nss_gmac_ath_phy_disable_802az(phydev) != 0)
1323 gmacdev->phydev = phy_connect(netdev, (const char *)phy_id,
1326 gmacdev->phydev = phy_connect(netdev, (const char *)phy_id,
1330 if (IS_ERR(gmacdev->phydev)) {
1336 nss_gmac_update_features(&(gmacdev->phydev->supported),
1337 &(gmacdev->phydev->advertising));
1338 gmacdev->phydev->irq = PHY_POLL;
1365 gmacdev->phydev
[all...]
H A Dnss_gmac_tx_rx_offload.c990 if (!IS_ERR(gmacdev->phydev)) {
992 __func__, gmacdev->phydev->phy_id);
993 phy_start(gmacdev->phydev);
994 phy_start_aneg(gmacdev->phydev);
1194 if (!IS_ERR(gmacdev->phydev))
1195 phy_stop(gmacdev->phydev);
/netgear-R7800-V1.0.2.28/package/qca-nss-gmac/src/qca-nss-gmac/ipq806x/
H A Dnss_gmac_ethtool.c235 struct phy_device *phydev = NULL; local
256 phydev = gmacdev->phydev;
259 phydev->advertising &= ~(ADVERTISED_Pause | ADVERTISED_Asym_Pause);
262 phydev->advertising |=
266 phydev->advertising |= ADVERTISED_Asym_Pause;
268 genphy_config_aneg(gmacdev->phydev);
297 genphy_restart_aneg(gmacdev->phydev);
334 struct phy_device *phydev = NULL; local
361 phydev
435 struct phy_device *phydev = NULL; local
480 struct phy_device *phydev = gmacdev->phydev; local
[all...]
H A Dnss_gmac_dev.c49 struct phy_device *phydev = gmacdev->phydev; local
60 if (phydev->link)
176 if (IS_ERR(gmacdev->phydev)) {
181 data = (uint16_t)phy_read(gmacdev->phydev, reg);
198 if (IS_ERR(gmacdev->phydev))
201 phy_write(gmacdev->phydev, reg, data);
1131 if (gmacdev->phydev->link) {
1133 phy_write(gmacdev->phydev, MII_BMCR,
1134 BMCR_RESET | phy_read(gmacdev->phydev, MII_BMC
1202 struct phy_device *phydev = NULL; local
1300 nss_gmac_ath_phy_mmd_wr(struct phy_device *phydev, uint32_t mmd_dev_addr, uint32_t reg, uint16_t val) argument
1322 nss_gmac_ath_phy_mmd_rd(struct phy_device *phydev, uint32_t mmd_dev_addr, uint32_t reg) argument
1340 nss_gmac_ath_phy_disable_smart_802az(struct phy_device *phydev) argument
1361 nss_gmac_ath_phy_disable_802az(struct phy_device *phydev) argument
[all...]
H A Dnss_gmac_mdiobus.c122 struct phy_device *phydev = NULL; local
148 phydev = miibus->phy_map[gmacdev->phy_base];
149 if (!phydev) {
156 phydev->interface = gmacdev->phy_mii_type;
H A Dnss_gmac_ctrl.c567 static int32_t nss_gmac_phy_fixup(struct phy_device *phydev) argument
572 if (nss_gmac_ath_phy_disable_smart_802az(phydev) != 0)
576 if (nss_gmac_ath_phy_disable_802az(phydev) != 0)
958 gmacdev->phydev = phy_connect(netdev, (const char *)phy_id,
961 gmacdev->phydev = phy_connect(netdev, (const char *)phy_id,
965 if (IS_ERR(gmacdev->phydev)) {
971 nss_gmac_update_features(&(gmacdev->phydev->supported),
972 &(gmacdev->phydev->advertising));
973 gmacdev->phydev->irq = PHY_POLL;
1000 gmacdev->phydev
[all...]
H A Dnss_gmac_tx_rx_offload.c794 if (!IS_ERR(gmacdev->phydev)) {
796 __func__, gmacdev->phydev->phy_id);
797 phy_start(gmacdev->phydev);
798 phy_start_aneg(gmacdev->phydev);
983 if (!IS_ERR(gmacdev->phydev))
984 phy_stop(gmacdev->phydev);
/netgear-R7800-V1.0.2.28/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/
H A Dnuport_mac.c170 struct phy_device *phydev; member in struct:nuport_mac_priv
388 struct phy_device *phydev = priv->phydev; local
392 BUG_ON(!phydev);
394 if (priv->old_link != phydev->link) {
396 priv->old_link = phydev->link;
399 if (phydev->link & (priv->old_duplex != phydev->duplex)) {
401 if (phydev->duplex == DUPLEX_FULL)
408 priv->old_duplex = phydev
883 struct phy_device *phydev = NULL; local
[all...]
/netgear-R7800-V1.0.2.28/target/linux/lantiq/files/drivers/net/ethernet/
H A Dlantiq_vrx200.c357 struct phy_device *phydev; member in struct:ltq_vrx200_priv
551 static void ltq_eth_gmac_update(struct phy_device *phydev, int num) argument
561 phy_addr_reg.bits.addr = phydev->addr;
563 if (phydev->link)
568 switch (phydev->speed) {
591 if (phydev->duplex == DUPLEX_FULL)
869 return phy_ethtool_gset(priv->phydev, cmd);
877 return phy_ethtool_sset(priv->phydev, cmd);
885 return phy_start_aneg(priv->phydev);
964 ltq_eth_gmac_update(priv->phydev,
971 struct phy_device *phydev = NULL; local
[all...]
/netgear-R7800-V1.0.2.28/target/linux/ramips/files/drivers/net/ethernet/ramips/
H A Dramips_main.c451 struct phy_device *phydev = re->phy_dev; local
457 if (phydev->link)
458 if (re->duplex != phydev->duplex ||
459 re->speed != phydev->speed)
462 if (phydev->link != re->link)
465 re->link = phydev->link;
466 re->duplex = phydev->duplex;
467 re->speed = phydev->speed;
480 struct phy_device *phydev = NULL; local
497 if (phydev
[all...]
/netgear-R7800-V1.0.2.28/package/qca-nss-gmac/src/include/
H A Dnss_gmac_dev.h238 struct phy_device *phydev; /* Phy device */ member in struct:nss_gmac_dev
1468 int32_t nss_gmac_ath_phy_mmd_wr(struct phy_device *phydev,
1470 int32_t nss_gmac_ath_phy_mmd_rd(struct phy_device *phydev,
1472 int32_t nss_gmac_ath_phy_disable_smart_802az(struct phy_device *phydev);
1473 int32_t nss_gmac_ath_phy_disable_802az(struct phy_device *phydev);
/netgear-R7800-V1.0.2.28/package/qca-nss-gmac/src/ipq806x/include/
H A Dnss_gmac_dev.h237 struct phy_device *phydev; /* Phy device */ member in struct:nss_gmac_dev
1455 int32_t nss_gmac_ath_phy_mmd_wr(struct phy_device *phydev,
1457 int32_t nss_gmac_ath_phy_mmd_rd(struct phy_device *phydev,
1459 int32_t nss_gmac_ath_phy_disable_smart_802az(struct phy_device *phydev);
1460 int32_t nss_gmac_ath_phy_disable_802az(struct phy_device *phydev);
/netgear-R7800-V1.0.2.28/package/qca-nss-gmac/src/qca-nss-gmac/ipq806x/include/
H A Dnss_gmac_dev.h237 struct phy_device *phydev; /* Phy device */ member in struct:nss_gmac_dev
1455 int32_t nss_gmac_ath_phy_mmd_wr(struct phy_device *phydev,
1457 int32_t nss_gmac_ath_phy_mmd_rd(struct phy_device *phydev,
1459 int32_t nss_gmac_ath_phy_disable_smart_802az(struct phy_device *phydev);
1460 int32_t nss_gmac_ath_phy_disable_802az(struct phy_device *phydev);

Completed in 218 milliseconds