/linux/drivers/gpu/host1x/ |
H A D | syncpt.c | 62 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc() 138 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_restore() 165 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_save() 283 struct host1x_syncpt *syncpt; in host1x_syncpt_init() local 286 syncpt = devm_kcalloc(host->dev, host->info->nb_pts, sizeof(*syncpt), in host1x_syncpt_init() 288 if (!syncpt) in host1x_syncpt_init() 297 syncpt[i].id = i; in host1x_syncpt_init() 298 syncpt[i].host = host; in host1x_syncpt_init() 305 host->syncpt = syncpt; in host1x_syncpt_init() 314 kref_init(&host->syncpt[26].ref); in host1x_syncpt_init() [all …]
|
H A D | debug.c | 92 u32 max = host1x_syncpt_read_max(m->syncpt + i); in show_syncpts() 93 u32 min = host1x_syncpt_load(m->syncpt + i); in show_syncpts() 96 spin_lock_irqsave(&m->syncpt[i].fences.lock, irqflags); in show_syncpts() 97 list_for_each(pos, &m->syncpt[i].fences.list) in show_syncpts() 99 spin_unlock_irqrestore(&m->syncpt[i].fences.lock, irqflags); in show_syncpts() 101 if (!kref_read(&m->syncpt[i].ref)) in show_syncpts() 109 i, m->syncpt[i].name, min, max, waiters); in show_syncpts() 115 base_val = host1x_syncpt_load_wait_base(m->syncpt + i); in show_syncpts()
|
H A D | intr.c | 77 struct host1x_syncpt *sp = &host->syncpt[id]; in host1x_intr_handle_interrupt() 110 struct host1x_syncpt *syncpt = &host->syncpt[id]; in host1x_intr_init() local 112 spin_lock_init(&syncpt->fences.lock); in host1x_intr_init() 113 INIT_LIST_HEAD(&syncpt->fences.list); in host1x_intr_init()
|
H A D | dev.h | 67 void (*restore)(struct host1x_syncpt *syncpt); 68 void (*restore_wait_base)(struct host1x_syncpt *syncpt); 69 void (*load_wait_base)(struct host1x_syncpt *syncpt); 70 u32 (*load)(struct host1x_syncpt *syncpt); 71 int (*cpu_incr)(struct host1x_syncpt *syncpt); 72 void (*assign_to_channel)(struct host1x_syncpt *syncpt, 137 struct host1x_syncpt *syncpt; member
|
H A D | cdma.c | 282 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() 559 if (job->syncpt->locked) { in host1x_cdma_begin()
|
H A D | Makefile | 4 syncpt.o \
|
H A D | cdma.h | 47 struct host1x_syncpt *syncpt; /* buffer completion syncpt */ member
|
H A D | job.c | 101 if (job->syncpt) in job_free() 102 host1x_syncpt_put(job->syncpt); in job_free() 684 dev_dbg(dev, " SYNCPT_ID %d\n", job->syncpt->id); in host1x_job_dump()
|
/linux/drivers/gpu/host1x/hw/ |
H A D | channel_hw.c | 165 struct host1x_syncpt *sp = job->syncpt; in synchronize_syncpt_base() 215 struct host1x_syncpt *sp = job->syncpt; in channel_program_cdma() 231 HOST1X_UCLASS_INCR_SYNCPT_INDX_F(job->syncpt->id) | in channel_program_cdma() 233 submit_wait(job, job->syncpt->id, fence, job->class); in channel_program_cdma() 243 HOST1X_UCLASS_INCR_SYNCPT_INDX_F(job->syncpt->id) | in channel_program_cdma() 245 submit_wait(job, job->syncpt->id, fence, job->class); in channel_program_cdma() 259 host1x_class_host_wait_syncpt(job->syncpt->id, in channel_program_cdma() 290 struct host1x_syncpt *sp = job->syncpt; in channel_submit() 298 job->syncpt->id, job->syncpt_incrs); in channel_submit()
|
H A D | cdma_hw.c | 34 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()
|
H A D | debug_hw.c | 202 job->syncpt->id, job->syncpt_end, job->timeout, in show_channel_gathers()
|
/linux/drivers/crypto/tegra/ |
H A D | tegra-se-main.c | 155 job->syncpt = host1x_syncpt_get(se->syncpt); in tegra_se_host1x_submit() 179 ret = host1x_syncpt_wait(job->syncpt, job->syncpt_end, in tegra_se_host1x_submit() 208 se->syncpt = host1x_syncpt_request(&se->client, 0); in tegra_se_client_init() 209 if (!se->syncpt) { in tegra_se_client_init() 215 se->syncpt_id = host1x_syncpt_id(se->syncpt); in tegra_se_client_init() 234 host1x_syncpt_put(se->syncpt); in tegra_se_client_init() 247 host1x_syncpt_put(se->syncpt); in tegra_se_client_deinit()
|
H A D | tegra-se.h | 424 struct host1x_syncpt *syncpt; member
|
/linux/drivers/gpu/drm/tegra/ |
H A D | drm.c | 177 struct drm_tegra_syncpt syncpt; in tegra_drm_submit() local 303 if (copy_from_user(&syncpt, user_syncpt, sizeof(syncpt))) { in tegra_drm_submit() 309 sp = host1x_syncpt_get_by_id(host1x, syncpt.id); in tegra_drm_submit() 317 job->syncpt_incrs = syncpt.incrs; in tegra_drm_submit() 318 job->syncpt = sp; in tegra_drm_submit() 520 struct host1x_syncpt *syncpt; in tegra_get_syncpt() local 536 syncpt = context->client->base.syncpts[args->index]; in tegra_get_syncpt() 537 args->id = host1x_syncpt_id(syncpt); in tegra_get_syncpt() 574 struct host1x_syncpt *syncpt; in tegra_get_syncpt_base() local 585 if (args->syncpt >= context->client->base.num_syncpts) { in tegra_get_syncpt_base() [all …]
|
H A D | submit.c | 332 if (args->syncpt.flags) { in submit_get_syncpt() 338 sp = xa_load(syncpoints, args->syncpt.id); in submit_get_syncpt() 344 job->syncpt = host1x_syncpt_get(sp); in submit_get_syncpt() 345 job->syncpt_incrs = args->syncpt.increments; in submit_get_syncpt() 457 if (cmd->wait_syncpt.id != args->syncpt.id) { in submit_create_job() 646 args->syncpt.value = job->syncpt_end; in tegra_drm_ioctl_channel_submit() 649 struct dma_fence *fence = host1x_fence_create(job->syncpt, job->syncpt_end, true); in tegra_drm_ioctl_channel_submit()
|
H A D | dc.c | 1767 if (dc->syncpt && !dc->soc->has_nvdisplay) in tegra_dc_get_vblank_counter() 1768 return host1x_syncpt_read(dc->syncpt); in tegra_dc_get_vblank_counter() 2170 if (dc->syncpt) { in tegra_crtc_atomic_enable() 2171 u32 syncpt = host1x_syncpt_id(dc->syncpt), enable; in tegra_crtc_atomic_enable() local 2181 value = enable | syncpt; in tegra_crtc_atomic_enable() 2636 dc->syncpt = host1x_syncpt_request(client, flags); in tegra_dc_init() 2637 if (!dc->syncpt) in tegra_dc_init() 2721 host1x_syncpt_put(dc->syncpt); in tegra_dc_init() 2746 host1x_syncpt_put(dc->syncpt); in tegra_dc_exit()
|
H A D | dc.h | 84 struct host1x_syncpt *syncpt; member
|
/linux/fs/jfs/ |
H A D | jfs_logmgr.h | 282 } syncpt; member 394 int syncpt; /* 4: addr of last syncpt record */ member 485 diff = (lsn) - (log)->syncpt;\
|
H A D | jfs_logmgr.c | 946 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/include/uapi/drm/ |
H A D | tegra_drm.h | 239 __u32 syncpt; member 381 __u32 syncpt; member 991 struct drm_tegra_submit_syncpt syncpt; member
|
/linux/net/tipc/ |
H A D | node.c | 1938 u16 rcv_nxt, syncpt, dlv_nxt, inputq_len; in tipc_node_check_state() local 1996 syncpt = oseqno + exp_pkts - 1; in tipc_node_check_state() 2015 if (less(syncpt, n->sync_point)) in tipc_node_check_state() 2016 n->sync_point = syncpt; in tipc_node_check_state() 2036 syncpt = msg_syncpt(hdr); in tipc_node_check_state() 2038 syncpt = msg_seqno(msg_inner_hdr(hdr)) + exp_pkts - 1; in tipc_node_check_state() 2042 n->sync_point = syncpt; in tipc_node_check_state()
|
/linux/include/linux/ |
H A D | host1x.h | 290 struct host1x_syncpt *syncpt; member
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra114.dtsi | 36 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, /* syncpt */ 38 interrupt-names = "syncpt", "host1x";
|
H A D | tegra20.dtsi | 38 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, /* syncpt */ 40 interrupt-names = "syncpt", "host1x";
|
/linux/Documentation/gpu/ |
H A D | tegra.rst | 58 .. kernel-doc:: drivers/gpu/host1x/syncpt.c
|