/drivers/net/phy/ |
H A D | realtek.c | 30 static int rtl821x_ack_interrupt(struct phy_device *phydev) argument 34 err = phy_read(phydev, RTL821x_INSR); 39 static int rtl821x_config_intr(struct phy_device *phydev) argument 43 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) 44 err = phy_write(phydev, RTL821x_INER, 47 err = phy_write(phydev, RTL821x_INER, 0);
|
H A D | smsc.c | 27 static int smsc_phy_config_intr(struct phy_device *phydev) argument 29 int rc = phy_write (phydev, MII_LAN83C185_IM, 30 ((PHY_INTERRUPT_ENABLED == phydev->interrupts) 37 static int smsc_phy_ack_interrupt(struct phy_device *phydev) argument 39 int rc = phy_read (phydev, MII_LAN83C185_ISF); 44 static int smsc_phy_config_init(struct phy_device *phydev) argument 46 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); 51 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, 56 return smsc_phy_ack_interrupt (phydev); 59 static int lan911x_config_init(struct phy_device *phydev) argument [all...] |
H A D | bcm63xx.c | 23 static int bcm63xx_config_init(struct phy_device *phydev) argument 27 reg = phy_read(phydev, MII_BCM63XX_IR); 33 err = phy_write(phydev, MII_BCM63XX_IR, reg); 42 err = phy_write(phydev, MII_BCM63XX_IR, reg); 48 static int bcm63xx_ack_interrupt(struct phy_device *phydev) argument 53 reg = phy_read(phydev, MII_BCM63XX_IR); 60 static int bcm63xx_config_intr(struct phy_device *phydev) argument 64 reg = phy_read(phydev, MII_BCM63XX_IR); 68 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) 73 err = phy_write(phydev, MII_BCM63XX_I [all...] |
H A D | ste10Xp.c | 35 static int ste10Xp_config_init(struct phy_device *phydev) argument 40 value = phy_read(phydev, MII_BMCR); 45 err = phy_write(phydev, MII_BMCR, value); 50 value = phy_read(phydev, MII_BMCR); 56 static int ste10Xp_config_intr(struct phy_device *phydev) argument 60 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { 62 err = phy_write(phydev, MII_XIE, MII_XIE_DEFAULT_MASK); 65 value = phy_read(phydev, MII_XCIIS); 70 err = phy_write(phydev, MII_XIE, 0); 75 static int ste10Xp_ack_interrupt(struct phy_device *phydev) argument [all...] |
H A D | et1011c.c | 52 static int et1011c_config_aneg(struct phy_device *phydev) argument 55 ctl = phy_read(phydev, MII_BMCR); 61 phy_write(phydev, MII_BMCR, ctl | BMCR_RESET); 63 return genphy_config_aneg(phydev); 66 static int et1011c_read_status(struct phy_device *phydev) argument 71 ret = genphy_read_status(phydev); 73 if (speed != phydev->speed) { 74 speed = phydev->speed; 75 val = phy_read(phydev, ET1011C_STATUS_REG); 78 val = phy_read(phydev, ET1011C_CONFIG_RE [all...] |
H A D | icplus.c | 44 static int ip175c_config_init(struct phy_device *phydev) argument 52 err = mdiobus_write(phydev->bus, 30, 0, 0x175c); 57 err = mdiobus_read(phydev->bus, 30, 0); 63 err = mdiobus_write(phydev->bus, 29, 31, 0x175c); 68 err = mdiobus_write(phydev->bus, 29, 22, 0x420); 74 err = mdiobus_write(phydev->bus, i, 81 err = mdiobus_read(phydev->bus, i, MII_BMCR); 88 if (phydev->addr != 4) { 89 phydev->state = PHY_RUNNING; 90 phydev 99 ip1xx_reset(struct phy_device *phydev) argument 121 ip1001_config_init(struct phy_device *phydev) argument 154 ip101a_g_config_init(struct phy_device *phydev) argument 168 ip175c_read_status(struct phy_device *phydev) argument 179 ip175c_config_aneg(struct phy_device *phydev) argument [all...] |
H A D | lxt.c | 64 static int lxt970_ack_interrupt(struct phy_device *phydev) argument 68 err = phy_read(phydev, MII_BMSR); 73 err = phy_read(phydev, MII_LXT970_ISR); 81 static int lxt970_config_intr(struct phy_device *phydev) argument 85 if(phydev->interrupts == PHY_INTERRUPT_ENABLED) 86 err = phy_write(phydev, MII_LXT970_IER, MII_LXT970_IER_IEN); 88 err = phy_write(phydev, MII_LXT970_IER, 0); 93 static int lxt970_config_init(struct phy_device *phydev) argument 97 err = phy_write(phydev, MII_LXT970_CONFIG, 0); 103 static int lxt971_ack_interrupt(struct phy_device *phydev) argument 113 lxt971_config_intr(struct phy_device *phydev) argument 125 lxt973_probe(struct phy_device *phydev) argument 146 lxt973_config_aneg(struct phy_device *phydev) argument [all...] |
H A D | qsemi.c | 63 static int qs6612_config_init(struct phy_device *phydev) argument 76 return phy_write(phydev, MII_QS6612_PCR, 0x0dc0); 79 static int qs6612_ack_interrupt(struct phy_device *phydev) argument 83 err = phy_read(phydev, MII_QS6612_ISR); 88 err = phy_read(phydev, MII_BMSR); 93 err = phy_read(phydev, MII_EXPANSION); 101 static int qs6612_config_intr(struct phy_device *phydev) argument 104 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) 105 err = phy_write(phydev, MII_QS6612_IMR, 108 err = phy_write(phydev, MII_QS6612_IM [all...] |
H A D | cicada.c | 68 static int cis820x_config_init(struct phy_device *phydev) argument 72 err = phy_write(phydev, MII_CIS8201_AUX_CONSTAT, 78 err = phy_write(phydev, MII_CIS8201_EXT_CON1, 84 static int cis820x_ack_interrupt(struct phy_device *phydev) argument 86 int err = phy_read(phydev, MII_CIS8201_ISTAT); 91 static int cis820x_config_intr(struct phy_device *phydev) argument 95 if(phydev->interrupts == PHY_INTERRUPT_ENABLED) 96 err = phy_write(phydev, MII_CIS8201_IMASK, 99 err = phy_write(phydev, MII_CIS8201_IMASK, 0);
|
H A D | davicom.c | 66 static int dm9161_config_intr(struct phy_device *phydev) argument 70 temp = phy_read(phydev, MII_DM9161_INTR); 75 if(PHY_INTERRUPT_ENABLED == phydev->interrupts ) 80 temp = phy_write(phydev, MII_DM9161_INTR, temp); 85 static int dm9161_config_aneg(struct phy_device *phydev) argument 90 err = phy_write(phydev, MII_BMCR, BMCR_ISOLATE); 96 err = genphy_config_aneg(phydev); 104 static int dm9161_config_init(struct phy_device *phydev) argument 109 err = phy_write(phydev, MII_BMCR, BMCR_ISOLATE); 114 switch (phydev 145 dm9161_ack_interrupt(struct phy_device *phydev) argument [all...] |
H A D | fixed.c | 36 struct phy_device *phydev; member in struct:fixed_phy 130 fp->link_update(fp->phydev->attached_dev, 152 int fixed_phy_set_link_update(struct phy_device *phydev, argument 159 if (!link_update || !phydev || !phydev->bus) 163 if (fp->id == phydev->phy_id) { 165 fp->phydev = phydev;
|
H A D | mdio_bus.c | 130 struct phy_device *phydev; local 132 phydev = mdiobus_scan(bus, i); 133 if (IS_ERR(phydev)) { 134 err = PTR_ERR(phydev); 197 struct phy_device *phydev; local 200 phydev = get_phy_device(bus, addr); 201 if (IS_ERR(phydev) || phydev == NULL) 202 return phydev; 204 err = phy_device_register(phydev); 273 struct phy_device *phydev = to_phy_device(dev); local 282 mdio_bus_phy_may_suspend(struct phy_device *phydev) argument 316 struct phy_device *phydev = to_phy_device(dev); local 336 struct phy_device *phydev = to_phy_device(dev); local 355 struct phy_device *phydev = to_phy_device(dev); local [all...] |
H A D | micrel.c | 45 static int kszphy_ack_interrupt(struct phy_device *phydev) argument 50 rc = phy_read(phydev, MII_KSZPHY_INTCS); 55 static int kszphy_set_interrupt(struct phy_device *phydev) argument 58 temp = (PHY_INTERRUPT_ENABLED == phydev->interrupts) ? 60 return phy_write(phydev, MII_KSZPHY_INTCS, temp); 63 static int kszphy_config_intr(struct phy_device *phydev) argument 68 temp = phy_read(phydev, MII_KSZPHY_CTRL); 70 phy_write(phydev, MII_KSZPHY_CTRL, temp); 71 rc = kszphy_set_interrupt(phydev); 75 static int ksz9021_config_intr(struct phy_device *phydev) argument 87 ks8737_config_intr(struct phy_device *phydev) argument 99 kszphy_config_init(struct phy_device *phydev) argument 104 ks8051_config_init(struct phy_device *phydev) argument [all...] |
H A D | national.c | 55 static u8 ns_exp_read(struct phy_device *phydev, u16 reg) argument 57 phy_write(phydev, NS_EXP_MEM_ADD, reg); 58 return phy_read(phydev, NS_EXP_MEM_DATA); 61 static void ns_exp_write(struct phy_device *phydev, u16 reg, u8 data) argument 63 phy_write(phydev, NS_EXP_MEM_ADD, reg); 64 phy_write(phydev, NS_EXP_MEM_DATA, data); 67 static int ns_config_intr(struct phy_device *phydev) argument 71 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) 72 err = phy_write(phydev, DP83865_INT_MASK, 75 err = phy_write(phydev, DP83865_INT_MAS 80 ns_ack_interrupt(struct phy_device *phydev) argument 93 ns_giga_speed_fallback(struct phy_device *phydev, int mode) argument 107 ns_10_base_t_hdx_loopack(struct phy_device *phydev, int disable) argument 119 ns_config_init(struct phy_device *phydev) argument [all...] |
H A D | phy.c | 43 * @phydev: the phy_device struct 45 void phy_print_status(struct phy_device *phydev) argument 47 pr_info("PHY: %s - Link is %s", dev_name(&phydev->dev), 48 phydev->link ? "Up" : "Down"); 49 if (phydev->link) 50 printk(KERN_CONT " - %d/%s", phydev->speed, 51 DUPLEX_FULL == phydev->duplex ? 61 * @phydev: the phy_device struct 63 * If the @phydev driver has an ack_interrupt function, call it to 68 static int phy_clear_interrupt(struct phy_device *phydev) argument 85 phy_config_interrupt(struct phy_device *phydev, u32 interrupts) argument 105 phy_aneg_done(struct phy_device *phydev) argument 211 phy_sanitize_settings(struct phy_device *phydev) argument 239 phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd) argument 285 phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd) argument 312 phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd) argument 389 phy_start_aneg(struct phy_device *phydev) argument 435 phy_start_machine(struct phy_device *phydev, void (*handler)(struct net_device *)) argument 451 phy_stop_machine(struct phy_device *phydev) argument 472 phy_force_reduction(struct phy_device *phydev) argument 500 phy_error(struct phy_device *phydev) argument 517 struct phy_device *phydev = phy_dat; local 538 phy_enable_interrupts(struct phy_device *phydev) argument 556 phy_disable_interrupts(struct phy_device *phydev) argument 590 phy_start_interrupts(struct phy_device *phydev) argument 618 phy_stop_interrupts(struct phy_device *phydev) argument 656 struct phy_device *phydev = local 705 phy_stop(struct phy_device *phydev) argument 743 phy_start(struct phy_device *phydev) argument 771 struct phy_device *phydev = local [all...] |
H A D | vitesse.c | 64 int vsc824x_add_skew(struct phy_device *phydev) argument 69 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); 80 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon); 86 static int vsc824x_config_init(struct phy_device *phydev) argument 90 err = phy_write(phydev, MII_VSC8244_AUX_CONSTAT, 95 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) 96 err = vsc824x_add_skew(phydev); 101 static int vsc824x_ack_interrupt(struct phy_device *phydev) argument 110 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) 111 err = phy_read(phydev, MII_VSC8244_ISTA 116 vsc82xx_config_intr(struct phy_device *phydev) argument 156 vsc8221_config_init(struct phy_device *phydev) argument [all...] |
H A D | marvell.c | 100 static int marvell_ack_interrupt(struct phy_device *phydev) argument 105 err = phy_read(phydev, MII_M1011_IEVENT); 113 static int marvell_config_intr(struct phy_device *phydev) argument 117 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) 118 err = phy_write(phydev, MII_M1011_IMASK, MII_M1011_IMASK_INIT); 120 err = phy_write(phydev, MII_M1011_IMASK, MII_M1011_IMASK_CLEAR); 125 static int marvell_config_aneg(struct phy_device *phydev) argument 132 err = phy_write(phydev, MII_BMCR, BMCR_RESET); 137 err = phy_write(phydev, 0x1d, 0x1f); 141 err = phy_write(phydev, 206 marvell_of_reg_init(struct phy_device *phydev) argument 266 marvell_of_reg_init(struct phy_device *phydev) argument 272 m88e1121_config_aneg(struct phy_device *phydev) argument 326 m88e1318_config_aneg(struct phy_device *phydev) argument 351 m88e1111_config_init(struct phy_device *phydev) argument 465 m88e1118_config_aneg(struct phy_device *phydev) argument 482 m88e1118_config_init(struct phy_device *phydev) argument 525 m88e1149_config_init(struct phy_device *phydev) argument 555 m88e1145_config_init(struct phy_device *phydev) argument 630 marvell_read_status(struct phy_device *phydev) argument 708 m88e1121_did_interrupt(struct phy_device *phydev) argument [all...] |
/drivers/staging/octeon/ |
H A D | octeon-ethernet.h | 54 struct phy_device *phydev; member in struct:octeon_ethernet
|
/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac_ethtool.c | 72 struct phy_device *phydev = mac->phydev; local 74 if (!phydev) 77 return phy_ethtool_gset(phydev, cmd); 85 struct phy_device *phydev = mac->phydev; local 87 if (!phydev) 90 return phy_ethtool_sset(phydev, cmd);
|
/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_mdio.c | 177 struct phy_device *phydev = new_bus->phy_map[addr]; local 178 if (phydev) { 190 phydev->irq = mdio_bus_data->probed_phy_irq; 204 switch (phydev->irq) { 212 sprintf(irq_num, "%d", phydev->irq); 217 ndev->name, phydev->phy_id, addr, 218 irq_str, dev_name(&phydev->dev),
|
H A D | stmmac.h | 63 struct phy_device *phydev; member in struct:stmmac_priv
|
/drivers/net/ethernet/adi/ |
H A D | bfin_mac.h | 93 struct phy_device *phydev; member in struct:bfin_mac_local
|
/drivers/net/ethernet/freescale/ |
H A D | ucc_geth_ethtool.c | 112 struct phy_device *phydev = ugeth->phydev; local 115 if (!phydev) 121 return phy_ethtool_gset(phydev, ecmd); 128 struct phy_device *phydev = ugeth->phydev; local 130 if (!phydev) 133 return phy_ethtool_sset(phydev, ecmd); 142 pause->autoneg = ugeth->phydev->autoneg; 160 if (ugeth->phydev 366 struct phy_device *phydev = ugeth->phydev; local 379 struct phy_device *phydev = ugeth->phydev; local [all...] |
/drivers/net/ethernet/ |
H A D | dnet.c | 182 struct phy_device *phydev = bp->phy_dev; local 193 if (phydev->link) { 194 if (bp->duplex != phydev->duplex) { 195 if (phydev->duplex) 202 bp->duplex = phydev->duplex; 206 if (bp->speed != phydev->speed) { 208 switch (phydev->speed) { 220 phydev->speed); 223 bp->speed = phydev->speed; 227 if (phydev 263 struct phy_device *phydev = NULL; local 364 dnet_phy_marvell_fixup(struct phy_device *phydev) argument 772 struct phy_device *phydev = bp->phy_dev; local 783 struct phy_device *phydev = bp->phy_dev; local 794 struct phy_device *phydev = bp->phy_dev; local 836 struct phy_device *phydev; local [all...] |
/drivers/net/ethernet/freescale/fs_enet/ |
H A D | fs_enet-main.c | 720 phy_stop(fep->phydev); 723 phy_start(fep->phydev); 726 phy_start(fep->phydev); 740 struct phy_device *phydev = fep->phydev; local 743 if (phydev->link) { 745 if (phydev->duplex != fep->oldduplex) { 747 fep->oldduplex = phydev->duplex; 750 if (phydev->speed != fep->oldspeed) { 752 fep->oldspeed = phydev 792 struct phy_device *phydev; local [all...] |