/linux/drivers/net/ethernet/asix/ |
A 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/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_ethtool.c | 373 struct ethtool_pauseparam *pause) in pch_gbe_get_pauseparam() argument 378 pause->autoneg = in pch_gbe_get_pauseparam() 382 pause->rx_pause = 1; in pch_gbe_get_pauseparam() 384 pause->tx_pause = 1; in pch_gbe_get_pauseparam() 386 pause->rx_pause = 1; in pch_gbe_get_pauseparam() 387 pause->tx_pause = 1; in pch_gbe_get_pauseparam() 406 hw->mac.fc_autoneg = pause->autoneg; in pch_gbe_set_pauseparam() 407 if ((pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam() 409 else if ((pause->rx_pause) && (!pause->tx_pause)) in pch_gbe_set_pauseparam() 411 else if ((!pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam() [all …]
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
A D | emac-ethtool.c | 170 struct ethtool_pauseparam *pause) in emac_get_pauseparam() argument 174 pause->autoneg = adpt->automatic ? AUTONEG_ENABLE : AUTONEG_DISABLE; in emac_get_pauseparam() 175 pause->rx_pause = adpt->rx_flow_control ? 1 : 0; in emac_get_pauseparam() 176 pause->tx_pause = adpt->tx_flow_control ? 1 : 0; in emac_get_pauseparam() 180 struct ethtool_pauseparam *pause) in emac_set_pauseparam() argument 184 adpt->automatic = pause->autoneg == AUTONEG_ENABLE; in emac_set_pauseparam() 185 adpt->rx_flow_control = pause->rx_pause != 0; in emac_set_pauseparam() 186 adpt->tx_flow_control = pause->tx_pause != 0; in emac_set_pauseparam()
|
/linux/drivers/net/phy/ |
A D | phylink.c | 451 state->pause = pl->link_config.pause; in phylink_apply_manual_flow() 597 state->pause = pl->link_config.pause; in phylink_mac_pcs_get_state() 779 link_state.pause = pl->phy_state.pause; in phylink_resolve() 1780 pause->autoneg = !!(pl->link_config.pause & MLO_PAUSE_AN); in phylink_ethtool_get_pauseparam() 1781 pause->rx_pause = !!(pl->link_config.pause & MLO_PAUSE_RX); in phylink_ethtool_get_pauseparam() 1782 pause->tx_pause = !!(pl->link_config.pause & MLO_PAUSE_TX); in phylink_ethtool_get_pauseparam() 1808 pause->rx_pause != pause->tx_pause) in phylink_ethtool_set_pauseparam() 1812 if (pause->autoneg) in phylink_ethtool_set_pauseparam() 1814 if (pause->rx_pause) in phylink_ethtool_set_pauseparam() 1816 if (pause->tx_pause) in phylink_ethtool_set_pauseparam() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A 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/drivers/net/netdevsim/ |
A 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/drivers/net/ethernet/atheros/alx/ |
A 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/tools/testing/selftests/drivers/net/netdevsim/ |
A 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/drivers/net/ethernet/qlogic/netxen/ |
A D | netxen_nic_ethtool.c | 473 struct ethtool_pauseparam *pause) in netxen_nic_get_pauseparam() argument 479 pause->autoneg = 0; in netxen_nic_get_pauseparam() 506 pause->rx_pause = 1; in netxen_nic_get_pauseparam() 527 if (pause->autoneg) in netxen_nic_set_pauseparam() 537 if (pause->rx_pause) in netxen_nic_set_pauseparam() 548 if (pause->tx_pause) in netxen_nic_set_pauseparam() 554 if (pause->tx_pause) in netxen_nic_set_pauseparam() 560 if (pause->tx_pause) in netxen_nic_set_pauseparam() 567 if (pause->tx_pause) in netxen_nic_set_pauseparam() 579 if (pause->tx_pause) in netxen_nic_set_pauseparam() [all …]
|
/linux/drivers/net/ethernet/intel/ixgb/ |
A D | ixgb_ethtool.c | 133 struct ethtool_pauseparam *pause) in ixgb_get_pauseparam() argument 138 pause->autoneg = AUTONEG_DISABLE; in ixgb_get_pauseparam() 141 pause->rx_pause = 1; in ixgb_get_pauseparam() 143 pause->tx_pause = 1; in ixgb_get_pauseparam() 145 pause->rx_pause = 1; in ixgb_get_pauseparam() 146 pause->tx_pause = 1; in ixgb_get_pauseparam() 152 struct ethtool_pauseparam *pause) in ixgb_set_pauseparam() argument 160 if (pause->rx_pause && pause->tx_pause) in ixgb_set_pauseparam() 162 else if (pause->rx_pause && !pause->tx_pause) in ixgb_set_pauseparam() 164 else if (!pause->rx_pause && pause->tx_pause) in ixgb_set_pauseparam() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxbf_gige/ |
A D | mlxbf_gige_ethtool.c | 119 struct ethtool_pauseparam *pause) in mlxbf_gige_get_pauseparam() argument 121 pause->autoneg = AUTONEG_DISABLE; in mlxbf_gige_get_pauseparam() 122 pause->rx_pause = 1; in mlxbf_gige_get_pauseparam() 123 pause->tx_pause = 1; in mlxbf_gige_get_pauseparam()
|
/linux/drivers/net/ethernet/freescale/ |
A 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/Documentation/devicetree/bindings/net/ |
A 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 211 pause: 214 Indicates that pause should be enabled. 216 asym-pause:
|
/linux/drivers/macintosh/ |
A D | rack-meter.c | 145 static void rackmeter_do_pause(struct rackmeter *rm, int pause) in rackmeter_do_pause() argument 149 pr_debug("rackmeter: %s\n", pause ? "paused" : "started"); in rackmeter_do_pause() 151 rm->paused = pause; in rackmeter_do_pause() 152 if (pause) { in rackmeter_do_pause() 221 int i, offset, load, cumm, pause; in rackmeter_do_timer() local 247 pause = (rm->cpu[0].zero && rm->cpu[1].zero); in rackmeter_do_timer() 248 if (pause != rm->paused) { in rackmeter_do_timer() 250 pause = (rm->cpu[0].zero && rm->cpu[1].zero); in rackmeter_do_timer() 251 rackmeter_do_pause(rm, pause); in rackmeter_do_timer()
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_phylink.c | 122 conf.pause = 0; in sparx5_phylink_mac_link_up() 123 conf.pause |= tx_pause ? MLO_PAUSE_TX : 0; in sparx5_phylink_mac_link_up() 124 conf.pause |= rx_pause ? MLO_PAUSE_RX : 0; in sparx5_phylink_mac_link_up() 155 state->pause = status.pause; in sparx5_pcs_get_state()
|
/linux/drivers/net/ethernet/amd/xgbe/ |
A 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/drivers/ata/ |
A D | pata_octeon_cf.c | 139 int pause; in octeon_cf_set_piomode() local 163 pause = (int)timing.cycle - (int)timing.active - in octeon_cf_set_piomode() 165 if (pause < 0) in octeon_cf_set_piomode() 166 pause = 0; in octeon_cf_set_piomode() 167 if (pause) in octeon_cf_set_piomode() 168 pause--; in octeon_cf_set_piomode() 192 reg_tim.s.pause = pause; in octeon_cf_set_piomode() 223 unsigned int pause; in octeon_cf_set_dmamode() local 242 pause = 25 - dma_arq * 1000 / in octeon_cf_set_dmamode() 268 dma_tim.s.pause = ns_to_tim_reg(tim_mult, pause); in octeon_cf_set_dmamode() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-ethtool.c | 125 struct ethtool_pauseparam *pause) in dpaa2_eth_get_pauseparam() argument 131 phylink_ethtool_get_pauseparam(priv->mac->phylink, pause); in dpaa2_eth_get_pauseparam() 135 pause->rx_pause = dpaa2_eth_rx_pause_enabled(link_options); in dpaa2_eth_get_pauseparam() 136 pause->tx_pause = dpaa2_eth_tx_pause_enabled(link_options); in dpaa2_eth_get_pauseparam() 137 pause->autoneg = AUTONEG_DISABLE; in dpaa2_eth_get_pauseparam() 141 struct ethtool_pauseparam *pause) in dpaa2_eth_set_pauseparam() argument 155 pause); in dpaa2_eth_set_pauseparam() 156 if (pause->autoneg) in dpaa2_eth_set_pauseparam() 161 if (pause->rx_pause) in dpaa2_eth_set_pauseparam() 165 if (!!pause->rx_pause ^ !!pause->tx_pause) in dpaa2_eth_set_pauseparam()
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_ethtool.c | 785 struct ethtool_pauseparam *pause) in qlcnic_get_pauseparam() argument 825 pause->rx_pause = 1; in qlcnic_get_pauseparam() 841 struct ethtool_pauseparam *pause) in qlcnic_set_pauseparam() argument 860 if (pause->rx_pause) in qlcnic_set_pauseparam() 874 if (pause->tx_pause) in qlcnic_set_pauseparam() 880 if (pause->tx_pause) in qlcnic_set_pauseparam() 886 if (pause->tx_pause) in qlcnic_set_pauseparam() 893 if (pause->tx_pause) in qlcnic_set_pauseparam() 901 if (!pause->rx_pause || pause->autoneg) in qlcnic_set_pauseparam() 911 if (pause->tx_pause) in qlcnic_set_pauseparam() [all …]
|
/linux/drivers/net/ethernet/ibm/emac/ |
A D | phy.c | 117 phy->pause = phy->asym_pause = 0; in genmii_setup_aneg() 176 phy->pause = phy->asym_pause = 0; in genmii_setup_forced() 241 phy->pause = phy->asym_pause = 0; in genmii_read_link() 255 phy->pause = lpa & LPA_PAUSE_CAP ? 1 : 0; in genmii_read_link() 274 phy->pause = phy->asym_pause = 0; in genmii_read_link() 521 phy->pause = phy->asym_pause = 0; in emac_mii_phy_probe()
|
/linux/drivers/net/ethernet/cavium/thunder/ |
A D | nicvf_ethtool.c | 780 struct ethtool_pauseparam *pause) in nicvf_get_pauseparam() argument 794 pause->autoneg = nic->pfc.autoneg; in nicvf_get_pauseparam() 795 pause->rx_pause = nic->pfc.fc_rx; in nicvf_get_pauseparam() 796 pause->tx_pause = nic->pfc.fc_tx; in nicvf_get_pauseparam() 801 struct ethtool_pauseparam *pause) in nicvf_set_pauseparam() argument 812 if (pause->autoneg) in nicvf_set_pauseparam() 817 mbx.pfc.fc_rx = pause->rx_pause; in nicvf_set_pauseparam() 818 mbx.pfc.fc_tx = pause->tx_pause; in nicvf_set_pauseparam() 822 nic->pfc.fc_rx = pause->rx_pause; in nicvf_set_pauseparam() 823 nic->pfc.fc_tx = pause->tx_pause; in nicvf_set_pauseparam()
|
/linux/drivers/net/ |
A D | sungem_phy.c | 321 phy->pause = 0; in genmii_setup_aneg() 352 phy->pause = 0; in genmii_setup_forced() 406 phy->pause = 0; in genmii_read_link() 476 phy->pause = 0; in bcm54xx_setup_aneg() 520 phy->pause = 0; in bcm54xx_setup_forced() 564 phy->pause = (phy->duplex == DUPLEX_FULL) && in bcm54xx_read_link() 752 phy->pause = 0; in marvell_setup_aneg() 803 phy->pause = 0; in marvell_setup_forced() 866 phy->pause = (status & pmask) == pmask; in marvell_read_link() 1194 phy->pause = 0; in sungem_phy_probe()
|
/linux/mm/ |
A D | page-writeback.c | 1500 if (pause > max_pause) { in wb_min_pause() 1571 long pause; in balance_dirty_pages() local 1739 pause = max_pause; in balance_dirty_pages() 1740 goto pause; in balance_dirty_pages() 1743 pause = period; in balance_dirty_pages() 1753 if (pause < min_pause) { in balance_dirty_pages() 1764 min(pause, 0L), in balance_dirty_pages() 1766 if (pause < -HZ) { in balance_dirty_pages() 1779 pause = max_pause; in balance_dirty_pages() 1782 pause: in balance_dirty_pages() [all …]
|
/linux/Documentation/input/ |
A D | uinput.rst | 87 * device. We are inserting a pause here so that userspace has time 90 * to send. This pause is only needed in our example code! 150 * device. We are inserting a pause here so that userspace has time 153 * to send. This pause is only needed in our example code! 221 * device. We are inserting a pause here so that userspace has time 224 * to send. This pause is only needed in our example code!
|
/linux/drivers/staging/qlge/ |
A D | qlge_ethtool.c | 684 struct ethtool_pauseparam *pause) in qlge_get_pauseparam() argument 690 pause->rx_pause = 1; in qlge_get_pauseparam() 691 pause->tx_pause = 1; in qlge_get_pauseparam() 696 struct ethtool_pauseparam *pause) in qlge_set_pauseparam() argument 700 if ((pause->rx_pause) && (pause->tx_pause)) in qlge_set_pauseparam() 702 else if (!pause->rx_pause && !pause->tx_pause) in qlge_set_pauseparam()
|