net: stmmac: separate the tas basetime calculation function