winsys/intel: reorganize functions