Home
last modified time | relevance | path

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

/linux-4.1.27/fs/ocfs2/
Dlocks.c41 int ret = 0, level = 0, trylock = 0; in ocfs2_do_flock() local
48 trylock = 1; in ocfs2_do_flock()
75 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
77 if (ret == -EAGAIN && trylock) in ocfs2_do_flock()
Ddlmglue.h151 int ocfs2_file_lock(struct file *file, int ex, int trylock);
Ddlmglue.c1876 int ocfs2_file_lock(struct file *file, int ex, int trylock) in ocfs2_file_lock() argument
1879 unsigned int lkm_flags = trylock ? DLM_LKF_NOQUEUE : 0; in ocfs2_file_lock()
1931 if (!trylock || (ret != -EAGAIN)) { in ocfs2_file_lock()
1961 BUG_ON(!trylock); in ocfs2_file_lock()
1968 lockres->l_name, ex, trylock, ret); in ocfs2_file_lock()
/linux-4.1.27/include/trace/events/
Dlock.h15 int trylock, int read, int check,
18 TP_ARGS(lock, subclass, trylock, read, check, next_lock, ip),
27 __entry->flags = (trylock ? 1 : 0) | (read ? 2 : 0);
/linux-4.1.27/fs/xfs/
Dxfs_filestream.c152 int err, trylock, nscan; in xfs_filestream_pick_ag() local
163 trylock = XFS_ALLOC_FLAG_TRYLOCK; in xfs_filestream_pick_ag()
171 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock); in xfs_filestream_pick_ag()
172 if (err && !trylock) { in xfs_filestream_pick_ag()
225 if (trylock != 0) { in xfs_filestream_pick_ag()
226 trylock = 0; in xfs_filestream_pick_ag()
Dxfs_icache.c1027 int trylock = flags & SYNC_TRYLOCK; in xfs_reclaim_inodes_ag() local
1040 if (trylock) { in xfs_reclaim_inodes_ag()
1115 if (trylock && !done) in xfs_reclaim_inodes_ag()
1131 trylock = 0; in xfs_reclaim_inodes_ag()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_modeset_lock.c71 bool trylock) in __drm_modeset_lock_all() argument
78 trylock ? GFP_ATOMIC : GFP_KERNEL); in __drm_modeset_lock_all()
82 if (trylock) { in __drm_modeset_lock_all()
90 ctx->trylock_only = trylock; in __drm_modeset_lock_all()
/linux-4.1.27/drivers/hwspinlock/
Dhwspinlock_internal.h37 int (*trylock)(struct hwspinlock *lock); member
Dhwspinlock_core.c120 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock()
331 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
Domap_hwspinlock.c76 .trylock = omap_hwspinlock_trylock,
Du8500_hsem.c89 .trylock = u8500_hsem_trylock,
/linux-4.1.27/tools/lib/lockdep/include/liblockdep/
Dcommon.h42 int trylock, int read, int check,
/linux-4.1.27/include/drm/
Ddrm_modeset_lock.h133 int __drm_modeset_lock_all(struct drm_device *dev, bool trylock);
/linux-4.1.27/kernel/locking/
Dlockdep.c1967 if (!hlock->trylock) in check_prevs_add()
2114 if (!hlock->trylock && hlock->check && in validate_chain()
2784 if (!hlock->trylock) { in mark_irqflags()
2829 if (!hlock->trylock && (curr->lockdep_reclaim_gfp & __GFP_FS)) { in mark_irqflags()
3069 int trylock, int read, int check, int hardirqs_off, in __lock_acquire() argument
3151 hlock->trylock = trylock; in __lock_acquire()
3362 hlock_class(hlock)->subclass, hlock->trylock, in __lock_set_class()
3446 hlock_class(hlock)->subclass, hlock->trylock, in lock_release_non_nested()
3610 int trylock, int read, int check, in lock_acquire() argument
3622 trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip); in lock_acquire()
[all …]
/linux-4.1.27/Documentation/filesystems/
Ddlmfs.txt93 an error has occurred, unless it has been instructed to do a trylock
110 If O_NONBLOCK is also provided and the trylock operation was valid but
/linux-4.1.27/include/linux/
Dlockdep.h252 unsigned int trylock:1; /* 16 bits */ member
333 int trylock, int read, int check,
/linux-4.1.27/fs/
Dsuper.c1171 static void acquire_freeze_lock(struct super_block *sb, int level, bool trylock, in acquire_freeze_lock() argument
1176 if (!trylock) { in acquire_freeze_lock()
1179 trylock = true; in acquire_freeze_lock()
1183 rwsem_acquire_read(&sb->s_writers.lock_map[level-1], 0, trylock, ip); in acquire_freeze_lock()
/linux-4.1.27/Documentation/
Dhwspinlock.txt292 int (*trylock)(struct hwspinlock *lock);
299 The ->trylock() callback should make a single attempt to take the lock, and
307 a delay between two successive invocations of ->trylock(). It may _not_ sleep.
Dvgaarbiter.txt69 trylock <io_state> : non-blocking acquire locks on target (returns EBUSY if
/linux-4.1.27/kernel/
Dfutex.c2272 ktime_t *time, int trylock) in futex_lock_pi() argument
2332 if (!trylock) { in futex_lock_pi()
/linux-4.1.27/sound/core/oss/
Dpcm_oss.c838 bool trylock) in snd_pcm_oss_change_params() argument
852 if (trylock) { in snd_pcm_oss_change_params()
/linux-4.1.27/arch/arm64/
DKconfig634 trylock() operations with the assumption that the code will not
/linux-4.1.27/arch/arm/mm/
DKconfig685 trylock() operations with the assumption that the code will not