Lines Matching refs:h

26 static TEE_Result create_rb_state(uint32_t lock_state, TEE_ObjectHandle *h)  in create_rb_state()  argument
34 &lock_state, sizeof(lock_state), h); in create_rb_state()
38 TEE_ObjectHandle *h) in open_rb_state() argument
45 sizeof(rb_obj_name), flags, h); in open_rb_state()
49 return create_rb_state(default_lock_state, h); in open_rb_state()
83 TEE_ObjectHandle h; in read_rb_idx() local
92 res = open_rb_state(DEFAULT_LOCK_STATE, &h); in read_rb_idx()
96 res = TEE_SeekObjectData(h, slot_offset, TEE_DATA_SEEK_SET); in read_rb_idx()
100 res = TEE_ReadObjectData(h, &idx, sizeof(idx), &count); in read_rb_idx()
111 res = TEE_SeekObjectData(h, slot_offset, in read_rb_idx()
115 res = TEE_WriteObjectData(h, &idx, sizeof(idx)); in read_rb_idx()
124 TEE_CloseObject(h); in read_rb_idx()
139 TEE_ObjectHandle h; in write_rb_idx() local
149 res = open_rb_state(DEFAULT_LOCK_STATE, &h); in write_rb_idx()
153 res = TEE_SeekObjectData(h, slot_offset, TEE_DATA_SEEK_SET); in write_rb_idx()
157 res = TEE_ReadObjectData(h, &idx, sizeof(idx), &count); in write_rb_idx()
168 res = TEE_SeekObjectData(h, slot_offset, TEE_DATA_SEEK_SET); in write_rb_idx()
172 res = TEE_WriteObjectData(h, &widx, sizeof(widx)); in write_rb_idx()
174 TEE_CloseObject(h); in write_rb_idx()
187 TEE_ObjectHandle h; in read_lock_state() local
192 res = open_rb_state(DEFAULT_LOCK_STATE, &h); in read_lock_state()
196 res = TEE_ReadObjectData(h, &lock_state, sizeof(lock_state), &count); in read_lock_state()
210 TEE_CloseObject(h); in read_lock_state()
225 TEE_ObjectHandle h; in write_lock_state() local
232 res = open_rb_state(wlock_state, &h); in write_lock_state()
236 res = TEE_ReadObjectData(h, &lock_state, sizeof(lock_state), &count); in write_lock_state()
242 res = create_rb_state(wlock_state, &h); in write_lock_state()
244 TEE_CloseObject(h); in write_lock_state()
259 TEE_ObjectHandle h = TEE_HANDLE_NULL; in write_persist_value() local
287 value_sz, &h); in write_persist_value()
291 TEE_CloseObject(h); in write_persist_value()
308 TEE_ObjectHandle h = TEE_HANDLE_NULL; in read_persist_value() local
333 name_full_sz, flags, &h); in read_persist_value()
339 res = TEE_ReadObjectData(h, value, value_sz, &count); in read_persist_value()
350 TEE_CloseObject(h); in read_persist_value()