[PATCH v3 2/9] coresight: platform: Refactor graph endpoint parsing