Lines Matching refs:host1x
52 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_destroy() local
57 if (host1x->domain) { in host1x_pushbuffer_destroy()
58 iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); in host1x_pushbuffer_destroy()
59 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy()
62 dma_free_wc(host1x->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy()
74 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init() local
89 if (host1x->domain) { in host1x_pushbuffer_init()
92 size = iova_align(&host1x->iova, size); in host1x_pushbuffer_init()
94 pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, in host1x_pushbuffer_init()
99 shift = iova_shift(&host1x->iova); in host1x_pushbuffer_init()
100 alloc = alloc_iova(&host1x->iova, size >> shift, in host1x_pushbuffer_init()
101 host1x->iova_end >> shift, true); in host1x_pushbuffer_init()
107 pb->dma = iova_dma_addr(&host1x->iova, alloc); in host1x_pushbuffer_init()
108 err = iommu_map(host1x->domain, pb->dma, pb->phys, size, in host1x_pushbuffer_init()
113 pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, in host1x_pushbuffer_init()
123 host1x_hw_pushbuffer_init(host1x, pb); in host1x_pushbuffer_init()
128 __free_iova(&host1x->iova, alloc); in host1x_pushbuffer_init()
130 dma_free_wc(host1x->dev, size, pb->mapped, pb->phys); in host1x_pushbuffer_init()
227 struct host1x *host = cdma_to_host1x(cdma); in cdma_start_timer_locked()
266 struct host1x *host1x = cdma_to_host1x(cdma); in update_cdma_locked() local
279 host1x_syncpt_get(host1x, job->syncpt_id); in update_cdma_locked()
324 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_update_sync_queue() local
388 host1x_hw_cdma_timeout_cpu_incr(host1x, cdma, job->first_get, in host1x_cdma_update_sync_queue()
408 host1x_hw_cdma_resume(host1x, cdma, restart_addr); in host1x_cdma_update_sync_queue()
440 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_deinit() local
448 host1x_hw_cdma_timeout_destroy(host1x, cdma); in host1x_cdma_deinit()
458 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_begin() local
467 err = host1x_hw_cdma_timeout_init(host1x, cdma, in host1x_cdma_begin()
477 host1x_hw_cdma_start(host1x, cdma); in host1x_cdma_begin()
493 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_push() local
502 host1x_hw_cdma_flush(host1x, cdma); in host1x_cdma_push()
521 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_end() local
524 host1x_hw_cdma_flush(host1x, cdma); in host1x_cdma_end()