[PATCH v7 03/11] optee: account for direction while converting parameters