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()
366 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_update_sync_queue() local
430 host1x_hw_cdma_timeout_cpu_incr(host1x, cdma, job->first_get, in host1x_cdma_update_sync_queue()
469 if (i == 0 && host1x->info->has_wide_gather) { in host1x_cdma_update_sync_queue()
490 host1x_hw_cdma_resume(host1x, cdma, restart_addr); in host1x_cdma_update_sync_queue()
522 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_deinit() local
530 host1x_hw_cdma_timeout_destroy(host1x, cdma); in host1x_cdma_deinit()
540 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_begin() local
559 err = host1x_hw_cdma_timeout_init(host1x, cdma); in host1x_cdma_begin()
568 host1x_hw_cdma_start(host1x, cdma); in host1x_cdma_begin()
584 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_push() local
593 host1x_hw_cdma_flush(host1x, cdma); in host1x_cdma_push()
616 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_push_wide() local
631 host1x_cdma_wait_pushbuffer_space(host1x, cdma, needed); in host1x_cdma_push_wide()
659 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_end() local
662 host1x_hw_cdma_flush(host1x, cdma); in host1x_cdma_end()