panfrost: Move pool routines to common code