Lines Matching refs:teedev

22 	struct tee_device *teedev;  member
54 tee_device_put(h->teedev); in tee_heap_release()
56 h->teedev = NULL; in tee_heap_release()
174 struct tee_device *teedev = NULL; in tee_dma_heap_alloc() local
181 if (h->teedev) { in tee_dma_heap_alloc()
182 teedev = h->teedev; in tee_dma_heap_alloc()
188 if (!teedev) in tee_dma_heap_alloc()
244 static int alloc_dma_heap(struct tee_device *teedev, enum tee_dma_heap_id id, in alloc_dma_heap() argument
268 h->teedev = teedev; in alloc_dma_heap()
285 int tee_device_register_dma_heap(struct tee_device *teedev, in tee_device_register_dma_heap() argument
292 if (!tee_device_get(teedev)) in tee_device_register_dma_heap()
298 if (h->teedev) { in tee_device_register_dma_heap()
303 h->teedev = teedev; in tee_device_register_dma_heap()
309 rc = alloc_dma_heap(teedev, id, pool); in tee_device_register_dma_heap()
313 tee_device_put(teedev); in tee_device_register_dma_heap()
314 dev_err(&teedev->dev, "can't register DMA heap id %d (%s)\n", in tee_device_register_dma_heap()
322 void tee_device_put_all_dma_heaps(struct tee_device *teedev) in tee_device_put_all_dma_heaps() argument
330 if (h->teedev == teedev && !h->shutting_down) { in tee_device_put_all_dma_heaps()
340 int tee_heap_update_from_dma_buf(struct tee_device *teedev, in tee_heap_update_from_dma_buf() argument
354 if (buf->heap->teedev != teedev) in tee_heap_update_from_dma_buf()
367 int tee_device_register_dma_heap(struct tee_device *teedev __always_unused, in tee_device_register_dma_heap()
376 tee_device_put_all_dma_heaps(struct tee_device *teedev __always_unused) in tee_device_put_all_dma_heaps()
381 int tee_heap_update_from_dma_buf(struct tee_device *teedev __always_unused, in tee_heap_update_from_dma_buf()