Lines Matching refs:fc_conf
3181 txgbe_flow_ctrl_get(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf) in txgbe_flow_ctrl_get() argument
3191 fc_conf->pause_time = hw->fc.pause_time; in txgbe_flow_ctrl_get()
3192 fc_conf->high_water = hw->fc.high_water[0]; in txgbe_flow_ctrl_get()
3193 fc_conf->low_water = hw->fc.low_water[0]; in txgbe_flow_ctrl_get()
3194 fc_conf->send_xon = hw->fc.send_xon; in txgbe_flow_ctrl_get()
3195 fc_conf->autoneg = !hw->fc.disable_fc_autoneg; in txgbe_flow_ctrl_get()
3218 fc_conf->mode = RTE_ETH_FC_FULL; in txgbe_flow_ctrl_get()
3220 fc_conf->mode = RTE_ETH_FC_RX_PAUSE; in txgbe_flow_ctrl_get()
3222 fc_conf->mode = RTE_ETH_FC_TX_PAUSE; in txgbe_flow_ctrl_get()
3224 fc_conf->mode = RTE_ETH_FC_NONE; in txgbe_flow_ctrl_get()
3230 txgbe_flow_ctrl_set(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf) in txgbe_flow_ctrl_set() argument
3254 if (fc_conf->high_water > max_high_water || in txgbe_flow_ctrl_set()
3255 fc_conf->high_water < fc_conf->low_water) { in txgbe_flow_ctrl_set()
3261 hw->fc.requested_mode = rte_fcmode_2_txgbe_fcmode[fc_conf->mode]; in txgbe_flow_ctrl_set()
3262 hw->fc.pause_time = fc_conf->pause_time; in txgbe_flow_ctrl_set()
3263 hw->fc.high_water[0] = fc_conf->high_water; in txgbe_flow_ctrl_set()
3264 hw->fc.low_water[0] = fc_conf->low_water; in txgbe_flow_ctrl_set()
3265 hw->fc.send_xon = fc_conf->send_xon; in txgbe_flow_ctrl_set()
3266 hw->fc.disable_fc_autoneg = !fc_conf->autoneg; in txgbe_flow_ctrl_set()
3273 (fc_conf->mac_ctrl_frame_fwd in txgbe_flow_ctrl_set()