[PATCH v2 2/3] drm/msm/dsi: add implementation for helper functions