Special functions on finite upper half planes