Lines Matching defs:offs
275 u_int offs;
316 offs = bit * sz;
317 res = tee_shm_get_va(entry->shm, offs);
326 *offs_ret = offs;
336 * @offs: Offset of shared memory buffer to free
341 struct optee_shm_arg_entry *entry, u_int offs)
347 if (offs > SHM_ENTRY_SIZE || offs % sz) {
348 pr_err("Invalid offs %u\n", offs);
351 bit = offs / sz;
373 u_int offs;
378 &entry, &shm, &offs);
413 if (optee->ops->do_call_with_arg(ctx, shm, offs,
441 optee_free_msg_arg(ctx, entry, offs);
474 u_int offs;
476 msg_arg = optee_get_msg_arg(ctx, 0, &entry, &shm, &offs);
482 optee->ops->do_call_with_arg(ctx, shm, offs, system_thread);
484 optee_free_msg_arg(ctx, entry, offs);
522 u_int offs;
535 &entry, &shm, &offs);
548 if (optee->ops->do_call_with_arg(ctx, shm, offs, system_thread)) {
562 optee_free_msg_arg(ctx, entry, offs);
575 u_int offs;
586 msg_arg = optee_get_msg_arg(ctx, 0, &entry, &shm, &offs);
593 optee->ops->do_call_with_arg(ctx, shm, offs, system_thread);
595 optee_free_msg_arg(ctx, entry, offs);
650 u_int offs;
652 msg_arg = optee_get_msg_arg(ctx, 0, &entry, &shm, &offs);
657 optee->ops->do_call_with_arg(ctx, shm, offs, false);
659 optee_free_msg_arg(ctx, entry, offs);