Lines Matching refs:fc
1202 struct xgbe_fc_info fc = pdata->fc; in axgbe_flow_ctrl_get() local
1207 fc.low_water[0] = AXGMAC_MTL_IOREAD_BITS(pdata, 0, MTL_Q_RQFCR, RFA); in axgbe_flow_ctrl_get()
1208 fc.high_water[0] = AXGMAC_MTL_IOREAD_BITS(pdata, 0, MTL_Q_RQFCR, RFD); in axgbe_flow_ctrl_get()
1209 fc.pause_time[0] = AXGMAC_GET_BITS(reg_val, MAC_Q0TFCR, PT); in axgbe_flow_ctrl_get()
1210 fc.autoneg = pdata->pause_autoneg; in axgbe_flow_ctrl_get()
1213 fc.mode = RTE_FC_FULL; in axgbe_flow_ctrl_get()
1215 fc.mode = RTE_FC_RX_PAUSE; in axgbe_flow_ctrl_get()
1217 fc.mode = RTE_FC_TX_PAUSE; in axgbe_flow_ctrl_get()
1219 fc.mode = RTE_FC_NONE; in axgbe_flow_ctrl_get()
1221 fc_conf->high_water = (1024 + (fc.low_water[0] << 9)) / 1024; in axgbe_flow_ctrl_get()
1222 fc_conf->low_water = (1024 + (fc.high_water[0] << 9)) / 1024; in axgbe_flow_ctrl_get()
1223 fc_conf->pause_time = fc.pause_time[0]; in axgbe_flow_ctrl_get()
1224 fc_conf->send_xon = fc.send_xon; in axgbe_flow_ctrl_get()
1225 fc_conf->mode = fc.mode; in axgbe_flow_ctrl_get()
1234 struct xgbe_fc_info fc = pdata->fc; in axgbe_flow_ctrl_set() local
1240 fc.send_xon = fc_conf->send_xon; in axgbe_flow_ctrl_set()
1247 fc.mode = fc_conf->mode; in axgbe_flow_ctrl_set()
1249 if (fc.mode == RTE_FC_FULL) { in axgbe_flow_ctrl_set()
1252 } else if (fc.mode == RTE_FC_RX_PAUSE) { in axgbe_flow_ctrl_set()
1255 } else if (fc.mode == RTE_FC_TX_PAUSE) { in axgbe_flow_ctrl_set()
1281 struct xgbe_fc_info fc = pdata->fc; in axgbe_priority_flow_ctrl_set() local
1292 pdata->pause_autoneg = pfc_conf->fc.autoneg; in axgbe_priority_flow_ctrl_set()
1294 fc.send_xon = pfc_conf->fc.send_xon; in axgbe_priority_flow_ctrl_set()
1296 AXGMAC_FLOW_CONTROL_VALUE(1024 * pfc_conf->fc.high_water)); in axgbe_priority_flow_ctrl_set()
1298 AXGMAC_FLOW_CONTROL_VALUE(1024 * pfc_conf->fc.low_water)); in axgbe_priority_flow_ctrl_set()
1303 PSTC0, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1307 PSTC1, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1311 PSTC2, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1315 PSTC3, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1319 PSTC4, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1323 PSTC5, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1327 PSTC6, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1331 PSTC7, pfc_conf->fc.pause_time); in axgbe_priority_flow_ctrl_set()
1335 fc.mode = pfc_conf->fc.mode; in axgbe_priority_flow_ctrl_set()
1337 if (fc.mode == RTE_FC_FULL) { in axgbe_priority_flow_ctrl_set()
1341 } else if (fc.mode == RTE_FC_RX_PAUSE) { in axgbe_priority_flow_ctrl_set()
1345 } else if (fc.mode == RTE_FC_TX_PAUSE) { in axgbe_priority_flow_ctrl_set()