Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/gpu/host1x/
Dintr.c164 struct host1x_syncpt *syncpt, in process_wait_list() argument
174 spin_lock(&syncpt->intr.lock); in process_wait_list()
176 remove_completed_waiters(&syncpt->intr.wait_head, threshold, in process_wait_list()
179 empty = list_empty(&syncpt->intr.wait_head); in process_wait_list()
181 host1x_hw_intr_disable_syncpt_intr(host, syncpt->id); in process_wait_list()
183 reset_threshold_interrupt(host, &syncpt->intr.wait_head, in process_wait_list()
184 syncpt->id); in process_wait_list()
186 spin_unlock(&syncpt->intr.lock); in process_wait_list()
202 struct host1x_syncpt *syncpt = in syncpt_thresh_work() local
204 unsigned int id = syncpt->id; in syncpt_thresh_work()
[all …]
Dsyncpt.c61 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc()
137 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_restore()
164 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_save()
331 struct host1x_syncpt *syncpt; in host1x_syncpt_init() local
334 syncpt = devm_kcalloc(host->dev, host->info->nb_pts, sizeof(*syncpt), in host1x_syncpt_init()
336 if (!syncpt) in host1x_syncpt_init()
345 syncpt[i].id = i; in host1x_syncpt_init()
346 syncpt[i].host = host; in host1x_syncpt_init()
353 host->syncpt = syncpt; in host1x_syncpt_init()
362 kref_init(&host->syncpt[26].ref); in host1x_syncpt_init()
[all …]
Ddebug.c91 u32 max = host1x_syncpt_read_max(m->syncpt + i); in show_syncpts()
92 u32 min = host1x_syncpt_load(m->syncpt + i); in show_syncpts()
95 spin_lock(&m->syncpt[i].intr.lock); in show_syncpts()
96 list_for_each(pos, &m->syncpt[i].intr.wait_head) in show_syncpts()
98 spin_unlock(&m->syncpt[i].intr.lock); in show_syncpts()
100 if (!kref_read(&m->syncpt[i].ref)) in show_syncpts()
108 i, m->syncpt[i].name, min, max, waiters); in show_syncpts()
114 base_val = host1x_syncpt_load_wait_base(m->syncpt + i); in show_syncpts()
Ddev.h66 void (*restore)(struct host1x_syncpt *syncpt);
67 void (*restore_wait_base)(struct host1x_syncpt *syncpt);
68 void (*load_wait_base)(struct host1x_syncpt *syncpt);
69 u32 (*load)(struct host1x_syncpt *syncpt);
70 int (*cpu_incr)(struct host1x_syncpt *syncpt);
71 void (*assign_to_channel)(struct host1x_syncpt *syncpt,
128 struct host1x_syncpt *syncpt; member
Dcdma.c282 cdma->timeout.syncpt = job->syncpt; in cdma_start_timer_locked()
320 struct host1x_syncpt *sp = job->syncpt; in update_cdma_locked()
370 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); in host1x_cdma_update_sync_queue()
441 host1x_syncpt_set_locked(job->syncpt); in host1x_cdma_update_sync_queue()
447 if (job->syncpt != failed_job->syncpt) in host1x_cdma_update_sync_queue()
549 if (job->syncpt->locked) { in host1x_cdma_begin()
Djob.c92 host1x_intr_put_ref(job->syncpt->host, job->syncpt->id, in job_free()
95 if (job->syncpt) in job_free()
96 host1x_syncpt_put(job->syncpt); in job_free()
678 dev_dbg(dev, " SYNCPT_ID %d\n", job->syncpt->id); in host1x_job_dump()
DMakefile4 syncpt.o \
Dintr.h70 int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt,
Dcdma.h46 struct host1x_syncpt *syncpt; /* buffer completion syncpt */ member
/linux-6.1.9/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()
102 INIT_WORK(&host->syncpt[i].intr.work, syncpt_thresh_work); in _host1x_intr_init_host_sync()
147 cancel_work_sync(&host->syncpt[i].intr.work); in _host1x_free_syncpt_irq()
Dchannel_hw.c165 struct host1x_syncpt *sp = job->syncpt; in synchronize_syncpt_base()
217 struct host1x_syncpt *sp = job->syncpt; in channel_program_cdma()
233 HOST1X_UCLASS_INCR_SYNCPT_INDX_F(job->syncpt->id) | in channel_program_cdma()
235 submit_wait(job, job->syncpt->id, fence, job->class); in channel_program_cdma()
245 HOST1X_UCLASS_INCR_SYNCPT_INDX_F(job->syncpt->id) | in channel_program_cdma()
247 submit_wait(job, job->syncpt->id, fence, job->class); in channel_program_cdma()
261 host1x_class_host_wait_syncpt(job->syncpt->id, in channel_program_cdma()
284 struct host1x_syncpt *sp = job->syncpt; in channel_submit()
293 job->syncpt->id, job->syncpt_incrs); in channel_submit()
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()
303 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_handler()
316 __func__, cdma->timeout.syncpt->id, cdma->timeout.syncpt->name, in cdma_timeout_handler()
Ddebug_hw.c202 job->syncpt->id, job->syncpt_end, job->timeout, in show_channel_gathers()
/linux-6.1.9/drivers/gpu/drm/tegra/
Ddrm.c180 struct drm_tegra_syncpt syncpt; in tegra_drm_submit() local
306 if (copy_from_user(&syncpt, user_syncpt, sizeof(syncpt))) { in tegra_drm_submit()
312 sp = host1x_syncpt_get_by_id(host1x, syncpt.id); in tegra_drm_submit()
320 job->syncpt_incrs = syncpt.incrs; in tegra_drm_submit()
321 job->syncpt = sp; in tegra_drm_submit()
523 struct host1x_syncpt *syncpt; in tegra_get_syncpt() local
539 syncpt = context->client->base.syncpts[args->index]; in tegra_get_syncpt()
540 args->id = host1x_syncpt_id(syncpt); in tegra_get_syncpt()
577 struct host1x_syncpt *syncpt; in tegra_get_syncpt_base() local
588 if (args->syncpt >= context->client->base.num_syncpts) { in tegra_get_syncpt_base()
[all …]
Dsubmit.c337 if (args->syncpt.flags) { in submit_get_syncpt()
343 sp = xa_load(syncpoints, args->syncpt.id); in submit_get_syncpt()
349 job->syncpt = host1x_syncpt_get(sp); in submit_get_syncpt()
350 job->syncpt_incrs = args->syncpt.increments; in submit_get_syncpt()
462 if (cmd->wait_syncpt.id != args->syncpt.id) { in submit_create_job()
659 args->syncpt.value = job->syncpt_end; in tegra_drm_ioctl_channel_submit()
662 struct dma_fence *fence = host1x_fence_create(job->syncpt, job->syncpt_end); in tegra_drm_ioctl_channel_submit()
Ddc.c1759 if (dc->syncpt && !dc->soc->has_nvdisplay) in tegra_dc_get_vblank_counter()
1760 return host1x_syncpt_read(dc->syncpt); in tegra_dc_get_vblank_counter()
2162 if (dc->syncpt) { in tegra_crtc_atomic_enable()
2163 u32 syncpt = host1x_syncpt_id(dc->syncpt), enable; in tegra_crtc_atomic_enable() local
2173 value = enable | syncpt; in tegra_crtc_atomic_enable()
2630 dc->syncpt = host1x_syncpt_request(client, flags); in tegra_dc_init()
2631 if (!dc->syncpt) in tegra_dc_init()
2715 host1x_syncpt_put(dc->syncpt); in tegra_dc_init()
2740 host1x_syncpt_put(dc->syncpt); in tegra_dc_exit()
Ddc.h84 struct host1x_syncpt *syncpt; member
/linux-6.1.9/fs/jfs/
Djfs_logmgr.h282 } syncpt; member
394 int syncpt; /* 4: addr of last syncpt record */ member
485 diff = (lsn) - (log)->syncpt;\
Djfs_logmgr.c946 if (log->sync == log->syncpt) { in lmLogSync()
963 if (log->sync != log->syncpt) { in lmLogSync()
968 lrd.log.syncpt.sync = cpu_to_le32(log->sync); in lmLogSync()
971 log->syncpt = log->sync; in lmLogSync()
1005 log->syncpt = log->sync = lsn; in lmLogSync()
1020 log->syncpt); in lmLogSync()
1366 lrd.log.syncpt.sync = 0; in lmLogInit()
1390 log->syncpt = lsn; in lmLogInit()
1391 log->sync = log->syncpt; in lmLogInit()
1395 log->lsn, log->syncpt, log->sync); in lmLogInit()
[all …]
/linux-6.1.9/include/uapi/drm/
Dtegra_drm.h239 __u32 syncpt; member
381 __u32 syncpt; member
991 struct drm_tegra_submit_syncpt syncpt; member
/linux-6.1.9/Documentation/devicetree/bindings/display/tegra/
Dnvidia,tegra20-host1x.yaml134 - const: syncpt
171 - const: syncpt
242 interrupts = <0 65 0x04>, /* mpcore syncpt */
244 interrupt-names = "syncpt", "host1x";
378 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>, /* mpcore syncpt */
380 interrupt-names = "syncpt", "host1x";
/linux-6.1.9/net/tipc/
Dnode.c1940 u16 rcv_nxt, syncpt, dlv_nxt, inputq_len; in tipc_node_check_state() local
1998 syncpt = oseqno + exp_pkts - 1; in tipc_node_check_state()
2017 if (less(syncpt, n->sync_point)) in tipc_node_check_state()
2018 n->sync_point = syncpt; in tipc_node_check_state()
2038 syncpt = msg_syncpt(hdr); in tipc_node_check_state()
2040 syncpt = msg_seqno(msg_inner_hdr(hdr)) + exp_pkts - 1; in tipc_node_check_state()
2044 n->sync_point = syncpt; in tipc_node_check_state()
/linux-6.1.9/include/linux/
Dhost1x.h287 struct host1x_syncpt *syncpt; member
/linux-6.1.9/arch/arm/boot/dts/
Dtegra114.dtsi36 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, /* syncpt */
38 interrupt-names = "syncpt", "host1x";
/linux-6.1.9/Documentation/gpu/
Dtegra.rst58 .. kernel-doc:: drivers/gpu/host1x/syncpt.c

12