raw/ioat: move xstats functions to common file