/linux-4.4.14/drivers/gpu/host1x/ |
H A D | Makefile | 3 syncpt.o \
|
H A D | intr.c | 162 * 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 D | syncpt.c | 25 #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 D | dev.h | 24 #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 D | cdma.h | 55 struct host1x_syncpt *syncpt; /* buffer completion syncpt */ member in struct:buffer_timeout 56 u32 syncpt_val; /* syncpt value when completed */
|
H A D | debug.c | 68 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 D | cdma.c | 186 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 D | job.c | 32 #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 D | syncpt.h | 127 /* Patch a wait by replacing it with a wait for syncpt 0 value 0 */
|
/linux-4.4.14/drivers/gpu/host1x/hw/ |
H A D | intr_hw.c | 31 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 D | cdma_hw.c | 37 * 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 D | channel_hw.c | 77 struct host1x_syncpt *sp = host->syncpt + job->syncpt_id; synchronize_syncpt_base() 101 sp = host->syncpt + job->syncpt_id; channel_submit()
|
H A D | syncpt_hw.c | 22 #include "../syncpt.h"
|
H A D | debug_hw.c | 204 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 D | jfs_logmgr.c | 289 * 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 D | jfs_logmgr.h | 291 * 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 D | jfs_txnmgr.c | 556 /* write dirty metadata & forward log syncpt */ txEnd()
|
H A D | jfs_dmap.c | 447 /* compute delta of transaction lsn from log syncpt */ dbUpdatePMap()
|
/linux-4.4.14/drivers/gpu/drm/tegra/ |
H A D | drm.c | 340 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 D | dc.c | 920 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 D | drm.h | 117 struct host1x_syncpt *syncpt; member in struct:tegra_dc
|
/linux-4.4.14/include/uapi/drm/ |
H A D | tegra_drm.h | 80 __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 D | node.c | 1154 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 D | sync.h | 70 int (*fill_driver_data)(struct sync_pt *syncpt, void *data, int size);
|