Lines Matching +full:host1x +full:- +full:class

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2009-2013, NVIDIA Corporation. All rights reserved.
10 #include <linux/dma-direction.h>
11 #include <linux/dma-fence.h>
25 struct host1x;
29 u64 host1x_get_dma_mask(struct host1x *host1x);
32 * struct host1x_bo_cache - host1x buffer object cache
48 INIT_LIST_HEAD(&cache->mappings); in host1x_bo_cache_init()
49 mutex_init(&cache->lock); in host1x_bo_cache_init()
55 mutex_destroy(&cache->lock); in host1x_bo_cache_destroy()
59 * struct host1x_client_ops - host1x client operations
60 * @early_init: host1x client early initialization code
61 * @init: host1x client initialization code
62 * @exit: host1x client tear down code
63 * @late_exit: host1x client late tear down code
64 * @suspend: host1x client suspend code
65 * @resume: host1x client resume code
77 * struct host1x_client - host1x client structure
78 * @list: list node for the host1x client
79 * @host: pointer to struct device representing the host1x controller
80 * @dev: pointer to struct device backing this host1x client
82 * @ops: host1x client operations
83 * @class: host1x class represented by this client
84 * @channel: host1x channel associated with this client
90 * @cache: host1x buffer object cache
100 enum host1x_class class; member
114 * host1x buffer objects
160 INIT_LIST_HEAD(&bo->mappings); in host1x_bo_init()
161 spin_lock_init(&bo->lock); in host1x_bo_init()
162 bo->ops = ops; in host1x_bo_init()
167 return bo->ops->get(bo); in host1x_bo_get()
172 bo->ops->put(bo); in host1x_bo_put()
182 return bo->ops->mmap(bo); in host1x_bo_mmap()
187 bo->ops->munmap(bo, addr); in host1x_bo_munmap()
191 * host1x syncpoints
199 struct host1x;
201 struct host1x_syncpt *host1x_syncpt_get_by_id(struct host1x *host, u32 id);
202 struct host1x_syncpt *host1x_syncpt_get_by_id_noref(struct host1x *host, u32 id);
215 struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host,
230 * host1x channel
243 * host1x job
314 int (*is_addr_reg)(struct device *dev, u32 class, u32 reg);
316 /* Check if class belongs to the unit */
317 int (*is_valid_class)(u32 class);
319 /* Request a SETCLASS to this class */
320 u32 class; member
325 /* Fast-forward syncpoint increments on job timeout */
332 /* Whether host1x-side firewall should be ran for this job or not */
363 * struct host1x_driver - host1x logical device driver
367 * @probe: called when the host1x logical device is probed
368 * @remove: called when the host1x logical device is removed
369 * @shutdown: called when the host1x logical device is shut down
434 * register a host1x client must first initialize using either of the
436 * the low-level __host1x_client_register() function to avoid the client
461 /* host1x memory contexts */
464 struct host1x *host;
476 struct host1x_memory_context *host1x_memory_context_alloc(struct host1x *host1x,
482 static inline struct host1x_memory_context *host1x_memory_context_alloc(struct host1x *host1x, in host1x_memory_context_alloc() argument