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

123

/drivers/net/phy/
H A Dphy.c43 * @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 Dphy_device.c42 void phy_device_free(struct phy_device *phydev) argument
44 kfree(phydev);
60 static int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
65 * @bus_id: A string which matches phydev->dev.bus_id (or PHY_ANY_ID)
66 * @phy_uid: Used to match against phydev->phy_id (the UID of the PHY)
68 * @phy_uid_mask: Applied to phydev->phy_id and fixup->phy_uid before
111 * Returns 1 if fixup matches phydev in bus_id and phy_uid.
114 static int phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup) argument
116 if (strcmp(fixup->bus_id, dev_name(&phydev->dev)) != 0)
121 (phydev
129 phy_scan_fixups(struct phy_device *phydev) argument
267 phy_device_register(struct phy_device *phydev) argument
322 phy_prepare_link(struct phy_device *phydev, void (*handler)(struct net_device *)) argument
336 phy_connect_direct(struct net_device *dev, struct phy_device *phydev, void (*handler)(struct net_device *), u32 flags, phy_interface_t interface) argument
375 struct phy_device *phydev; local
400 phy_disconnect(struct phy_device *phydev) argument
413 phy_init_hw(struct phy_device *phydev) argument
441 phy_attach_direct(struct net_device *dev, struct phy_device *phydev, u32 flags, phy_interface_t interface) argument
498 struct phy_device *phydev; local
523 phy_detach(struct phy_device *phydev) argument
549 genphy_config_advert(struct phy_device *phydev) argument
609 genphy_setup_forced(struct phy_device *phydev) argument
634 genphy_restart_aneg(struct phy_device *phydev) argument
663 genphy_config_aneg(struct phy_device *phydev) argument
704 genphy_update_link(struct phy_device *phydev) argument
738 genphy_read_status(struct phy_device *phydev) argument
825 genphy_config_init(struct phy_device *phydev) argument
871 genphy_suspend(struct phy_device *phydev) argument
886 genphy_resume(struct phy_device *phydev) argument
911 struct phy_device *phydev; local
948 struct phy_device *phydev; local
[all...]
H A Dmarvell.c100 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...]
H A Dnational.c55 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 Dlxt.c64 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 Dicplus.c45 static int ip175c_config_init(struct phy_device *phydev) argument
53 err = mdiobus_write(phydev->bus, 30, 0, 0x175c);
58 err = mdiobus_read(phydev->bus, 30, 0);
64 err = mdiobus_write(phydev->bus, 29, 31, 0x175c);
69 err = mdiobus_write(phydev->bus, 29, 22, 0x420);
75 err = mdiobus_write(phydev->bus, i,
82 err = mdiobus_read(phydev->bus, i, MII_BMCR);
89 if (phydev->addr != 4) {
90 phydev->state = PHY_RUNNING;
91 phydev
100 ip1xx_reset(struct phy_device *phydev) argument
122 ip1001_config_init(struct phy_device *phydev) argument
155 ip101a_g_config_init(struct phy_device *phydev) argument
170 ip175c_read_status(struct phy_device *phydev) argument
181 ip175c_config_aneg(struct phy_device *phydev) argument
189 ip101a_g_ack_interrupt(struct phy_device *phydev) argument
[all...]
H A Damd.c32 static int am79c_ack_interrupt(struct phy_device *phydev) argument
36 err = phy_read(phydev, MII_BMSR);
40 err = phy_read(phydev, MII_AM79C_IR);
47 static int am79c_config_init(struct phy_device *phydev) argument
52 static int am79c_config_intr(struct phy_device *phydev) argument
56 if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
57 err = phy_write(phydev, MII_AM79C_IR, MII_AM79C_IR_IMASK_INIT);
59 err = phy_write(phydev, MII_AM79C_IR, 0);
H A Dbroadcom.c22 #define BRCM_PHY_MODEL(phydev) \
23 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
25 #define BRCM_PHY_REV(phydev) \
26 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask))
192 static int bcm54xx_shadow_read(struct phy_device *phydev, u16 shadow) argument
194 phy_write(phydev, MII_BCM54XX_SHD, MII_BCM54XX_SHD_VAL(shadow));
195 return MII_BCM54XX_SHD_DATA(phy_read(phydev, MII_BCM54XX_SHD));
198 static int bcm54xx_shadow_write(struct phy_device *phydev, u1 argument
207 bcm54xx_exp_read(struct phy_device *phydev, u16 regnum) argument
223 bcm54xx_exp_write(struct phy_device *phydev, u16 regnum, u16 val) argument
239 bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val) argument
245 bcm50610_a0_workaround(struct phy_device *phydev) argument
276 bcm54xx_phydsp_config(struct phy_device *phydev) argument
324 bcm54xx_adjust_rxrefclk(struct phy_device *phydev) argument
384 bcm54xx_config_init(struct phy_device *phydev) argument
421 bcm5482_config_init(struct phy_device *phydev) argument
491 bcm5482_read_status(struct phy_device *phydev) argument
511 bcm54xx_ack_interrupt(struct phy_device *phydev) argument
523 bcm54xx_config_intr(struct phy_device *phydev) argument
540 bcm5481_config_aneg(struct phy_device *phydev) argument
575 brcm_phy_setbits(struct phy_device *phydev, int reg, int set) argument
586 brcm_fet_config_init(struct phy_device *phydev) argument
656 brcm_fet_ack_interrupt(struct phy_device *phydev) argument
668 brcm_fet_config_intr(struct phy_device *phydev) argument
[all...]
H A Dvitesse.c64 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 Dmdio_bus.c130 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 Det1011c.c52 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 Dste10Xp.c35 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 Drealtek.c30 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 Ddavicom.c66 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 Dbcm63xx.c23 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 Dqsemi.c63 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 Dmicrel.c45 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 Dcicada.c68 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 Ddp83640.c89 struct phy_device *phydev; member in struct:dp83640_private
174 static int ext_read(struct phy_device *phydev, int page, u32 regnum) argument
176 struct dp83640_private *dp83640 = phydev->priv;
180 broadcast_write(phydev->bus, PAGESEL, page);
183 val = phy_read(phydev, regnum);
189 static void ext_write(int broadcast, struct phy_device *phydev, argument
192 struct dp83640_private *dp83640 = phydev->priv;
195 broadcast_write(phydev->bus, PAGESEL, page);
199 broadcast_write(phydev->bus, regnum, val);
201 phy_write(phydev, regnu
255 struct phy_device *phydev = dp83640->phydev; local
312 struct phy_device *phydev = clock->chosen->phydev; local
345 struct phy_device *phydev = clock->chosen->phydev; local
366 struct phy_device *phydev = clock->chosen->phydev; local
391 struct phy_device *phydev = clock->chosen->phydev; local
408 struct phy_device *phydev = clock->chosen->phydev; local
443 enable_status_frames(struct phy_device *phydev, bool on) argument
502 enable_broadcast(struct phy_device *phydev, int init_page, int on) argument
888 choose_this_phy(struct dp83640_clock *clock, struct phy_device *phydev) argument
945 dp83640_probe(struct phy_device *phydev) argument
1005 dp83640_remove(struct phy_device *phydev) argument
1043 dp83640_hwtstamp(struct phy_device *phydev, struct ifreq *ifr) argument
1172 dp83640_rxtstamp(struct phy_device *phydev, struct sk_buff *skb, int type) argument
1193 dp83640_txtstamp(struct phy_device *phydev, struct sk_buff *skb, int type) argument
[all...]
H A Dsmsc.c27 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 Dfixed.c36 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;
/drivers/staging/octeon/
H A Dethernet-mdio.c57 if (priv->phydev)
58 return phy_ethtool_gset(priv->phydev, cmd);
70 if (priv->phydev)
71 return phy_ethtool_sset(priv->phydev, cmd);
83 if (priv->phydev)
84 return phy_start_aneg(priv->phydev);
112 if (!priv->phydev)
115 return phy_mii_ioctl(priv->phydev, rq, cmd);
123 if (priv->last_link != priv->phydev->link) {
124 priv->last_link = priv->phydev
[all...]
/drivers/net/ethernet/pasemi/
H A Dpasemi_mac_ethtool.c72 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/freescale/
H A Ducc_geth_ethtool.c112 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 Ddnet.c182 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...]

Completed in 325 milliseconds

123