Home
last modified time | relevance | path

Searched refs:trylock (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/fs/ocfs2/
H A Dlocks.c26 int ret = 0, level = 0, trylock = 0; in ocfs2_do_flock() local
33 trylock = 1; in ocfs2_do_flock()
63 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
65 if (ret == -EAGAIN && trylock) in ocfs2_do_flock()
H A Ddlmglue.h171 struct ocfs2_trim_fs_info *info, int trylock);
176 int ocfs2_file_lock(struct file *file, int ex, int trylock);
H A Ddlmglue.c1973 int ocfs2_file_lock(struct file *file, int ex, int trylock) in ocfs2_file_lock() argument
1976 unsigned int lkm_flags = trylock ? DLM_LKF_NOQUEUE : 0; in ocfs2_file_lock()
2028 if (!trylock || (ret != -EAGAIN)) { in ocfs2_file_lock()
2058 BUG_ON(!trylock); in ocfs2_file_lock()
2065 lockres->l_name, ex, trylock, ret); in ocfs2_file_lock()
2909 struct ocfs2_trim_fs_info *info, int trylock) in ocfs2_trim_fs_lock() argument
2925 trylock ? DLM_LKF_NOQUEUE : 0, 0); in ocfs2_trim_fs_lock()
/openbmc/linux/include/trace/events/
H A Dlock.h27 int trylock, int read, int check,
30 TP_ARGS(lock, subclass, trylock, read, check, next_lock, ip),
39 __entry->flags = (trylock ? 1 : 0) | (read ? 2 : 0);
/openbmc/linux/kernel/locking/
H A Dtest-ww_mutex.c121 static int test_aa(bool trylock) in test_aa() argument
126 const char *from = trylock ? "trylock" : "lock"; in test_aa()
131 if (!trylock) { in test_aa()
182 bool resolve, trylock; member
193 if (!abba->trylock) in test_abba_work()
218 static int test_abba(bool trylock, bool resolve) in test_abba() argument
229 abba.trylock = trylock; in test_abba()
235 if (!trylock) in test_abba()
H A Dlockdep.c3263 if (!hlock->trylock) in check_prevs_add()
3836 if (!hlock->trylock && hlock->check && in validate_chain()
4552 if (!hlock->trylock) { in mark_usage()
4778 if (!next_inner || next->trylock) in check_wait_context()
4990 int trylock, int read, int check, int hardirqs_off, in __lock_acquire() argument
5075 hlock->trylock = trylock; in __lock_acquire()
5281 hlock->trylock, in reacquire_held_locks()
5720 int trylock, int read, int check, in lock_acquire() argument
5732 if (lockdep_nmi() && !trylock) { in lock_acquire()
5739 hlock.trylock = trylock; in lock_acquire()
[all …]
/openbmc/linux/drivers/hwspinlock/
H A Dhwspinlock_internal.h31 int (*trylock)(struct hwspinlock *lock); member
H A Du8500_hsem.c80 .trylock = u8500_hsem_trylock,
H A Domap_hwspinlock.c70 .trylock = omap_hwspinlock_trylock,
H A Dsprd_hwspinlock.c74 .trylock = sprd_hwspinlock_trylock,
H A Dstm32_hwspinlock.c52 .trylock = stm32_hwspinlock_trylock,
H A Dsun6i_hwspinlock.c78 .trylock = sun6i_hwspinlock_trylock,
H A Dhwspinlock_core.c132 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock()
520 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
H A Dqcom_hwspinlock.c68 .trylock = qcom_hwspinlock_trylock,
/openbmc/linux/Documentation/gpu/rfc/
H A Di915_gem_lmem.rst16 * dma_resv_lockitem for full dma_resv_lock, i.e not just trylock
/openbmc/linux/Documentation/filesystems/
H A Ddlmfs.rst98 an error has occurred, unless it has been instructed to do a trylock
120 If O_NONBLOCK is also provided and the trylock operation was valid but
/openbmc/linux/kernel/futex/
H A Dfutex.h292 extern int futex_lock_pi(u32 __user *uaddr, unsigned int flags, ktime_t *time, int trylock);
H A Dpi.c930 int futex_lock_pi(u32 __user *uaddr, unsigned int flags, ktime_t *time, int trylock) in futex_lock_pi() argument
998 if (trylock) { in futex_lock_pi()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_ggtt.c809 bool trylock; in ggtt_cleanup_hw() local
811 trylock = i915_gem_object_trylock(obj, NULL); in ggtt_cleanup_hw()
812 WARN_ON(!trylock); in ggtt_cleanup_hw()
815 if (trylock) in ggtt_cleanup_hw()
/openbmc/linux/include/linux/
H A Dlockdep.h132 unsigned int trylock:1; /* 16 bits */ member
267 int trylock, int read, int check,
/openbmc/linux/Documentation/locking/
H A Dhwspinlock.rst481 int (*trylock)(struct hwspinlock *lock);
488 The ->trylock() callback should make a single attempt to take the lock, and
496 a delay between two successive invocations of ->trylock(). It may **not** sleep.
/openbmc/linux/Documentation/gpu/
H A Dvgaarbiter.rst62 trylock <io_state>
H A Dtodo.rst519 make sure to not call such paths, or trylock everything. Really tricky.
/openbmc/linux/sound/core/
H A Dpcm_native.c1322 bool trylock; in snd_pcm_stream_group_ref() local
1331 trylock = nonatomic ? mutex_trylock(&group->mutex) : in snd_pcm_stream_group_ref()
1333 if (trylock) in snd_pcm_stream_group_ref()
/openbmc/linux/sound/core/oss/
H A Dpcm_oss.c1105 bool trylock) in snd_pcm_oss_change_params() argument
1110 if (trylock) { in snd_pcm_oss_change_params()

12