Home
last modified time | relevance | path

Searched refs:shm (Results 1 - 25 of 169) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/tee/
H A Dtee_shm.c16 static void release_registered_pages(struct tee_shm *shm) in release_registered_pages() argument
18 if (shm->pages) { in release_registered_pages()
19 if (shm->flags & TEE_SHM_USER_MAPPED) { in release_registered_pages()
20 unpin_user_pages(shm->pages, shm->num_pages); in release_registered_pages()
24 for (n = 0; n < shm->num_pages; n++) in release_registered_pages()
25 put_page(shm->pages[n]); in release_registered_pages()
28 kfree(shm->pages); in release_registered_pages()
32 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument
34 if (shm in tee_shm_release()
64 struct tee_shm *shm; tee_shm_alloc() local
155 struct tee_shm *shm; tee_shm_register() local
267 struct tee_shm *shm = filp->private_data; tee_shm_fop_mmap() local
293 tee_shm_get_fd(struct tee_shm *shm) tee_shm_get_fd() argument
312 tee_shm_free(struct tee_shm *shm) tee_shm_free() argument
325 tee_shm_va2pa(struct tee_shm *shm, void *va, phys_addr_t *pa) tee_shm_va2pa() argument
347 tee_shm_pa2va(struct tee_shm *shm, phys_addr_t pa, void **va) tee_shm_pa2va() argument
375 tee_shm_get_va(struct tee_shm *shm, size_t offs) tee_shm_get_va() argument
393 tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa) tee_shm_get_pa() argument
413 struct tee_shm *shm; tee_shm_get_from_id() local
439 tee_shm_put(struct tee_shm *shm) tee_shm_put() argument
[all...]
/kernel/linux/linux-6.6/drivers/tee/
H A Dtee_shm.c44 static void release_registered_pages(struct tee_shm *shm) in release_registered_pages() argument
46 if (shm->pages) { in release_registered_pages()
47 if (shm->flags & TEE_SHM_USER_MAPPED) in release_registered_pages()
48 unpin_user_pages(shm->pages, shm->num_pages); in release_registered_pages()
50 shm_put_kernel_pages(shm->pages, shm->num_pages); in release_registered_pages()
52 kfree(shm->pages); in release_registered_pages()
56 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() argument
58 if (shm in tee_shm_release()
81 struct tee_shm *shm; shm_alloc_helper() local
143 struct tee_shm *shm; tee_shm_alloc_user_buf() local
221 struct tee_shm *shm; register_shm_helper() local
309 struct tee_shm *shm; tee_shm_register_user_buf() local
368 struct tee_shm *shm = filp->private_data; tee_shm_fop_mmap() local
394 tee_shm_get_fd(struct tee_shm *shm) tee_shm_get_fd() argument
413 tee_shm_free(struct tee_shm *shm) tee_shm_free() argument
426 tee_shm_get_va(struct tee_shm *shm, size_t offs) tee_shm_get_va() argument
444 tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa) tee_shm_get_pa() argument
464 struct tee_shm *shm; tee_shm_get_from_id() local
490 tee_shm_put(struct tee_shm *shm) tee_shm_put() argument
[all...]
H A Dtee_shm_pool.c12 static int pool_op_gen_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_gen_alloc() argument
26 shm->kaddr = (void *)va; in pool_op_gen_alloc()
27 shm->paddr = gen_pool_virt_to_phys(genpool, va); in pool_op_gen_alloc()
28 shm->size = s; in pool_op_gen_alloc()
33 shm->flags &= ~TEE_SHM_DYNAMIC; in pool_op_gen_alloc()
37 static void pool_op_gen_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_gen_free() argument
39 gen_pool_free(pool->private_data, (unsigned long)shm->kaddr, in pool_op_gen_free()
40 shm->size); in pool_op_gen_free()
41 shm->kaddr = NULL; in pool_op_gen_free()
/kernel/linux/linux-5.10/drivers/tee/optee/
H A Dshm_pool.c16 struct tee_shm *shm, size_t size) in pool_op_alloc()
26 shm->kaddr = page_address(page); in pool_op_alloc()
27 shm->paddr = page_to_phys(page); in pool_op_alloc()
28 shm->size = PAGE_SIZE << order; in pool_op_alloc()
34 if (!(shm->flags & TEE_SHM_PRIV)) { in pool_op_alloc()
47 shm->flags |= TEE_SHM_REGISTER; in pool_op_alloc()
48 rc = optee_shm_register(shm->ctx, shm, pages, nr_pages, in pool_op_alloc()
49 (unsigned long)shm->kaddr); in pool_op_alloc()
63 struct tee_shm *shm) in pool_op_free()
15 pool_op_alloc(struct tee_shm_pool_mgr *poolm, struct tee_shm *shm, size_t size) pool_op_alloc() argument
62 pool_op_free(struct tee_shm_pool_mgr *poolm, struct tee_shm *shm) pool_op_free() argument
[all...]
H A Drpc.c104 msg.buf = params[2].u.memref.shm->kaddr; in handle_rpc_func_cmd_i2c_transfer()
268 struct tee_shm *shm; in cmd_alloc_suppl() local
281 shm = tee_shm_get_from_id(optee->supp.ctx, param.u.value.c); in cmd_alloc_suppl()
283 return shm; in cmd_alloc_suppl()
292 struct tee_shm *shm; in handle_rpc_func_cmd_shm_alloc() local
314 shm = cmd_alloc_suppl(ctx, sz); in handle_rpc_func_cmd_shm_alloc()
317 shm = tee_shm_alloc(optee->ctx, sz, in handle_rpc_func_cmd_shm_alloc()
325 if (IS_ERR(shm)) { in handle_rpc_func_cmd_shm_alloc()
330 if (tee_shm_get_pa(shm, 0, &pa)) { in handle_rpc_func_cmd_shm_alloc()
335 sz = tee_shm_get_size(shm); in handle_rpc_func_cmd_shm_alloc()
384 cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) cmd_free_suppl() argument
412 struct tee_shm *shm; handle_rpc_func_cmd_shm_free() local
451 handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee, struct tee_shm *shm, struct optee_call_ctx *call_ctx) handle_rpc_func_cmd() argument
501 struct tee_shm *shm; optee_handle_rpc() local
[all...]
H A Dcall.c180 struct tee_shm *shm; in get_msg_arg() local
183 shm = tee_shm_alloc(ctx, OPTEE_MSG_GET_ARG_SIZE(num_params), in get_msg_arg()
185 if (IS_ERR(shm)) in get_msg_arg()
186 return shm; in get_msg_arg()
188 ma = tee_shm_get_va(shm, 0); in get_msg_arg()
194 rc = tee_shm_get_pa(shm, 0, msg_parg); in get_msg_arg()
203 tee_shm_free(shm); in get_msg_arg()
207 return shm; in get_msg_arg()
216 struct tee_shm *shm; in optee_open_session() local
223 shm in optee_open_session()
291 struct tee_shm *shm; optee_close_session() local
322 struct tee_shm *shm; optee_invoke_func() local
367 struct tee_shm *shm; optee_cancel_req() local
439 struct tee_shm *shm; __optee_disable_shm_cache() local
611 optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, struct page **pages, size_t num_pages, unsigned long start) optee_shm_register() argument
663 optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) optee_shm_unregister() argument
686 optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm, struct page **pages, size_t num_pages, unsigned long start) optee_shm_register_supp() argument
697 optee_shm_unregister_supp(struct tee_context *ctx, struct tee_shm *shm) optee_shm_unregister_supp() argument
[all...]
H A Dcore.c43 struct tee_shm *shm; in optee_from_msg_param() local
71 shm = (struct tee_shm *)(unsigned long) in optee_from_msg_param()
73 if (!shm) { in optee_from_msg_param()
75 p->u.memref.shm = NULL; in optee_from_msg_param()
78 rc = tee_shm_get_pa(shm, 0, &pa); in optee_from_msg_param()
82 p->u.memref.shm = shm; in optee_from_msg_param()
90 shm = (struct tee_shm *)(unsigned long) in optee_from_msg_param()
93 if (!shm) { in optee_from_msg_param()
95 p->u.memref.shm in optee_from_msg_param()
272 struct tee_shm *shm; optee_release() local
[all...]
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_003.cpp37 void *shm = NULL; in Testcase() local
44 shm = shmat(shmid, NULL, 0); in Testcase()
45 ICUNIT_ASSERT_NOT_EQUAL(shm, INVALID_PTR, shm); in Testcase()
47 (void)memset_s(shm, PAGE_SIZE, 0, PAGE_SIZE); in Testcase()
49 ret = shmdt(shm); in Testcase()
58 shm = shmat(shmid, vaddrPageAlign, 0); in Testcase()
59 ICUNIT_ASSERT_EQUAL(shm, vaddrPageAlign, shm); in Testcase()
61 (void)memset_s(shm, PAGE_SIZ in Testcase()
[all...]
H A Dshm_test_001.cpp44 void *shm = nullptr; in ShmReadFunc() local
52 shm = shmat(shmid, 0, 0); in ShmReadFunc()
53 ICUNIT_ASSERT_NOT_EQUAL_NULL_VOID(shm, INVALID_PTR, shm); in ShmReadFunc()
55 printf("Memory attached at %p\n", shm); in ShmReadFunc()
57 shared = (struct shared_use_st *)shm; in ShmReadFunc()
72 ret = shmdt(shm); in ShmReadFunc()
84 void *shm = nullptr; in ShmWriteFunc() local
94 shm = shmat(shmid, nullptr, 0); in ShmWriteFunc()
95 ICUNIT_ASSERT_NOT_EQUAL_NULL_VOID(shm, INVALID_PT in ShmWriteFunc()
[all...]
H A Dshm_test_005.cpp37 void *shm = NULL; in Testcase() local
49 shm = shmat(shmid, NULL, SHM_REMAP); in Testcase()
52 shm = shmat(shmid, reinterpret_cast<const void *>(0x100), 0); in Testcase()
55 shm = shmat(shmid, NULL, 0); in Testcase()
56 ICUNIT_ASSERT_NOT_EQUAL(shm, reinterpret_cast<void *>(-1), shm); in Testcase()
62 ret = shmdt(shm); in Testcase()
/kernel/linux/linux-5.10/include/linux/
H A Dtee_drv.h66 struct tee_shm *shm; member
114 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
117 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
203 * subsystem and from drivers that implements their own shm pool manager.
235 int (*alloc)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm,
237 void (*free)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm);
242 * tee_shm_pool_alloc() - Create a shared memory pool from shm managers
255 * tee_shm_pool_mgr_alloc_res_mem() - Create a shm manager for reserved
352 * @shm: Shared memory handle
355 static inline bool tee_shm_is_registered(struct tee_shm *shm) in tee_shm_is_registered() argument
414 tee_shm_get_size(struct tee_shm *shm) tee_shm_get_size() argument
425 tee_shm_get_pages(struct tee_shm *shm, size_t *num_pages) tee_shm_get_pages() argument
437 tee_shm_get_page_offset(struct tee_shm *shm) tee_shm_get_page_offset() argument
447 tee_shm_get_id(struct tee_shm *shm) tee_shm_get_id() argument
[all...]
/kernel/linux/linux-6.6/drivers/tee/amdtee/
H A Dshm_pool.c11 static int pool_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_alloc() argument
26 shm->kaddr = (void *)va; in pool_op_alloc()
27 shm->paddr = __psp_pa((void *)va); in pool_op_alloc()
28 shm->size = PAGE_SIZE << order; in pool_op_alloc()
31 rc = amdtee_map_shmem(shm); in pool_op_alloc()
34 shm->kaddr = NULL; in pool_op_alloc()
41 static void pool_op_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_free() argument
44 amdtee_unmap_shmem(shm); in pool_op_free()
45 free_pages((unsigned long)shm->kaddr, get_order(shm in pool_op_free()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dtee_drv.h63 struct tee_shm *shm; member
111 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
114 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
204 * subsystem and from drivers that implements their own shm pool manager.
237 int (*alloc)(struct tee_shm_pool *pool, struct tee_shm *shm,
239 void (*free)(struct tee_shm_pool *pool, struct tee_shm *shm);
244 * tee_shm_pool_alloc_res_mem() - Create a shm manager for reserved memory
281 * @shm: Shared memory handle
284 static inline bool tee_shm_is_dynamic(struct tee_shm *shm) in tee_shm_is_dynamic() argument
286 return shm in tee_shm_is_dynamic()
325 tee_shm_get_size(struct tee_shm *shm) tee_shm_get_size() argument
336 tee_shm_get_pages(struct tee_shm *shm, size_t *num_pages) tee_shm_get_pages() argument
348 tee_shm_get_page_offset(struct tee_shm *shm) tee_shm_get_page_offset() argument
358 tee_shm_get_id(struct tee_shm *shm) tee_shm_get_id() argument
[all...]
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_ipc_container_005.cpp33 static const char testBuf[] = "test shm";
62 void *shm = shmat(shmid, 0, 0); in childFunc() local
63 if (shm == reinterpret_cast<void *>(-1)) { in childFunc()
68 shared = (struct shared_use_st *)shm; in childFunc()
71 shmdt(shm); in childFunc()
76 ret = shmdt(shm); in childFunc()
110 void *shm = shmat(shmid, 0, 0); in testChild() local
111 if (shm == reinterpret_cast<void *>(-1)) { in testChild()
116 shared = (struct shared_use_st *)shm; in testChild()
119 shmdt(shm); in testChild()
[all...]
H A DIt_ipc_container_004.cpp42 const char testBuf[] = "child test shm"; in childFunc1()
51 void *shm = shmat(shmid, 0, 0); in childFunc1() local
52 if (shm == reinterpret_cast<void *>(-1)) { in childFunc1()
56 shared = (struct shared_use_st *)shm; in childFunc1()
59 shmdt(shm); in childFunc1()
63 ret = shmdt(shm); in childFunc1()
73 const char testBuf[] = "parent test shm"; in childFunc()
74 const char testBuf1[] = "child test shm"; in childFunc()
89 void *shm = shmat(shmid, 0, 0); in childFunc() local
90 if (shm in childFunc()
154 void *shm = NULL; ItIpcContainer004() local
[all...]
H A DIt_ipc_container_006.cpp33 static const char testBuf[] = "test shm";
51 void *shm = shmat(shmid, 0, 0); in childFunc1() local
52 if (shm == reinterpret_cast<void *>(-1)) { in childFunc1()
56 shared = (struct shared_use_st *)shm; in childFunc1()
60 shmdt(shm); in childFunc1()
65 ret = shmdt(shm); in childFunc1()
122 void *shm = shmat(shmid, 0, 0); in childFunc() local
123 if (shm == reinterpret_cast<void *>(-1)) { in childFunc()
128 shared = (struct shared_use_st *)shm; in childFunc()
138 shmdt(shm); in childFunc()
[all...]
/kernel/linux/linux-6.6/drivers/tee/optee/
H A Dsmc_abi.c49 * A typical OP-TEE private shm allocation is 224 bytes (argument struct
85 struct tee_shm *shm; in from_msg_param_tmp_mem() local
92 shm = (struct tee_shm *)(unsigned long)mp->u.tmem.shm_ref; in from_msg_param_tmp_mem()
93 if (!shm) { in from_msg_param_tmp_mem()
95 p->u.memref.shm = NULL; in from_msg_param_tmp_mem()
99 rc = tee_shm_get_pa(shm, 0, &pa); in from_msg_param_tmp_mem()
104 p->u.memref.shm = shm; in from_msg_param_tmp_mem()
112 struct tee_shm *shm; in from_msg_param_reg_mem() local
117 shm in from_msg_param_reg_mem()
323 struct tee_shm *shm; __optee_disable_shm_cache() local
452 optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, struct page **pages, size_t num_pages, unsigned long start) optee_shm_register() argument
520 optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) optee_shm_unregister() argument
561 optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm, struct page **pages, size_t num_pages, unsigned long start) optee_shm_register_supp() argument
572 optee_shm_unregister_supp(struct tee_context *ctx, struct tee_shm *shm) optee_shm_unregister_supp() argument
587 pool_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, size_t size, size_t align) pool_op_alloc() argument
601 pool_op_free(struct tee_shm_pool *pool, struct tee_shm *shm) pool_op_free() argument
652 struct tee_shm *shm; handle_rpc_func_cmd_shm_free() local
682 struct tee_shm *shm; handle_rpc_func_cmd_shm_alloc() local
822 struct tee_shm *shm; optee_handle_rpc() local
887 optee_smc_do_call_with_arg(struct tee_context *ctx, struct tee_shm *shm, u_int offs) optee_smc_do_call_with_arg() argument
972 struct tee_shm *shm; simple_call_with_arg() local
[all...]
H A Dffa_abi.c41 struct tee_shm *shm; member
61 struct tee_shm *shm = NULL; in optee_shm_from_ffa_handle() local
68 shm = r->shm; in optee_shm_from_ffa_handle()
71 return shm; in optee_shm_from_ffa_handle()
74 static int optee_shm_add_ffa_handle(struct optee *optee, struct tee_shm *shm, in optee_shm_add_ffa_handle() argument
83 r->shm = shm; in optee_shm_add_ffa_handle()
126 struct tee_shm *shm = NULL; in from_msg_param_ffa_mem() local
135 shm in from_msg_param_ffa_mem()
192 struct tee_shm *shm = p->u.memref.shm; to_msg_param_ffa_mem() local
269 optee_ffa_shm_register(struct tee_context *ctx, struct tee_shm *shm, struct page **pages, size_t num_pages, unsigned long start) optee_ffa_shm_register() argument
313 optee_ffa_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) optee_ffa_shm_unregister() argument
342 optee_ffa_shm_unregister_supp(struct tee_context *ctx, struct tee_shm *shm) optee_ffa_shm_unregister_supp() argument
374 pool_ffa_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, size_t size, size_t align) pool_ffa_op_alloc() argument
381 pool_ffa_op_free(struct tee_shm_pool *pool, struct tee_shm *shm) pool_ffa_op_free() argument
430 struct tee_shm *shm; handle_ffa_rpc_func_cmd_shm_alloc() local
470 struct tee_shm *shm; handle_ffa_rpc_func_cmd_shm_free() local
614 optee_ffa_do_call_with_arg(struct tee_context *ctx, struct tee_shm *shm, u_int offs) optee_ffa_do_call_with_arg() argument
[all...]
H A Dcore.c21 int optee_pool_op_alloc_helper(struct tee_shm_pool *pool, struct tee_shm *shm, in optee_pool_op_alloc_helper() argument
24 struct tee_shm *shm, in optee_pool_op_alloc_helper()
41 shm->kaddr = page_address(page); in optee_pool_op_alloc_helper()
42 shm->paddr = page_to_phys(page); in optee_pool_op_alloc_helper()
43 shm->size = PAGE_SIZE << order; in optee_pool_op_alloc_helper()
58 rc = shm_register(shm->ctx, shm, pages, nr_pages, in optee_pool_op_alloc_helper()
59 (unsigned long)shm->kaddr); in optee_pool_op_alloc_helper()
68 free_pages((unsigned long)shm->kaddr, order); in optee_pool_op_alloc_helper()
72 void optee_pool_op_free_helper(struct tee_shm_pool *pool, struct tee_shm *shm, in optee_pool_op_free_helper() argument
[all...]
/kernel/linux/linux-5.10/drivers/tee/amdtee/
H A Dshm_pool.c11 static int pool_op_alloc(struct tee_shm_pool_mgr *poolm, struct tee_shm *shm, in pool_op_alloc() argument
22 shm->kaddr = (void *)va; in pool_op_alloc()
23 shm->paddr = __psp_pa((void *)va); in pool_op_alloc()
24 shm->size = PAGE_SIZE << order; in pool_op_alloc()
27 rc = amdtee_map_shmem(shm); in pool_op_alloc()
30 shm->kaddr = NULL; in pool_op_alloc()
37 static void pool_op_free(struct tee_shm_pool_mgr *poolm, struct tee_shm *shm) in pool_op_free() argument
40 amdtee_unmap_shmem(shm); in pool_op_free()
41 free_pages((unsigned long)shm->kaddr, get_order(shm in pool_op_free()
[all...]
/kernel/linux/linux-6.6/drivers/nvmem/
H A Dstm32-bsec-optee-ta.c142 struct tee_shm *shm; in stm32_bsec_optee_ta_read() local
168 shm = tee_shm_alloc_kernel_buf(ctx, num_bytes); in stm32_bsec_optee_ta_read()
169 if (IS_ERR(shm)) { in stm32_bsec_optee_ta_read()
170 ret = PTR_ERR(shm); in stm32_bsec_optee_ta_read()
175 param[1].u.memref.shm = shm; in stm32_bsec_optee_ta_read()
186 shm_buf = tee_shm_get_va(shm, 0); in stm32_bsec_optee_ta_read()
196 tee_shm_free(shm); in stm32_bsec_optee_ta_read()
207 { struct tee_shm *shm; in stm32_bsec_optee_ta_write() local
233 shm in stm32_bsec_optee_ta_write()
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_opr_v5.c224 ctx->shm.size = buf_size->shm; in s5p_mfc_alloc_instance_buffer_v5()
225 ret = s5p_mfc_alloc_priv_buf(dev, BANK_L_CTX, &ctx->shm); in s5p_mfc_alloc_instance_buffer_v5()
233 ctx->shm.ofs = ctx->shm.dma - dev->dma_base[BANK_L_CTX]; in s5p_mfc_alloc_instance_buffer_v5()
234 BUG_ON(ctx->shm.ofs & ((1 << MFC_BANK1_ALIGN_ORDER) - 1)); in s5p_mfc_alloc_instance_buffer_v5()
236 memset(ctx->shm.virt, 0, buf_size->shm); in s5p_mfc_alloc_instance_buffer_v5()
245 s5p_mfc_release_priv_buf(ctx->dev, &ctx->shm); in s5p_mfc_release_instance_buffer_v5()
263 *(u32 *)(ctx->shm in s5p_mfc_write_info_v5()
679 unsigned int shm; s5p_mfc_set_enc_params() local
763 unsigned int shm; s5p_mfc_set_enc_params_h264() local
920 unsigned int shm; s5p_mfc_set_enc_params_mpeg4() local
999 unsigned int shm; s5p_mfc_set_enc_params_h263() local
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr_v5.c224 ctx->shm.size = buf_size->shm; in s5p_mfc_alloc_instance_buffer_v5()
225 ret = s5p_mfc_alloc_priv_buf(dev, BANK_L_CTX, &ctx->shm); in s5p_mfc_alloc_instance_buffer_v5()
233 ctx->shm.ofs = ctx->shm.dma - dev->dma_base[BANK_L_CTX]; in s5p_mfc_alloc_instance_buffer_v5()
234 BUG_ON(ctx->shm.ofs & ((1 << MFC_BANK1_ALIGN_ORDER) - 1)); in s5p_mfc_alloc_instance_buffer_v5()
236 memset(ctx->shm.virt, 0, buf_size->shm); in s5p_mfc_alloc_instance_buffer_v5()
245 s5p_mfc_release_priv_buf(ctx->dev, &ctx->shm); in s5p_mfc_release_instance_buffer_v5()
263 *(u32 *)(ctx->shm in s5p_mfc_write_info_v5()
679 unsigned int shm; s5p_mfc_set_enc_params() local
763 unsigned int shm; s5p_mfc_set_enc_params_h264() local
920 unsigned int shm; s5p_mfc_set_enc_params_mpeg4() local
999 unsigned int shm; s5p_mfc_set_enc_params_h263() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/futex/functional/
H A Dfutex_wait.c9 #include <sys/shm.h>
54 void *shm; in main() local
137 shm = mmap(NULL, sizeof(f_private), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
138 if (shm == MAP_FAILED) { in main()
143 memcpy(shm, &f_private, sizeof(f_private)); in main()
145 futex = shm; in main()
154 res = futex_wake(shm, 1, 0); in main()
165 munmap(shm, sizeof(f_private)); in main()
/kernel/linux/linux-5.10/drivers/char/tpm/
H A Dtpm_ftpm_tee.c82 struct tee_shm *shm = pvt_data->shm; in ftpm_tee_tpm_op_send() local
106 .shm = shm, in ftpm_tee_tpm_op_send()
112 temp_buf = tee_shm_get_va(shm, 0); in ftpm_tee_tpm_op_send()
124 .shm = shm, in ftpm_tee_tpm_op_send()
138 temp_buf = tee_shm_get_va(shm, command_params[1].u.memref.shm_offs); in ftpm_tee_tpm_op_send()
257 pvt_data->shm = tee_shm_alloc_kernel_buf(pvt_data->ctx, in ftpm_tee_probe()
260 if (IS_ERR(pvt_data->shm)) { in ftpm_tee_probe()
[all...]

Completed in 13 milliseconds

1234567