Lines Matching +full:host +full:- +full:id

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2013, NVIDIA Corporation.
19 struct host1x *host = sp->host; in syncpt_restore() local
21 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_restore()
30 struct host1x *host = sp->host; in syncpt_restore_wait_base() local
32 host1x_sync_writel(host, sp->base_val, in syncpt_restore_wait_base()
33 HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_restore_wait_base()
43 struct host1x *host = sp->host; in syncpt_read_wait_base() local
45 sp->base_val = in syncpt_read_wait_base()
46 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_read_wait_base()
55 struct host1x *host = sp->host; in syncpt_load() local
61 live = host1x_sync_readl(host, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_load()
62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
65 dev_err(host->dev, "%s failed: id=%u, min=%d, max=%d\n", in syncpt_load()
66 __func__, sp->id, host1x_syncpt_read_min(sp), in syncpt_load()
78 struct host1x *host = sp->host; in syncpt_cpu_incr() local
79 u32 reg_offset = sp->id / 32; in syncpt_cpu_incr()
83 return -EINVAL; in syncpt_cpu_incr()
85 host1x_sync_writel(host, BIT(sp->id % 32), in syncpt_cpu_incr()
93 * syncpt_assign_to_channel() - Assign syncpoint to channel
107 struct host1x *host = sp->host; in syncpt_assign_to_channel() local
109 host1x_sync_writel(host, in syncpt_assign_to_channel()
110 HOST1X_SYNC_SYNCPT_CH_APP_CH(ch ? ch->id : 0xff), in syncpt_assign_to_channel()
111 HOST1X_SYNC_SYNCPT_CH_APP(sp->id)); in syncpt_assign_to_channel()
116 * syncpt_enable_protection() - Enable syncpoint protection
117 * @host: host1x instance
122 static void syncpt_enable_protection(struct host1x *host) in syncpt_enable_protection() argument
125 if (!host->hv_regs) in syncpt_enable_protection()
128 host1x_hypervisor_writel(host, HOST1X_HV_SYNCPT_PROT_EN_CH_EN, in syncpt_enable_protection()