Lines Matching defs:session
46 * struct amdtee_session - Trusted Application (TA) session related information.
49 * @session_info: an array pointing to TA allocated session data.
50 * @sess_mask: session usage bit-mask. If a particular bit is set, then the
112 * set_session_id() - Sets the session identifier.
115 * @session: [out] Pointer to session id
117 * Lower two bytes of the session identifier represents the TA handle and the
118 * upper two bytes is session index.
121 u32 *session)
123 *session = (session_index << 16) | (LOWER_TWO_BYTE_MASK & ta_handle);
126 static inline u32 get_ta_handle(u32 session)
128 return session & LOWER_TWO_BYTE_MASK;
131 static inline u32 get_session_index(u32 session)
133 return (session >> 16) & LOWER_TWO_BYTE_MASK;
140 int amdtee_close_session(struct tee_context *ctx, u32 session);
146 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session);