[PATCH 5.4 170/367] coresight: tmc: Explicit type conversions to prevent integer overflow