Searched refs:lock (Results 451 - 475 of 6514) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/media/cec/core/
H A Dcec-notifier.c23 struct mutex lock; member in struct:cec_notifier
80 mutex_init(&n->lock);
114 mutex_lock(&n->lock);
125 mutex_unlock(&n->lock);
135 mutex_lock(&n->lock);
143 mutex_unlock(&n->lock);
161 mutex_lock(&n->lock);
167 mutex_unlock(&n->lock);
178 mutex_lock(&n->lock);
181 mutex_unlock(&n->lock);
[all...]
/linux-master/security/apparmor/
H A Dpolicy_ns.c118 mutex_init(&ns->lock);
224 AA_BUG(!mutex_is_locked(&parent->lock));
230 mutex_lock_nested(&ns->lock, ns->level);
235 mutex_unlock(&ns->lock);
243 mutex_unlock(&ns->lock);
261 AA_BUG(!mutex_is_locked(&parent->lock));
286 mutex_lock_nested(&parent->lock, parent->level);
292 mutex_unlock(&parent->lock);
309 mutex_lock_nested(&ns->lock, ns->level);
319 write_lock_irqsave(&ns->labels.lock, flag
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dmap_in_map_btf.c17 struct bpf_spin_lock lock; member in struct:map_value
67 bpf_spin_lock(&value->lock);
69 bpf_spin_unlock(&value->lock);
/linux-master/net/core/
H A Drequest_sock.c62 * accepted or not, and the check is protected by the fastopenq->lock
66 * with its socket lock held. But a request_sock (req) can be accessed by
69 * lock per listener "icsk->icsk_accept_queue.fastopenq->lock" is created.
71 * e.g., in inet_csk_listen_stop() do we not need to acquire the lock.
72 * The lock also protects other fields such as fastopenq->qlen, which is
75 * Note that another solution was to simply use the existing socket lock
76 * from the listener. But first socket lock is difficult to use. It is not
77 * a simple spin lock - one must consider sock_owned_by_user() and arrange
80 * acquire a child's lock whil
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_hw_fence.c59 spin_lock(&irq->lock);
72 spin_unlock(&irq->lock);
78 spin_lock_init(&irq->lock);
93 spin_lock_irqsave(&irq->lock, flags);
100 spin_unlock_irqrestore(&irq->lock, flags);
112 spin_lock_irq(&irq->lock);
114 spin_unlock_irq(&irq->lock);
119 spin_lock_irq(&irq->lock);
121 spin_unlock_irq(&irq->lock);
144 return container_of(fence->dma.lock, struc
[all...]
/linux-master/drivers/s390/crypto/
H A Dap_queue.c538 spin_lock_bh(&aq->lock);
543 spin_unlock_bh(&aq->lock);
557 spin_lock_bh(&aq->lock);
559 spin_unlock_bh(&aq->lock);
572 spin_lock_bh(&aq->lock);
575 spin_unlock_bh(&aq->lock);
587 spin_lock_bh(&aq->lock);
590 spin_unlock_bh(&aq->lock);
602 spin_lock_bh(&aq->lock);
615 spin_unlock_bh(&aq->lock);
[all...]
/linux-master/drivers/thermal/
H A Dgov_bang_bang.c58 mutex_lock(&instance->cdev->lock);
60 mutex_unlock(&instance->cdev->lock);
99 lockdep_assert_held(&tz->lock);
H A Dgov_fair_share.c76 lockdep_assert_held(&tz->lock);
101 mutex_lock(&cdev->lock);
103 mutex_unlock(&cdev->lock);
/linux-master/sound/core/seq/
H A Dseq_fifo.c37 spin_lock_init(&f->lock);
91 guard(spinlock_irq)(&f->lock);
119 scoped_guard(spinlock_irqsave, &f->lock) {
172 spin_lock_irqsave(&f->lock, flags);
176 spin_unlock_irqrestore(&f->lock, flags);
181 spin_unlock_irqrestore(&f->lock, flags);
183 spin_lock_irqsave(&f->lock, flags);
186 spin_unlock_irqrestore(&f->lock, flags);
190 spin_unlock_irqrestore(&f->lock, flags);
201 guard(spinlock_irqsave)(&f->lock);
[all...]
/linux-master/drivers/s390/block/
H A Ddasd_alias.c42 .lock = __SPIN_LOCK_UNLOCKED(aliastree.lock),
148 spin_lock_init(&lcu->lock);
188 spin_lock_irqsave(&aliastree.lock, flags);
191 spin_unlock_irqrestore(&aliastree.lock, flags);
195 spin_lock_irqsave(&aliastree.lock, flags);
208 spin_unlock_irqrestore(&aliastree.lock, flags);
212 spin_lock_irqsave(&aliastree.lock, flags);
222 spin_lock(&lcu->lock);
225 spin_unlock(&lcu->lock);
[all...]
/linux-master/io_uring/
H A Dio-wq.c55 raw_spinlock_t lock; member in struct:io_worker
82 raw_spinlock_t lock; member in struct:io_wq_acct
113 /* lock protects access to elements below */
114 raw_spinlock_t lock; member in struct:io_wq
193 raw_spin_lock(&wq->lock);
195 raw_spin_unlock(&wq->lock);
227 raw_spin_lock(&wq->lock);
231 raw_spin_unlock(&wq->lock);
252 * If there's work to do, returns true with acct->lock acquired. If not,
253 * returns false with no lock hel
[all...]
/linux-master/sound/pci/ctxfi/
H A Dcttimer.c31 spinlock_t lock; member in struct:ct_timer_instance
46 spinlock_t lock; /* global timer lock (for xfitimer) */ member in struct:ct_timer
47 spinlock_t list_lock; /* lock for instance list */
85 spin_lock_irqsave(&ti->lock, flags);
88 spin_unlock_irqrestore(&ti->lock, flags);
101 spin_lock_irqsave(&ti->lock, flags);
106 spin_unlock_irqrestore(&ti->lock, flags);
113 spin_lock_irqsave(&ti->lock, flags);
116 spin_unlock_irqrestore(&ti->lock, flag
[all...]
/linux-master/drivers/media/mc/
H A Dmc-request.c104 spin_lock_irqsave(&req->lock, flags);
115 spin_unlock_irqrestore(&req->lock, flags);
138 spin_lock_irqsave(&req->lock, flags);
142 spin_unlock_irqrestore(&req->lock, flags);
169 spin_lock_irqsave(&req->lock, flags);
172 spin_unlock_irqrestore(&req->lock, flags);
193 spin_lock_irqsave(&req->lock, flags);
199 spin_unlock_irqrestore(&req->lock, flags);
206 spin_unlock_irqrestore(&req->lock, flags);
210 spin_unlock_irqrestore(&req->lock, flag
[all...]
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_irq_kms.c128 spin_lock_irqsave(&rdev->irq.lock, irqflags);
141 spin_unlock_irqrestore(&rdev->irq.lock, irqflags);
182 spin_lock_irqsave(&rdev->irq.lock, irqflags);
195 spin_unlock_irqrestore(&rdev->irq.lock, irqflags);
322 spin_lock_init(&rdev->irq.lock);
395 spin_lock_irqsave(&rdev->irq.lock, irqflags);
397 spin_unlock_irqrestore(&rdev->irq.lock, irqflags);
434 spin_lock_irqsave(&rdev->irq.lock, irqflags);
436 spin_unlock_irqrestore(&rdev->irq.lock, irqflags);
460 spin_lock_irqsave(&rdev->irq.lock, irqflag
[all...]
/linux-master/kernel/locking/
H A Dlockdep.c12 * this code maps all the lock dependencies as they occur in a live kernel
15 * - lock inversion scenarios
16 * - circular lock dependencies
24 * locks (but of the same class as this lock), this code will detect it.
27 * mapping lock dependencies runtime.
64 #include <trace/events/lock.h>
174 * CPU is busy printing out stuff with the graph lock
190 * Turn lock debugging off and return with 0 if it was off already,
191 * and also release the graph lock:
365 * We keep a global list of all lock classe
745 print_lockdep_cache(struct lockdep_map *lock) argument
769 struct lock_class *lock = hlock_class(hlock); local
882 look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) argument
948 assign_lock_key(struct lockdep_map *lock) argument
1275 register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) argument
1496 struct lock_list * lock; local
1512 mark_lock_accessed(struct lock_list *lock) argument
1517 visit_lock_entry(struct lock_list *lock, struct lock_list *parent) argument
1523 lock_accessed(struct lock_list *lock) argument
1552 get_dep_list(struct lock_list *lock, int offset) argument
1644 __bfs_init_root(struct lock_list *lock, struct lock_class *class) argument
1660 bfs_init_root(struct lock_list *lock, struct held_lock *hlock) argument
1674 bfs_init_rootb(struct lock_list *lock, struct held_lock *hlock) argument
1681 __bfs_next(struct lock_list *lock, int offset) argument
1725 struct lock_list *lock = NULL; local
3950 print_usage_bug_scenario(struct held_lock *lock) argument
4856 lockdep_init_map_type(struct lockdep_map *lock, const char *name, struct lock_class_key *key, int subclass, u8 inner, u8 outer, u8 lock_type) argument
4922 lockdep_set_lock_cmp_fn(struct lockdep_map *lock, lock_cmp_fn cmp_fn, lock_print_fn print_fn) argument
4989 __lock_acquire(struct lockdep_map *lock, unsigned int subclass, int trylock, int read, int check, int hardirqs_off, struct lockdep_map *nest_lock, unsigned long ip, int references, int pin_count, int sync) argument
5170 print_unlock_imbalance_bug(struct task_struct *curr, struct lockdep_map *lock, unsigned long ip) argument
5197 match_held_lock(const struct held_lock *hlock, const struct lockdep_map *lock) argument
5234 find_held_lock(struct task_struct *curr, struct lockdep_map *lock, unsigned int depth, int *idx) argument
5302 __lock_set_class(struct lockdep_map *lock, const char *name, struct lock_class_key *key, unsigned int subclass, unsigned long ip) argument
5351 __lock_downgrade(struct lockdep_map *lock, unsigned long ip) argument
5405 __lock_release(struct lockdep_map *lock, unsigned long ip) argument
5487 __lock_is_held(const struct lockdep_map *lock, int read) argument
5506 __lock_pin_lock(struct lockdep_map *lock) argument
5534 __lock_repin_lock(struct lockdep_map *lock, struct pin_cookie cookie) argument
5554 __lock_unpin_lock(struct lockdep_map *lock, struct pin_cookie cookie) argument
5627 lock_set_class(struct lockdep_map *lock, const char *name, struct lock_class_key *key, unsigned int subclass, unsigned long ip) argument
5646 lock_downgrade(struct lockdep_map *lock, unsigned long ip) argument
5664 verify_lock_unused(struct lockdep_map *lock, struct held_lock *hlock, int subclass) argument
5719 lock_acquire(struct lockdep_map *lock, unsigned int subclass, int trylock, int read, int check, struct lockdep_map *nest_lock, unsigned long ip) argument
5761 lock_release(struct lockdep_map *lock, unsigned long ip) argument
5789 lock_sync(struct lockdep_map *lock, unsigned subclass, int read, int check, struct lockdep_map *nest_lock, unsigned long ip) argument
5809 lock_is_held_type(const struct lockdep_map *lock, int read) argument
5834 lock_pin_lock(struct lockdep_map *lock) argument
5854 lock_repin_lock(struct lockdep_map *lock, struct pin_cookie cookie) argument
5871 lock_unpin_lock(struct lockdep_map *lock, struct pin_cookie cookie) argument
5889 print_lock_contention_bug(struct task_struct *curr, struct lockdep_map *lock, unsigned long ip) argument
5917 __lock_contended(struct lockdep_map *lock, unsigned long ip) argument
5958 __lock_acquired(struct lockdep_map *lock, unsigned long ip) argument
6005 lock_contended(struct lockdep_map *lock, unsigned long ip) argument
6023 lock_acquired(struct lockdep_map *lock, unsigned long ip) argument
6341 lock_class_cache_is_registered(struct lockdep_map *lock) argument
6359 __lockdep_reset_lock(struct pending_free *pf, struct lockdep_map *lock) argument
6388 lockdep_reset_lock_reg(struct lockdep_map *lock) argument
6412 lockdep_reset_lock_imm(struct lockdep_map *lock) argument
6425 lockdep_reset_lock(struct lockdep_map *lock) argument
[all...]
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_ccb.c58 err = drmm_mutex_init(from_pvr_device(pvr_dev), &pvr_ccb->lock);
112 * Caller must hold @pvr_ccb->lock.
124 lockdep_assert_held(&pvr_ccb->lock);
169 mutex_lock(&pvr_dev->fwccb.lock);
176 /* Drop FWCCB lock while we process command. */
177 mutex_unlock(&pvr_dev->fwccb.lock);
181 mutex_lock(&pvr_dev->fwccb.lock);
184 mutex_unlock(&pvr_dev->fwccb.lock);
208 * KCCB lock must be held.
222 lockdep_assert_held(&pvr_ccb->lock);
[all...]
/linux-master/drivers/iio/light/
H A Dmax44000.c76 struct mutex lock; member in struct:max44000_data
274 mutex_lock(&data->lock);
276 mutex_unlock(&data->lock);
283 mutex_lock(&data->lock);
285 mutex_unlock(&data->lock);
292 mutex_lock(&data->lock);
294 mutex_unlock(&data->lock);
312 mutex_lock(&data->lock);
314 mutex_unlock(&data->lock);
330 mutex_lock(&data->lock);
[all...]
/linux-master/drivers/misc/ti-st/
H A Dst_core.c128 * This function is being called with spin lock held, protocol drivers are
203 spin_lock_irqsave(&st_gdata->lock, flags);
213 spin_unlock_irqrestore(&st_gdata->lock, flags);
246 spin_lock_irqsave(&st_gdata->lock, flags);
317 spin_unlock_irqrestore(&st_gdata->lock, flags);
320 spin_lock_irqsave(&st_gdata->lock, flags);
328 spin_unlock_irqrestore(&st_gdata->lock, flags);
331 spin_lock_irqsave(&st_gdata->lock, flags);
382 spin_unlock_irqrestore(&st_gdata->lock, flags);
420 spin_lock_irqsave(&st_gdata->lock, flag
[all...]
/linux-master/drivers/usb/usbip/
H A Dvudc_dev.c83 spin_unlock(&udc->lock);
85 spin_lock(&udc->lock);
89 /* caller must hold lock */
155 spin_lock_irqsave(&udc->lock, flags);
175 spin_unlock_irqrestore(&udc->lock, flags);
181 spin_unlock_irqrestore(&udc->lock, flags);
189 spin_unlock_irqrestore(&udc->lock, flags);
199 spin_lock_irqsave(&udc->lock, flags);
202 spin_unlock_irqrestore(&udc->lock, flags);
212 spin_lock_irqsave(&udc->lock, flag
[all...]
/linux-master/drivers/clk/rockchip/
H A Dclk.c46 spinlock_t *lock)
66 mux->lock = lock;
81 gate->lock = lock;
99 div->lock = lock;
212 spinlock_t *lock)
238 gate->lock = lock;
38 rockchip_clk_register_branch(const char *name, const char *const *parent_names, u8 num_parents, void __iomem *base, int muxdiv_offset, u8 mux_shift, u8 mux_width, u8 mux_flags, u32 *mux_table, int div_offset, u8 div_shift, u8 div_width, u8 div_flags, struct clk_div_table *div_table, int gate_offset, u8 gate_shift, u8 gate_flags, unsigned long flags, spinlock_t *lock) argument
206 rockchip_clk_register_frac_branch( struct rockchip_clk_provider *ctx, const char *name, const char *const *parent_names, u8 num_parents, void __iomem *base, int muxdiv_offset, u8 div_flags, int gate_offset, u8 gate_shift, u8 gate_flags, unsigned long flags, struct rockchip_clk_branch *child, spinlock_t *lock) argument
314 rockchip_clk_register_factor_branch(const char *name, const char *const *parent_names, u8 num_parents, void __iomem *base, unsigned int mult, unsigned int div, int gate_offset, u8 gate_shift, u8 gate_flags, unsigned long flags, spinlock_t *lock) argument
[all...]
/linux-master/drivers/clk/sunxi/
H A Dclk-factors.c146 if (factors->lock)
147 spin_lock_irqsave(factors->lock, flags);
164 if (factors->lock)
165 spin_unlock_irqrestore(factors->lock, flags);
178 spinlock_t *lock, void __iomem *reg,
212 factors->lock = lock;
225 gate->lock = factors->lock;
241 mux->lock
176 __sunxi_factors_register(struct device_node *node, const struct factors_data *data, spinlock_t *lock, void __iomem *reg, unsigned long flags) argument
272 sunxi_factors_register(struct device_node *node, const struct factors_data *data, spinlock_t *lock, void __iomem *reg) argument
280 sunxi_factors_register_critical(struct device_node *node, const struct factors_data *data, spinlock_t *lock, void __iomem *reg) argument
[all...]
/linux-master/block/
H A Dblk-ioc.c63 spin_lock_irq(&ioc->lock);
66 spin_unlock_irq(&ioc->lock);
79 lockdep_assert_held(&ioc->lock);
109 * Slow path for ioc release in put_io_context(). Performs double-lock
116 spin_lock_irq(&ioc->lock);
131 spin_unlock(&ioc->lock);
133 spin_lock(&ioc->lock);
142 spin_unlock_irq(&ioc->lock);
155 spin_lock_irqsave(&ioc->lock, flags);
158 spin_unlock_irqrestore(&ioc->lock, flag
[all...]
/linux-master/drivers/counter/
H A Di8254.c45 * @lock: synchronization lock to prevent I/O race conditions
51 struct mutex lock; member in struct:i8254
64 mutex_lock(&priv->lock);
68 mutex_unlock(&priv->lock);
73 mutex_unlock(&priv->lock);
77 mutex_unlock(&priv->lock);
130 mutex_lock(&priv->lock);
151 mutex_unlock(&priv->lock);
219 mutex_lock(&priv->lock);
[all...]
/linux-master/drivers/usb/gadget/function/
H A Df_printer.c67 spinlock_t lock; /* lock this structure */ member in struct:printer_dev
68 /* lock buffer lists during read/write calls */
270 spin_lock_irqsave(&dev->lock, flags);
310 spin_unlock_irqrestore(&dev->lock, flags);
328 spin_lock(&dev->lock);
338 spin_unlock(&dev->lock);
352 spin_lock_irqsave(&dev->lock, flags);
355 spin_unlock_irqrestore(&dev->lock, flags);
367 spin_unlock_irqrestore(&dev->lock, flag
[all...]
/linux-master/drivers/iio/humidity/
H A Dhdc100x.c39 struct mutex lock; member in struct:hdc100x_data
209 mutex_lock(&data->lock);
216 mutex_unlock(&data->lock);
227 mutex_unlock(&data->lock);
266 mutex_lock(&data->lock);
268 mutex_unlock(&data->lock);
274 mutex_lock(&data->lock);
277 mutex_unlock(&data->lock);
290 mutex_lock(&data->lock);
293 mutex_unlock(&data->lock);
[all...]

Completed in 230 milliseconds

<<11121314151617181920>>