Lines Matching refs:sp
16 static void syncpt_restore(struct host1x_syncpt *sp)
18 u32 min = host1x_syncpt_read_min(sp);
19 struct host1x *host = sp->host;
21 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id));
27 static void syncpt_restore_wait_base(struct host1x_syncpt *sp)
30 struct host1x *host = sp->host;
32 host1x_sync_writel(host, sp->base_val,
33 HOST1X_SYNC_SYNCPT_BASE(sp->id));
40 static void syncpt_read_wait_base(struct host1x_syncpt *sp)
43 struct host1x *host = sp->host;
45 sp->base_val =
46 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id));
53 static u32 syncpt_load(struct host1x_syncpt *sp)
55 struct host1x *host = sp->host;
60 old = host1x_syncpt_read_min(sp);
61 live = host1x_sync_readl(host, HOST1X_SYNC_SYNCPT(sp->id));
62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old);
64 if (!host1x_syncpt_check_max(sp, live))
66 __func__, sp->id, host1x_syncpt_read_min(sp),
67 host1x_syncpt_read_max(sp));
76 static int syncpt_cpu_incr(struct host1x_syncpt *sp)
78 struct host1x *host = sp->host;
79 u32 reg_offset = sp->id / 32;
81 if (!host1x_syncpt_client_managed(sp) &&
82 host1x_syncpt_idle(sp))
85 host1x_sync_writel(host, BIT(sp->id % 32),
94 * @sp: syncpoint
97 * On chips with the syncpoint protection feature (Tegra186+), assign @sp to
103 static void syncpt_assign_to_channel(struct host1x_syncpt *sp,
107 struct host1x *host = sp->host;
111 HOST1X_SYNC_SYNCPT_CH_APP(sp->id));