drm/i915: move functions around