Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 4611) sorted by relevance

12345678910>>...185

/linux/drivers/acpi/acpica/
A Dexmutex.c45 if (obj_desc->mutex.next) { in acpi_ex_unlink_mutex()
46 (obj_desc->mutex.next)->mutex.prev = obj_desc->mutex.prev; in acpi_ex_unlink_mutex()
49 if (obj_desc->mutex.prev) { in acpi_ex_unlink_mutex()
50 (obj_desc->mutex.prev)->mutex.next = obj_desc->mutex.next; in acpi_ex_unlink_mutex()
58 (obj_desc->mutex.prev)->mutex.original_sync_level = in acpi_ex_unlink_mutex()
88 obj_desc->mutex.prev = NULL; in acpi_ex_link_mutex()
228 obj_desc->mutex.sync_level, in acpi_ex_acquire_mutex()
321 obj_desc->mutex.thread_id = 0; in acpi_ex_release_mutex_object()
496 next = obj_desc->mutex.next; in acpi_ex_release_all_mutexes()
498 obj_desc->mutex.prev = NULL; in acpi_ex_release_all_mutexes()
[all …]
A Ddsmethod.c345 obj_desc->method.mutex->mutex.sync_level)) { in acpi_ds_begin_method_execution()
360 !obj_desc->method.mutex->mutex.thread_id || in acpi_ds_begin_method_execution()
362 obj_desc->method.mutex->mutex.thread_id)) { in acpi_ds_begin_method_execution()
378 obj_desc->method.mutex->mutex. in acpi_ds_begin_method_execution()
382 obj_desc->method.mutex->mutex.thread_id = in acpi_ds_begin_method_execution()
398 obj_desc->method.mutex->mutex. in acpi_ds_begin_method_execution()
400 obj_desc->method.mutex->mutex.sync_level; in acpi_ds_begin_method_execution()
402 obj_desc->method.mutex->mutex.thread_id = in acpi_ds_begin_method_execution()
409 obj_desc->method.mutex->mutex.acquisition_depth++; in acpi_ds_begin_method_execution()
759 method_desc->method.mutex->mutex. in acpi_ds_terminate_control_method()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
A Dnfp_mutex.c143 mutex = kzalloc(sizeof(*mutex), GFP_KERNEL); in nfp_cpp_mutex_alloc()
144 if (!mutex) in nfp_cpp_mutex_alloc()
147 mutex->cpp = cpp; in nfp_cpp_mutex_alloc()
150 mutex->key = key; in nfp_cpp_mutex_alloc()
151 mutex->depth = 0; in nfp_cpp_mutex_alloc()
153 return mutex; in nfp_cpp_mutex_alloc()
162 kfree(mutex); in nfp_cpp_mutex_free()
200 mutex->target, mutex->address, mutex->key); in nfp_cpp_mutex_lock()
229 mutex->depth--; in nfp_cpp_mutex_unlock()
233 err = nfp_cpp_readl(mutex->cpp, mur, mutex->address + 4, &key); in nfp_cpp_mutex_unlock()
[all …]
/linux/include/linux/
A Dmutex.h63 struct mutex { struct
83 extern void mutex_destroy(struct mutex *lock); argument
101 #define mutex_init(mutex) \ argument
105 __mutex_init((mutex), #mutex, &__key); \
135 struct mutex { struct
159 #define __mutex_init(mutex, name, key) \ argument
161 rt_mutex_base_init(&(mutex)->rtmutex); \
162 __mutex_rt_init((mutex), name, key); \
165 #define mutex_init(mutex) \ argument
169 __mutex_init((mutex), #mutex, &__key); \
[all …]
/linux/drivers/soc/mediatek/
A Dmtk-mutex.c329 mutex[mutex->id]); in mtk_mutex_put()
331 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_put()
340 mutex[mutex->id]); in mtk_mutex_prepare()
348 mutex[mutex->id]); in mtk_mutex_unprepare()
357 mutex[mutex->id]); in mtk_mutex_add_comp()
362 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_add_comp()
409 mutex[mutex->id]); in mtk_mutex_remove_comp()
413 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_remove_comp()
448 mutex[mutex->id]); in mtk_mutex_enable()
450 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_enable()
[all …]
/linux/kernel/locking/
A Dmutex.c86 bool mutex_is_locked(struct mutex *lock) in mutex_is_locked()
147 static inline bool __mutex_trylock(struct mutex *lock) in __mutex_trylock()
278 void __sched mutex_lock(struct mutex *lock) in mutex_lock()
541 void __sched mutex_unlock(struct mutex *lock) in mutex_unlock()
953 __mutex_lock_killable_slowpath(struct mutex *lock);
994 int __sched mutex_lock_killable(struct mutex *lock) in mutex_lock_killable()
1015 void __sched mutex_lock_io(struct mutex *lock) in mutex_lock_io()
1026 __mutex_lock_slowpath(struct mutex *lock) in __mutex_lock_slowpath()
1032 __mutex_lock_killable_slowpath(struct mutex *lock) in __mutex_lock_killable_slowpath()
1038 __mutex_lock_interruptible_slowpath(struct mutex *lock) in __mutex_lock_interruptible_slowpath()
[all …]
/linux/drivers/vhost/
A Dtest.c51 mutex_lock(&vq->mutex); in handle_vq()
54 mutex_unlock(&vq->mutex); in handle_vq()
93 mutex_unlock(&vq->mutex); in handle_vq()
135 mutex_lock(&vq->mutex); in vhost_test_stop_vq()
138 mutex_unlock(&vq->mutex); in vhost_test_stop_vq()
197 mutex_lock(&vq->mutex); in vhost_test_run()
259 mutex_lock(&vq->mutex); in vhost_test_set_features()
261 mutex_unlock(&vq->mutex); in vhost_test_set_features()
284 mutex_lock(&vq->mutex); in vhost_test_set_backend()
302 mutex_unlock(&vq->mutex); in vhost_test_set_backend()
[all …]
/linux/drivers/media/dvb-core/
A Ddmxdev.c139 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
163 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
206 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
215 mutex_lock(&dmxdev->mutex); in dvb_dvr_release()
244 mutex_unlock(&dmxdev->mutex); in dvb_dvr_release()
247 mutex_unlock(&dmxdev->mutex); in dvb_dvr_release()
267 mutex_unlock(&dmxdev->mutex); in dvb_dvr_write()
271 mutex_unlock(&dmxdev->mutex); in dvb_dvr_write()
838 mutex_lock(&dmxdev->mutex); in dvb_dmxdev_filter_free()
1253 mutex_lock(&dmxdev->mutex); in dvb_demux_release()
[all …]
A Ddvb_demux.c733 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
766 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
777 mutex_lock(&demux->mutex); in dmx_ts_feed_stop_filtering()
795 mutex_unlock(&demux->mutex); in dmx_ts_feed_stop_filtering()
840 mutex_unlock(&demux->mutex); in dvbdmx_allocate_ts_feed()
851 mutex_lock(&demux->mutex); in dvbdmx_release_ts_feed()
868 mutex_unlock(&demux->mutex); in dvbdmx_release_ts_feed()
1003 mutex_lock(&dvbdmx->mutex); in dmx_section_feed_stop_filtering()
1028 mutex_lock(&dvbdmx->mutex); in dmx_section_feed_release_filter()
1040 mutex_lock(&dvbdmx->mutex); in dmx_section_feed_release_filter()
[all …]
/linux/include/linux/soc/mediatek/
A Dmtk-mutex.h14 int mtk_mutex_prepare(struct mtk_mutex *mutex);
15 void mtk_mutex_add_comp(struct mtk_mutex *mutex,
17 void mtk_mutex_enable(struct mtk_mutex *mutex);
18 void mtk_mutex_disable(struct mtk_mutex *mutex);
19 void mtk_mutex_remove_comp(struct mtk_mutex *mutex,
21 void mtk_mutex_unprepare(struct mtk_mutex *mutex);
22 void mtk_mutex_put(struct mtk_mutex *mutex);
23 void mtk_mutex_acquire(struct mtk_mutex *mutex);
24 void mtk_mutex_release(struct mtk_mutex *mutex);
/linux/Documentation/locking/
A Dmutex-design.rst26 Mutexes are represented by 'struct mutex', defined in include/linux/mutex.h
50 one spinner can compete for the mutex.
107 Statically define the mutex::
111 Dynamically initialize the mutex::
113 mutex_init(mutex);
115 Acquire the mutex, uninterruptible::
117 void mutex_lock(struct mutex *lock);
121 Acquire the mutex, interruptible::
131 Unlock the mutex::
133 void mutex_unlock(struct mutex *lock);
[all …]
/linux/drivers/mtd/chips/
A Dcfi_cmdset_0020.c267 mutex_lock(&chip->mutex); in do_read_onechip()
446 mutex_lock(&chip->mutex); in do_write_buffer()
506 mutex_lock(&chip->mutex); in do_write_buffer()
535 mutex_lock(&chip->mutex); in do_write_buffer()
573 mutex_lock(&chip->mutex); in do_write_buffer()
748 mutex_lock(&chip->mutex); in do_erase_oneblock()
798 mutex_lock(&chip->mutex); in do_erase_oneblock()
1045 mutex_lock(&chip->mutex); in do_lock_oneblock()
1091 mutex_lock(&chip->mutex); in do_lock_oneblock()
1191 mutex_lock(&chip->mutex); in do_unlock_oneblock()
[all …]
/linux/drivers/media/usb/uvc/
A Duvc_queue.c242 mutex_init(&queue->mutex); in uvc_queue_init()
252 mutex_lock(&queue->mutex); in uvc_queue_release()
266 mutex_lock(&queue->mutex); in uvc_request_buffers()
277 mutex_lock(&queue->mutex); in uvc_query_buffer()
289 mutex_lock(&queue->mutex); in uvc_create_buffers()
301 mutex_lock(&queue->mutex); in uvc_queue_buffer()
313 mutex_lock(&queue->mutex); in uvc_export_buffer()
325 mutex_lock(&queue->mutex); in uvc_dequeue_buffer()
336 mutex_lock(&queue->mutex); in uvc_queue_streamon()
347 mutex_lock(&queue->mutex); in uvc_queue_streamoff()
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
A Dmac80211.c48 mutex_lock(&rtwdev->mutex); in rtw89_ops_start()
50 mutex_unlock(&rtwdev->mutex); in rtw89_ops_start()
59 mutex_lock(&rtwdev->mutex); in rtw89_ops_stop()
61 mutex_unlock(&rtwdev->mutex); in rtw89_ops_stop()
68 mutex_lock(&rtwdev->mutex); in rtw89_ops_config()
91 mutex_unlock(&rtwdev->mutex); in rtw89_ops_config()
103 mutex_lock(&rtwdev->mutex); in rtw89_ops_add_interface()
132 mutex_unlock(&rtwdev->mutex); in rtw89_ops_add_interface()
143 mutex_lock(&rtwdev->mutex); in rtw89_ops_remove_interface()
159 mutex_lock(&rtwdev->mutex); in rtw89_ops_configure_filter()
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
A Dmac80211.c53 mutex_lock(&rtwdev->mutex); in rtw_ops_start()
55 mutex_unlock(&rtwdev->mutex); in rtw_ops_start()
64 mutex_lock(&rtwdev->mutex); in rtw_ops_stop()
66 mutex_unlock(&rtwdev->mutex); in rtw_ops_stop()
74 mutex_lock(&rtwdev->mutex); in rtw_ops_config()
104 mutex_unlock(&rtwdev->mutex); in rtw_ops_config()
169 mutex_lock(&rtwdev->mutex); in rtw_ops_add_interface()
219 mutex_lock(&rtwdev->mutex); in rtw_ops_remove_interface()
264 mutex_lock(&rtwdev->mutex); in rtw_ops_configure_filter()
361 mutex_lock(&rtwdev->mutex); in rtw_ops_bss_info_changed()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/
A Damdgpu_smu.c76 mutex_lock(&smu->mutex); in smu_sys_get_pp_feature_mask()
80 mutex_unlock(&smu->mutex); in smu_sys_get_pp_feature_mask()
94 mutex_lock(&smu->mutex); in smu_sys_set_pp_feature_mask()
98 mutex_unlock(&smu->mutex); in smu_sys_set_pp_feature_mask()
123 mutex_lock(&smu->mutex); in smu_set_soft_freq_range()
131 mutex_unlock(&smu->mutex); in smu_set_soft_freq_range()
146 mutex_lock(&smu->mutex); in smu_get_dpm_freq_range()
154 mutex_unlock(&smu->mutex); in smu_get_dpm_freq_range()
495 mutex_lock(&smu->mutex); in smu_sys_get_pp_table()
526 mutex_lock(&smu->mutex); in smu_sys_set_pp_table()
[all …]
/linux/drivers/gpu/drm/i915/
A Dintel_wakeref.h38 struct mutex mutex; member
49 struct lock_class_key mutex; member
129 might_lock(&wf->mutex); in intel_wakeref_might_get()
182 might_lock(&wf->mutex); in intel_wakeref_might_put()
195 __acquires(wf->mutex) in intel_wakeref_lock()
197 mutex_lock(&wf->mutex); in intel_wakeref_lock()
208 __releases(wf->mutex) in intel_wakeref_unlock()
210 mutex_unlock(&wf->mutex); in intel_wakeref_unlock()
223 mutex_lock(&wf->mutex); in intel_wakeref_unlock_wait()
224 mutex_unlock(&wf->mutex); in intel_wakeref_unlock_wait()
[all …]
/linux/net/ceph/
A Dauth.c66 mutex_init(&ac->mutex); in ceph_auth_init()
94 mutex_lock(&ac->mutex); in ceph_auth_reset()
99 mutex_unlock(&ac->mutex); in ceph_auth_reset()
128 mutex_lock(&ac->mutex); in ceph_auth_build_hello()
213 mutex_lock(&ac->mutex); in ceph_handle_auth_reply()
289 mutex_lock(&ac->mutex); in ceph_build_auth()
300 mutex_lock(&ac->mutex); in ceph_auth_is_authenticated()
315 mutex_lock(&ac->mutex); in __ceph_auth_get_authorizer()
354 mutex_lock(&ac->mutex); in ceph_auth_add_authorizer_challenge()
371 mutex_lock(&ac->mutex); in ceph_auth_verify_authorizer_reply()
[all …]
/linux/sound/aoa/codecs/
A Donyx.c60 struct mutex mutex; member
124 mutex_lock(&onyx->mutex); in onyx_snd_vol_get()
127 mutex_unlock(&onyx->mutex); in onyx_snd_vol_get()
148 mutex_lock(&onyx->mutex); in onyx_snd_vol_put()
200 mutex_lock(&onyx->mutex); in onyx_snd_inputgain_get()
219 mutex_lock(&onyx->mutex); in onyx_snd_inputgain_put()
254 mutex_lock(&onyx->mutex); in onyx_snd_capture_source_get()
267 mutex_lock(&onyx->mutex); in onyx_set_capture_source()
314 mutex_lock(&onyx->mutex); in onyx_snd_mute_get()
331 mutex_lock(&onyx->mutex); in onyx_snd_mute_put()
[all …]
/linux/drivers/net/wireless/zydas/zd1211rw/
A Dzd_chip.c27 mutex_init(&chip->mutex); in zd_chip_init()
37 mutex_destroy(&chip->mutex); in zd_chip_clear()
259 mutex_lock(&chip->mutex); in zd_ioread16()
261 mutex_unlock(&chip->mutex); in zd_ioread16()
269 mutex_lock(&chip->mutex); in zd_ioread32()
279 mutex_lock(&chip->mutex); in zd_iowrite16()
289 mutex_lock(&chip->mutex); in zd_iowrite32()
300 mutex_lock(&chip->mutex); in zd_ioread32v()
311 mutex_lock(&chip->mutex); in zd_iowrite32a()
382 mutex_lock(&chip->mutex); in zd_write_mac_addr_common()
[all …]
/linux/drivers/mtd/lpddr/
A Dlpddr_cmds.c88 mutex_init(&chip->mutex); in lpddr_cmdset()
167 mutex_lock(&chip->mutex); in wait_for_ready()
177 mutex_lock(&chip->mutex); in wait_for_ready()
244 mutex_lock(&chip->mutex); in get_chip()
276 mutex_lock(&chip->mutex); in get_chip()
343 mutex_lock(&chip->mutex); in chip_ready()
416 mutex_lock(&chip->mutex); in do_write_buffer()
492 mutex_lock(&chip->mutex); in do_erase_oneblock()
520 mutex_lock(&chip->mutex); in lpddr_read()
569 mutex_lock(&chip->mutex); in lpddr_point()
[all …]
/linux/drivers/media/cec/i2c/
A Dch7322.c154 struct mutex mutex; /* device access mutex */ member
243 mutex_lock(&ch7322->mutex); in ch7322_tx_done()
246 mutex_unlock(&ch7322->mutex); in ch7322_tx_done()
275 mutex_lock(&ch7322->mutex); in ch7322_rx_done()
295 mutex_lock(&ch7322->mutex); in ch7322_phys_addr()
311 mutex_lock(&ch7322->mutex); in ch7322_irq()
345 mutex_lock(&ch7322->mutex); in ch7322_cec_adap_log_addr()
359 mutex_lock(&ch7322->mutex); in ch7322_cec_adap_transmit()
479 mutex_init(&ch7322->mutex); in ch7322_probe()
543 mutex_lock(&ch7322->mutex); in ch7322_probe()
[all …]
/linux/drivers/gpu/drm/
A Ddrm_modeset_lock.c145 mutex_lock(&config->mutex); in drm_modeset_lock_all()
203 mutex_unlock(&dev->mode_config.mutex); in drm_modeset_unlock_all()
222 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); in drm_warn_on_modeset_not_all_locked()
294 if (!ww_mutex_trylock(&lock->mutex, NULL)) in modeset_lock()
303 ww_mutex_lock_slow(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
306 ret = ww_mutex_lock(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
360 ww_mutex_init(&lock->mutex, &crtc_ww_class); in drm_modeset_lock_init()
389 ww_mutex_lock(&lock->mutex, NULL); in drm_modeset_lock()
416 ww_mutex_unlock(&lock->mutex); in drm_modeset_unlock()
453 ret = drm_modeset_lock(&crtc->mutex, ctx); in drm_modeset_lock_all_ctx()
[all …]
/linux/drivers/iio/gyro/
A Dbmg160_core.c100 struct mutex mutex; member
499 mutex_lock(&data->mutex); in bmg160_get_temp()
529 mutex_lock(&data->mutex); in bmg160_get_axis()
607 mutex_lock(&data->mutex); in bmg160_read_raw()
625 mutex_lock(&data->mutex); in bmg160_write_raw()
761 mutex_lock(&data->mutex); in bmg160_write_event_config()
887 mutex_lock(&data->mutex); in bmg160_trigger_handler()
928 mutex_lock(&data->mutex); in bmg160_data_rdy_trigger_set_state()
1117 mutex_init(&data->mutex); in bmg160_core_probe()
1226 mutex_lock(&data->mutex); in bmg160_core_remove()
[all …]
/linux/drivers/gpu/drm/i915/selftests/
A Di915_gem_evict.c119 mutex_lock(&ggtt->vm.mutex); in igt_evict_something()
124 mutex_unlock(&ggtt->vm.mutex); in igt_evict_something()
134 mutex_lock(&ggtt->vm.mutex); in igt_evict_something()
139 mutex_unlock(&ggtt->vm.mutex); in igt_evict_something()
206 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_vma()
218 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_vma()
299 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_cache_color()
312 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_cache_color()
344 mutex_lock(&ggtt->vm.mutex); in igt_evict_vm()
355 mutex_lock(&ggtt->vm.mutex); in igt_evict_vm()
[all …]

Completed in 74 milliseconds

12345678910>>...185