Lines Matching refs:offs
193 u_int offs; in optee_get_msg_arg() local
234 offs = bit * sz; in optee_get_msg_arg()
235 res = tee_shm_get_va(entry->shm, offs); in optee_get_msg_arg()
244 *offs_ret = offs; in optee_get_msg_arg()
259 struct optee_shm_arg_entry *entry, u_int offs) in optee_free_msg_arg() argument
265 if (offs > SHM_ENTRY_SIZE || offs % sz) { in optee_free_msg_arg()
266 pr_err("Invalid offs %u\n", offs); in optee_free_msg_arg()
269 bit = offs / sz; in optee_free_msg_arg()
291 u_int offs; in optee_open_session() local
296 &entry, &shm, &offs); in optee_open_session()
331 if (optee->ops->do_call_with_arg(ctx, shm, offs)) { in optee_open_session()
358 optee_free_msg_arg(ctx, entry, offs); in optee_open_session()
369 u_int offs; in optee_close_session_helper() local
371 msg_arg = optee_get_msg_arg(ctx, 0, &entry, &shm, &offs); in optee_close_session_helper()
377 optee->ops->do_call_with_arg(ctx, shm, offs); in optee_close_session_helper()
379 optee_free_msg_arg(ctx, entry, offs); in optee_close_session_helper()
411 u_int offs; in optee_invoke_func() local
422 &entry, &shm, &offs); in optee_invoke_func()
435 if (optee->ops->do_call_with_arg(ctx, shm, offs)) { in optee_invoke_func()
449 optee_free_msg_arg(ctx, entry, offs); in optee_invoke_func()
461 u_int offs; in optee_cancel_req() local
470 msg_arg = optee_get_msg_arg(ctx, 0, &entry, &shm, &offs); in optee_cancel_req()
477 optee->ops->do_call_with_arg(ctx, shm, offs); in optee_cancel_req()
479 optee_free_msg_arg(ctx, entry, offs); in optee_cancel_req()