Home
last modified time | relevance | path

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

12345678910>>...117

/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.c230 struct mtk_mutex mutex[10]; member
536 if (!mtx->mutex[i].claimed) { in mtk_mutex_get()
537 mtx->mutex[i].claimed = true; in mtk_mutex_get()
538 return &mtx->mutex[i]; in mtk_mutex_get()
545 void mtk_mutex_put(struct mtk_mutex *mutex) in mtk_mutex_put() argument
547 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_put()
548 mutex[mutex->id]); in mtk_mutex_put()
550 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_put()
552 mutex->claimed = false; in mtk_mutex_put()
556 int mtk_mutex_prepare(struct mtk_mutex *mutex) in mtk_mutex_prepare() argument
[all …]
/drivers/gpu/drm/amd/pm/
Damdgpu_dpm.c49 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
52 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
65 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
68 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
85 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
107 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
117 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
119 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
135 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_baco_enter()
140 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_baco_enter()
[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()
175 mutex_lock(&n->dev.mutex); in vhost_test_run()
190 mutex_lock(&vq->mutex); in vhost_test_run()
199 mutex_unlock(&vq->mutex); in vhost_test_run()
209 mutex_unlock(&n->dev.mutex); in vhost_test_run()
213 mutex_unlock(&n->dev.mutex); in vhost_test_run()
[all …]
/drivers/net/wireless/realtek/rtw89/
Dmac80211.c51 mutex_lock(&rtwdev->mutex); in rtw89_ops_start()
53 mutex_unlock(&rtwdev->mutex); in rtw89_ops_start()
62 mutex_lock(&rtwdev->mutex); in rtw89_ops_stop()
64 mutex_unlock(&rtwdev->mutex); in rtw89_ops_stop()
74 mutex_lock(&rtwdev->mutex); in rtw89_ops_config()
91 mutex_unlock(&rtwdev->mutex); in rtw89_ops_config()
106 mutex_lock(&rtwdev->mutex); in rtw89_ops_add_interface()
139 mutex_unlock(&rtwdev->mutex); in rtw89_ops_add_interface()
155 mutex_lock(&rtwdev->mutex); in rtw89_ops_remove_interface()
163 mutex_unlock(&rtwdev->mutex); in rtw89_ops_remove_interface()
[all …]
/drivers/media/dvb-core/
Ddmxdev.c125 if (mutex_lock_interruptible(&dmxdev->mutex)) in dvb_dvr_open()
129 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
153 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
163 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
168 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
182 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
189 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
196 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
205 mutex_lock(&dmxdev->mutex); in dvb_dvr_release()
234 mutex_unlock(&dmxdev->mutex); in dvb_dvr_release()
[all …]
Ddvb_demux.c696 if (mutex_lock_interruptible(&demux->mutex)) in dmx_ts_feed_set()
701 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
707 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
723 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
734 if (mutex_lock_interruptible(&demux->mutex)) in dmx_ts_feed_start_filtering()
738 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
743 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
748 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
756 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
767 mutex_lock(&demux->mutex); in dmx_ts_feed_stop_filtering()
[all …]
/drivers/net/wireless/realtek/rtw88/
Dmac80211.c54 mutex_lock(&rtwdev->mutex); in rtw_ops_start()
56 mutex_unlock(&rtwdev->mutex); in rtw_ops_start()
65 mutex_lock(&rtwdev->mutex); in rtw_ops_stop()
67 mutex_unlock(&rtwdev->mutex); in rtw_ops_stop()
78 mutex_lock(&rtwdev->mutex); in rtw_ops_config()
100 mutex_unlock(&rtwdev->mutex); in rtw_ops_config()
166 mutex_lock(&rtwdev->mutex); in rtw_ops_add_interface()
189 mutex_unlock(&rtwdev->mutex); in rtw_ops_add_interface()
202 mutex_unlock(&rtwdev->mutex); in rtw_ops_add_interface()
217 mutex_lock(&rtwdev->mutex); in rtw_ops_remove_interface()
[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.c227 queue->queue.lock = &queue->mutex; in uvc_queue_init()
243 mutex_init(&queue->mutex); in uvc_queue_init()
253 mutex_lock(&queue->mutex); in uvc_queue_release()
255 mutex_unlock(&queue->mutex); in uvc_queue_release()
267 mutex_lock(&queue->mutex); in uvc_request_buffers()
269 mutex_unlock(&queue->mutex); in uvc_request_buffers()
278 mutex_lock(&queue->mutex); in uvc_query_buffer()
280 mutex_unlock(&queue->mutex); in uvc_query_buffer()
290 mutex_lock(&queue->mutex); in uvc_create_buffers()
292 mutex_unlock(&queue->mutex); in uvc_create_buffers()
[all …]
/drivers/gpu/drm/i915/
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 …]
/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.c120 mutex_lock(&ggtt->vm.mutex); in igt_evict_something()
125 mutex_unlock(&ggtt->vm.mutex); in igt_evict_something()
135 mutex_lock(&ggtt->vm.mutex); in igt_evict_something()
140 mutex_unlock(&ggtt->vm.mutex); in igt_evict_something()
207 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_vma()
209 mutex_unlock(&ggtt->vm.mutex); in igt_evict_for_vma()
219 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_vma()
221 mutex_unlock(&ggtt->vm.mutex); in igt_evict_for_vma()
300 mutex_lock(&ggtt->vm.mutex); in igt_evict_for_cache_color()
302 mutex_unlock(&ggtt->vm.mutex); in igt_evict_for_cache_color()
[all …]
/drivers/gpu/drm/
Ddrm_modeset_lock.c153 mutex_lock(&config->mutex); in drm_modeset_lock_all()
211 mutex_unlock(&dev->mode_config.mutex); in drm_modeset_unlock_all()
230 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); in drm_warn_on_modeset_not_all_locked()
233 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_warn_on_modeset_not_all_locked()
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()
368 ww_mutex_init(&lock->mutex, &crtc_ww_class); in drm_modeset_lock_init()
[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/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/comedi/drivers/
Ddyna_pci10xx.c44 struct mutex mutex; member
76 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai()
94 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai()
109 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao()
116 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao()
129 mutex_lock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits()
137 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits()
148 mutex_lock(&devpriv->mutex); in dyna_pci10xx_do_insn_bits()
156 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_do_insn_bits()
179 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()
211 mutex_unlock(&psp->dtm_context.mutex); in add_display_to_topology_v3()
265 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_create_session()
285 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_create_session()
[all …]
/drivers/pwm/
Dpwm-twl-led.c66 struct mutex mutex; member
114 mutex_lock(&twl->mutex); in twl4030_pwmled_enable()
128 mutex_unlock(&twl->mutex); in twl4030_pwmled_enable()
139 mutex_lock(&twl->mutex); in twl4030_pwmled_disable()
153 mutex_unlock(&twl->mutex); in twl4030_pwmled_disable()
218 mutex_lock(&twl->mutex); in twl6030_pwmled_enable()
234 mutex_unlock(&twl->mutex); in twl6030_pwmled_enable()
245 mutex_lock(&twl->mutex); in twl6030_pwmled_disable()
261 mutex_unlock(&twl->mutex); in twl6030_pwmled_disable()
296 mutex_lock(&twl->mutex); in twl6030_pwmled_request()
[all …]

12345678910>>...117