/linux-master/drivers/gpio/ |
H A D | gpio-mb86s7x.c | 39 spinlock_t lock; member in struct:mb86s70_gpio_chip 48 spin_lock_irqsave(&gchip->lock, flags); 54 spin_unlock_irqrestore(&gchip->lock, flags); 65 spin_lock_irqsave(&gchip->lock, flags); 71 spin_unlock_irqrestore(&gchip->lock, flags); 80 spin_lock_irqsave(&gchip->lock, flags); 86 spin_unlock_irqrestore(&gchip->lock, flags); 98 spin_lock_irqsave(&gchip->lock, flags); 111 spin_unlock_irqrestore(&gchip->lock, flags); 129 spin_lock_irqsave(&gchip->lock, flag [all...] |
/linux-master/drivers/media/cec/core/ |
H A D | cec-notifier.c | 23 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 D | policy_ns.c | 118 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 D | map_in_map_btf.c | 17 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 D | request_sock.c | 62 * 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/sound/core/seq/ |
H A D | seq_fifo.c | 37 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 D | dasd_alias.c | 42 .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/drivers/clk/sunxi-ng/ |
H A D | ccu_common.h | 38 spinlock_t *lock; member in struct:ccu_common 57 void ccu_helper_wait_for_lock(struct ccu_common *common, u32 lock); 69 u32 lock; member in struct:ccu_pll_nb
|
H A D | ccu_nkm.h | 22 u32 lock; member in struct:ccu_nkm 44 .lock = _lock, \ 65 .lock = _lock, \
|
/linux-master/drivers/s390/crypto/ |
H A D | ap_queue.c | 538 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 D | gov_bang_bang.c | 50 lockdep_assert_held(&tz->lock); 81 mutex_lock(&instance->cdev->lock); 83 mutex_unlock(&instance->cdev->lock);
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_hw_fence.c | 59 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...] |
H A D | xe_pcode.c | 94 lockdep_assert_held(>->pcode.lock); 103 mutex_lock(>->pcode.lock); 105 mutex_unlock(>->pcode.lock); 114 mutex_lock(>->pcode.lock); 116 mutex_unlock(>->pcode.lock); 172 mutex_lock(>->pcode.lock); 198 mutex_unlock(>->pcode.lock); 238 mutex_lock(>->pcode.lock); 249 mutex_unlock(>->pcode.lock); 256 * @locked: true if lock hel [all...] |
/linux-master/io_uring/ |
H A D | io-wq.c | 55 raw_spinlock_t lock; member in struct:io_worker 81 raw_spinlock_t lock; member in struct:io_wq_acct 112 /* lock protects access to elements below */ 113 raw_spinlock_t lock; member in struct:io_wq 192 raw_spin_lock(&wq->lock); 194 raw_spin_unlock(&wq->lock); 226 raw_spin_lock(&wq->lock); 230 raw_spin_unlock(&wq->lock); 251 * If there's work to do, returns true with acct->lock acquired. If not, 252 * returns false with no lock hel [all...] |
/linux-master/sound/pci/ctxfi/ |
H A D | cttimer.c | 31 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 D | mc-request.c | 104 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 D | radeon_irq_kms.c | 128 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 D | lockdep.c | 12 * 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 D | pvr_ccb.c | 58 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 D | max44000.c | 76 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/fs/erofs/ |
H A D | zutil.c | 9 spinlock_t lock; member in struct:z_erofs_gbuf 37 __acquires(gbuf->lock) 42 spin_lock(&gbuf->lock); 45 spin_unlock(&gbuf->lock); 46 /* (for sparse checker) pretend gbuf->lock is still taken */ 47 __acquire(gbuf->lock); 53 void z_erofs_put_gbuf(void *ptr) __releases(gbuf->lock) 59 spin_unlock(&gbuf->lock); 97 spin_lock(&gbuf->lock); 103 spin_unlock(&gbuf->lock); [all...] |
/linux-master/drivers/misc/ti-st/ |
H A D | st_core.c | 128 * 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 D | vudc_dev.c | 83 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 D | clk.c | 46 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 D | clk-factors.c | 146 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...] |