Home
last modified time | relevance | path

Searched refs:adv (Results 1 – 80 of 80) sorted by relevance

/linux-4.4.14/net/batman-adv/
DMakefile19 obj-$(CONFIG_BATMAN_ADV) += batman-adv.o
20 batman-adv-y += bat_iv_ogm.o
21 batman-adv-y += bitarray.o
22 batman-adv-$(CONFIG_BATMAN_ADV_BLA) += bridge_loop_avoidance.o
23 batman-adv-$(CONFIG_DEBUG_FS) += debugfs.o
24 batman-adv-$(CONFIG_BATMAN_ADV_DAT) += distributed-arp-table.o
25 batman-adv-y += fragmentation.o
26 batman-adv-y += gateway_client.o
27 batman-adv-y += gateway_common.o
28 batman-adv-y += hard-interface.o
[all …]
DKconfig47 Note that interfaces controlled by batman-adv must be manually
/linux-4.4.14/include/linux/
Dmdio.h130 u32 adv = 0; in mmd_eee_adv_to_ethtool_adv_t() local
133 adv |= ADVERTISED_100baseT_Full; in mmd_eee_adv_to_ethtool_adv_t()
135 adv |= ADVERTISED_1000baseT_Full; in mmd_eee_adv_to_ethtool_adv_t()
137 adv |= ADVERTISED_10000baseT_Full; in mmd_eee_adv_to_ethtool_adv_t()
139 adv |= ADVERTISED_1000baseKX_Full; in mmd_eee_adv_to_ethtool_adv_t()
141 adv |= ADVERTISED_10000baseKX4_Full; in mmd_eee_adv_to_ethtool_adv_t()
143 adv |= ADVERTISED_10000baseKR_Full; in mmd_eee_adv_to_ethtool_adv_t()
145 return adv; in mmd_eee_adv_to_ethtool_adv_t()
156 static inline u16 ethtool_adv_to_mmd_eee_adv_t(u32 adv) in ethtool_adv_to_mmd_eee_adv_t() argument
160 if (adv & ADVERTISED_100baseT_Full) in ethtool_adv_to_mmd_eee_adv_t()
[all …]
Dmii.h136 static inline u32 mii_adv_to_ethtool_adv_t(u32 adv) in mii_adv_to_ethtool_adv_t() argument
140 if (adv & ADVERTISE_10HALF) in mii_adv_to_ethtool_adv_t()
142 if (adv & ADVERTISE_10FULL) in mii_adv_to_ethtool_adv_t()
144 if (adv & ADVERTISE_100HALF) in mii_adv_to_ethtool_adv_t()
146 if (adv & ADVERTISE_100FULL) in mii_adv_to_ethtool_adv_t()
148 if (adv & ADVERTISE_PAUSE_CAP) in mii_adv_to_ethtool_adv_t()
150 if (adv & ADVERTISE_PAUSE_ASYM) in mii_adv_to_ethtool_adv_t()
184 static inline u32 mii_ctrl1000_to_ethtool_adv_t(u32 adv) in mii_ctrl1000_to_ethtool_adv_t() argument
188 if (adv & ADVERTISE_1000HALF) in mii_ctrl1000_to_ethtool_adv_t()
190 if (adv & ADVERTISE_1000FULL) in mii_ctrl1000_to_ethtool_adv_t()
[all …]
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dphy.c111 int ctl, adv; in genmii_setup_aneg() local
128 adv = phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg()
129 if (adv < 0) in genmii_setup_aneg()
130 return adv; in genmii_setup_aneg()
131 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4 | ADVERTISE_PAUSE_CAP | in genmii_setup_aneg()
134 adv |= ADVERTISE_10HALF; in genmii_setup_aneg()
136 adv |= ADVERTISE_10FULL; in genmii_setup_aneg()
138 adv |= ADVERTISE_100HALF; in genmii_setup_aneg()
140 adv |= ADVERTISE_100FULL; in genmii_setup_aneg()
142 adv |= ADVERTISE_PAUSE_CAP; in genmii_setup_aneg()
[all …]
Dcore.c2390 u32 phy_map, adv; in emac_init_phy() local
2493 adv = dev->phy.features; in emac_init_phy()
2495 adv |= ADVERTISED_Pause | ADVERTISED_Asym_Pause; in emac_init_phy()
2497 dev->phy.def->ops->setup_aneg(&dev->phy, adv); in emac_init_phy()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Daq100x.c155 unsigned int adv; in aq100x_advertise() local
159 adv = 0; in aq100x_advertise()
161 adv |= ADV_10G_FULL; in aq100x_advertise()
163 ADV_10G_FULL, adv); in aq100x_advertise()
168 adv = 0; in aq100x_advertise()
170 adv |= ADV_1G_FULL; in aq100x_advertise()
172 adv |= ADV_1G_HALF; in aq100x_advertise()
174 ADV_1G_FULL | ADV_1G_HALF, adv); in aq100x_advertise()
179 adv = 0; in aq100x_advertise()
181 adv |= ADVERTISE_100HALF; in aq100x_advertise()
[all …]
Dvsc8211.c133 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status() local
182 MII_ADVERTISE, &adv); in vsc8211_get_link_status()
186 if (lpa & adv & ADVERTISE_PAUSE_CAP) in vsc8211_get_link_status()
190 (adv & ADVERTISE_PAUSE_ASYM)) in vsc8211_get_link_status()
193 (adv & ADVERTISE_PAUSE_CAP)) in vsc8211_get_link_status()
209 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status_fiber() local
242 &adv); in vsc8211_get_link_status_fiber()
246 if (adv & lpa & ADVERTISE_1000XFULL) { in vsc8211_get_link_status_fiber()
249 } else if (adv & lpa & ADVERTISE_1000XHALF) { in vsc8211_get_link_status_fiber()
255 if (lpa & adv & ADVERTISE_1000XPAUSE) in vsc8211_get_link_status_fiber()
[all …]
/linux-4.4.14/drivers/net/
Dsungem_phy.c315 u16 ctl, adv; in genmii_setup_aneg() local
324 adv = sungem_phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg()
325 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4); in genmii_setup_aneg()
327 adv |= ADVERTISE_10HALF; in genmii_setup_aneg()
329 adv |= ADVERTISE_10FULL; in genmii_setup_aneg()
331 adv |= ADVERTISE_100HALF; in genmii_setup_aneg()
333 adv |= ADVERTISE_100FULL; in genmii_setup_aneg()
334 sungem_phy_write(phy, MII_ADVERTISE, adv); in genmii_setup_aneg()
470 u16 ctl, adv; in bcm54xx_setup_aneg() local
479 adv = sungem_phy_read(phy, MII_ADVERTISE); in bcm54xx_setup_aneg()
[all …]
/linux-4.4.14/drivers/net/phy/
Dphy_device.c818 int oldadv, adv, bmsr; in genphy_config_advert() local
826 adv = phy_read(phydev, MII_ADVERTISE); in genphy_config_advert()
827 if (adv < 0) in genphy_config_advert()
828 return adv; in genphy_config_advert()
830 oldadv = adv; in genphy_config_advert()
831 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4 | ADVERTISE_PAUSE_CAP | in genphy_config_advert()
833 adv |= ethtool_adv_to_mii_adv_t(advertise); in genphy_config_advert()
835 if (adv != oldadv) { in genphy_config_advert()
836 err = phy_write(phydev, MII_ADVERTISE, adv); in genphy_config_advert()
855 adv = phy_read(phydev, MII_CTRL1000); in genphy_config_advert()
[all …]
Dlxt.c164 int adv; in lxt973a2_read_status() local
177 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status()
179 if (adv < 0) in lxt973a2_read_status()
180 return adv; in lxt973a2_read_status()
191 } while (lpa == adv && retry--); in lxt973a2_read_status()
193 lpa &= adv; in lxt973a2_read_status()
Dmarvell.c785 int adv; in marvell_read_status() local
810 adv = phy_read(phydev, MII_ADVERTISE); in marvell_read_status()
811 if (adv < 0) in marvell_read_status()
812 return adv; in marvell_read_status()
817 lpa &= adv; in marvell_read_status()
Dphy.c1122 u32 lp, cap, adv; in phy_init_eee() local
1153 adv = mmd_eee_adv_to_ethtool_adv_t(eee_adv); in phy_init_eee()
1155 if (!phy_check_valid(phydev->speed, phydev->duplex, lp & adv)) in phy_init_eee()
/linux-4.4.14/arch/arm/boot/dts/
Domap3430-sdp.dts69 gpmc,adv-on-ns = <12>;
70 gpmc,adv-rd-off-ns = <48>;
71 gpmc,adv-wr-off-ns = <48>;
115 gpmc,adv-on-ns = <6>;
116 gpmc,adv-rd-off-ns = <24>;
117 gpmc,adv-wr-off-ns = <36>;
160 gpmc,adv-on-ns = <0>;
161 gpmc,adv-rd-off-ns = <18>;
162 gpmc,adv-wr-off-ns = <18>;
Domap-gpmc-smsc911x.dtsi32 gpmc,adv-on-ns = <0>;
33 gpmc,adv-rd-off-ns = <15>;
34 gpmc,adv-wr-off-ns = <40>;
Domap-gpmc-smsc9221.dtsi35 gpmc,adv-on-ns = <6>;
36 gpmc,adv-rd-off-ns = <12>;
37 gpmc,adv-wr-off-ns = <12>;
Domap2420-h4.dts37 gpmc,adv-on-ns = <20>;
38 gpmc,adv-rd-off-ns = <50>;
39 gpmc,adv-wr-off-ns = <50>;
Domap3-overo-tobiduo-common.dtsi35 gpmc,adv-on-ns = <6>;
36 gpmc,adv-rd-off-ns = <12>;
37 gpmc,adv-wr-off-ns = <12>;
Domap2430-sdp.dts54 gpmc,adv-on-ns = <18>;
55 gpmc,adv-rd-off-ns = <48>;
56 gpmc,adv-wr-off-ns = <48>;
Domap2420-n8x0-common.dtsi61 gpmc,adv-on-ns = <0>;
62 gpmc,adv-rd-off-ns = <18>;
63 gpmc,adv-wr-off-ns = <18>;
Domap-zoom-common.dtsi34 gpmc,adv-on-ns = <15>;
35 gpmc,adv-rd-off-ns = <40>;
36 gpmc,adv-wr-off-ns = <40>;
Domap3-sb-t35.dtsi116 gpmc,adv-on-ns = <0>;
117 gpmc,adv-rd-off-ns = <15>;
118 gpmc,adv-wr-off-ns = <40>;
Domap3-devkit8000-common.dtsi216 gpmc,adv-on-ns = <6>;
217 gpmc,adv-rd-off-ns = <34>;
218 gpmc,adv-wr-off-ns = <44>;
278 gpmc,adv-on-ns = <0>;
279 gpmc,adv-rd-off-ns = <18>;
280 gpmc,adv-wr-off-ns = <48>;
Ddm8168-evm.dts99 gpmc,adv-on-ns = <6>;
100 gpmc,adv-rd-off-ns = <34>;
101 gpmc,adv-wr-off-ns = <44>;
Dlogicpd-torpedo-som.dtsi49 gpmc,adv-on-ns = <6>;
50 gpmc,adv-rd-off-ns = <34>;
51 gpmc,adv-wr-off-ns = <44>;
Domap3-n950-n9.dtsi141 gpmc,adv-on-ns = <0>;
142 gpmc,adv-rd-off-ns = <10>;
143 gpmc,adv-wr-off-ns = <10>;
Domap4-duovero-parlor.dts150 gpmc,adv-on-ns = <0>;
151 gpmc,adv-rd-off-ns = <10>;
152 gpmc,adv-wr-off-ns = <10>;
Domap3-lilly-a83x.dtsi378 gpmc,adv-on-ns = <0>;
379 gpmc,adv-rd-off-ns = <100>;
380 gpmc,adv-wr-off-ns = <100>;
431 gpmc,adv-on-ns = <0>;
432 gpmc,adv-rd-off-ns = <10>;
433 gpmc,adv-wr-off-ns = <10>;
Domap3-igep.dtsi108 gpmc,adv-on-ns = <6>;
109 gpmc,adv-rd-off-ns = <34>;
110 gpmc,adv-wr-off-ns = <44>;
Domap3-lilly-dbb056.dts142 gpmc,adv-on-ns = <0>;
143 gpmc,adv-rd-off-ns = <10>;
144 gpmc,adv-wr-off-ns = <10>;
Dam335x-chilisom.dtsi220 gpmc,adv-on-ns = <6>;
221 gpmc,adv-rd-off-ns = <34>;
222 gpmc,adv-wr-off-ns = <44>;
Domap3-evm-37xx.dts171 gpmc,adv-on-ns = <6>;
172 gpmc,adv-rd-off-ns = <34>;
173 gpmc,adv-wr-off-ns = <44>;
Dam335x-igep0033.dtsi140 gpmc,adv-on-ns = <6>;
141 gpmc,adv-rd-off-ns = <34>;
142 gpmc,adv-wr-off-ns = <44>;
Domap3-overo-base.dtsi239 gpmc,adv-on-ns = <6>;
240 gpmc,adv-rd-off-ns = <34>;
241 gpmc,adv-wr-off-ns = <44>;
Domap3-ldp.dts114 gpmc,adv-on-ns = <6>;
115 gpmc,adv-rd-off-ns = <34>;
116 gpmc,adv-wr-off-ns = <44>;
Domap3-cm-t3x.dtsi276 gpmc,adv-on-ns = <0>;
277 gpmc,adv-rd-off-ns = <120>;
278 gpmc,adv-wr-off-ns = <120>;
Dam335x-phycore-som.dtsi177 gpmc,adv-on-ns = <0>;
178 gpmc,adv-rd-off-ns = <30>;
179 gpmc,adv-wr-off-ns = <30>;
Domap3-tao3530.dtsi289 gpmc,adv-on-ns = <6>;
290 gpmc,adv-rd-off-ns = <24>;
291 gpmc,adv-wr-off-ns = <36>;
Domap3-beagle.dts398 gpmc,adv-on-ns = <6>;
399 gpmc,adv-rd-off-ns = <24>;
400 gpmc,adv-wr-off-ns = <36>;
Dam335x-nano.dts266 gpmc,adv-on-ns = <10>;
267 gpmc,adv-rd-off-ns = <30>;
268 gpmc,adv-wr-off-ns = <30>;
Domap3-gta04.dtsi503 gpmc,adv-on-ns = <6>;
504 gpmc,adv-rd-off-ns = <34>;
505 gpmc,adv-wr-off-ns = <44>;
Domap3-n900.dts729 gpmc,adv-on-ns = <0>;
730 gpmc,adv-rd-off-ns = <10>;
731 gpmc,adv-wr-off-ns = <10>;
795 gpmc,adv-on-ns = <0>;
796 gpmc,adv-rd-off-ns = <0>;
797 gpmc,adv-wr-off-ns = <0>;
Dam335x-baltos-ir5221.dts254 gpmc,adv-on-ns = <6>;
255 gpmc,adv-rd-off-ns = <34>;
256 gpmc,adv-wr-off-ns = <44>;
Domap3-pandora-common.dtsi557 gpmc,adv-on-ns = <6>;
558 gpmc,adv-rd-off-ns = <34>;
559 gpmc,adv-wr-off-ns = <44>;
Dam335x-evm.dts531 gpmc,adv-on-ns = <6>;
532 gpmc,adv-rd-off-ns = <34>;
533 gpmc,adv-wr-off-ns = <44>;
Dam43x-epos-evm.dts575 gpmc,adv-on-ns = <0>; /* cs-on-ns */
576 gpmc,adv-rd-off-ns = <25>; /* min( tALH + tALS + 1) */
577 gpmc,adv-wr-off-ns = <25>; /* min( tALH + tALS + 1) */
Ddra72-evm.dts506 gpmc,adv-on-ns = <0>;
507 gpmc,adv-rd-off-ns = <60>;
508 gpmc,adv-wr-off-ns = <60>;
Ddra7-evm.dts754 gpmc,adv-on-ns = <0>;
755 gpmc,adv-rd-off-ns = <60>;
756 gpmc,adv-wr-off-ns = <60>;
Dam437x-gp-evm.dts831 gpmc,adv-on-ns = <0>;
832 gpmc,adv-rd-off-ns = <25>;
833 gpmc,adv-wr-off-ns = <25>;
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-net-batman-adv2 What: /sys/class/net/<iface>/batman-adv/iface_status
8 What: /sys/class/net/<iface>/batman-adv/mesh_iface
12 The /sys/class/net/<iface>/batman-adv/mesh_iface file
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
Ddwmac1000_core.c378 static void dwmac1000_get_adv(struct mac_device_info *hw, struct rgmii_adv *adv) in dwmac1000_get_adv() argument
384 adv->duplex = DUPLEX_FULL; in dwmac1000_get_adv()
386 adv->duplex |= DUPLEX_HALF; in dwmac1000_get_adv()
388 adv->pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac1000_get_adv()
393 adv->lp_duplex = DUPLEX_FULL; in dwmac1000_get_adv()
395 adv->lp_duplex = DUPLEX_HALF; in dwmac1000_get_adv()
397 adv->lp_pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac1000_get_adv()
Dstmmac_ethtool.c252 struct rgmii_adv adv; in stmmac_ethtool_getsettings() local
267 priv->hw->mac->get_adv(priv->hw, &adv); in stmmac_ethtool_getsettings()
271 if (adv.pause & STMMAC_PCS_PAUSE) in stmmac_ethtool_getsettings()
273 if (adv.pause & STMMAC_PCS_ASYM_PAUSE) in stmmac_ethtool_getsettings()
275 if (adv.lp_pause & STMMAC_PCS_PAUSE) in stmmac_ethtool_getsettings()
277 if (adv.lp_pause & STMMAC_PCS_ASYM_PAUSE) in stmmac_ethtool_getsettings()
286 if (adv.duplex) { in stmmac_ethtool_getsettings()
301 if (adv.lp_duplex) in stmmac_ethtool_getsettings()
Dcommon.h410 void (*get_adv)(struct mac_device_info *hw, struct rgmii_adv *adv);
/linux-4.4.14/tools/perf/ui/
Dprogress.c15 void ui_progress__update(struct ui_progress *p, u64 adv) in ui_progress__update() argument
17 p->curr += adv; in ui_progress__update()
Dprogress.h14 void ui_progress__update(struct ui_progress *p, u64 adv);
/linux-4.4.14/Documentation/networking/
Dbatman-adv.txt24 Load the batman-adv module into your kernel:
26 # insmod batman-adv.ko
135 or /var/log/syslog. All batman-adv messages are prefixed with
136 "batman-adv:" So to see just these messages try
138 # dmesg | grep batman-adv
142 enabled when compiling the batman-adv module. When building bat-
143 man-adv as part of kernel, use "make menuconfig" and enable the
170 batman-adv module are available through ethtool:
D00-INDEX35 batman-adv.txt
/linux-4.4.14/Documentation/devicetree/bindings/mtd/
Dgpmc-nor.txt63 gpmc,adv-on-ns = <12>;
64 gpmc,adv-rd-off-ns = <48>;
65 gpmc,adv-wr-off-ns = <48>;
Dgpmc-nand.txt77 gpmc,adv-on-ns = <6>;
78 gpmc,adv-rd-off-ns = <34>;
79 gpmc,adv-wr-off-ns = <44>;
/linux-4.4.14/Documentation/devicetree/bindings/bus/
Dti-gpmc.txt46 - gpmc,adv-on-ns: Assertion time
47 - gpmc,adv-rd-off-ns: Read deassertion time
48 - gpmc,adv-wr-off-ns: Write deassertion time
72 - gpmc,adv-extra-delay: ADV signal is delayed by half GPMC clock
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dgpmc-eth.txt71 gpmc,adv-on-ns = <12>;
72 gpmc,adv-rd-off-ns = <48>;
73 gpmc,adv-wr-off-ns = <48>;
/linux-4.4.14/drivers/net/ethernet/sfc/
Dtenxpress.c448 u32 adv = 0, lpa = 0; in tenxpress_get_settings() local
453 adv |= ADVERTISED_10000baseT_Full; in tenxpress_get_settings()
458 mdio45_ethtool_gset_npage(&efx->mdio, ecmd, adv, lpa); in tenxpress_get_settings()
/linux-4.4.14/drivers/net/ethernet/nvidia/
Dforcedeth.c3301 int adv = 0; in nv_update_linkspeed() local
3365 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_update_linkspeed()
3382 adv_lpa = lpa & adv; in nv_update_linkspeed()
3480 adv_pause = adv & (ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM); in nv_update_linkspeed()
4251 int adv; in nv_get_settings() local
4295 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_get_settings()
4296 if (adv & ADVERTISE_10HALF) in nv_get_settings()
4298 if (adv & ADVERTISE_10FULL) in nv_get_settings()
4300 if (adv & ADVERTISE_100HALF) in nv_get_settings()
4302 if (adv & ADVERTISE_100FULL) in nv_get_settings()
[all …]
/linux-4.4.14/drivers/net/ethernet/atheros/alx/
Dhw.c724 u16 adv, giga, cr; in alx_setup_speed_duplex() local
733 adv = ADVERTISE_CSMA; in alx_setup_speed_duplex()
734 adv |= ethtool_adv_to_mii_adv_t(ethadv); in alx_setup_speed_duplex()
738 adv |= ADVERTISED_Pause; in alx_setup_speed_duplex()
740 adv |= ADVERTISED_Asym_Pause; in alx_setup_speed_duplex()
742 adv |= ADVERTISED_Asym_Pause; in alx_setup_speed_duplex()
751 if (alx_write_phy_reg(hw, MII_ADVERTISE, adv) || in alx_setup_speed_duplex()
/linux-4.4.14/net/
DMakefile68 obj-$(CONFIG_BATMAN_ADV) += batman-adv/
DKconfig228 source "net/batman-adv/Kconfig"
/linux-4.4.14/drivers/net/ethernet/marvell/
Dskge.c1345 u16 adv = PHY_B_1000C_RD; in bcom_phy_init() local
1347 adv |= PHY_B_1000C_AHD; in bcom_phy_init()
1349 adv |= PHY_B_1000C_AFD; in bcom_phy_init()
1350 xm_phy_write(hw, port, PHY_BCOM_1000T_CTRL, adv); in bcom_phy_init()
1942 u16 ctrl, ct1000, adv; in yukon_init() local
1965 adv = PHY_AN_CSMA; in yukon_init()
1974 adv |= PHY_M_AN_100_FD; in yukon_init()
1976 adv |= PHY_M_AN_100_HD; in yukon_init()
1978 adv |= PHY_M_AN_10_FD; in yukon_init()
1980 adv |= PHY_M_AN_10_HD; in yukon_init()
[all …]
Dsky2.c339 u16 ctrl, ct1000, adv, pg, ledctrl, ledover, reg; in sky2_phy_init() local
425 adv = PHY_AN_CSMA; in sky2_phy_init()
435 adv |= PHY_M_AN_100_FD; in sky2_phy_init()
437 adv |= PHY_M_AN_100_HD; in sky2_phy_init()
439 adv |= PHY_M_AN_10_FD; in sky2_phy_init()
441 adv |= PHY_M_AN_10_HD; in sky2_phy_init()
445 adv |= PHY_M_AN_1000X_AFD; in sky2_phy_init()
447 adv |= PHY_M_AN_1000X_AHD; in sky2_phy_init()
479 adv |= copper_fc_adv[sky2->flow_mode]; in sky2_phy_init()
481 adv |= fiber_fc_adv[sky2->flow_mode]; in sky2_phy_init()
[all …]
/linux-4.4.14/drivers/net/ethernet/aurora/
Dnb8800.c938 u32 adv = 0; in nb8800_pause_adv() local
944 adv |= ADVERTISED_Pause | ADVERTISED_Asym_Pause; in nb8800_pause_adv()
946 adv ^= ADVERTISED_Asym_Pause; in nb8800_pause_adv()
948 priv->phydev->supported |= adv; in nb8800_pause_adv()
949 priv->phydev->advertising |= adv; in nb8800_pause_adv()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Db44.c459 u32 adv = ADVERTISE_CSMA; in b44_setup_phy() local
462 adv |= ADVERTISE_10HALF; in b44_setup_phy()
464 adv |= ADVERTISE_10FULL; in b44_setup_phy()
466 adv |= ADVERTISE_100HALF; in b44_setup_phy()
468 adv |= ADVERTISE_100FULL; in b44_setup_phy()
471 adv |= ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM; in b44_setup_phy()
473 if ((err = b44_writephy(bp, MII_ADVERTISE, adv)) != 0) in b44_setup_phy()
Dtg3.c1903 static u32 tg3_decode_flowctrl_1000T(u32 adv) in tg3_decode_flowctrl_1000T() argument
1907 if (adv & ADVERTISE_PAUSE_CAP) { in tg3_decode_flowctrl_1000T()
1909 if (!(adv & ADVERTISE_PAUSE_ASYM)) in tg3_decode_flowctrl_1000T()
1911 } else if (adv & ADVERTISE_PAUSE_ASYM) in tg3_decode_flowctrl_1000T()
1933 static u32 tg3_decode_flowctrl_1000X(u32 adv) in tg3_decode_flowctrl_1000X() argument
1937 if (adv & ADVERTISE_1000XPAUSE) { in tg3_decode_flowctrl_1000X()
1939 if (!(adv & ADVERTISE_1000XPSE_ASYM)) in tg3_decode_flowctrl_1000X()
1941 } else if (adv & ADVERTISE_1000XPSE_ASYM) in tg3_decode_flowctrl_1000X()
4404 u32 adv, fc; in tg3_phy_copper_begin() local
4408 adv = ADVERTISED_10baseT_Half | in tg3_phy_copper_begin()
[all …]
Dbnx2.c1664 u32 adv = 0; in bnx2_phy_get_pause_adv() local
1670 adv = ADVERTISE_1000XPAUSE; in bnx2_phy_get_pause_adv()
1673 adv = ADVERTISE_PAUSE_CAP; in bnx2_phy_get_pause_adv()
1678 adv = ADVERTISE_1000XPSE_ASYM; in bnx2_phy_get_pause_adv()
1681 adv = ADVERTISE_PAUSE_ASYM; in bnx2_phy_get_pause_adv()
1686 adv = ADVERTISE_1000XPAUSE | ADVERTISE_1000XPSE_ASYM; in bnx2_phy_get_pause_adv()
1689 adv = ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM; in bnx2_phy_get_pause_adv()
1692 return adv; in bnx2_phy_get_pause_adv()
1761 u32 adv, bmcr; in bnx2_setup_serdes_phy() local
1778 bnx2_read_phy(bp, bp->mii_adv, &adv); in bnx2_setup_serdes_phy()
[all …]
/linux-4.4.14/drivers/net/ethernet/sis/
Dsis190.c960 u16 adv, autoexp, gigadv, gigrec; in sis190_phy_task() local
966 adv = mdio_read(ioaddr, phy_id, MII_ADVERTISE); in sis190_phy_task()
969 val, adv, autoexp); in sis190_phy_task()
982 val &= adv; in sis190_phy_task()
/linux-4.4.14/drivers/net/ethernet/realtek/
Dr8169.c818 int (*set_speed)(struct net_device *, u8 aneg, u16 sp, u8 dpx, u32 adv);
1913 u8 autoneg, u16 speed, u8 duplex, u32 adv) in rtl8169_set_speed_xmii() argument
1928 if (adv & ADVERTISED_10baseT_Half) in rtl8169_set_speed_xmii()
1930 if (adv & ADVERTISED_10baseT_Full) in rtl8169_set_speed_xmii()
1932 if (adv & ADVERTISED_100baseT_Half) in rtl8169_set_speed_xmii()
1934 if (adv & ADVERTISED_100baseT_Full) in rtl8169_set_speed_xmii()
1944 if (adv & ADVERTISED_1000baseT_Half) in rtl8169_set_speed_xmii()
1946 if (adv & ADVERTISED_1000baseT_Full) in rtl8169_set_speed_xmii()
1948 } else if (adv & (ADVERTISED_1000baseT_Half | in rtl8169_set_speed_xmii()
4550 u32 adv; in rtl_speed_down() local
[all …]
/linux-4.4.14/drivers/net/usb/
Dr8152.c3716 u32 ocp_data, lp, adv, supported = 0; in r8152_get_eee() local
3723 adv = mmd_eee_adv_to_ethtool_adv_t(val); in r8152_get_eee()
3732 eee->eee_active = !!(supported & adv & lp); in r8152_get_eee()
3734 eee->advertised = adv; in r8152_get_eee()
3756 u32 ocp_data, lp, adv, supported = 0; in r8153_get_eee() local
3763 adv = mmd_eee_adv_to_ethtool_adv_t(val); in r8153_get_eee()
3772 eee->eee_active = !!(supported & adv & lp); in r8153_get_eee()
3774 eee->advertised = adv; in r8153_get_eee()
Dax88179_178a.c682 u32 lp, cap, adv, supported = 0; in ax88179_chk_eee() local
715 adv = mmd_eee_adv_to_ethtool_adv_t(eee_adv); in ax88179_chk_eee()
721 if (!(lp & adv & supported)) { in ax88179_chk_eee()
/linux-4.4.14/drivers/net/ethernet/sun/
Dniu.c1227 u16 adv, lpa; in link_status_1g_rgmii() local
1232 adv = err; in link_status_1g_rgmii()
1733 u16 bmcr, bmsr, adv, estat; in mii_init_common() local
1779 adv = ADVERTISE_CSMA | ADVERTISE_PAUSE_CAP; in mii_init_common()
1782 adv |= ADVERTISE_10HALF; in mii_init_common()
1785 adv |= ADVERTISE_10FULL; in mii_init_common()
1788 adv |= ADVERTISE_100HALF; in mii_init_common()
1791 adv |= ADVERTISE_100FULL; in mii_init_common()
1792 err = mii_write(np, np->phy_addr, MII_ADVERTISE, adv); in mii_init_common()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dich8lan.c820 u16 lpa, pcs_status, adv, adv_addr, lpi_ctrl, data; in e1000_set_eee_pchlan() local
857 ret_val = e1000_read_emi_reg_locked(hw, adv_addr, &adv); in e1000_set_eee_pchlan()
864 if (adv & dev_spec->eee_lp_ability & I82579_EEE_1000_SUPPORTED) in e1000_set_eee_pchlan()
867 if (adv & dev_spec->eee_lp_ability & I82579_EEE_100_SUPPORTED) { in e1000_set_eee_pchlan()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c3019 u16 adv = 0, lp = 0; in bnx2x_eee_an_resolve() local
3023 bnx2x_cl45_read(bp, phy, MDIO_AN_DEVAD, MDIO_AN_REG_EEE_ADV, &adv); in bnx2x_eee_an_resolve()
3028 if (adv & 0x2) { in bnx2x_eee_an_resolve()
3036 if (adv & 0x14) { in bnx2x_eee_an_resolve()
3044 if (adv & 0x68) { in bnx2x_eee_an_resolve()
/linux-4.4.14/
DMAINTAINERS2109 F: net/batman-adv/