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>
24 struct host1x;
28 u64 host1x_get_dma_mask(struct host1x *host1x);
31 * struct host1x_bo_cache - host1x buffer object cache
47 INIT_LIST_HEAD(&cache->mappings); in host1x_bo_cache_init()
48 mutex_init(&cache->lock); in host1x_bo_cache_init()
54 mutex_destroy(&cache->lock); in host1x_bo_cache_destroy()
58 * struct host1x_client_ops - host1x client operations
59 * @early_init: host1x client early initialization code
60 * @init: host1x client initialization code
61 * @exit: host1x client tear down code
62 * @late_exit: host1x client late tear down code
63 * @suspend: host1x client suspend code
64 * @resume: host1x client resume code
76 * struct host1x_client - host1x client structure
77 * @list: list node for the host1x client
78 * @host: pointer to struct device representing the host1x controller
79 * @dev: pointer to struct device backing this host1x client
81 * @ops: host1x client operations
82 * @class: host1x class represented by this client
83 * @channel: host1x channel associated with this client
89 * @cache: host1x buffer object cache
99 enum host1x_class class; member
113 * host1x buffer objects
159 INIT_LIST_HEAD(&bo->mappings); in host1x_bo_init()
160 spin_lock_init(&bo->lock); in host1x_bo_init()
161 bo->ops = ops; in host1x_bo_init()
166 return bo->ops->get(bo); in host1x_bo_get()
171 bo->ops->put(bo); in host1x_bo_put()
181 return bo->ops->mmap(bo); in host1x_bo_mmap()
186 bo->ops->munmap(bo, addr); in host1x_bo_munmap()
190 * host1x syncpoints
198 struct host1x;
200 struct host1x_syncpt *host1x_syncpt_get_by_id(struct host1x *host, u32 id);
201 struct host1x_syncpt *host1x_syncpt_get_by_id_noref(struct host1x *host, u32 id);
214 struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host,
227 * host1x channel
240 * host1x job
310 int (*is_addr_reg)(struct device *dev, u32 class, u32 reg);
312 /* Check if class belongs to the unit */
313 int (*is_valid_class)(u32 class);
315 /* Request a SETCLASS to this class */
316 u32 class; member
321 /* Fast-forward syncpoint increments on job timeout */
328 /* Whether host1x-side firewall should be ran for this job or not */
359 * struct host1x_driver - host1x logical device driver
363 * @probe: called when the host1x logical device is probed
364 * @remove: called when the host1x logical device is removed
365 * @shutdown: called when the host1x logical device is shut down
430 * register a host1x client must first initialize using either of the
432 * the low-level __host1x_client_register() function to avoid the client
457 /* host1x memory contexts */
460 struct host1x *host;
471 struct host1x_memory_context *host1x_memory_context_alloc(struct host1x *host1x,
476 static inline struct host1x_memory_context *host1x_memory_context_alloc(struct host1x *host1x, in host1x_memory_context_alloc() argument