Home
last modified time | relevance | path

Searched refs:syncpt (Results 1 – 14 of 14) sorted by relevance

/drivers/gpu/host1x/
Dintr.c156 struct host1x_syncpt *syncpt, in process_wait_list() argument
166 spin_lock(&syncpt->intr.lock); in process_wait_list()
168 remove_completed_waiters(&syncpt->intr.wait_head, threshold, in process_wait_list()
171 empty = list_empty(&syncpt->intr.wait_head); in process_wait_list()
173 host1x_hw_intr_disable_syncpt_intr(host, syncpt->id); in process_wait_list()
175 reset_threshold_interrupt(host, &syncpt->intr.wait_head, in process_wait_list()
176 syncpt->id); in process_wait_list()
178 spin_unlock(&syncpt->intr.lock); in process_wait_list()
194 struct host1x_syncpt *syncpt = in syncpt_thresh_work() local
196 unsigned int id = syncpt->id; in syncpt_thresh_work()
[all …]
Dsyncpt.c49 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc()
121 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_restore()
139 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_save()
368 struct host1x_syncpt *syncpt; in host1x_syncpt_init() local
371 syncpt = devm_kcalloc(host->dev, host->info->nb_pts, sizeof(*syncpt), in host1x_syncpt_init()
373 if (!syncpt) in host1x_syncpt_init()
382 syncpt[i].id = i; in host1x_syncpt_init()
383 syncpt[i].host = host; in host1x_syncpt_init()
390 host1x_hw_syncpt_assign_to_channel(host, &syncpt[i], NULL); in host1x_syncpt_init()
397 host->syncpt = syncpt; in host1x_syncpt_init()
[all …]
Ddev.h40 int (*timeout_init)(struct host1x_cdma *cdma, unsigned int syncpt);
65 void (*restore)(struct host1x_syncpt *syncpt);
66 void (*restore_wait_base)(struct host1x_syncpt *syncpt);
67 void (*load_wait_base)(struct host1x_syncpt *syncpt);
68 u32 (*load)(struct host1x_syncpt *syncpt);
69 int (*cpu_incr)(struct host1x_syncpt *syncpt);
70 void (*assign_to_channel)(struct host1x_syncpt *syncpt,
110 struct host1x_syncpt *syncpt; member
262 unsigned int syncpt) in host1x_hw_cdma_timeout_init() argument
264 return host->cdma_op->timeout_init(cdma, syncpt); in host1x_hw_cdma_timeout_init()
Ddebug.c73 u32 max = host1x_syncpt_read_max(m->syncpt + i); in show_syncpts()
74 u32 min = host1x_syncpt_load(m->syncpt + i); in show_syncpts()
80 i, m->syncpt[i].name, min, max); in show_syncpts()
86 base_val = host1x_syncpt_load_wait_base(m->syncpt + i); in show_syncpts()
DMakefile4 syncpt.o \
Dintr.h68 int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt,
Dcdma.h46 struct host1x_syncpt *syncpt; /* buffer completion syncpt */ member
Dcdma.c284 cdma->timeout.syncpt = host1x_syncpt_get(host, job->syncpt_id); in cdma_start_timer_locked()
377 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); in host1x_cdma_update_sync_queue()
/drivers/gpu/host1x/hw/
Dintr_hw.c20 static void host1x_intr_syncpt_handle(struct host1x_syncpt *syncpt) in host1x_intr_syncpt_handle() argument
22 unsigned int id = syncpt->id; in host1x_intr_syncpt_handle()
23 struct host1x *host = syncpt->host; in host1x_intr_syncpt_handle()
30 schedule_work(&syncpt->intr.work); in host1x_intr_syncpt_handle()
43 struct host1x_syncpt *syncpt = in syncpt_thresh_isr() local
44 host->syncpt + (i * 32 + id); in syncpt_thresh_isr()
45 host1x_intr_syncpt_handle(syncpt); in syncpt_thresh_isr()
91 INIT_WORK(&host->syncpt[i].intr.work, syncpt_thresh_work); in _host1x_intr_init_host_sync()
136 cancel_work_sync(&host->syncpt[i].intr.work); in _host1x_free_syncpt_irq()
Dcdma_hw.c34 host1x_syncpt_incr(cdma->timeout.syncpt); in cdma_timeout_cpu_incr()
37 host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_cpu_incr()
272 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_handler()
285 __func__, cdma->timeout.syncpt->id, cdma->timeout.syncpt->name, in cdma_timeout_handler()
298 static int cdma_timeout_init(struct host1x_cdma *cdma, unsigned int syncpt) in cdma_timeout_init() argument
Dchannel_hw.c90 struct host1x_syncpt *sp = host->syncpt + job->syncpt_id; in synchronize_syncpt_base()
129 sp = host->syncpt + job->syncpt_id; in channel_submit()
/drivers/gpu/drm/tegra/
Ddrm.c335 struct drm_tegra_syncpt syncpt; in tegra_drm_submit() local
460 if (copy_from_user(&syncpt, user_syncpt, sizeof(syncpt))) { in tegra_drm_submit()
466 sp = host1x_syncpt_get(host1x, syncpt.id); in tegra_drm_submit()
474 job->syncpt_incrs = syncpt.incrs; in tegra_drm_submit()
475 job->syncpt_id = syncpt.id; in tegra_drm_submit()
670 struct host1x_syncpt *syncpt; in tegra_get_syncpt() local
686 syncpt = context->client->base.syncpts[args->index]; in tegra_get_syncpt()
687 args->id = host1x_syncpt_id(syncpt); in tegra_get_syncpt()
724 struct host1x_syncpt *syncpt; in tegra_get_syncpt_base() local
735 if (args->syncpt >= context->client->base.num_syncpts) { in tegra_get_syncpt_base()
[all …]
Ddc.c1542 if (dc->syncpt && !dc->soc->has_nvdisplay) in tegra_dc_get_vblank_counter()
1543 return host1x_syncpt_read(dc->syncpt); in tegra_dc_get_vblank_counter()
1788 if (dc->syncpt) { in tegra_crtc_atomic_enable()
1789 u32 syncpt = host1x_syncpt_id(dc->syncpt), enable; in tegra_crtc_atomic_enable() local
1799 value = enable | syncpt; in tegra_crtc_atomic_enable()
2013 dc->syncpt = host1x_syncpt_request(client, flags); in tegra_dc_init()
2014 if (!dc->syncpt) in tegra_dc_init()
2087 host1x_syncpt_free(dc->syncpt); in tegra_dc_init()
2109 host1x_syncpt_free(dc->syncpt); in tegra_dc_exit()
Ddc.h73 struct host1x_syncpt *syncpt; member