Searched refs:lock (Results 201 - 225 of 6514) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/v3d/
H A Dv3d_perfmon.c21 mutex_destroy(&perfmon->lock);
69 mutex_lock(&perfmon->lock);
71 mutex_unlock(&perfmon->lock);
82 mutex_unlock(&perfmon->lock);
89 mutex_lock(&v3d_priv->perfmon.lock);
92 mutex_unlock(&v3d_priv->perfmon.lock);
99 mutex_init(&v3d_priv->perfmon.lock);
114 mutex_lock(&v3d_priv->perfmon.lock);
117 mutex_unlock(&v3d_priv->perfmon.lock);
118 mutex_destroy(&v3d_priv->perfmon.lock);
[all...]
/linux-master/drivers/staging/media/sunxi/sun6i-isp/
H A Dsun6i_isp_params.h17 struct list_head queue; /* Queue and buffers lock. */
18 spinlock_t lock; member in struct:sun6i_isp_params_state
31 struct mutex lock; /* Queue lock. */ member in struct:sun6i_isp_params
/linux-master/drivers/hwspinlock/
H A Du8500_hsem.c50 static int u8500_hsem_trylock(struct hwspinlock *lock) argument
52 void __iomem *lock_addr = lock->priv;
63 static void u8500_hsem_unlock(struct hwspinlock *lock) argument
65 void __iomem *lock_addr = lock->priv;
67 /* release the lock by writing 0 to it */
74 static void u8500_hsem_relax(struct hwspinlock *lock) argument
108 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks),
115 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++)
126 void __iomem *io_base = bank->lock[0].priv - HSEM_REGISTER_OFFSET;
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dsmt.h63 spinlock_t lock; /* protect smt entry add,removal */ member in struct:smt_entry
68 rwlock_t lock; member in struct:smt_data
/linux-master/virt/lib/
H A Dirqbypass.c27 static DEFINE_MUTEX(lock);
29 /* @lock must be held when calling connect */
57 /* @lock must be held when calling disconnect */
98 mutex_lock(&lock);
118 mutex_unlock(&lock);
122 mutex_unlock(&lock);
148 mutex_lock(&lock);
166 mutex_unlock(&lock);
194 mutex_lock(&lock);
214 mutex_unlock(&lock);
[all...]
/linux-master/drivers/clk/spear/
H A Dclk-frac-synth.c72 if (frac->lock)
73 spin_lock_irqsave(frac->lock, flags);
77 if (frac->lock)
78 spin_unlock_irqrestore(frac->lock, flags);
103 if (frac->lock)
104 spin_lock_irqsave(frac->lock, flags);
110 if (frac->lock)
111 spin_unlock_irqrestore(frac->lock, flags);
124 struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock)
143 frac->lock
122 clk_register_frac(const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock) argument
[all...]
H A Dclk-gpt-synth.c59 if (gpt->lock)
60 spin_lock_irqsave(gpt->lock, flags);
64 if (gpt->lock)
65 spin_unlock_irqrestore(gpt->lock, flags);
88 if (gpt->lock)
89 spin_lock_irqsave(gpt->lock, flags);
99 if (gpt->lock)
100 spin_unlock_irqrestore(gpt->lock, flags);
113 rtbl_cnt, spinlock_t *lock)
132 gpt->lock
111 clk_register_gpt(const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, struct gpt_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock) argument
[all...]
/linux-master/include/linux/
H A Ddma-resv.h157 * @lock:
159 * Update side lock. Don't use directly, instead use the wrapper
163 * also use this lock to protect buffer object state like placement,
166 struct ww_mutex lock; member in struct:dma_resv
280 * &dma_resv.lock and using RCU instead. The cursor needs to be initialized
282 * the iterator a reference to the dma_fence is held and the RCU lock dropped.
287 * lock iterator dma_resv_for_each_fence() whenever possible.
301 * &dma_resv.lock. @all_fences controls if the shared fences are returned as
303 * valid as long as the lock is held and so no extra reference to the fence is
311 #define dma_resv_held(obj) lockdep_is_held(&(obj)->lock
[all...]
/linux-master/drivers/soc/amlogic/
H A Dmeson-canvas.c37 spinlock_t lock; /* canvas device lock */ member in struct:meson_canvas
99 spin_lock_irqsave(&canvas->lock, flags);
104 spin_unlock_irqrestore(&canvas->lock, flags);
125 spin_unlock_irqrestore(&canvas->lock, flags);
136 spin_lock_irqsave(&canvas->lock, flags);
140 spin_unlock_irqrestore(&canvas->lock, flags);
145 spin_unlock_irqrestore(&canvas->lock, flags);
156 spin_lock_irqsave(&canvas->lock, flags);
160 spin_unlock_irqrestore(&canvas->lock, flag
[all...]
/linux-master/drivers/base/power/
H A Druntime.c106 spin_lock_irqsave(&dev->power.lock, flags);
111 spin_unlock_irqrestore(&dev->power.lock, flags);
162 * This function may be called either with or without dev->power.lock held.
212 * The lock of dev_hotplug_mutex is held in the function for handling
227 /* hold power lock since bitfield is not SMP-safe. */
228 spin_lock_irq(&dev->power.lock);
231 spin_unlock_irq(&dev->power.lock);
363 __releases(&dev->power.lock) __acquires(&dev->power.lock)
369 spin_unlock(&dev->power.lock);
[all...]
/linux-master/drivers/gpio/
H A Dgpio-cs5535.c51 spinlock_t lock; member in struct:cs5535_gpio_chip
99 spin_lock_irqsave(&chip->lock, flags);
101 spin_unlock_irqrestore(&chip->lock, flags);
121 spin_lock_irqsave(&chip->lock, flags);
123 spin_unlock_irqrestore(&chip->lock, flags);
133 spin_lock_irqsave(&chip->lock, flags);
142 spin_unlock_irqrestore(&chip->lock, flags);
181 spin_lock_irqsave(&chip->lock, flags);
195 spin_unlock_irqrestore(&chip->lock, flags);
208 spin_lock_irqsave(&chip->lock, flag
[all...]
/linux-master/arch/x86/include/asm/
H A Dcmpxchg.h42 #define __xchg_op(ptr, arg, op, lock) \
47 asm volatile (lock #op "b %b0, %1\n" \
52 asm volatile (lock #op "w %w0, %1\n" \
57 asm volatile (lock #op "l %0, %1\n" \
62 asm volatile (lock #op "q %q0, %1\n" \
73 * Note: no "lock" prefix even on SMP: xchg always implies lock anyway.
85 #define __raw_cmpxchg(ptr, old, new, size, lock) \
94 asm volatile(lock "cmpxchgb %2,%1" \
103 asm volatile(lock "cmpxchg
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_frontbuffer.c86 spin_lock(&i915->display.fb_tracking.lock);
88 spin_unlock(&i915->display.fb_tracking.lock);
116 spin_lock(&i915->display.fb_tracking.lock);
120 spin_unlock(&i915->display.fb_tracking.lock);
136 spin_lock(&i915->display.fb_tracking.lock);
140 spin_unlock(&i915->display.fb_tracking.lock);
160 spin_lock(&i915->display.fb_tracking.lock);
163 spin_unlock(&i915->display.fb_tracking.lock);
175 spin_lock(&i915->display.fb_tracking.lock);
178 spin_unlock(&i915->display.fb_tracking.lock);
[all...]
/linux-master/tools/perf/util/
H A Dthreads.c29 init_rwsem(&table->lock);
41 exit_rwsem(&table->lock);
52 down_read(&table->lock);
54 up_read(&table->lock);
87 down_write(&table->lock);
89 up_write(&table->lock);
97 down_read(&table->lock);
103 up_read(&table->lock);
115 down_write(&table->lock);
131 up_write(&table->lock);
[all...]
/linux-master/drivers/fpga/
H A Ddfl-fme-error.c51 mutex_lock(&pdata->lock);
53 mutex_unlock(&pdata->lock);
72 mutex_lock(&pdata->lock);
82 mutex_unlock(&pdata->lock);
96 mutex_lock(&pdata->lock);
98 mutex_unlock(&pdata->lock);
117 mutex_lock(&pdata->lock);
127 mutex_unlock(&pdata->lock);
165 mutex_lock(&pdata->lock);
167 mutex_unlock(&pdata->lock);
[all...]
/linux-master/drivers/gpu/drm/lima/
H A Dlima_vm.c97 mutex_lock(&bo->lock);
102 mutex_unlock(&bo->lock);
108 mutex_unlock(&bo->lock);
121 mutex_lock(&vm->lock);
136 mutex_unlock(&vm->lock);
140 mutex_unlock(&bo->lock);
148 mutex_unlock(&vm->lock);
151 mutex_unlock(&bo->lock);
160 mutex_lock(&bo->lock);
164 mutex_unlock(&bo->lock);
[all...]
/linux-master/drivers/usb/serial/
H A Dopticon.c40 spinlock_t lock; /* protects the following flags */ member in struct:opticon_private
63 spin_lock_irqsave(&priv->lock, flags);
68 spin_unlock_irqrestore(&priv->lock, flags);
134 spin_lock_irqsave(&priv->lock, flags);
136 spin_unlock_irqrestore(&priv->lock, flags);
182 spin_lock_irqsave(&priv->lock, flags);
185 spin_unlock_irqrestore(&priv->lock, flags);
201 spin_lock_irqsave(&priv->lock, flags);
203 spin_unlock_irqrestore(&priv->lock, flags);
209 spin_unlock_irqrestore(&priv->lock, flag
[all...]
/linux-master/fs/nilfs2/
H A Dalloc.c127 * @lock: spin lock protecting @desc
131 spinlock_t *lock)
135 spin_lock(lock);
137 spin_unlock(lock);
144 * @lock: spin lock protecting @desc
149 spinlock_t *lock, u32 n)
153 spin_lock(lock);
156 spin_unlock(lock);
130 nilfs_palloc_group_desc_nfrees(const struct nilfs_palloc_group_desc *desc, spinlock_t *lock) argument
148 nilfs_palloc_group_desc_add_entries(struct nilfs_palloc_group_desc *desc, spinlock_t *lock, u32 n) argument
196 nilfs_palloc_get_block(struct inode *inode, unsigned long blkoff, int create, void (*init_block)(struct inode *, struct buffer_head *, void *), struct buffer_head **bhp, struct nilfs_bh_assoc *prev, spinlock_t *lock) argument
240 nilfs_palloc_delete_block(struct inode *inode, unsigned long blkoff, struct nilfs_bh_assoc *prev, spinlock_t *lock) argument
381 nilfs_palloc_find_available_slot(unsigned char *bitmap, unsigned long target, unsigned int bsize, spinlock_t *lock) argument
510 spinlock_t *lock; local
607 spinlock_t *lock; local
648 spinlock_t *lock; local
737 spinlock_t *lock; local
[all...]
/linux-master/fs/ocfs2/dlm/
H A Ddlmthread.c72 * the first lock), and has no bits in its refmap.
343 struct dlm_lock *lock, *target; local
366 mlog(ML_ERROR, "%s: res %.*s converting lock to invalid mode\n",
370 list_for_each_entry(lock, &res->granted, list) {
371 if (lock==target)
373 if (!dlm_lock_compatible(lock->ml.type,
377 if (lock->ml.highest_blocked == LKM_IVMODE) {
379 __dlm_queue_bast(dlm, lock);
382 if (lock->ml.highest_blocked < target->ml.convert_type)
383 lock
572 struct dlm_lock *lock; local
[all...]
/linux-master/arch/sparc/include/asm/
H A Dbitext.h14 spinlock_t lock; member in struct:bit_map
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dport_tun.h14 struct mutex lock; /* lock the entropy fields */ member in struct:mlx5_tun_entropy
/linux-master/drivers/rtc/
H A Drtc-sa1100.h11 spinlock_t lock; member in struct:sa1100_rtc
/linux-master/kernel/
H A Ddma.c50 /* Channel n is busy iff dma_chan_busy[n].lock != 0.
56 int lock; member in struct:dma_chan
75 if (xchg(&dma_chan_busy[dmanr].lock, 1) != 0)
95 if (xchg(&dma_chan_busy[dmanr].lock, 0) == 0) {
123 if (dma_chan_busy[i].lock) {
/linux-master/fs/reiserfs/
H A Dlock.c18 * Also this lock is often released before a call that could block because
27 mutex_lock(&sb_i->lock);
40 * Are we unlocking without even holding the lock?
48 mutex_unlock(&sb_i->lock);
57 /* this can happen when the lock isn't always held */
65 mutex_unlock(&sb_i->lock);
74 /* this can happen when the lock isn't always held */
78 mutex_lock(&sb_i->lock);
85 * write lock held. caller is the string printed just before calling BUG()
99 WARN_ONCE((sb_i->lock_depth > 0), "Unwanted recursive reiserfs lock!\
[all...]
/linux-master/sound/core/seq/
H A Dseq_lock.h9 /* initialize lock */
12 /* increment lock */
15 /* release lock */
19 void snd_use_lock_sync_helper(snd_use_lock_t *lock, const char *file, int line);

Completed in 329 milliseconds

1234567891011>>