Home
last modified time | relevance | path

Searched refs:mtx (Results 1 – 25 of 62) sorted by relevance

123

/kernel/linux/linux-5.10/sound/aoa/codecs/
Dtas.c98 struct mutex mtx; member
239 mutex_lock(&tas->mtx); in tas_snd_vol_get()
242 mutex_unlock(&tas->mtx); in tas_snd_vol_get()
258 mutex_lock(&tas->mtx); in tas_snd_vol_put()
261 mutex_unlock(&tas->mtx); in tas_snd_vol_put()
269 mutex_unlock(&tas->mtx); in tas_snd_vol_put()
289 mutex_lock(&tas->mtx); in tas_snd_mute_get()
292 mutex_unlock(&tas->mtx); in tas_snd_mute_get()
301 mutex_lock(&tas->mtx); in tas_snd_mute_put()
304 mutex_unlock(&tas->mtx); in tas_snd_mute_put()
[all …]
/kernel/linux/linux-5.10/kernel/locking/
Dtest-ww_mutex.c33 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); in test_mutex_work() local
35 complete(&mtx->ready); in test_mutex_work()
36 wait_for_completion(&mtx->go); in test_mutex_work()
38 if (mtx->flags & TEST_MTX_TRY) { in test_mutex_work()
39 while (!ww_mutex_trylock(&mtx->mutex)) in test_mutex_work()
42 ww_mutex_lock(&mtx->mutex, NULL); in test_mutex_work()
44 complete(&mtx->done); in test_mutex_work()
45 ww_mutex_unlock(&mtx->mutex); in test_mutex_work()
51 struct test_mutex mtx; in __test_mutex() local
55 ww_mutex_init(&mtx.mutex, &ww_class); in __test_mutex()
[all …]
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
DIt_posix_mutex_026.c61 pthread_mutex_t mtx; in Testcase() local
82 ret = pthread_mutex_init(&mtx, pma[i]); in Testcase()
85 ret = pthread_mutex_destroy(&mtx); in Testcase()
88 ret = pthread_mutex_init(&mtx, pma[j]); in Testcase()
91 ret = pthread_mutex_destroy(&mtx); in Testcase()
/kernel/linux/linux-5.10/drivers/regulator/
Disl6271a-regulator.c34 struct mutex mtx; member
42 mutex_lock(&pmic->mtx); in isl6271a_get_voltage_sel()
48 mutex_unlock(&pmic->mtx); in isl6271a_get_voltage_sel()
58 mutex_lock(&pmic->mtx); in isl6271a_set_voltage_sel()
64 mutex_unlock(&pmic->mtx); in isl6271a_set_voltage_sel()
126 mutex_init(&pmic->mtx); in isl6271a_probe()
/kernel/linux/linux-5.10/net/mac80211/
Dscan.c348 lockdep_is_held(&local->mtx)); in ieee80211_prep_hw_scan()
413 lockdep_assert_held(&local->mtx); in __ieee80211_scan_completed()
428 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
437 lockdep_is_held(&local->mtx)), in __ieee80211_scan_completed()
454 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
593 lockdep_assert_held(&local->mtx); in ieee80211_run_deferred_scan()
601 lockdep_is_held(&local->mtx)))) in ieee80211_run_deferred_scan()
646 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
657 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
682 lockdep_assert_held(&local->mtx); in __ieee80211_start_scan()
[all …]
Doffchannel.c198 lockdep_assert_held(&local->mtx); in ieee80211_end_finished_rocs()
265 mutex_lock(&local->mtx); in ieee80211_hw_roc_start()
275 mutex_unlock(&local->mtx); in ieee80211_hw_roc_start()
296 lockdep_assert_held(&local->mtx); in _ieee80211_start_next_roc()
387 lockdep_assert_held(&local->mtx); in ieee80211_start_next_roc()
418 lockdep_assert_held(&local->mtx); in __ieee80211_roc_work()
457 mutex_lock(&local->mtx); in ieee80211_roc_work()
459 mutex_unlock(&local->mtx); in ieee80211_roc_work()
467 mutex_lock(&local->mtx); in ieee80211_hw_roc_done()
474 mutex_unlock(&local->mtx); in ieee80211_hw_roc_done()
[all …]
Docb.c187 mutex_lock(&sdata->local->mtx); in ieee80211_ocb_join()
190 mutex_unlock(&sdata->local->mtx); in ieee80211_ocb_join()
230 mutex_lock(&sdata->local->mtx); in ieee80211_ocb_leave()
232 mutex_unlock(&sdata->local->mtx); in ieee80211_ocb_leave()
Dagg-rx.c72 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_stop_rx_ba_session()
75 lockdep_is_held(&sta->ampdu_mlme.mtx)); in ___ieee80211_stop_rx_ba_session()
120 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_rx_ba_session()
122 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_rx_ba_session()
343 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_start_rx_ba_session()
468 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_start_rx_ba_session()
472 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_start_rx_ba_session()
Diface.c111 lockdep_assert_held(&local->mtx); in __ieee80211_recalc_idle()
455 mutex_lock(&local->mtx); in ieee80211_do_stop()
464 mutex_unlock(&local->mtx); in ieee80211_do_stop()
474 mutex_lock(&local->mtx); in ieee80211_do_stop()
476 mutex_unlock(&local->mtx); in ieee80211_do_stop()
511 mutex_lock(&local->mtx); in ieee80211_do_stop()
513 mutex_unlock(&local->mtx); in ieee80211_do_stop()
611 mutex_lock(&local->mtx); in ieee80211_do_stop()
613 mutex_unlock(&local->mtx); in ieee80211_do_stop()
959 mutex_lock(&local->mtx); in ieee80211_add_virtual_monitor()
[all …]
Dagg-tx.c145 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_assign_tid_tx()
216 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_agg_start_txq()
274 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_remove_tid_tx()
314 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_stop_tx_ba_session()
734 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_agg_tx_operational()
837 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
841 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
967 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp()
1033 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp()
Dht.c305 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
314 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
324 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
335 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
350 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_ba_session_work()
411 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_ba_session_work()
/kernel/linux/linux-5.10/drivers/vme/
Dvme.c316 mutex_lock(&slave_image->mtx); in vme_slave_request()
322 mutex_unlock(&slave_image->mtx); in vme_slave_request()
326 mutex_unlock(&slave_image->mtx); in vme_slave_request()
344 mutex_lock(&slave_image->mtx); in vme_slave_request()
346 mutex_unlock(&slave_image->mtx); in vme_slave_request()
467 mutex_lock(&slave_image->mtx); in vme_slave_free()
472 mutex_unlock(&slave_image->mtx); in vme_slave_free()
896 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
901 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
905 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
[all …]
Dvme_bridge.h31 struct mutex mtx; member
58 struct mutex mtx; member
64 struct mutex mtx; member
75 struct mutex mtx; member
/kernel/linux/linux-5.10/tools/lib/lockdep/include/liblockdep/
Dmutex.h16 #define LIBLOCKDEP_PTHREAD_MUTEX_INITIALIZER(mtx) \ argument
19 .dep_map = STATIC_LOCKDEP_MAP_INIT(#mtx, &((&(mtx))->dep_map)), \
/kernel/linux/linux-5.10/fs/
Deventpoll.c188 struct mutex mtx; member
635 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
694 mutex_lock_nested(&ep->mtx, depth); in ep_scan_ready_list()
758 mutex_unlock(&ep->mtx); in ep_scan_ready_list()
848 mutex_lock(&ep->mtx); in ep_free()
854 mutex_unlock(&ep->mtx); in ep_free()
857 mutex_destroy(&ep->mtx); in ep_free()
951 mutex_lock(&ep->mtx); in ep_show_fdinfo()
965 mutex_unlock(&ep->mtx); in ep_show_fdinfo()
1005 mutex_lock_nested(&ep->mtx, 0); in eventpoll_release_file()
[all …]
/kernel/linux/linux-5.10/net/rfkill/
Dcore.c77 struct mutex mtx; member
281 mutex_lock(&data->mtx); in rfkill_send_events()
283 mutex_unlock(&data->mtx); in rfkill_send_events()
1117 mutex_init(&data->mtx); in rfkill_fop_open()
1121 mutex_lock(&data->mtx); in rfkill_fop_open()
1135 mutex_unlock(&data->mtx); in rfkill_fop_open()
1143 mutex_unlock(&data->mtx); in rfkill_fop_open()
1145 mutex_destroy(&data->mtx); in rfkill_fop_open()
1159 mutex_lock(&data->mtx); in rfkill_fop_poll()
1162 mutex_unlock(&data->mtx); in rfkill_fop_poll()
[all …]
/kernel/liteos_a/kernel/extended/hilog/
Dlos_hilog.c83 LosMux mtx; member
174 (VOID)LOS_MuxAcquire(&g_hiLogDev.mtx); in HiLogRead()
211 (VOID)LOS_MuxRelease(&g_hiLogDev.mtx); in HiLogRead()
289 (VOID)LOS_MuxAcquire(&g_hiLogDev.mtx); in HiLogWriteInternal()
311 (VOID)LOS_MuxRelease(&g_hiLogDev.mtx); in HiLogWriteInternal()
340 LOS_MuxInit(&g_hiLogDev.mtx, NULL); in HiLogDeviceInit()
/kernel/linux/linux-5.10/drivers/vme/bridges/
Dvme_fake.c206 mutex_lock(&image->mtx); in fake_slave_set()
215 mutex_unlock(&image->mtx); in fake_slave_set()
234 mutex_lock(&image->mtx); in fake_slave_get()
243 mutex_unlock(&image->mtx); in fake_slave_get()
867 mutex_lock(&lm->mtx); in fake_lm_set()
872 mutex_unlock(&lm->mtx); in fake_lm_set()
885 mutex_unlock(&lm->mtx); in fake_lm_set()
894 mutex_unlock(&lm->mtx); in fake_lm_set()
909 mutex_lock(&lm->mtx); in fake_lm_get()
915 mutex_unlock(&lm->mtx); in fake_lm_get()
[all …]
Dvme_ca91cx42.c1192 mutex_lock(&ctrlr->mtx); in ca91cx42_dma_list_exec()
1201 mutex_unlock(&ctrlr->mtx); in ca91cx42_dma_list_exec()
1213 mutex_unlock(&ctrlr->mtx); in ca91cx42_dma_list_exec()
1263 mutex_lock(&ctrlr->mtx); in ca91cx42_dma_list_exec()
1265 mutex_unlock(&ctrlr->mtx); in ca91cx42_dma_list_exec()
1312 mutex_lock(&lm->mtx); in ca91cx42_lm_set()
1317 mutex_unlock(&lm->mtx); in ca91cx42_lm_set()
1335 mutex_unlock(&lm->mtx); in ca91cx42_lm_set()
1353 mutex_unlock(&lm->mtx); in ca91cx42_lm_set()
1369 mutex_lock(&lm->mtx); in ca91cx42_lm_get()
[all …]
/kernel/linux/linux-5.10/drivers/staging/hievent/
Dhievent_driver.c44 struct mutex mtx; /* lock to protect read/write buffer */ member
130 (void)mutex_lock(&hievent_dev.mtx); in hievent_read()
162 (void)mutex_unlock(&hievent_dev.mtx); in hievent_read()
218 (void)mutex_lock(&hievent_dev.mtx); in hievent_write_internal()
243 (void)mutex_unlock(&hievent_dev.mtx); in hievent_write_internal()
332 mutex_init(&hievent_dev.mtx); in hievent_device_init()
/kernel/linux/linux-5.10/drivers/staging/hilog/
Dhilog.c74 struct mutex mtx; /* lock to protect read/write buffer */ member
153 (void)mutex_lock(&hilog_dev.mtx); in hilog_read()
197 (void)mutex_unlock(&hilog_dev.mtx); in hilog_read()
302 (void)mutex_lock(&hilog_dev.mtx); in hilog_write_internal()
325 (void)mutex_unlock(&hilog_dev.mtx); in hilog_write_internal()
354 mutex_init(&hilog_dev.mtx); in hilog_device_init()
/kernel/linux/linux-5.10/drivers/usb/misc/
Dadutux.c71 struct mutex mtx; member
356 if (mutex_lock_interruptible(&dev->mtx)) in adu_read()
501 mutex_unlock(&dev->mtx); in adu_read()
519 retval = mutex_lock_interruptible(&dev->mtx); in adu_write()
544 mutex_unlock(&dev->mtx); in adu_write()
559 retval = mutex_lock_interruptible(&dev->mtx); in adu_write()
613 mutex_unlock(&dev->mtx); in adu_write()
617 mutex_unlock(&dev->mtx); in adu_write()
667 mutex_init(&dev->mtx); in adu_probe()
776 mutex_lock(&dev->mtx); /* not interruptible */ in adu_disconnect()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/
Domapfb.h80 struct mutex mtx; member
165 mutex_lock(&fbdev->mtx); in omapfb_lock()
170 mutex_unlock(&fbdev->mtx); in omapfb_unlock()
/kernel/linux/linux-5.10/drivers/net/wireless/atmel/
Dat76c50x-usb.c1475 mutex_lock(&priv->mtx); in at76_work_set_promisc()
1487 mutex_unlock(&priv->mtx); in at76_work_set_promisc()
1496 mutex_lock(&priv->mtx); in at76_work_submit_rx()
1498 mutex_unlock(&priv->mtx); in at76_work_submit_rx()
1720 mutex_lock(&priv->mtx); in at76_work_join_bssid()
1725 mutex_unlock(&priv->mtx); in at76_work_join_bssid()
1840 mutex_lock(&priv->mtx); in at76_mac80211_start()
1854 mutex_unlock(&priv->mtx); in at76_mac80211_start()
1869 mutex_lock(&priv->mtx); in at76_mac80211_stop()
1881 mutex_unlock(&priv->mtx); in at76_mac80211_stop()
[all …]
/kernel/linux/linux-5.10/sound/pci/aw2/
Daw2-alsa.c88 struct mutex mtx; member
340 mutex_init(&chip->mtx); in snd_aw2_probe()
414 mutex_lock(&chip->mtx); in snd_aw2_pcm_prepare_playback()
430 mutex_unlock(&chip->mtx); in snd_aw2_pcm_prepare_playback()
443 mutex_lock(&chip->mtx); in snd_aw2_pcm_prepare_capture()
459 mutex_unlock(&chip->mtx); in snd_aw2_pcm_prepare_capture()

123