• Home
  • Raw
  • Download

Lines Matching refs:host1x

51 	struct host1x *host1x = cdma_to_host1x(cdma);  in host1x_pushbuffer_destroy()  local
56 if (host1x->domain) { in host1x_pushbuffer_destroy()
57 iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); in host1x_pushbuffer_destroy()
58 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy()
61 dma_free_wc(host1x->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy()
73 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init() local
88 if (host1x->domain) { in host1x_pushbuffer_init()
91 size = iova_align(&host1x->iova, size); in host1x_pushbuffer_init()
93 pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, in host1x_pushbuffer_init()
98 shift = iova_shift(&host1x->iova); in host1x_pushbuffer_init()
99 alloc = alloc_iova(&host1x->iova, size >> shift, in host1x_pushbuffer_init()
100 host1x->iova_end >> shift, true); in host1x_pushbuffer_init()
106 pb->dma = iova_dma_addr(&host1x->iova, alloc); in host1x_pushbuffer_init()
107 err = iommu_map(host1x->domain, pb->dma, pb->phys, size, in host1x_pushbuffer_init()
112 pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, in host1x_pushbuffer_init()
122 host1x_hw_pushbuffer_init(host1x, pb); in host1x_pushbuffer_init()
127 __free_iova(&host1x->iova, alloc); in host1x_pushbuffer_init()
129 dma_free_wc(host1x->dev, size, pb->mapped, pb->phys); in host1x_pushbuffer_init()
235 static int host1x_cdma_wait_pushbuffer_space(struct host1x *host1x, in host1x_cdma_wait_pushbuffer_space() argument
250 host1x_hw_cdma_flush(host1x, cdma); in host1x_cdma_wait_pushbuffer_space()
276 struct host1x *host = cdma_to_host1x(cdma); in cdma_start_timer_locked()
315 struct host1x *host1x = cdma_to_host1x(cdma); in update_cdma_locked() local
328 host1x_syncpt_get(host1x, job->syncpt_id); in update_cdma_locked()
373 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_update_sync_queue() local
434 host1x_hw_cdma_timeout_cpu_incr(host1x, cdma, job->first_get, in host1x_cdma_update_sync_queue()
443 host1x_hw_cdma_resume(host1x, cdma, restart_addr); in host1x_cdma_update_sync_queue()
475 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_deinit() local
483 host1x_hw_cdma_timeout_destroy(host1x, cdma); in host1x_cdma_deinit()
493 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_begin() local
502 err = host1x_hw_cdma_timeout_init(host1x, cdma, in host1x_cdma_begin()
512 host1x_hw_cdma_start(host1x, cdma); in host1x_cdma_begin()
528 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_push() local
537 host1x_hw_cdma_flush(host1x, cdma); in host1x_cdma_push()
560 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_push_wide() local
575 host1x_cdma_wait_pushbuffer_space(host1x, cdma, needed); in host1x_cdma_push_wide()
609 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_end() local
612 host1x_hw_cdma_flush(host1x, cdma); in host1x_cdma_end()