/linux-6.6.21/drivers/net/ethernet/asix/ |
D | ax88796c_ioctl.c | 45 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-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 381 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-6.6.21/drivers/net/ethernet/qualcomm/emac/ |
D | emac-ethtool.c | 174 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-6.6.21/net/ipv4/ |
D | tcp_plb.c | 94 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-6.6.21/drivers/net/ethernet/chelsio/cxgb3/ |
D | vsc8211.c | 134 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-6.6.21/tools/testing/selftests/drivers/net/netdevsim/ |
D | ethtool-pause.sh | 16 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-6.6.21/drivers/net/netdevsim/ |
D | ethtool.c | 23 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-6.6.21/drivers/net/ethernet/atheros/alx/ |
D | ethtool.c | 213 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-6.6.21/drivers/net/ethernet/davicom/ |
D | dm9051.c | 109 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-6.6.21/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 477 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-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_phylink.c | 58 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-6.6.21/drivers/net/ethernet/mellanox/mlxbf_gige/ |
D | mlxbf_gige_ethtool.c | 120 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-6.6.21/drivers/net/phy/ |
D | phylink.c | 754 bool pause, asym_pause, autoneg; in phylink_parse_fixedlink() local 827 pause = phylink_test(pl->supported, Pause); in phylink_parse_fixedlink() 835 if (pause) in phylink_parse_fixedlink() 1000 state->pause &= ~MLO_PAUSE_AN; in phylink_apply_manual_flow() 1003 if (!(pl->link_config.pause & MLO_PAUSE_AN)) in phylink_apply_manual_flow() 1004 state->pause = pl->link_config.pause; in phylink_apply_manual_flow() 1016 state->pause |= MLO_PAUSE_TX; in phylink_resolve_an_pause() 1018 state->pause |= MLO_PAUSE_RX; in phylink_resolve_an_pause() 1105 st.pause); in phylink_mac_config() 1188 !!(pl->link_config.pause & MLO_PAUSE_AN)); in phylink_major_config() [all …]
|
/linux-6.6.21/arch/arm/boot/dts/mediatek/ |
D | mt7623a.dtsi | 27 pause; 38 pause; 102 pause; 115 pause;
|
/linux-6.6.21/drivers/net/ethernet/freescale/ |
D | ucc_geth_ethtool.c | 132 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-6.6.21/drivers/macintosh/ |
D | rack-meter.c | 144 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-6.6.21/Documentation/devicetree/bindings/net/ |
D | ethernet-controller.yaml | 187 Pause configuration. 0 for no pause, 1 for pause 191 Asymmetric pause configuration. 0 for no asymmetric 192 pause, 1 for asymmetric pause 208 pause: 211 Indicates that pause should be enabled. 213 asym-pause:
|
/linux-6.6.21/drivers/ata/ |
D | pata_octeon_cf.c | 136 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-6.6.21/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 261 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-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_phylink.c | 58 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-6.6.21/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ethtool.c | 789 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-6.6.21/Documentation/leds/ |
D | leds-qcom-lpg.rst | 55 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-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 145 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()
|
/linux-6.6.21/drivers/net/ethernet/microchip/ |
D | lan743x_ethtool.c | 1338 struct ethtool_pauseparam *pause) in lan743x_get_pauseparam() argument 1344 pause->tx_pause = 1; in lan743x_get_pauseparam() 1346 pause->rx_pause = 1; in lan743x_get_pauseparam() 1347 pause->autoneg = phy->fc_autoneg; in lan743x_get_pauseparam() 1351 struct ethtool_pauseparam *pause) in lan743x_set_pauseparam() argument 1360 if (!phy_validate_pause(phydev, pause)) in lan743x_set_pauseparam() 1364 if (pause->rx_pause) in lan743x_set_pauseparam() 1367 if (pause->tx_pause) in lan743x_set_pauseparam() 1370 phy->fc_autoneg = pause->autoneg; in lan743x_set_pauseparam() 1372 if (pause->autoneg == AUTONEG_DISABLE) in lan743x_set_pauseparam() [all …]
|
/linux-6.6.21/tools/testing/selftests/cgroup/ |
D | test_cpuset_prs.sh | 78 pause() function 96 pause 0.01 336 pause 0.01 410 pause 0.01 447 pause 0.01
|