• Home
  • Raw
  • Download

Lines Matching refs:obj

195 	struct dma_resv *obj;  member
231 struct dma_resv *obj, in dma_resv_iter_begin() argument
234 cursor->obj = obj; in dma_resv_iter_begin()
306 #define dma_resv_for_each_fence(cursor, obj, usage, fence) \ argument
307 for (dma_resv_iter_begin(cursor, obj, usage), \
311 #define dma_resv_held(obj) lockdep_is_held(&(obj)->lock.base) argument
312 #define dma_resv_assert_held(obj) lockdep_assert_held(&(obj)->lock.base) argument
315 void dma_resv_reset_max_fences(struct dma_resv *obj);
317 static inline void dma_resv_reset_max_fences(struct dma_resv *obj) {} in dma_resv_reset_max_fences() argument
342 static inline int dma_resv_lock(struct dma_resv *obj, in dma_resv_lock() argument
345 return ww_mutex_lock(&obj->lock, ctx); in dma_resv_lock()
369 static inline int dma_resv_lock_interruptible(struct dma_resv *obj, in dma_resv_lock_interruptible() argument
372 return ww_mutex_lock_interruptible(&obj->lock, ctx); in dma_resv_lock_interruptible()
386 static inline void dma_resv_lock_slow(struct dma_resv *obj, in dma_resv_lock_slow() argument
389 ww_mutex_lock_slow(&obj->lock, ctx); in dma_resv_lock_slow()
402 static inline int dma_resv_lock_slow_interruptible(struct dma_resv *obj, in dma_resv_lock_slow_interruptible() argument
405 return ww_mutex_lock_slow_interruptible(&obj->lock, ctx); in dma_resv_lock_slow_interruptible()
422 static inline bool __must_check dma_resv_trylock(struct dma_resv *obj) in dma_resv_trylock() argument
424 return ww_mutex_trylock(&obj->lock, NULL); in dma_resv_trylock()
433 static inline bool dma_resv_is_locked(struct dma_resv *obj) in dma_resv_is_locked() argument
435 return ww_mutex_is_locked(&obj->lock); in dma_resv_is_locked()
450 static inline struct ww_acquire_ctx *dma_resv_locking_ctx(struct dma_resv *obj) in dma_resv_locking_ctx() argument
452 return READ_ONCE(obj->lock.ctx); in dma_resv_locking_ctx()
461 static inline void dma_resv_unlock(struct dma_resv *obj) in dma_resv_unlock() argument
463 dma_resv_reset_max_fences(obj); in dma_resv_unlock()
464 ww_mutex_unlock(&obj->lock); in dma_resv_unlock()
467 void dma_resv_init(struct dma_resv *obj);
468 void dma_resv_fini(struct dma_resv *obj);
469 int dma_resv_reserve_fences(struct dma_resv *obj, unsigned int num_fences);
470 void dma_resv_add_fence(struct dma_resv *obj, struct dma_fence *fence,
472 void dma_resv_replace_fences(struct dma_resv *obj, uint64_t context,
475 int dma_resv_get_fences(struct dma_resv *obj, enum dma_resv_usage usage,
477 int dma_resv_get_singleton(struct dma_resv *obj, enum dma_resv_usage usage,
480 long dma_resv_wait_timeout(struct dma_resv *obj, enum dma_resv_usage usage,
482 void dma_resv_set_deadline(struct dma_resv *obj, enum dma_resv_usage usage,
484 bool dma_resv_test_signaled(struct dma_resv *obj, enum dma_resv_usage usage);
485 void dma_resv_describe(struct dma_resv *obj, struct seq_file *seq);