[PATCH v6 03/10] optee: account for direction while converting parameters