Searched refs:lock (Results 151 - 175 of 6514) sorted by relevance

1234567891011>>

/linux-master/fs/lockd/
H A Dclnt4xdr.c65 static void nlm4_compute_offsets(const struct nlm_lock *lock, argument
68 const struct file_lock *fl = &lock->fl;
242 const struct nlm_lock *lock = &result->lock; local
246 encode_bool(xdr, lock->fl.c.flc_type == F_RDLCK);
247 encode_int32(xdr, lock->svid);
248 encode_netobj(xdr, lock->oh.data, lock->oh.len);
251 nlm4_compute_offsets(lock, &l_offset, &l_len);
258 struct nlm_lock *lock local
318 encode_nlm4_lock(struct xdr_stream *xdr, const struct nlm_lock *lock) argument
357 const struct nlm_lock *lock = &args->lock; local
379 const struct nlm_lock *lock = &args->lock; local
402 const struct nlm_lock *lock = &args->lock; local
421 const struct nlm_lock *lock = &args->lock; local
[all...]
/linux-master/sound/firewire/fireface/
H A Dff-hwdep.c13 * 3.lock/unlock stream
32 spin_lock_irq(&ff->lock);
36 spin_unlock_irq(&ff->lock);
41 spin_lock_irq(&ff->lock);
52 spin_unlock_irq(&ff->lock);
58 // NOTE: Acquired spin lock should be released before accessing to user space in the
61 spin_unlock_irq(&ff->lock);
63 spin_unlock_irq(&ff->lock);
79 spin_lock_irq(&ff->lock);
84 spin_unlock_irq(&ff->lock);
[all...]
/linux-master/arch/powerpc/lib/
H A Dqspinlock.c17 struct qspinlock *lock; member in struct:qnode
21 u8 locked; /* 1 if lock acquired */
116 * Try to acquire the lock if it was not already locked. If the tail matches
119 * This is used by the head of the queue to acquire the lock and clean up
122 static __always_inline u32 trylock_clean_tail(struct qspinlock *lock, u32 tail) argument
132 /* Test whether the lock tail == mytail */
138 /* If the lock tail matched, then clear it, otherwise leave it. */
145 : "r" (&lock->val), "r"(tail), "r" (newval),
161 static __always_inline u32 publish_tail_cpu(struct qspinlock *lock, u32 tail) argument
175 : "r" (&lock
181 set_mustq(struct qspinlock *lock) argument
197 clear_mustq(struct qspinlock *lock) argument
213 try_set_sleepy(struct qspinlock *lock, u32 old) argument
235 seen_sleepy_owner(struct qspinlock *lock, u32 val) argument
260 get_tail_qnode(struct qspinlock *lock, int prev_cpu) argument
284 __yield_to_locked_owner(struct qspinlock *lock, u32 val, bool paravirt, bool mustq) argument
337 yield_to_locked_owner(struct qspinlock *lock, u32 val, bool paravirt) argument
343 yield_head_to_locked_owner(struct qspinlock *lock, u32 val, bool paravirt) argument
376 yield_to_prev(struct qspinlock *lock, struct qnode *node, int prev_cpu, bool paravirt) argument
456 try_to_steal_lock(struct qspinlock *lock, bool paravirt) argument
526 queued_spin_lock_mcs_queue(struct qspinlock *lock, bool paravirt) argument
703 queued_spin_lock_slowpath(struct qspinlock *lock) argument
[all...]
/linux-master/drivers/mfd/
H A Dmcp-core.c63 spin_lock_irqsave(&mcp->lock, flags);
65 spin_unlock_irqrestore(&mcp->lock, flags);
80 spin_lock_irqsave(&mcp->lock, flags);
82 spin_unlock_irqrestore(&mcp->lock, flags);
99 spin_lock_irqsave(&mcp->lock, flags);
101 spin_unlock_irqrestore(&mcp->lock, flags);
118 spin_lock_irqsave(&mcp->lock, flags);
120 spin_unlock_irqrestore(&mcp->lock, flags);
137 spin_lock_irqsave(&mcp->lock, flags);
140 spin_unlock_irqrestore(&mcp->lock, flag
[all...]
/linux-master/tools/testing/selftests/timens/
H A Dclock_nanosleep.c27 pthread_mutex_t *lock; member in struct:thread_args
37 pthread_mutex_unlock(args->lock);
46 pthread_mutex_t lock; local
53 pthread_mutex_init(&lock, NULL);
54 pthread_mutex_lock(&lock);
70 args.lock = &lock;
88 if (pthread_mutex_trylock(&lock) == 0) {
97 pthread_mutex_destroy(&lock);
/linux-master/drivers/clk/visconti/
H A Dreset.c31 spin_lock_irqsave(reset->lock, flags);
33 spin_unlock_irqrestore(reset->lock, flags);
46 spin_lock_irqsave(reset->lock, flags);
48 spin_unlock_irqrestore(reset->lock, flags);
70 spin_lock_irqsave(reset->lock, flags);
72 spin_unlock_irqrestore(reset->lock, flags);
91 spinlock_t *lock)
104 reset->lock = lock;
86 visconti_register_reset_controller(struct device *dev, struct regmap *regmap, const struct visconti_reset_data *resets, unsigned int num_resets, const struct reset_control_ops *reset_ops, spinlock_t *lock) argument
/linux-master/drivers/clk/spear/
H A Dclk.h52 spinlock_t *lock; member in struct:clk_aux
65 spinlock_t *lock; member in struct:clk_frac
79 spinlock_t *lock; member in struct:clk_gpt
96 spinlock_t *lock; member in struct:clk_vco
103 spinlock_t *lock; member in struct:clk_pll
113 u8 rtbl_cnt, spinlock_t *lock, struct clk **gate_clk);
116 struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock);
119 rtbl_cnt, spinlock_t *lock);
124 spinlock_t *lock, struct clk **pll_clk,
/linux-master/rust/
H A Dhelpers.c41 void rust_helper_mutex_lock(struct mutex *lock) argument
43 mutex_lock(lock);
47 void rust_helper___spin_lock_init(spinlock_t *lock, const char *name, argument
51 __raw_spin_lock_init(spinlock_check(lock), name, key, LD_WAIT_CONFIG);
53 spin_lock_init(lock);
58 void rust_helper_spin_lock(spinlock_t *lock) argument
60 spin_lock(lock);
64 void rust_helper_spin_unlock(spinlock_t *lock) argument
66 spin_unlock(lock);
/linux-master/kernel/locking/
H A Dosq_lock.c7 * An MCS like lock especially tailored for optimistic spinning for sleeping
8 * lock implementations (mutex, rwsem, etc).
17 int locked; /* 1 if lock acquired */
46 * Can return NULL in case we were the last queued and we updated @lock instead.
54 osq_wait_next(struct optimistic_spin_queue *lock, argument
61 if (atomic_read(&lock->tail) == curr &&
62 atomic_cmpxchg_acquire(&lock->tail, curr, old_cpu) == curr) {
64 * We were the last queued, we moved @lock back. @prev
65 * will now observe @lock and will complete its
78 * wait for either @lock t
93 osq_lock(struct optimistic_spin_queue *lock) argument
210 osq_unlock(struct optimistic_spin_queue *lock) argument
[all...]
/linux-master/tools/arch/x86/include/asm/
H A Dcmpxchg.h35 #define __raw_cmpxchg(ptr, old, new, size, lock) \
44 asm volatile(lock "cmpxchgb %2,%1" \
53 asm volatile(lock "cmpxchgw %2,%1" \
62 asm volatile(lock "cmpxchgl %2,%1" \
71 asm volatile(lock "cmpxchgq %2,%1" \
/linux-master/drivers/md/dm-vdo/
H A Dthread-registry.c15 * their normal operation. For example, we do not want to invoke the logger while holding a lock.
21 spin_lock_init(&registry->lock);
35 spin_lock(&registry->lock);
45 spin_unlock(&registry->lock);
60 spin_lock(&registry->lock);
68 spin_unlock(&registry->lock);
/linux-master/arch/x86/hyperv/
H A Dhv_spinlock.c42 * the lock value check and the rdmsrl() then the vCPU might be put
48 * Only issue the rdmsrl() when the lock state has not changed.
81 pv_ops.lock.queued_spin_lock_slowpath = __pv_queued_spin_lock_slowpath;
82 pv_ops.lock.queued_spin_unlock = PV_CALLEE_SAVE(__pv_queued_spin_unlock);
83 pv_ops.lock.wait = hv_qlock_wait;
84 pv_ops.lock.kick = hv_qlock_kick;
85 pv_ops.lock.vcpu_is_preempted = PV_CALLEE_SAVE(hv_vcpu_is_preempted);
/linux-master/drivers/gpu/drm/
H A Ddrm_debugfs_crc.c152 spin_lock_irq(&crc->lock);
155 spin_unlock_irq(&crc->lock);
163 spin_unlock_irq(&crc->lock);
180 assert_spin_locked(&crc->lock);
230 spin_lock_irq(&crc->lock);
238 spin_unlock_irq(&crc->lock);
252 spin_lock_irq(&crc->lock);
254 spin_unlock_irq(&crc->lock);
264 spin_lock_irq(&crc->lock);
266 spin_unlock_irq(&crc->lock);
[all...]
/linux-master/kernel/sched/
H A Dwait.c10 spin_lock_init(&wq_head->lock);
11 lockdep_set_class_and_name(&wq_head->lock, key, name);
22 spin_lock_irqsave(&wq_head->lock, flags);
24 spin_unlock_irqrestore(&wq_head->lock, flags);
33 spin_lock_irqsave(&wq_head->lock, flags);
35 spin_unlock_irqrestore(&wq_head->lock, flags);
44 spin_lock_irqsave(&wq_head->lock, flags);
46 spin_unlock_irqrestore(&wq_head->lock, flags);
54 spin_lock_irqsave(&wq_head->lock, flags);
56 spin_unlock_irqrestore(&wq_head->lock, flag
[all...]
/linux-master/sound/firewire/tascam/
H A Dtascam-hwdep.c13 * 3.lock/unlock stream
20 __releases(&tscm->lock)
30 spin_unlock_irq(&tscm->lock);
40 __releases(&tscm->lock)
49 spin_unlock_irq(&tscm->lock);
77 spin_unlock_irq(&tscm->lock);
81 spin_lock_irq(&tscm->lock);
90 spin_unlock_irq(&tscm->lock);
104 spin_lock_irq(&tscm->lock);
108 spin_unlock_irq(&tscm->lock);
[all...]
/linux-master/drivers/usb/usbip/
H A Dvudc_sysfs.c22 /* called with udc->lock held */
40 spin_unlock(&udc->lock);
42 spin_lock(&udc->lock);
79 spin_lock_irqsave(&udc->lock, flags);
88 spin_unlock_irqrestore(&udc->lock, flags);
116 spin_lock_irqsave(&udc->lock, flags);
131 spin_lock(&udc->ud.lock);
153 spin_unlock(&udc->ud.lock);
154 spin_unlock_irqrestore(&udc->lock, flags);
174 /* lock an
[all...]
/linux-master/include/target/iscsi/
H A Discsi_target_stat.h31 spinlock_t lock; member in struct:iscsi_sess_err_stats
48 spinlock_t lock; member in struct:iscsi_login_stats
64 spinlock_t lock; member in struct:iscsi_logout_stats
/linux-master/sound/core/seq/oss/
H A Dseq_oss_readq.h26 spinlock_t lock; member in struct:seq_oss_readq
42 #define snd_seq_oss_readq_lock(q, flags) spin_lock_irqsave(&(q)->lock, flags)
43 #define snd_seq_oss_readq_unlock(q, flags) spin_unlock_irqrestore(&(q)->lock, flags)
/linux-master/net/bridge/
H A Dbr_stp_timer.c16 /* called under bridge lock */
35 spin_lock(&br->lock);
43 spin_unlock(&br->lock);
65 spin_lock(&br->lock);
76 spin_unlock(&br->lock);
86 spin_lock(&br->lock);
100 spin_unlock(&br->lock);
108 spin_lock(&br->lock);
114 spin_unlock(&br->lock);
122 spin_lock(&br->lock);
[all...]
/linux-master/arch/arc/include/asm/
H A Dspinlock.h17 static inline void arch_spin_lock(arch_spinlock_t *lock) argument
28 : [slock] "r" (&(lock->slock)),
33 * ACQUIRE barrier to ensure load/store after taking the lock
43 /* 1 - lock taken successfully */
44 static inline int arch_spin_trylock(arch_spinlock_t *lock) argument
58 : [slock] "r" (&(lock->slock)),
67 static inline void arch_spin_unlock(arch_spinlock_t *lock) argument
71 WRITE_ONCE(lock->slock, __ARCH_SPIN_LOCK_UNLOCKED__);
84 * zero means writer holds the lock exclusively, deny Reader.
85 * Otherwise grant lock t
222 arch_spin_lock(arch_spinlock_t *lock) argument
244 arch_spin_trylock(arch_spinlock_t *lock) argument
261 arch_spin_unlock(arch_spinlock_t *lock) argument
[all...]
/linux-master/drivers/clk/imx/
H A Dclk-gate2.c35 spinlock_t *lock; member in struct:clk_gate2
58 spin_lock_irqsave(gate->lock, flags);
65 spin_unlock_irqrestore(gate->lock, flags);
75 spin_lock_irqsave(gate->lock, flags);
86 spin_unlock_irqrestore(gate->lock, flags);
106 spin_lock_irqsave(gate->lock, flags);
111 spin_unlock_irqrestore(gate->lock, flags);
121 spin_lock_irqsave(gate->lock, flags);
126 spin_unlock_irqrestore(gate->lock, flags);
139 u8 clk_gate2_flags, spinlock_t *lock,
136 clk_hw_register_gate2(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 bit_idx, u8 cgr_val, u8 cgr_mask, u8 clk_gate2_flags, spinlock_t *lock, unsigned int *share_count) argument
[all...]
/linux-master/sound/firewire/digi00x/
H A Ddigi00x-hwdep.c13 * 3.lock/unlock stream
26 spin_lock_irq(&dg00x->lock);
30 spin_unlock_irq(&dg00x->lock);
35 spin_lock_irq(&dg00x->lock);
54 spin_unlock_irq(&dg00x->lock);
70 spin_lock_irq(&dg00x->lock);
75 spin_unlock_irq(&dg00x->lock);
103 spin_lock_irq(&dg00x->lock);
112 spin_unlock_irq(&dg00x->lock);
121 spin_lock_irq(&dg00x->lock);
[all...]
/linux-master/sound/firewire/oxfw/
H A Doxfw-hwdep.c13 * 3.lock/unlock stream
25 spin_lock_irq(&oxfw->lock);
29 spin_unlock_irq(&oxfw->lock);
34 spin_lock_irq(&oxfw->lock);
44 spin_unlock_irq(&oxfw->lock);
60 spin_lock_irq(&oxfw->lock);
65 spin_unlock_irq(&oxfw->lock);
93 spin_lock_irq(&oxfw->lock);
102 spin_unlock_irq(&oxfw->lock);
111 spin_lock_irq(&oxfw->lock);
[all...]
/linux-master/sound/firewire/dice/
H A Ddice-hwdep.c18 spin_lock_irq(&dice->lock);
22 spin_unlock_irq(&dice->lock);
27 spin_lock_irq(&dice->lock);
46 spin_unlock_irq(&dice->lock);
62 spin_lock_irq(&dice->lock);
67 spin_unlock_irq(&dice->lock);
95 spin_lock_irq(&dice->lock);
104 spin_unlock_irq(&dice->lock);
113 spin_lock_irq(&dice->lock);
122 spin_unlock_irq(&dice->lock);
[all...]
/linux-master/sound/firewire/bebob/
H A Dbebob_hwdep.c13 * 3.lock/unlock stream
26 spin_lock_irq(&bebob->lock);
30 spin_unlock_irq(&bebob->lock);
35 spin_lock_irq(&bebob->lock);
44 spin_unlock_irq(&bebob->lock);
60 spin_lock_irq(&bebob->lock);
65 spin_unlock_irq(&bebob->lock);
95 spin_lock_irq(&bebob->lock);
104 spin_unlock_irq(&bebob->lock);
114 spin_lock_irq(&bebob->lock);
[all...]

Completed in 265 milliseconds

1234567891011>>