Lines Matching defs:pause_flags
827 u32 pause_flags;
3080 static void nv_update_pause(struct net_device *dev, u32 pause_flags)
3085 np->pause_flags &= ~(NV_PAUSEFRAME_TX_ENABLE | NV_PAUSEFRAME_RX_ENABLE);
3087 if (np->pause_flags & NV_PAUSEFRAME_RX_CAPABLE) {
3089 if (pause_flags & NV_PAUSEFRAME_RX_ENABLE) {
3091 np->pause_flags |= NV_PAUSEFRAME_RX_ENABLE;
3096 if (np->pause_flags & NV_PAUSEFRAME_TX_CAPABLE) {
3098 if (pause_flags & NV_PAUSEFRAME_TX_ENABLE) {
3109 np->pause_flags |= NV_PAUSEFRAME_TX_ENABLE;
3139 u32 control_1000, status_1000, phyreg, pause_flags, txreg;
3305 pause_flags = 0;
3308 if (np->autoneg && np->pause_flags & NV_PAUSEFRAME_AUTONEG) {
3315 pause_flags |= NV_PAUSEFRAME_RX_ENABLE;
3316 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ)
3317 pause_flags |= NV_PAUSEFRAME_TX_ENABLE;
3323 pause_flags |= NV_PAUSEFRAME_TX_ENABLE;
3329 pause_flags |= NV_PAUSEFRAME_RX_ENABLE;
3330 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ)
3331 pause_flags |= NV_PAUSEFRAME_TX_ENABLE;
3335 pause_flags |= NV_PAUSEFRAME_RX_ENABLE;
3340 pause_flags = np->pause_flags;
3343 nv_update_pause(dev, pause_flags);
4224 if (np->pause_flags & NV_PAUSEFRAME_RX_REQ) /* for rx we set both advertisments but disable tx pause */
4226 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ)
4268 np->pause_flags &= ~(NV_PAUSEFRAME_AUTONEG|NV_PAUSEFRAME_RX_ENABLE|NV_PAUSEFRAME_TX_ENABLE);
4269 if (np->pause_flags & NV_PAUSEFRAME_RX_REQ) {/* for rx we set both advertisments but disable tx pause */
4271 np->pause_flags |= NV_PAUSEFRAME_RX_ENABLE;
4273 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ) {
4275 np->pause_flags |= NV_PAUSEFRAME_TX_ENABLE;
4527 pause->autoneg = (np->pause_flags & NV_PAUSEFRAME_AUTONEG) != 0;
4528 pause->rx_pause = (np->pause_flags & NV_PAUSEFRAME_RX_ENABLE) != 0;
4529 pause->tx_pause = (np->pause_flags & NV_PAUSEFRAME_TX_ENABLE) != 0;
4543 if (pause->tx_pause && !(np->pause_flags & NV_PAUSEFRAME_TX_CAPABLE)) {
4561 np->pause_flags &= ~(NV_PAUSEFRAME_RX_REQ|NV_PAUSEFRAME_TX_REQ);
4563 np->pause_flags |= NV_PAUSEFRAME_RX_REQ;
4565 np->pause_flags |= NV_PAUSEFRAME_TX_REQ;
4568 np->pause_flags |= NV_PAUSEFRAME_AUTONEG;
4572 if (np->pause_flags & NV_PAUSEFRAME_RX_REQ) /* for rx we set both advertisments but disable tx pause */
4574 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ)
4584 np->pause_flags &= ~(NV_PAUSEFRAME_AUTONEG|NV_PAUSEFRAME_RX_ENABLE|NV_PAUSEFRAME_TX_ENABLE);
4586 np->pause_flags |= NV_PAUSEFRAME_RX_ENABLE;
4588 np->pause_flags |= NV_PAUSEFRAME_TX_ENABLE;
4593 nv_update_pause(dev, np->pause_flags);
5177 if (np->pause_flags & NV_PAUSEFRAME_TX_CAPABLE)
5518 np->pause_flags = NV_PAUSEFRAME_RX_CAPABLE | NV_PAUSEFRAME_RX_REQ | NV_PAUSEFRAME_AUTONEG;
5522 np->pause_flags |= NV_PAUSEFRAME_TX_CAPABLE | NV_PAUSEFRAME_TX_REQ;