Lines Matching refs:ring_size
24 static int tee_alloc_ring(struct psp_tee_device *tee, int ring_size) in tee_alloc_ring() argument
29 if (!ring_size) in tee_alloc_ring()
35 start_addr = (void *)__get_free_pages(GFP_KERNEL, get_order(ring_size)); in tee_alloc_ring()
39 memset(start_addr, 0x0, ring_size); in tee_alloc_ring()
41 rb_mgr->ring_size = ring_size; in tee_alloc_ring()
56 get_order(rb_mgr->ring_size)); in tee_free_ring()
59 rb_mgr->ring_size = 0; in tee_free_ring()
95 cmd->size = tee->rb_mgr.ring_size; in tee_alloc_cmd_buffer()
110 int ring_size = MAX_RING_BUFFER_ENTRIES * sizeof(struct tee_ring_cmd); in tee_init_ring() local
118 ret = tee_alloc_ring(tee, ring_size); in tee_init_ring()
308 if (tee->rb_mgr.wptr >= tee->rb_mgr.ring_size) in tee_submit_cmd()