Lines Matching refs:pause_flags

847 	u32 pause_flags;  member
3266 static void nv_update_pause(struct net_device *dev, u32 pause_flags) in nv_update_pause() argument
3271 np->pause_flags &= ~(NV_PAUSEFRAME_TX_ENABLE | NV_PAUSEFRAME_RX_ENABLE); in nv_update_pause()
3273 if (np->pause_flags & NV_PAUSEFRAME_RX_CAPABLE) { in nv_update_pause()
3275 if (pause_flags & NV_PAUSEFRAME_RX_ENABLE) { in nv_update_pause()
3277 np->pause_flags |= NV_PAUSEFRAME_RX_ENABLE; in nv_update_pause()
3282 if (np->pause_flags & NV_PAUSEFRAME_TX_CAPABLE) { in nv_update_pause()
3284 if (pause_flags & NV_PAUSEFRAME_TX_ENABLE) { in nv_update_pause()
3295 np->pause_flags |= NV_PAUSEFRAME_TX_ENABLE; in nv_update_pause()
3391 u32 control_1000, status_1000, phyreg, pause_flags, txreg; in nv_update_linkspeed() local
3558 pause_flags = 0; in nv_update_linkspeed()
3561 if (np->autoneg && np->pause_flags & NV_PAUSEFRAME_AUTONEG) { in nv_update_linkspeed()
3568 pause_flags |= NV_PAUSEFRAME_RX_ENABLE; in nv_update_linkspeed()
3569 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ) in nv_update_linkspeed()
3570 pause_flags |= NV_PAUSEFRAME_TX_ENABLE; in nv_update_linkspeed()
3575 pause_flags |= NV_PAUSEFRAME_TX_ENABLE; in nv_update_linkspeed()
3579 pause_flags |= NV_PAUSEFRAME_RX_ENABLE; in nv_update_linkspeed()
3580 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ) in nv_update_linkspeed()
3581 pause_flags |= NV_PAUSEFRAME_TX_ENABLE; in nv_update_linkspeed()
3584 pause_flags |= NV_PAUSEFRAME_RX_ENABLE; in nv_update_linkspeed()
3588 pause_flags = np->pause_flags; in nv_update_linkspeed()
3591 nv_update_pause(dev, pause_flags); in nv_update_linkspeed()
4493 …if (np->pause_flags & NV_PAUSEFRAME_RX_REQ) /* for rx we set both advertisements but disable tx p… in nv_set_link_ksettings()
4495 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ) in nv_set_link_ksettings()
4537 np->pause_flags &= ~(NV_PAUSEFRAME_AUTONEG|NV_PAUSEFRAME_RX_ENABLE|NV_PAUSEFRAME_TX_ENABLE); in nv_set_link_ksettings()
4538 …if (np->pause_flags & NV_PAUSEFRAME_RX_REQ) {/* for rx we set both advertisements but disable tx p… in nv_set_link_ksettings()
4540 np->pause_flags |= NV_PAUSEFRAME_RX_ENABLE; in nv_set_link_ksettings()
4542 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ) { in nv_set_link_ksettings()
4544 np->pause_flags |= NV_PAUSEFRAME_TX_ENABLE; in nv_set_link_ksettings()
4799 pause->autoneg = (np->pause_flags & NV_PAUSEFRAME_AUTONEG) != 0; in nv_get_pauseparam()
4800 pause->rx_pause = (np->pause_flags & NV_PAUSEFRAME_RX_ENABLE) != 0; in nv_get_pauseparam()
4801 pause->tx_pause = (np->pause_flags & NV_PAUSEFRAME_TX_ENABLE) != 0; in nv_get_pauseparam()
4814 if (pause->tx_pause && !(np->pause_flags & NV_PAUSEFRAME_TX_CAPABLE)) { in nv_set_pauseparam()
4832 np->pause_flags &= ~(NV_PAUSEFRAME_RX_REQ|NV_PAUSEFRAME_TX_REQ); in nv_set_pauseparam()
4834 np->pause_flags |= NV_PAUSEFRAME_RX_REQ; in nv_set_pauseparam()
4836 np->pause_flags |= NV_PAUSEFRAME_TX_REQ; in nv_set_pauseparam()
4839 np->pause_flags |= NV_PAUSEFRAME_AUTONEG; in nv_set_pauseparam()
4843 …if (np->pause_flags & NV_PAUSEFRAME_RX_REQ) /* for rx we set both advertisements but disable tx pa… in nv_set_pauseparam()
4845 if (np->pause_flags & NV_PAUSEFRAME_TX_REQ) in nv_set_pauseparam()
4855 np->pause_flags &= ~(NV_PAUSEFRAME_AUTONEG|NV_PAUSEFRAME_RX_ENABLE|NV_PAUSEFRAME_TX_ENABLE); in nv_set_pauseparam()
4857 np->pause_flags |= NV_PAUSEFRAME_RX_ENABLE; in nv_set_pauseparam()
4859 np->pause_flags |= NV_PAUSEFRAME_TX_ENABLE; in nv_set_pauseparam()
4864 nv_update_pause(dev, np->pause_flags); in nv_set_pauseparam()
5484 if (np->pause_flags & NV_PAUSEFRAME_TX_CAPABLE) in nv_open()
5834 np->pause_flags = NV_PAUSEFRAME_RX_CAPABLE | NV_PAUSEFRAME_RX_REQ | NV_PAUSEFRAME_AUTONEG; in nv_probe()
5838 np->pause_flags |= NV_PAUSEFRAME_TX_CAPABLE | NV_PAUSEFRAME_TX_REQ; in nv_probe()