Lines Matching refs:pause_info
261 struct hinic_pause_config pause_info = { 0 }; in hinic_get_link_ksettings() local
310 err = hinic_get_hw_pause_info(nic_dev->hwdev, &pause_info); in hinic_get_link_ksettings()
314 if (pause_info.rx_pause && pause_info.tx_pause) { in hinic_get_link_ksettings()
316 } else if (pause_info.tx_pause) { in hinic_get_link_ksettings()
318 } else if (pause_info.rx_pause) { in hinic_get_link_ksettings()
830 struct hinic_pause_config pause_info = {0}; in hinic_get_pauseparam() local
836 err = hinic_get_hw_pause_info(nic_dev->hwdev, &pause_info); in hinic_get_pauseparam()
838 pause->autoneg = pause_info.auto_neg; in hinic_get_pauseparam()
839 if (nic_cfg->pause_set || !pause_info.auto_neg) { in hinic_get_pauseparam()
843 pause->rx_pause = pause_info.rx_pause; in hinic_get_pauseparam()
844 pause->tx_pause = pause_info.tx_pause; in hinic_get_pauseparam()
853 struct hinic_pause_config pause_info = {0}; in hinic_set_pauseparam() local
864 pause_info.auto_neg = pause->autoneg; in hinic_set_pauseparam()
865 pause_info.rx_pause = pause->rx_pause; in hinic_set_pauseparam()
866 pause_info.tx_pause = pause->tx_pause; in hinic_set_pauseparam()
869 err = hinic_set_hw_pause_info(nic_dev->hwdev, &pause_info); in hinic_set_pauseparam()