Home
last modified time | relevance | path

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

12345678910>>...109

/drivers/acpi/acpica/
Dexmutex.c37 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; in acpi_ex_unlink_mutex()
45 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()
59 obj_desc->mutex.original_sync_level; in acpi_ex_unlink_mutex()
61 thread->acquired_mutex_list = obj_desc->mutex.next; in acpi_ex_unlink_mutex()
88 obj_desc->mutex.prev = NULL; in acpi_ex_link_mutex()
89 obj_desc->mutex.next = list_head; in acpi_ex_link_mutex()
[all …]
Ddsmethod.c263 status = acpi_os_create_mutex(&mutex_desc->mutex.os_mutex); in acpi_ds_create_method_mutex()
269 mutex_desc->mutex.sync_level = method_desc->method.sync_level; in acpi_ds_create_method_mutex()
270 method_desc->method.mutex = mutex_desc; in acpi_ds_create_method_mutex()
323 if (!obj_desc->method.mutex) { in acpi_ds_begin_method_execution()
345 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()
368 acpi_ex_system_wait_mutex(obj_desc->method.mutex-> in acpi_ds_begin_method_execution()
369 mutex.os_mutex, in acpi_ds_begin_method_execution()
378 obj_desc->method.mutex->mutex. in acpi_ds_begin_method_execution()
[all …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_mutex.c128 struct nfp_cpp_mutex *mutex; in nfp_cpp_mutex_alloc() local
143 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()
148 mutex->target = target; in nfp_cpp_mutex_alloc()
149 mutex->address = address; 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()
160 void nfp_cpp_mutex_free(struct nfp_cpp_mutex *mutex) in nfp_cpp_mutex_free() argument
[all …]
/drivers/soc/mediatek/
Dmtk-mutex.c137 struct mtk_mutex mutex[10]; member
284 if (!mtx->mutex[i].claimed) { in mtk_mutex_get()
285 mtx->mutex[i].claimed = true; in mtk_mutex_get()
286 return &mtx->mutex[i]; in mtk_mutex_get()
293 void mtk_mutex_put(struct mtk_mutex *mutex) in mtk_mutex_put() argument
295 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_put()
296 mutex[mutex->id]); in mtk_mutex_put()
298 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_put()
300 mutex->claimed = false; in mtk_mutex_put()
304 int mtk_mutex_prepare(struct mtk_mutex *mutex) in mtk_mutex_prepare() argument
[all …]
/drivers/vhost/
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()
182 mutex_lock(&n->dev.mutex); in vhost_test_run()
197 mutex_lock(&vq->mutex); in vhost_test_run()
206 mutex_unlock(&vq->mutex); in vhost_test_run()
216 mutex_unlock(&n->dev.mutex); in vhost_test_run()
220 mutex_unlock(&n->dev.mutex); in vhost_test_run()
[all …]
/drivers/media/dvb-core/
Ddmxdev.c135 if (mutex_lock_interruptible(&dmxdev->mutex)) in dvb_dvr_open()
139 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
163 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
173 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
178 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
192 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
199 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()
[all …]
Ddvb_demux.c706 if (mutex_lock_interruptible(&demux->mutex)) in dmx_ts_feed_set()
711 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
717 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
733 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
744 if (mutex_lock_interruptible(&demux->mutex)) in dmx_ts_feed_start_filtering()
748 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
753 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
758 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
766 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
777 mutex_lock(&demux->mutex); in dmx_ts_feed_stop_filtering()
[all …]
/drivers/mtd/chips/
Dcfi_cmdset_0020.c267 mutex_lock(&chip->mutex); in do_read_onechip()
299 mutex_unlock(&chip->mutex); in do_read_onechip()
305 mutex_unlock(&chip->mutex); in do_read_onechip()
307 mutex_lock(&chip->mutex); in do_read_onechip()
338 mutex_unlock(&chip->mutex); in do_read_onechip()
344 mutex_unlock(&chip->mutex); in do_read_onechip()
354 mutex_unlock(&chip->mutex); in do_read_onechip()
379 mutex_unlock(&chip->mutex); in do_read_onechip()
446 mutex_lock(&chip->mutex); in do_write_buffer()
471 mutex_unlock(&chip->mutex); in do_write_buffer()
[all …]
/drivers/media/usb/uvc/
Duvc_queue.c226 queue->queue.lock = &queue->mutex; in uvc_queue_init()
242 mutex_init(&queue->mutex); in uvc_queue_init()
252 mutex_lock(&queue->mutex); in uvc_queue_release()
254 mutex_unlock(&queue->mutex); in uvc_queue_release()
266 mutex_lock(&queue->mutex); in uvc_request_buffers()
268 mutex_unlock(&queue->mutex); in uvc_request_buffers()
277 mutex_lock(&queue->mutex); in uvc_query_buffer()
279 mutex_unlock(&queue->mutex); in uvc_query_buffer()
289 mutex_lock(&queue->mutex); in uvc_create_buffers()
291 mutex_unlock(&queue->mutex); in uvc_create_buffers()
[all …]
/drivers/gpu/drm/amd/pm/swsmu/
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()
491 mutex_lock(&smu->mutex); in smu_sys_get_pp_table()
500 mutex_unlock(&smu->mutex); in smu_sys_get_pp_table()
[all …]
/drivers/net/wireless/realtek/rtw88/
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()
192 mutex_unlock(&rtwdev->mutex); in rtw_ops_add_interface()
204 mutex_unlock(&rtwdev->mutex); in rtw_ops_add_interface()
219 mutex_lock(&rtwdev->mutex); in rtw_ops_remove_interface()
[all …]
/drivers/gpu/drm/
Ddrm_modeset_lock.c105 mutex_lock(&config->mutex); in drm_modeset_lock_all()
163 mutex_unlock(&dev->mode_config.mutex); in drm_modeset_unlock_all()
182 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); in drm_warn_on_modeset_not_all_locked()
185 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_warn_on_modeset_not_all_locked()
251 if (!ww_mutex_trylock(&lock->mutex)) in modeset_lock()
256 ret = ww_mutex_lock_slow_interruptible(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
258 ret = ww_mutex_lock_interruptible(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
260 ww_mutex_lock_slow(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
263 ret = ww_mutex_lock(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
315 ww_mutex_init(&lock->mutex, &crtc_ww_class); in drm_modeset_lock_init()
[all …]
/drivers/net/wireless/zydas/zd1211rw/
Dzd_chip.c27 mutex_init(&chip->mutex); in zd_chip_init()
34 ZD_ASSERT(!mutex_is_locked(&chip->mutex)); in zd_chip_clear()
37 mutex_destroy(&chip->mutex); in zd_chip_clear()
141 ZD_ASSERT(mutex_is_locked(&chip->mutex)); in _zd_iowrite32v_async_locked()
190 ZD_ASSERT(mutex_is_locked(&chip->mutex)); in zd_iowrite16a_locked()
259 mutex_lock(&chip->mutex); in zd_ioread16()
261 mutex_unlock(&chip->mutex); in zd_ioread16()
269 mutex_lock(&chip->mutex); in zd_ioread32()
271 mutex_unlock(&chip->mutex); in zd_ioread32()
279 mutex_lock(&chip->mutex); in zd_iowrite16()
[all …]
/drivers/mtd/lpddr/
Dlpddr_cmds.c88 mutex_init(&chip->mutex); in lpddr_cmdset()
152 mutex_unlock(&chip->mutex); in wait_for_ready()
167 mutex_lock(&chip->mutex); in wait_for_ready()
174 mutex_unlock(&chip->mutex); in wait_for_ready()
177 mutex_lock(&chip->mutex); in wait_for_ready()
238 ret = mutex_trylock(&contender->mutex); in get_chip()
242 mutex_unlock(&chip->mutex); in get_chip()
244 mutex_lock(&chip->mutex); in get_chip()
247 mutex_unlock(&contender->mutex); in get_chip()
251 mutex_unlock(&contender->mutex); in get_chip()
[all …]
/drivers/media/cec/i2c/
Dch7322.c154 struct mutex mutex; /* device access mutex */ member
172 WARN_ON(!mutex_is_locked(&ch7322->mutex)); in ch7322_send_message()
214 WARN_ON(!mutex_is_locked(&ch7322->mutex)); in ch7322_receive_message()
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()
277 mutex_unlock(&ch7322->mutex); in ch7322_rx_done()
295 mutex_lock(&ch7322->mutex); in ch7322_phys_addr()
298 mutex_unlock(&ch7322->mutex); in ch7322_phys_addr()
311 mutex_lock(&ch7322->mutex); in ch7322_irq()
[all …]
/drivers/iio/gyro/
Dbmg160_core.c100 struct mutex mutex; member
499 mutex_lock(&data->mutex); in bmg160_get_temp()
502 mutex_unlock(&data->mutex); in bmg160_get_temp()
510 mutex_unlock(&data->mutex); in bmg160_get_temp()
516 mutex_unlock(&data->mutex); in bmg160_get_temp()
529 mutex_lock(&data->mutex); in bmg160_get_axis()
532 mutex_unlock(&data->mutex); in bmg160_get_axis()
541 mutex_unlock(&data->mutex); in bmg160_get_axis()
547 mutex_unlock(&data->mutex); in bmg160_get_axis()
607 mutex_lock(&data->mutex); in bmg160_read_raw()
[all …]
/drivers/gpu/drm/i915/selftests/
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()
208 mutex_unlock(&ggtt->vm.mutex); in igt_evict_for_vma()
218 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_vma()
220 mutex_unlock(&ggtt->vm.mutex); in igt_evict_for_vma()
299 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_cache_color()
301 mutex_unlock(&ggtt->vm.mutex); in igt_evict_for_cache_color()
[all …]
/drivers/pwm/
Dpwm-twl-led.c50 struct mutex mutex; member
98 mutex_lock(&twl->mutex); in twl4030_pwmled_enable()
112 mutex_unlock(&twl->mutex); in twl4030_pwmled_enable()
123 mutex_lock(&twl->mutex); in twl4030_pwmled_disable()
137 mutex_unlock(&twl->mutex); in twl4030_pwmled_disable()
163 mutex_lock(&twl->mutex); in twl6030_pwmled_enable()
179 mutex_unlock(&twl->mutex); in twl6030_pwmled_enable()
190 mutex_lock(&twl->mutex); in twl6030_pwmled_disable()
206 mutex_unlock(&twl->mutex); in twl6030_pwmled_disable()
215 mutex_lock(&twl->mutex); in twl6030_pwmled_request()
[all …]
/drivers/leds/trigger/
Dledtrig-tty.c15 struct mutex mutex; member
32 mutex_lock(&trigger_data->mutex); in ttyname_show()
37 mutex_unlock(&trigger_data->mutex); in ttyname_show()
62 mutex_lock(&trigger_data->mutex); in ttyname_store()
72 mutex_unlock(&trigger_data->mutex); in ttyname_store()
88 mutex_lock(&trigger_data->mutex); in ledtrig_tty_work()
92 mutex_unlock(&trigger_data->mutex); in ledtrig_tty_work()
121 mutex_unlock(&trigger_data->mutex); in ledtrig_tty_work()
137 mutex_unlock(&trigger_data->mutex); in ledtrig_tty_work()
160 mutex_init(&trigger_data->mutex); in ledtrig_tty_activate()
/drivers/gpu/drm/i915/
Dintel_wakeref.h38 struct mutex mutex; member
49 struct lock_class_key mutex; member
183 __acquires(wf->mutex) in intel_wakeref_lock()
185 mutex_lock(&wf->mutex); in intel_wakeref_lock()
196 __releases(wf->mutex) in intel_wakeref_unlock()
198 mutex_unlock(&wf->mutex); in intel_wakeref_unlock()
211 mutex_lock(&wf->mutex); in intel_wakeref_unlock_wait()
212 mutex_unlock(&wf->mutex); in intel_wakeref_unlock_wait()
235 lockdep_assert_held(&wf->mutex); in __intel_wakeref_defer_park()
/drivers/iio/accel/
Dmma9551.c47 struct mutex mutex; member
117 mutex_lock(&data->mutex); in mma9551_read_raw()
119 mutex_unlock(&data->mutex); in mma9551_read_raw()
127 mutex_lock(&data->mutex); in mma9551_read_raw()
130 mutex_unlock(&data->mutex); in mma9551_read_raw()
235 mutex_lock(&data->mutex); in mma9551_write_event_config()
238 mutex_unlock(&data->mutex); in mma9551_write_event_config()
259 mutex_lock(&data->mutex); in mma9551_write_event_value()
265 mutex_unlock(&data->mutex); in mma9551_write_event_value()
285 mutex_lock(&data->mutex); in mma9551_read_event_value()
[all …]
Dmma9553.c179 struct mutex mutex; member
455 mutex_lock(&data->mutex); in mma9553_read_status_word()
458 mutex_unlock(&data->mutex); in mma9553_read_status_word()
534 mutex_lock(&data->mutex); in mma9553_read_raw()
537 mutex_unlock(&data->mutex); in mma9553_read_raw()
616 mutex_lock(&data->mutex); in mma9553_write_raw()
619 mutex_unlock(&data->mutex); in mma9553_write_raw()
623 mutex_unlock(&data->mutex); in mma9553_write_raw()
630 mutex_lock(&data->mutex); in mma9553_write_raw()
635 mutex_unlock(&data->mutex); in mma9553_write_raw()
[all …]
/drivers/gpu/drm/i915/display/
Dintel_drrs.c213 mutex_lock(&dev_priv->drrs.mutex); in intel_edp_drrs_enable()
223 mutex_unlock(&dev_priv->drrs.mutex); in intel_edp_drrs_enable()
256 mutex_lock(&dev_priv->drrs.mutex); in intel_edp_drrs_disable()
258 mutex_unlock(&dev_priv->drrs.mutex); in intel_edp_drrs_disable()
263 mutex_unlock(&dev_priv->drrs.mutex); in intel_edp_drrs_disable()
286 mutex_lock(&dev_priv->drrs.mutex); in intel_edp_drrs_update()
298 mutex_unlock(&dev_priv->drrs.mutex); in intel_edp_drrs_update()
307 mutex_lock(&dev_priv->drrs.mutex); in intel_edp_drrs_downclock_work()
330 mutex_unlock(&dev_priv->drrs.mutex); in intel_edp_drrs_downclock_work()
355 mutex_lock(&dev_priv->drrs.mutex); in intel_edp_drrs_invalidate()
[all …]
/drivers/comedi/drivers/
Ddyna_pci10xx.c45 struct mutex mutex; member
77 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai()
95 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai()
110 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao()
117 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao()
130 mutex_lock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits()
138 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits()
149 mutex_lock(&devpriv->mutex); in dyna_pci10xx_do_insn_bits()
157 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_do_insn_bits()
180 mutex_init(&devpriv->mutex); in dyna_pci10xx_auto_attach()
[all …]
/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp_psp.c62 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v2()
80 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v2()
98 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v3()
108 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v3()
138 mutex_lock(&psp->dtm_context.mutex); in add_display_to_topology_v2()
165 mutex_unlock(&psp->dtm_context.mutex); in add_display_to_topology_v2()
185 mutex_lock(&psp->dtm_context.mutex); in add_display_to_topology_v3()
207 mutex_unlock(&psp->dtm_context.mutex); in add_display_to_topology_v3()
261 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_create_session()
281 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_create_session()
[all …]

12345678910>>...109