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