freedreno/a6xx: add helper for various CP_EVENT_WRITE