Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 4620) sorted by relevance

12345678910>>...185

/drivers/md/persistent-data/
Ddm-block-manager.c45 spinlock_t lock; member
61 static unsigned int __find_holder(struct block_lock *lock, in __find_holder() argument
67 if (lock->holders[i] == task) in __find_holder()
75 static void __add_holder(struct block_lock *lock, struct task_struct *task) in __add_holder() argument
77 unsigned int h = __find_holder(lock, NULL); in __add_holder()
83 lock->holders[h] = task; in __add_holder()
86 t = lock->traces + h; in __add_holder()
92 static void __del_holder(struct block_lock *lock, struct task_struct *task) in __del_holder() argument
94 unsigned int h = __find_holder(lock, task); in __del_holder()
96 lock->holders[h] = NULL; in __del_holder()
[all …]
/drivers/gpu/drm/
Ddrm_lock.c63 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_take() local
67 old = *lock; in drm_lock_take()
75 prev = cmpxchg(lock, old, new); in drm_lock_take()
112 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_transfer() local
116 old = *lock; in drm_lock_transfer()
118 prev = cmpxchg(lock, old, new); in drm_lock_transfer()
127 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_legacy_lock_free() local
139 old = *lock; in drm_legacy_lock_free()
141 prev = cmpxchg(lock, old, new); in drm_legacy_lock_free()
168 struct drm_lock *lock = data; in drm_legacy_lock() local
[all …]
Ddrm_modeset_lock.c280 struct drm_modeset_lock *lock; in drm_modeset_drop_locks() local
282 lock = list_first_entry(&ctx->locked, in drm_modeset_drop_locks()
285 drm_modeset_unlock(lock); in drm_modeset_drop_locks()
290 static inline int modeset_lock(struct drm_modeset_lock *lock, in modeset_lock() argument
302 if (!ww_mutex_trylock(&lock->mutex, NULL)) in modeset_lock()
307 ret = ww_mutex_lock_slow_interruptible(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
309 ret = ww_mutex_lock_interruptible(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
311 ww_mutex_lock_slow(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
314 ret = ww_mutex_lock(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
317 WARN_ON(!list_empty(&lock->head)); in modeset_lock()
[all …]
Ddrm_debugfs_crc.c152 spin_lock_irq(&crc->lock); in crc_control_write()
155 spin_unlock_irq(&crc->lock); in crc_control_write()
163 spin_unlock_irq(&crc->lock); in crc_control_write()
180 assert_spin_locked(&crc->lock); in crtc_crc_data_count()
230 spin_lock_irq(&crc->lock); in crtc_crc_open()
238 spin_unlock_irq(&crc->lock); in crtc_crc_open()
252 spin_lock_irq(&crc->lock); in crtc_crc_open()
254 spin_unlock_irq(&crc->lock); in crtc_crc_open()
264 spin_lock_irq(&crc->lock); in crtc_crc_release()
266 spin_unlock_irq(&crc->lock); in crtc_crc_release()
[all …]
/drivers/acpi/acpica/
Dutlock.c28 acpi_status acpi_ut_create_rw_lock(struct acpi_rw_lock *lock) in acpi_ut_create_rw_lock() argument
32 lock->num_readers = 0; in acpi_ut_create_rw_lock()
33 status = acpi_os_create_mutex(&lock->reader_mutex); in acpi_ut_create_rw_lock()
38 status = acpi_os_create_mutex(&lock->writer_mutex); in acpi_ut_create_rw_lock()
42 void acpi_ut_delete_rw_lock(struct acpi_rw_lock *lock) in acpi_ut_delete_rw_lock() argument
45 acpi_os_delete_mutex(lock->reader_mutex); in acpi_ut_delete_rw_lock()
46 acpi_os_delete_mutex(lock->writer_mutex); in acpi_ut_delete_rw_lock()
48 lock->num_readers = 0; in acpi_ut_delete_rw_lock()
49 lock->reader_mutex = NULL; in acpi_ut_delete_rw_lock()
50 lock->writer_mutex = NULL; in acpi_ut_delete_rw_lock()
[all …]
/drivers/clk/mmp/
Dclk-apbc.c29 spinlock_t *lock; member
42 if (apbc->lock) in clk_apbc_prepare()
43 spin_lock_irqsave(apbc->lock, flags); in clk_apbc_prepare()
51 if (apbc->lock) in clk_apbc_prepare()
52 spin_unlock_irqrestore(apbc->lock, flags); in clk_apbc_prepare()
56 if (apbc->lock) in clk_apbc_prepare()
57 spin_lock_irqsave(apbc->lock, flags); in clk_apbc_prepare()
63 if (apbc->lock) in clk_apbc_prepare()
64 spin_unlock_irqrestore(apbc->lock, flags); in clk_apbc_prepare()
69 if (apbc->lock) in clk_apbc_prepare()
[all …]
Dclk-gate.c31 if (gate->lock) in mmp_clk_gate_enable()
32 spin_lock_irqsave(gate->lock, flags); in mmp_clk_gate_enable()
39 if (gate->lock) in mmp_clk_gate_enable()
40 spin_unlock_irqrestore(gate->lock, flags); in mmp_clk_gate_enable()
57 if (gate->lock) in mmp_clk_gate_disable()
58 spin_lock_irqsave(gate->lock, flags); in mmp_clk_gate_disable()
65 if (gate->lock) in mmp_clk_gate_disable()
66 spin_unlock_irqrestore(gate->lock, flags); in mmp_clk_gate_disable()
75 if (gate->lock) in mmp_clk_gate_is_enabled()
76 spin_lock_irqsave(gate->lock, flags); in mmp_clk_gate_is_enabled()
[all …]
Dclk-apmu.c23 spinlock_t *lock; member
32 if (apmu->lock) in clk_apmu_enable()
33 spin_lock_irqsave(apmu->lock, flags); in clk_apmu_enable()
38 if (apmu->lock) in clk_apmu_enable()
39 spin_unlock_irqrestore(apmu->lock, flags); in clk_apmu_enable()
50 if (apmu->lock) in clk_apmu_disable()
51 spin_lock_irqsave(apmu->lock, flags); in clk_apmu_disable()
56 if (apmu->lock) in clk_apmu_disable()
57 spin_unlock_irqrestore(apmu->lock, flags); in clk_apmu_disable()
66 void __iomem *base, u32 enable_mask, spinlock_t *lock) in mmp_clk_register_apmu() argument
[all …]
/drivers/clk/berlin/
Dberlin2-div.c58 spinlock_t *lock; member
71 if (div->lock) in berlin2_div_is_enabled()
72 spin_lock(div->lock); in berlin2_div_is_enabled()
77 if (div->lock) in berlin2_div_is_enabled()
78 spin_unlock(div->lock); in berlin2_div_is_enabled()
89 if (div->lock) in berlin2_div_enable()
90 spin_lock(div->lock); in berlin2_div_enable()
96 if (div->lock) in berlin2_div_enable()
97 spin_unlock(div->lock); in berlin2_div_enable()
108 if (div->lock) in berlin2_div_disable()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_task.c79 spin_lock_irqsave(&task->lock, flags); in is_done()
81 spin_unlock_irqrestore(&task->lock, flags); in is_done()
113 spin_lock_irqsave(&task->lock, flags); in do_task()
117 spin_unlock_irqrestore(&task->lock, flags); in do_task()
120 spin_unlock_irqrestore(&task->lock, flags); in do_task()
130 spin_lock_irqsave(&task->lock, flags); in do_task()
173 spin_unlock_irqrestore(&task->lock, flags); in do_task()
198 spin_lock_init(&task->lock); in rxe_init_task()
216 spin_lock_irqsave(&task->lock, flags); in rxe_cleanup_task()
221 spin_unlock_irqrestore(&task->lock, flags); in rxe_cleanup_task()
[all …]
/drivers/mmc/host/
Dmmc_hsq.c50 spin_lock_irqsave(&hsq->lock, flags); in mmc_hsq_pump_requests()
54 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_pump_requests()
60 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_pump_requests()
70 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_pump_requests()
116 spin_lock_irqsave(&hsq->lock, flags); in mmc_hsq_post_request()
131 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_post_request()
135 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_post_request()
158 spin_lock_irqsave(&hsq->lock, flags); in mmc_hsq_finalize_request()
161 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_finalize_request()
170 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_finalize_request()
[all …]
/drivers/base/power/
Druntime.c105 spin_lock_irqsave(&dev->power.lock, flags); in rpm_get_accounted_time()
110 spin_unlock_irqrestore(&dev->power.lock, flags); in rpm_get_accounted_time()
227 spin_lock_irq(&dev->power.lock); in pm_runtime_set_memalloc_noio()
230 spin_unlock_irq(&dev->power.lock); in pm_runtime_set_memalloc_noio()
362 __releases(&dev->power.lock) __acquires(&dev->power.lock) in __rpm_callback()
368 spin_unlock(&dev->power.lock); in __rpm_callback()
370 spin_unlock_irq(&dev->power.lock); in __rpm_callback()
396 spin_lock(&dev->power.lock); in __rpm_callback()
416 spin_lock_irq(&dev->power.lock); in __rpm_callback()
519 spin_unlock(&dev->power.lock); in rpm_idle()
[all …]
/drivers/usb/gadget/function/
Du_ether_configfs.h35 mutex_lock(&opts->lock); \
37 mutex_unlock(&opts->lock); \
48 mutex_lock(&opts->lock); \
50 mutex_unlock(&opts->lock); \
55 mutex_unlock(&opts->lock); \
70 mutex_lock(&opts->lock); \
72 mutex_unlock(&opts->lock); \
83 mutex_lock(&opts->lock); \
85 mutex_unlock(&opts->lock); \
90 mutex_unlock(&opts->lock); \
[all …]
/drivers/acpi/
Dacpi_dbg.c51 struct mutex lock; member
129 mutex_lock(&acpi_aml_io.lock); in acpi_aml_running()
131 mutex_unlock(&acpi_aml_io.lock); in acpi_aml_running()
139 mutex_lock(&acpi_aml_io.lock); in acpi_aml_busy()
141 mutex_unlock(&acpi_aml_io.lock); in acpi_aml_busy()
153 mutex_lock(&acpi_aml_io.lock); in acpi_aml_used()
155 mutex_unlock(&acpi_aml_io.lock); in acpi_aml_used()
163 mutex_lock(&acpi_aml_io.lock); in acpi_aml_kern_readable()
166 mutex_unlock(&acpi_aml_io.lock); in acpi_aml_kern_readable()
174 mutex_lock(&acpi_aml_io.lock); in acpi_aml_kern_writable()
[all …]
/drivers/md/
Ddm-user.c101 struct mutex lock; member
156 struct mutex lock; member
196 lockdep_assert_held(&t->lock); in is_user_space_thread_present()
207 mutex_lock(&t->lock); in process_delayed_work()
213 mutex_unlock(&t->lock); in process_delayed_work()
225 mutex_unlock(&t->lock); in process_delayed_work()
577 lockdep_assert_held(&t->lock); in msg_get_map()
590 lockdep_assert_held(&t->lock); in msg_get_to_user()
611 mutex_unlock(&t->lock); in msg_get_to_user()
613 mutex_lock(&t->lock); in msg_get_to_user()
[all …]
/drivers/usb/gadget/legacy/
Dinode.c116 spinlock_t lock; member
175 spin_lock_init (&dev->lock); in dev_new()
192 struct mutex lock; member
296 if (!mutex_trylock(&epdata->lock)) in get_ready_ep()
300 mutex_unlock(&epdata->lock); in get_ready_ep()
308 val = mutex_lock_interruptible(&epdata->lock); in get_ready_ep()
326 mutex_unlock(&epdata->lock); in get_ready_ep()
336 spin_lock_irq (&epdata->dev->lock); in ep_io()
347 spin_unlock_irq (&epdata->dev->lock); in ep_io()
352 spin_lock_irq (&epdata->dev->lock); in ep_io()
[all …]
/drivers/net/wireless/st/cw1200/
Dqueue.c104 spin_lock_bh(&stats->lock); in __cw1200_queue_gc()
108 spin_unlock_bh(&stats->lock); in __cw1200_queue_gc()
138 spin_lock_bh(&queue->lock); in cw1200_queue_gc()
140 spin_unlock_bh(&queue->lock); in cw1200_queue_gc()
153 spin_lock_init(&stats->lock); in cw1200_queue_stats_init()
180 spin_lock_init(&queue->lock); in cw1200_queue_init()
209 spin_lock_bh(&queue->lock); in cw1200_queue_clear()
221 spin_lock_bh(&stats->lock); in cw1200_queue_clear()
227 spin_unlock_bh(&stats->lock); in cw1200_queue_clear()
232 spin_unlock_bh(&queue->lock); in cw1200_queue_clear()
[all …]
/drivers/base/
Dmap.c26 int (*lock)(dev_t, void *); member
29 struct mutex *lock; member
34 int (*lock)(dev_t, void *), void *data) in kobj_map()
51 p->lock = lock; in kobj_map()
56 mutex_lock(domain->lock); in kobj_map()
64 mutex_unlock(domain->lock); in kobj_map()
78 mutex_lock(domain->lock); in kobj_unmap()
91 mutex_unlock(domain->lock); in kobj_unmap()
102 mutex_lock(domain->lock); in kobj_lookup()
119 if (p->lock && p->lock(dev, data) < 0) { in kobj_lookup()
[all …]
/drivers/tty/hvc/
Dhvcs.c252 spinlock_t lock; member
321 spin_lock_irqsave(&hvcsd->lock, flags); in hvcs_partner_vtys_show()
323 spin_unlock_irqrestore(&hvcsd->lock, flags); in hvcs_partner_vtys_show()
335 spin_lock_irqsave(&hvcsd->lock, flags); in hvcs_partner_clcs_show()
337 spin_unlock_irqrestore(&hvcsd->lock, flags); in hvcs_partner_clcs_show()
360 spin_lock_irqsave(&hvcsd->lock, flags); in hvcs_current_vty_show()
362 spin_unlock_irqrestore(&hvcsd->lock, flags); in hvcs_current_vty_show()
380 spin_lock_irqsave(&hvcsd->lock, flags); in hvcs_vterm_state_store()
383 spin_unlock_irqrestore(&hvcsd->lock, flags); in hvcs_vterm_state_store()
390 spin_unlock_irqrestore(&hvcsd->lock, flags); in hvcs_vterm_state_store()
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_dmac_flt.c17 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_do_add()
21 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add()
34 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add()
44 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac()
48 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac()
70 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac()
95 mutex_lock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
98 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
105 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
115 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_remove_pfmac()
[all …]
/drivers/clk/at91/
Dclk-master.c30 spinlock_t *lock; member
61 spin_lock_irqsave(master->lock, flags); in clk_master_prepare()
66 spin_unlock_irqrestore(master->lock, flags); in clk_master_prepare()
77 spin_lock_irqsave(master->lock, flags); in clk_master_is_prepared()
79 spin_unlock_irqrestore(master->lock, flags); in clk_master_is_prepared()
95 spin_lock_irqsave(master->lock, flags); in clk_master_div_recalc_rate()
97 spin_unlock_irqrestore(master->lock, flags); in clk_master_div_recalc_rate()
120 spin_lock_irqsave(master->lock, flags); in clk_master_div_save_context()
122 spin_unlock_irqrestore(master->lock, flags); in clk_master_div_save_context()
141 spin_lock_irqsave(master->lock, flags); in clk_master_div_restore_context()
[all …]
/drivers/usb/serial/
Dcypress_m8.c92 spinlock_t lock; /* private lock */ member
363 spin_lock_irqsave(&priv->lock, flags); in cypress_serial_control()
366 spin_unlock_irqrestore(&priv->lock, flags); in cypress_serial_control()
401 spin_lock_irqsave(&priv->lock, flags); in cypress_serial_control()
406 spin_unlock_irqrestore(&priv->lock, flags); in cypress_serial_control()
409 spin_lock_irqsave(&priv->lock, flags); in cypress_serial_control()
411 spin_unlock_irqrestore(&priv->lock, flags); in cypress_serial_control()
423 spin_lock_irqsave(&priv->lock, flags); in cypress_set_dead()
425 spin_unlock_irqrestore(&priv->lock, flags); in cypress_set_dead()
429 spin_unlock_irqrestore(&priv->lock, flags); in cypress_set_dead()
[all …]
/drivers/net/ethernet/ti/
Ddavinci_cpdma.c101 spinlock_t lock; member
114 spinlock_t lock; member
381 spin_lock_irqsave(&chan->lock, flags); in cpdma_chan_on()
383 spin_unlock_irqrestore(&chan->lock, flags); in cpdma_chan_on()
387 spin_unlock_irqrestore(&chan->lock, flags); in cpdma_chan_on()
398 spin_unlock_irqrestore(&chan->lock, flags); in cpdma_chan_on()
522 spin_lock_init(&ctlr->lock); in cpdma_ctlr_create()
541 spin_lock_irqsave(&ctlr->lock, flags); in cpdma_ctlr_start()
543 spin_unlock_irqrestore(&ctlr->lock, flags); in cpdma_ctlr_start()
591 spin_unlock_irqrestore(&ctlr->lock, flags); in cpdma_ctlr_start()
[all …]
/drivers/hsi/clients/
Dssi_protocol.c134 spinlock_t lock; member
220 spin_lock_bh(&ssi->lock); in ssip_release_cmd()
222 spin_unlock_bh(&ssi->lock); in ssip_release_cmd()
231 spin_lock_bh(&ssi->lock); in ssip_claim_cmd()
234 spin_unlock_bh(&ssi->lock); in ssip_claim_cmd()
345 spin_lock_bh(&ssi->lock); in ssip_slave_start_tx()
350 spin_unlock_bh(&ssi->lock); in ssip_slave_start_tx()
364 spin_lock_bh(&ssi->lock); in ssip_slave_stop_tx()
370 spin_unlock_bh(&ssi->lock); in ssip_slave_stop_tx()
394 spin_lock_bh(&ssi->lock); in ssip_reset()
[all …]
/drivers/gpu/drm/v3d/
Dv3d_perfmon.c21 mutex_destroy(&perfmon->lock); in v3d_perfmon_put()
69 mutex_lock(&perfmon->lock); in v3d_perfmon_stop()
71 mutex_unlock(&perfmon->lock); in v3d_perfmon_stop()
82 mutex_unlock(&perfmon->lock); in v3d_perfmon_stop()
89 mutex_lock(&v3d_priv->perfmon.lock); in v3d_perfmon_find()
92 mutex_unlock(&v3d_priv->perfmon.lock); in v3d_perfmon_find()
99 mutex_init(&v3d_priv->perfmon.lock); in v3d_perfmon_open_file()
114 mutex_lock(&v3d_priv->perfmon.lock); in v3d_perfmon_close_file()
117 mutex_unlock(&v3d_priv->perfmon.lock); in v3d_perfmon_close_file()
118 mutex_destroy(&v3d_priv->perfmon.lock); in v3d_perfmon_close_file()
[all …]

12345678910>>...185