Searched refs:syncpt (Results 1 - 24 of 24) sorted by relevance

/linux-4.4.14/drivers/gpu/host1x/
H A DMakefile3 syncpt.o \
H A Dintr.c162 * Remove & handle all waiters that have completed for the given syncpt
165 struct host1x_syncpt *syncpt, process_wait_list()
175 spin_lock(&syncpt->intr.lock); process_wait_list()
177 remove_completed_waiters(&syncpt->intr.wait_head, threshold, process_wait_list()
180 empty = list_empty(&syncpt->intr.wait_head); process_wait_list()
182 host1x_hw_intr_disable_syncpt_intr(host, syncpt->id); process_wait_list()
184 reset_threshold_interrupt(host, &syncpt->intr.wait_head, process_wait_list()
185 syncpt->id); process_wait_list()
187 spin_unlock(&syncpt->intr.lock); process_wait_list()
203 struct host1x_syncpt *syncpt = syncpt_thresh_work() local
205 unsigned int id = syncpt->id; syncpt_thresh_work()
206 struct host1x *host = syncpt->host; syncpt_thresh_work()
208 (void)process_wait_list(host, syncpt, syncpt_thresh_work()
209 host1x_syncpt_load(host->syncpt + id)); syncpt_thresh_work()
216 struct host1x_syncpt *syncpt; host1x_intr_add_action() local
235 syncpt = host->syncpt + id; host1x_intr_add_action()
237 spin_lock(&syncpt->intr.lock); host1x_intr_add_action()
239 queue_was_empty = list_empty(&syncpt->intr.wait_head); host1x_intr_add_action()
241 if (add_waiter_to_queue(waiter, &syncpt->intr.wait_head)) { host1x_intr_add_action()
250 spin_unlock(&syncpt->intr.lock); host1x_intr_add_action()
260 struct host1x_syncpt *syncpt; host1x_intr_put_ref() local
266 syncpt = host->syncpt + id; host1x_intr_put_ref()
267 (void)process_wait_list(host, syncpt, host1x_intr_put_ref()
268 host1x_syncpt_load(host->syncpt + id)); host1x_intr_put_ref()
285 struct host1x_syncpt *syncpt = host->syncpt + id; host1x_intr_init() local
287 spin_lock_init(&syncpt->intr.lock); host1x_intr_init()
288 INIT_LIST_HEAD(&syncpt->intr.wait_head); host1x_intr_init()
289 snprintf(syncpt->intr.thresh_irq_name, host1x_intr_init()
290 sizeof(syncpt->intr.thresh_irq_name), host1x_intr_init()
323 struct host1x_syncpt *syncpt = host->syncpt; host1x_intr_stop() local
334 &syncpt[id].intr.wait_head, list) { host1x_intr_stop()
342 if (!list_empty(&syncpt[id].intr.wait_head)) { host1x_intr_stop()
345 pr_warn("%s cannot stop syncpt intr id=%d\n", host1x_intr_stop()
164 process_wait_list(struct host1x *host, struct host1x_syncpt *syncpt, u32 threshold) process_wait_list() argument
H A Dsyncpt.c25 #include "syncpt.h"
61 struct host1x_syncpt *sp = host->syncpt; host1x_syncpt_alloc()
112 struct host1x_syncpt *sp_base = host->syncpt; host1x_syncpt_restore()
128 struct host1x_syncpt *sp_base = host->syncpt; host1x_syncpt_save()
343 struct host1x_syncpt *syncpt; host1x_syncpt_init() local
346 syncpt = devm_kzalloc(host->dev, sizeof(*syncpt) * host->info->nb_pts, host1x_syncpt_init()
348 if (!syncpt) host1x_syncpt_init()
357 syncpt[i].id = i; host1x_syncpt_init()
358 syncpt[i].host = host; host1x_syncpt_init()
364 host->syncpt = syncpt; host1x_syncpt_init()
402 struct host1x_syncpt *sp = host->syncpt; host1x_syncpt_deinit()
453 return host->syncpt + id; host1x_syncpt_get()
H A Ddev.h24 #include "syncpt.h"
73 void (*restore)(struct host1x_syncpt *syncpt);
74 void (*restore_wait_base)(struct host1x_syncpt *syncpt);
75 void (*load_wait_base)(struct host1x_syncpt *syncpt);
76 u32 (*load)(struct host1x_syncpt *syncpt);
77 int (*cpu_incr)(struct host1x_syncpt *syncpt);
78 int (*patch_wait)(struct host1x_syncpt *syncpt, void *patch_addr);
105 struct host1x_syncpt *syncpt; member in struct:host1x
H A Dcdma.h55 struct host1x_syncpt *syncpt; /* buffer completion syncpt */ member in struct:buffer_timeout
56 u32 syncpt_val; /* syncpt value when completed */
H A Ddebug.c68 u32 max = host1x_syncpt_read_max(m->syncpt + i); show_syncpts()
69 u32 min = host1x_syncpt_load(m->syncpt + i); show_syncpts()
73 i, m->syncpt[i].name, min, max); show_syncpts()
78 base_val = host1x_syncpt_load_wait_base(m->syncpt + i); show_syncpts()
H A Dcdma.c186 cdma->timeout.syncpt = host1x_syncpt_get(host, job->syncpt_id); cdma_start_timer_locked()
232 /* Check whether this syncpt has completed, and bail if not */ update_cdma_locked()
234 /* Start timer on next pending syncpt */ update_cdma_locked()
278 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); host1x_cdma_update_sync_queue()
285 * completed based on the current HW syncpt value. It's likely there host1x_cdma_update_sync_queue()
287 * where a syncpt incr happens just prior/during the teardown. host1x_cdma_update_sync_queue()
305 * At the point contexts are interleaved, syncpt increments must be host1x_cdma_update_sync_queue()
307 * the order (slots are modified to be a GATHER of syncpt incrs). host1x_cdma_update_sync_queue()
H A Djob.c32 #include "syncpt.h"
115 * a reserved (never given out or incr) HOST1X_SYNCPT_RESERVED syncpt
135 * Check driver supplied waitchk structs for syncpt thresholds
144 /* compare syncpt vs wait threshold */ do_waitchks()
150 /* validate syncpt id */ do_waitchks()
522 /* get current syncpt values for waitchk */ host1x_job_pin()
524 host1x_syncpt_load(host->syncpt + i); host1x_job_pin()
H A Dsyncpt.h127 /* Patch a wait by replacing it with a wait for syncpt 0 value 0 */
/linux-4.4.14/drivers/gpu/host1x/hw/
H A Dintr_hw.c31 static void host1x_intr_syncpt_handle(struct host1x_syncpt *syncpt) host1x_intr_syncpt_handle() argument
33 unsigned int id = syncpt->id; host1x_intr_syncpt_handle()
34 struct host1x *host = syncpt->host; host1x_intr_syncpt_handle()
41 queue_work(host->intr_wq, &syncpt->intr.work); host1x_intr_syncpt_handle()
54 struct host1x_syncpt *syncpt = syncpt_thresh_isr() local
55 host->syncpt + (i * BITS_PER_LONG + id); syncpt_thresh_isr()
56 host1x_intr_syncpt_handle(syncpt); syncpt_thresh_isr()
83 INIT_WORK(&host->syncpt[i].intr.work, syncpt_thresh_work); _host1x_intr_init_host_sync()
H A Dcdma_hw.c37 * Increment timedout buffer's syncpt via CPU.
47 host1x_syncpt_incr(cdma->timeout.syncpt); cdma_timeout_cpu_incr()
50 host1x_syncpt_load(cdma->timeout.syncpt); cdma_timeout_cpu_incr()
266 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); cdma_timeout_handler()
281 __func__, cdma->timeout.syncpt->id, cdma->timeout.syncpt->name, cdma_timeout_handler()
H A Dchannel_hw.c77 struct host1x_syncpt *sp = host->syncpt + job->syncpt_id; synchronize_syncpt_base()
101 sp = host->syncpt + job->syncpt_id; channel_submit()
H A Dsyncpt_hw.c22 #include "../syncpt.h"
H A Ddebug_hw.c204 host1x_debug_output(o, "waiting on syncpt %d val %d\n", host1x_debug_show_channel_cdma()
215 host1x_debug_output(o, "waiting on syncpt %d val %d (base %d = %d; offset = %d)\n", host1x_debug_show_channel_cdma()
/linux-4.4.14/fs/jfs/
H A Djfs_logmgr.c289 * commit time to allow forwarding log syncpt past log lmLog()
330 * forward log syncpt if log reached next syncpt trigger lmLog()
945 int written; /* written since last syncpt */ lmLogSync()
961 * forward syncpt lmLogSync()
963 /* if last sync is same as last syncpt, lmLogSync()
967 if (log->sync == log->syncpt) { lmLogSync()
980 /* if sync is different from last syncpt, lmLogSync()
981 * write a SYNCPT record with syncpt = sync. lmLogSync()
982 * reset syncpt = sync lmLogSync()
984 if (log->sync != log->syncpt) { lmLogSync()
989 lrd.log.syncpt.sync = cpu_to_le32(log->sync); lmLogSync()
992 log->syncpt = log->sync; lmLogSync()
997 * setup next syncpt trigger (SWAG) lmLogSync()
1026 log->syncpt = log->sync = lsn; lmLogSync()
1029 /* next syncpt trigger = written + more */ lmLogSync()
1040 jfs_info("log barrier on: lsn=0x%x syncpt=0x%x", lsn, lmLogSync()
1041 log->syncpt); lmLogSync()
1389 lrd.log.syncpt.sync = 0; lmLogInit()
1413 log->syncpt = lsn; lmLogInit()
1414 log->sync = log->syncpt; lmLogInit()
1417 jfs_info("lmLogInit: lsn:0x%x syncpt:0x%x sync:0x%x", lmLogInit()
1418 log->lsn, log->syncpt, log->sync); lmLogInit()
1645 * write log syncpt record.
1676 lrd.log.syncpt.sync = 0; lmLogShutdown()
2463 lrd_ptr->log.syncpt.sync = 0; lmLogFormat()
H A Djfs_logmgr.h291 * replay log up to syncpt address specified;
294 __le32 sync; /* 4: syncpt address (0 = here) */
295 } syncpt; member in union:lrd::__anon11614
369 * before writing syncpt.
392 /* syncpt */
393 int nextsync; /* 4: bytes to write before next syncpt */
407 int syncpt; /* 4: addr of last syncpt record */ member in struct:jfs_log
498 diff = (lsn) - (log)->syncpt;\
H A Djfs_txnmgr.c556 /* write dirty metadata & forward log syncpt */ txEnd()
H A Djfs_dmap.c447 /* compute delta of transaction lsn from log syncpt */ dbUpdatePMap()
/linux-4.4.14/drivers/gpu/drm/tegra/
H A Ddrm.c340 struct drm_tegra_syncpt syncpt; tegra_drm_submit() local
394 if (copy_from_user(&syncpt, (void __user *)(uintptr_t)args->syncpts, tegra_drm_submit()
395 sizeof(syncpt))) { tegra_drm_submit()
401 job->syncpt_incrs = syncpt.incrs; tegra_drm_submit()
402 job->syncpt_id = syncpt.id; tegra_drm_submit()
579 struct host1x_syncpt *syncpt; tegra_get_syncpt() local
589 syncpt = context->client->base.syncpts[args->index]; tegra_get_syncpt()
590 args->id = host1x_syncpt_id(syncpt); tegra_get_syncpt()
617 struct host1x_syncpt *syncpt; tegra_get_syncpt_base() local
624 if (args->syncpt >= context->client->base.num_syncpts) tegra_get_syncpt_base()
627 syncpt = context->client->base.syncpts[args->syncpt]; tegra_get_syncpt_base()
629 base = host1x_syncpt_get_base(syncpt); tegra_get_syncpt_base()
H A Ddc.c920 if (dc->syncpt) tegra_dc_get_vblank_counter()
921 return host1x_syncpt_read(dc->syncpt); tegra_dc_get_vblank_counter()
1705 dc->syncpt = host1x_syncpt_request(dc->dev, flags); tegra_dc_init()
1706 if (!dc->syncpt) tegra_dc_init()
1774 if (dc->syncpt) { tegra_dc_init()
1775 u32 syncpt = host1x_syncpt_id(dc->syncpt); tegra_dc_init() local
1780 value = SYNCPT_VSYNC_ENABLE | syncpt; tegra_dc_init()
1855 host1x_syncpt_free(dc->syncpt); tegra_dc_exit()
H A Ddrm.h117 struct host1x_syncpt *syncpt; member in struct:tegra_dc
/linux-4.4.14/include/uapi/drm/
H A Dtegra_drm.h80 __u32 syncpt; member in struct:drm_tegra_get_syncpt_base
112 __u32 syncpt; member in struct:drm_tegra_waitchk
/linux-4.4.14/net/tipc/
H A Dnode.c1154 u16 rcv_nxt, syncpt, dlv_nxt; tipc_node_check_state() local
1198 syncpt = oseqno + exp_pkts - 1; tipc_node_check_state()
1204 /* If pkts arrive out of order, use lowest calculated syncpt */ tipc_node_check_state()
1205 if (less(syncpt, n->sync_point)) tipc_node_check_state()
1206 n->sync_point = syncpt; tipc_node_check_state()
1225 syncpt = iseqno + exp_pkts - 1; tipc_node_check_state()
1231 n->sync_point = syncpt; tipc_node_check_state()
1235 if (less(syncpt, n->sync_point)) tipc_node_check_state()
1236 n->sync_point = syncpt; tipc_node_check_state()
/linux-4.4.14/drivers/staging/android/
H A Dsync.h70 int (*fill_driver_data)(struct sync_pt *syncpt, void *data, int size);

Completed in 924 milliseconds