[PATCH v4 2/6] optee: account for direction while converting parameters