Home
last modified time | relevance | path

Searched refs:pause (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/linux/drivers/net/ethernet/asix/
H A Dax88796c_ioctl.c45 ax88796c_get_pauseparam(struct net_device *ndev, struct ethtool_pauseparam *pause) in ax88796c_get_pauseparam() argument
49 pause->tx_pause = !!(ax_local->flowctrl & AX_FC_TX); in ax88796c_get_pauseparam()
50 pause->rx_pause = !!(ax_local->flowctrl & AX_FC_RX); in ax88796c_get_pauseparam()
51 pause->autoneg = (ax_local->flowctrl & AX_FC_ANEG) ? in ax88796c_get_pauseparam()
57 ax88796c_set_pauseparam(struct net_device *ndev, struct ethtool_pauseparam *pause) in ax88796c_set_pauseparam() argument
63 fc = pause->tx_pause ? AX_FC_TX : 0; in ax88796c_set_pauseparam()
64 fc |= pause->rx_pause ? AX_FC_RX : 0; in ax88796c_set_pauseparam()
65 fc |= pause->autoneg ? AX_FC_ANEG : 0; in ax88796c_set_pauseparam()
69 if (pause->autoneg) { in ax88796c_set_pauseparam()
70 phy_set_asym_pause(ax_local->phydev, pause->tx_pause, in ax88796c_set_pauseparam()
[all …]
/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_ethtool.c381 struct ethtool_pauseparam *pause) in pch_gbe_get_pauseparam() argument
386 pause->autoneg = in pch_gbe_get_pauseparam()
390 pause->rx_pause = 1; in pch_gbe_get_pauseparam()
392 pause->tx_pause = 1; in pch_gbe_get_pauseparam()
394 pause->rx_pause = 1; in pch_gbe_get_pauseparam()
395 pause->tx_pause = 1; in pch_gbe_get_pauseparam()
408 struct ethtool_pauseparam *pause) in pch_gbe_set_pauseparam() argument
414 hw->mac.fc_autoneg = pause->autoneg; in pch_gbe_set_pauseparam()
415 if ((pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam()
417 else if ((pause->rx_pause) && (!pause->tx_pause)) in pch_gbe_set_pauseparam()
[all …]
/linux/drivers/net/ethernet/qualcomm/emac/
H A Demac-ethtool.c174 struct ethtool_pauseparam *pause) in emac_get_pauseparam() argument
178 pause->autoneg = adpt->automatic ? AUTONEG_ENABLE : AUTONEG_DISABLE; in emac_get_pauseparam()
179 pause->rx_pause = adpt->rx_flow_control ? 1 : 0; in emac_get_pauseparam()
180 pause->tx_pause = adpt->tx_flow_control ? 1 : 0; in emac_get_pauseparam()
184 struct ethtool_pauseparam *pause) in emac_set_pauseparam() argument
188 adpt->automatic = pause->autoneg == AUTONEG_ENABLE; in emac_set_pauseparam()
189 adpt->rx_flow_control = pause->rx_pause != 0; in emac_set_pauseparam()
190 adpt->tx_flow_control = pause->tx_pause != 0; in emac_set_pauseparam()
/linux/net/ipv4/
H A Dtcp_plb.c94 u32 pause; in tcp_plb_update_state_upon_rto() local
99 pause = READ_ONCE(net->ipv4.sysctl_tcp_plb_suspend_rto_sec) * HZ; in tcp_plb_update_state_upon_rto()
100 pause += get_random_u32_below(pause); in tcp_plb_update_state_upon_rto()
101 plb->pause_until = tcp_jiffies32 + pause; in tcp_plb_update_state_upon_rto()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dvsc8211.c134 int err, sp = -1, dplx = -1, pause = 0; in vsc8211_get_link_status() local
187 pause = PAUSE_RX | PAUSE_TX; in vsc8211_get_link_status()
191 pause = PAUSE_TX; in vsc8211_get_link_status()
194 pause = PAUSE_RX; in vsc8211_get_link_status()
202 *fc = pause; in vsc8211_get_link_status()
210 int err, sp = -1, dplx = -1, pause = 0; in vsc8211_get_link_status_fiber() local
256 pause = PAUSE_RX | PAUSE_TX; in vsc8211_get_link_status_fiber()
259 pause = PAUSE_TX; in vsc8211_get_link_status_fiber()
262 pause = PAUSE_RX; in vsc8211_get_link_status_fiber()
270 *fc = pause; in vsc8211_get_link_status_fiber()
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-pause.sh16 echo n > $NSIM_DEV_DFS/ethtool/pause/report_stats_tx
17 echo n > $NSIM_DEV_DFS/ethtool/pause/report_stats_rx
25 echo y > $NSIM_DEV_DFS/ethtool/pause/report_stats_tx
33 echo y > $NSIM_DEV_DFS/ethtool/pause/report_stats_rx
/linux/drivers/net/ethernet/atheros/alx/
H A Dethtool.c213 struct ethtool_pauseparam *pause) in alx_get_pauseparam() argument
219 pause->autoneg = !!(hw->flowctrl & ALX_FC_ANEG && in alx_get_pauseparam()
221 pause->tx_pause = !!(hw->flowctrl & ALX_FC_TX); in alx_get_pauseparam()
222 pause->rx_pause = !!(hw->flowctrl & ALX_FC_RX); in alx_get_pauseparam()
228 struct ethtool_pauseparam *pause) in alx_set_pauseparam() argument
236 if (pause->tx_pause) in alx_set_pauseparam()
238 if (pause->rx_pause) in alx_set_pauseparam()
240 if (pause->autoneg) in alx_set_pauseparam()
/linux/tools/testing/selftests/cgroup/
H A Dtest_cpuset_prs.sh112 pause() function
130 pause 0.01
425 pause 0.05
506 pause 0.01
542 pause 0.02
544 pause 0.01
697 pause 0.05
764 pause 0.02
851 pause 0.02
960 pause 0.01
[all …]
/linux/drivers/net/netdevsim/
H A Dethtool.c23 nsim_get_pauseparam(struct net_device *dev, struct ethtool_pauseparam *pause) in nsim_get_pauseparam() argument
27 pause->autoneg = 0; /* We don't support ksettings, so can't pretend */ in nsim_get_pauseparam()
28 pause->rx_pause = ns->ethtool.pauseparam.rx; in nsim_get_pauseparam()
29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam()
33 nsim_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam *pause) in nsim_set_pauseparam() argument
37 if (pause->autoneg) in nsim_set_pauseparam()
40 ns->ethtool.pauseparam.rx = pause->rx_pause; in nsim_set_pauseparam()
41 ns->ethtool.pauseparam.tx = pause->tx_pause; in nsim_set_pauseparam()
/linux/drivers/net/ethernet/davicom/
H A Ddm9051.c109 struct ethtool_pauseparam pause; member
262 if (db->pause.rx_pause) in dm9051_set_fcr()
264 if (db->pause.tx_pause) in dm9051_set_fcr()
307 if (db->pause.rx_pause) in dm9051_update_fcr()
309 if (db->pause.tx_pause) in dm9051_update_fcr()
633 struct ethtool_pauseparam *pause) in dm9051_get_pauseparam() argument
637 *pause = db->pause; in dm9051_get_pauseparam()
641 struct ethtool_pauseparam *pause) in dm9051_set_pauseparam() argument
645 db->pause = *pause; in dm9051_set_pauseparam()
647 if (pause->autoneg == AUTONEG_DISABLE) in dm9051_set_pauseparam()
[all …]
/linux/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_ethtool.c477 struct ethtool_pauseparam *pause) in netxen_nic_get_pauseparam() argument
483 pause->autoneg = 0; in netxen_nic_get_pauseparam()
490 pause->rx_pause = netxen_gb_get_rx_flowctl(val); in netxen_nic_get_pauseparam()
494 pause->tx_pause = !(netxen_gb_get_gb0_mask(val)); in netxen_nic_get_pauseparam()
497 pause->tx_pause = !(netxen_gb_get_gb1_mask(val)); in netxen_nic_get_pauseparam()
500 pause->tx_pause = !(netxen_gb_get_gb2_mask(val)); in netxen_nic_get_pauseparam()
504 pause->tx_pause = !(netxen_gb_get_gb3_mask(val)); in netxen_nic_get_pauseparam()
510 pause->rx_pause = 1; in netxen_nic_get_pauseparam()
513 pause->tx_pause = !(netxen_xg_get_xg0_mask(val)); in netxen_nic_get_pauseparam()
515 pause->tx_pause = !(netxen_xg_get_xg1_mask(val)); in netxen_nic_get_pauseparam()
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_phylink.c58 conf.pause = 0; in sparx5_phylink_mac_link_up()
59 conf.pause |= tx_pause ? MLO_PAUSE_TX : 0; in sparx5_phylink_mac_link_up()
60 conf.pause |= rx_pause ? MLO_PAUSE_RX : 0; in sparx5_phylink_mac_link_up()
91 state->pause = status.pause; in sparx5_pcs_get_state()
/linux/drivers/net/phy/
H A Dphylink.c778 bool pause, asym_pause, autoneg; in phylink_parse_fixedlink() local
851 pause = phylink_test(pl->supported, Pause); in phylink_parse_fixedlink()
859 if (pause) in phylink_parse_fixedlink()
969 state->pause &= ~MLO_PAUSE_AN; in phylink_apply_manual_flow()
972 if (!(pl->link_config.pause & MLO_PAUSE_AN)) in phylink_apply_manual_flow()
973 state->pause = pl->link_config.pause; in phylink_apply_manual_flow()
985 state->pause |= MLO_PAUSE_TX; in phylink_resolve_an_pause()
987 state->pause |= MLO_PAUSE_RX; in phylink_resolve_an_pause()
1089 st.pause); in phylink_mac_config()
1239 !!(pl->link_config.pause & MLO_PAUSE_AN)); in phylink_major_config()
[all …]
/linux/arch/arm/boot/dts/mediatek/
H A Dmt7623a.dtsi27 pause;
38 pause;
102 pause;
115 pause;
/linux/drivers/net/ethernet/freescale/
H A Ducc_geth_ethtool.c132 struct ethtool_pauseparam *pause) in uec_get_pauseparam() argument
136 pause->autoneg = ugeth->phydev->autoneg; in uec_get_pauseparam()
139 pause->rx_pause = 1; in uec_get_pauseparam()
141 pause->tx_pause = 1; in uec_get_pauseparam()
146 struct ethtool_pauseparam *pause) in uec_set_pauseparam() argument
151 ugeth->ug_info->receiveFlowControl = pause->rx_pause; in uec_set_pauseparam()
152 ugeth->ug_info->transmitFlowControl = pause->tx_pause; in uec_set_pauseparam()
/linux/drivers/net/ethernet/mellanox/mlxbf_gige/
H A Dmlxbf_gige_ethtool.c120 struct ethtool_pauseparam *pause) in mlxbf_gige_get_pauseparam() argument
122 pause->autoneg = AUTONEG_DISABLE; in mlxbf_gige_get_pauseparam()
123 pause->rx_pause = 1; in mlxbf_gige_get_pauseparam()
124 pause->tx_pause = 1; in mlxbf_gige_get_pauseparam()
/linux/drivers/macintosh/
H A Drack-meter.c144 static void rackmeter_do_pause(struct rackmeter *rm, int pause) in rackmeter_do_pause() argument
148 pr_debug("rackmeter: %s\n", pause ? "paused" : "started"); in rackmeter_do_pause()
150 rm->paused = pause; in rackmeter_do_pause()
151 if (pause) { in rackmeter_do_pause()
220 int i, offset, load, cumm, pause; in rackmeter_do_timer() local
246 pause = (rm->cpu[0].zero && rm->cpu[1].zero); in rackmeter_do_timer()
247 if (pause != rm->paused) { in rackmeter_do_timer()
249 pause = (rm->cpu[0].zero && rm->cpu[1].zero); in rackmeter_do_timer()
250 rackmeter_do_pause(rm, pause); in rackmeter_do_timer()
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt7986b-rfb.dts44 pause;
56 pause;
106 pause;
119 pause;
/linux/drivers/ata/
H A Dpata_octeon_cf.c136 int pause; in octeon_cf_set_piomode() local
160 pause = (int)timing.cycle - (int)timing.active - in octeon_cf_set_piomode()
162 if (pause < 0) in octeon_cf_set_piomode()
163 pause = 0; in octeon_cf_set_piomode()
164 if (pause) in octeon_cf_set_piomode()
165 pause--; in octeon_cf_set_piomode()
189 reg_tim.s.pause = pause; in octeon_cf_set_piomode()
220 unsigned int pause; in octeon_cf_set_dmamode() local
239 pause = 25 - dma_arq * 1000 / in octeon_cf_set_dmamode()
265 dma_tim.s.pause = ns_to_tim_reg(tim_mult, pause); in octeon_cf_set_dmamode()
[all …]
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c261 struct ethtool_pauseparam *pause) in xgbe_get_pauseparam() argument
265 pause->autoneg = pdata->phy.pause_autoneg; in xgbe_get_pauseparam()
266 pause->tx_pause = pdata->phy.tx_pause; in xgbe_get_pauseparam()
267 pause->rx_pause = pdata->phy.rx_pause; in xgbe_get_pauseparam()
271 struct ethtool_pauseparam *pause) in xgbe_set_pauseparam() argument
277 if (pause->autoneg && (pdata->phy.autoneg != AUTONEG_ENABLE)) { in xgbe_set_pauseparam()
283 pdata->phy.pause_autoneg = pause->autoneg; in xgbe_set_pauseparam()
284 pdata->phy.tx_pause = pause->tx_pause; in xgbe_set_pauseparam()
285 pdata->phy.rx_pause = pause->rx_pause; in xgbe_set_pauseparam()
290 if (pause->rx_pause) { in xgbe_set_pauseparam()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_phylink.c58 port_config->pause = 0; in lan966x_phylink_mac_link_up()
59 port_config->pause |= tx_pause ? MLO_PAUSE_TX : 0; in lan966x_phylink_mac_link_up()
60 port_config->pause |= rx_pause ? MLO_PAUSE_RX : 0; in lan966x_phylink_mac_link_up()
/linux/Documentation/netlink/specs/
H A Dethtool.yaml1512 attributes: &pause
1528 attributes: *pause
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_ethtool.c789 struct ethtool_pauseparam *pause) in qlcnic_get_pauseparam() argument
797 qlcnic_83xx_get_pauseparam(adapter, pause); in qlcnic_get_pauseparam()
807 pause->rx_pause = qlcnic_gb_get_rx_flowctl(val); in qlcnic_get_pauseparam()
813 pause->tx_pause = !(qlcnic_gb_get_gb0_mask(val)); in qlcnic_get_pauseparam()
816 pause->tx_pause = !(qlcnic_gb_get_gb1_mask(val)); in qlcnic_get_pauseparam()
819 pause->tx_pause = !(qlcnic_gb_get_gb2_mask(val)); in qlcnic_get_pauseparam()
823 pause->tx_pause = !(qlcnic_gb_get_gb3_mask(val)); in qlcnic_get_pauseparam()
829 pause->rx_pause = 1; in qlcnic_get_pauseparam()
834 pause->tx_pause = !(qlcnic_xg_get_xg0_mask(val)); in qlcnic_get_pauseparam()
836 pause->tx_pause = !(qlcnic_xg_get_xg1_mask(val)); in qlcnic_get_pauseparam()
[all …]
/linux/Documentation/leds/
H A Dleds-qcom-lpg.rst55 in the pattern, the so called "low pause" and "high pause".
57 Low-pause pattern::
75 driver when the given pattern is a palindrome. In this case the "high pause"
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c145 struct ethtool_pauseparam *pause) in dpaa2_eth_get_pauseparam() argument
153 phylink_ethtool_get_pauseparam(priv->mac->phylink, pause); in dpaa2_eth_get_pauseparam()
160 pause->rx_pause = dpaa2_eth_rx_pause_enabled(link_options); in dpaa2_eth_get_pauseparam()
161 pause->tx_pause = dpaa2_eth_tx_pause_enabled(link_options); in dpaa2_eth_get_pauseparam()
162 pause->autoneg = AUTONEG_DISABLE; in dpaa2_eth_get_pauseparam()
166 struct ethtool_pauseparam *pause) in dpaa2_eth_set_pauseparam() argument
182 pause); in dpaa2_eth_set_pauseparam()
189 if (pause->autoneg) in dpaa2_eth_set_pauseparam()
194 if (pause->rx_pause) in dpaa2_eth_set_pauseparam()
198 if (!!pause->rx_pause ^ !!pause->tx_pause) in dpaa2_eth_set_pauseparam()

12345678910>>...15