Lines Matching refs:object_id
52 unsigned int object_id) in qcomtee_qtee_object_alloc() argument
62 object->name = kasprintf(GFP_KERNEL, "qcomtee-%u", object_id); in qcomtee_qtee_object_alloc()
63 QCOMTEE_OBJECT_SET(object, QCOMTEE_OBJECT_TYPE_TEE, object_id); in qcomtee_qtee_object_alloc()
218 unsigned int *object_id) in qcomtee_object_id_get() argument
227 *object_id = idx; in qcomtee_object_id_get()
232 *object_id = object->info.qtee_id; in qcomtee_object_id_get()
236 *object_id = QCOMTEE_MSG_OBJECT_NULL; in qcomtee_object_id_get()
246 unsigned int object_id) in qcomtee_object_id_put() argument
248 qcomtee_idx_erase(oic, object_id); in qcomtee_object_id_put()
265 unsigned int object_id) in qcomtee_local_object_get() argument
270 if (object_id == QCOMTEE_OBJECT_PRIMORDIAL) in qcomtee_local_object_get()
274 object = xa_load(&qcomtee->xa_local_objects, object_id); in qcomtee_local_object_get()
338 static enum qcomtee_object_type qcomtee_object_type(unsigned int object_id) in qcomtee_object_type() argument
340 if (object_id == QCOMTEE_MSG_OBJECT_NULL) in qcomtee_object_type()
343 if (object_id & QCOMTEE_MSG_OBJECT_NS_BIT) in qcomtee_object_type()
360 unsigned int object_id) in qcomtee_object_qtee_init() argument
364 switch (qcomtee_object_type(object_id)) { in qcomtee_object_qtee_init()
370 *object = qcomtee_local_object_get(oic, object_id); in qcomtee_object_qtee_init()
377 *object = qcomtee_qtee_object_alloc(oic, object_id); in qcomtee_object_qtee_init()
400 unsigned int object_id; in qcomtee_prepare_msg() local
412 if (qcomtee_object_id_get(oic, object, &object_id)) in qcomtee_prepare_msg()
446 qcomtee_object_id_put(oic, object_id); in qcomtee_prepare_msg()
461 qcomtee_msg_init(msg, object_id, op, ib, ob, io, oo); in qcomtee_prepare_msg()
625 unsigned int object_id = msg->cxt; in qcomtee_cb_object_invoke() local
629 if (qcomtee_object_type(object_id) == QCOMTEE_OBJECT_TYPE_NULL || in qcomtee_cb_object_invoke()
630 qcomtee_object_type(object_id) == QCOMTEE_OBJECT_TYPE_TEE) { in qcomtee_cb_object_invoke()
635 object = qcomtee_local_object_get(oic, object_id); in qcomtee_cb_object_invoke()
648 qcomtee_object_id_put(oic, object_id); in qcomtee_cb_object_invoke()