Home
last modified time | relevance | path

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

123

/linux-5.19.10/drivers/soc/mediatek/
Dmtk-mutex.c428 struct mtk_mutex_ctx *mtx = dev_get_drvdata(dev); in mtk_mutex_get() local
432 if (!mtx->mutex[i].claimed) { in mtk_mutex_get()
433 mtx->mutex[i].claimed = true; in mtk_mutex_get()
434 return &mtx->mutex[i]; in mtk_mutex_get()
443 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_put() local
446 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_put()
454 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_prepare() local
456 return clk_prepare_enable(mtx->clk); in mtk_mutex_prepare()
462 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_unprepare() local
464 clk_disable_unprepare(mtx->clk); in mtk_mutex_unprepare()
[all …]
/linux-5.19.10/sound/aoa/codecs/
Dtas.c97 struct mutex mtx; member
238 mutex_lock(&tas->mtx); in tas_snd_vol_get()
241 mutex_unlock(&tas->mtx); in tas_snd_vol_get()
257 mutex_lock(&tas->mtx); in tas_snd_vol_put()
260 mutex_unlock(&tas->mtx); in tas_snd_vol_put()
268 mutex_unlock(&tas->mtx); in tas_snd_vol_put()
288 mutex_lock(&tas->mtx); in tas_snd_mute_get()
291 mutex_unlock(&tas->mtx); in tas_snd_mute_get()
300 mutex_lock(&tas->mtx); in tas_snd_mute_put()
303 mutex_unlock(&tas->mtx); in tas_snd_mute_put()
[all …]
/linux-5.19.10/kernel/locking/
Dtest-ww_mutex.c42 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); in test_mutex_work() local
44 complete(&mtx->ready); in test_mutex_work()
45 wait_for_completion(&mtx->go); in test_mutex_work()
47 if (mtx->flags & TEST_MTX_TRY) { in test_mutex_work()
48 while (!ww_mutex_trylock(&mtx->mutex, NULL)) in test_mutex_work()
51 ww_mutex_lock(&mtx->mutex, NULL); in test_mutex_work()
53 complete(&mtx->done); in test_mutex_work()
54 ww_mutex_unlock(&mtx->mutex); in test_mutex_work()
60 struct test_mutex mtx; in __test_mutex() local
64 ww_mutex_init(&mtx.mutex, &ww_class); in __test_mutex()
[all …]
/linux-5.19.10/drivers/net/ethernet/atheros/alx/
Dethtool.c166 mutex_lock(&alx->mtx); in alx_get_link_ksettings()
169 mutex_unlock(&alx->mtx); in alx_get_link_ksettings()
205 mutex_lock(&alx->mtx); in alx_set_link_ksettings()
207 mutex_unlock(&alx->mtx); in alx_set_link_ksettings()
218 mutex_lock(&alx->mtx); in alx_get_pauseparam()
223 mutex_unlock(&alx->mtx); in alx_get_pauseparam()
243 mutex_lock(&alx->mtx); in alx_set_pauseparam()
257 mutex_unlock(&alx->mtx); in alx_set_pauseparam()
267 mutex_unlock(&alx->mtx); in alx_set_pauseparam()
Dmain.c1094 mutex_init(&alx->mtx); in alx_init_sw()
1126 lockdep_assert_held(&alx->mtx); in alx_halt()
1153 lockdep_assert_held(&alx->mtx); in alx_activate()
1169 lockdep_assert_held(&alx->mtx); in alx_reinit()
1185 mutex_lock(&alx->mtx); in alx_change_mtu()
1187 mutex_unlock(&alx->mtx); in alx_change_mtu()
1260 lockdep_assert_held(&alx->mtx); in __alx_stop()
1297 lockdep_assert_held(&alx->mtx); in alx_check_link()
1356 mutex_lock(&alx->mtx); in alx_open()
1358 mutex_unlock(&alx->mtx); in alx_open()
[all …]
/linux-5.19.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()
/linux-5.19.10/drivers/vme/
Dvme.c307 mutex_lock(&slave_image->mtx); in vme_slave_request()
313 mutex_unlock(&slave_image->mtx); in vme_slave_request()
317 mutex_unlock(&slave_image->mtx); in vme_slave_request()
335 mutex_lock(&slave_image->mtx); in vme_slave_request()
337 mutex_unlock(&slave_image->mtx); in vme_slave_request()
458 mutex_lock(&slave_image->mtx); in vme_slave_free()
463 mutex_unlock(&slave_image->mtx); in vme_slave_free()
887 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
892 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
896 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
/linux-5.19.10/net/mac80211/
Dscan.c360 lockdep_is_held(&local->mtx)); in ieee80211_prep_hw_scan()
425 lockdep_assert_held(&local->mtx); in __ieee80211_scan_completed()
440 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
449 lockdep_is_held(&local->mtx)), in __ieee80211_scan_completed()
466 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
608 lockdep_assert_held(&local->mtx); in ieee80211_run_deferred_scan()
616 lockdep_is_held(&local->mtx)))) in ieee80211_run_deferred_scan()
661 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
672 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
697 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.c188 mutex_lock(&sdata->local->mtx); in ieee80211_ocb_join()
191 mutex_unlock(&sdata->local->mtx); in ieee80211_ocb_join()
231 mutex_lock(&sdata->local->mtx); in ieee80211_ocb_leave()
233 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()
348 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_start_rx_ba_session()
473 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_start_rx_ba_session()
477 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_start_rx_ba_session()
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()
742 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_agg_tx_operational()
845 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
849 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
975 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp()
1041 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp()
Dchan.c507 lockdep_assert_held(&local->mtx); in ieee80211_is_radar_required()
530 lockdep_assert_held(&local->mtx); in ieee80211_chanctx_radar_required()
580 lockdep_assert_held(&local->mtx); in ieee80211_add_chanctx()
613 lockdep_assert_held(&local->mtx); in ieee80211_new_chanctx()
734 lockdep_assert_held(&local->mtx); in ieee80211_recalc_radar_chanctx()
912 lockdep_assert_held(&local->mtx); in __ieee80211_vif_copy_chanctx_to_vlans()
1128 lockdep_assert_held(&local->mtx); in ieee80211_vif_use_reserved_reassign()
1275 lockdep_assert_held(&local->mtx); in ieee80211_chsw_switch_hwconf()
1297 lockdep_assert_held(&local->mtx); in ieee80211_chsw_switch_vifs()
1342 lockdep_assert_held(&local->mtx); in ieee80211_chsw_switch_ctxs()
[all …]
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()
/linux-5.19.10/drivers/net/ethernet/marvell/prestera/
Dprestera_counter.c16 struct mutex mtx; /* protect block_list */ member
32 struct mutex mtx; /* protect stats and counter_idr */ member
52 mutex_lock(&counter->mtx); in prestera_counter_lock()
57 mutex_unlock(&counter->mtx); in prestera_counter_unlock()
62 mutex_lock(&block->mtx); in prestera_counter_block_lock()
67 mutex_unlock(&block->mtx); in prestera_counter_block_unlock()
176 mutex_init(&block->mtx); in prestera_counter_block_get()
188 mutex_destroy(&block->mtx); in prestera_counter_block_get()
221 mutex_destroy(&block->mtx); in prestera_counter_block_put()
451 mutex_init(&counter->mtx); in prestera_counter_init()
[all …]
/linux-5.19.10/fs/
Deventpoll.c184 struct mutex mtx; member
576 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
775 mutex_lock(&ep->mtx); in ep_free()
781 mutex_unlock(&ep->mtx); in ep_free()
784 mutex_destroy(&ep->mtx); in ep_free()
819 mutex_lock_nested(&ep->mtx, depth); in __ep_eventpoll_poll()
836 mutex_unlock(&ep->mtx); in __ep_eventpoll_poll()
870 mutex_lock(&ep->mtx); in ep_show_fdinfo()
884 mutex_unlock(&ep->mtx); in ep_show_fdinfo()
929 mutex_lock_nested(&ep->mtx, 0); in eventpoll_release_file()
[all …]
/linux-5.19.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 …]
/linux-5.19.10/drivers/usb/misc/
Dadutux.c71 struct mutex mtx; member
356 if (mutex_lock_interruptible(&dev->mtx)) in adu_read()
498 mutex_unlock(&dev->mtx); in adu_read()
516 retval = mutex_lock_interruptible(&dev->mtx); in adu_write()
541 mutex_unlock(&dev->mtx); in adu_write()
556 retval = mutex_lock_interruptible(&dev->mtx); in adu_write()
610 mutex_unlock(&dev->mtx); in adu_write()
614 mutex_unlock(&dev->mtx); in adu_write()
664 mutex_init(&dev->mtx); in adu_probe()
773 mutex_lock(&dev->mtx); /* not interruptible */ in adu_disconnect()
[all …]
/linux-5.19.10/net/rfkill/
Dcore.c78 struct mutex mtx; member
285 mutex_lock(&data->mtx); in rfkill_send_events()
287 mutex_unlock(&data->mtx); in rfkill_send_events()
1160 mutex_init(&data->mtx); in rfkill_fop_open()
1164 mutex_lock(&data->mtx); in rfkill_fop_open()
1178 mutex_unlock(&data->mtx); in rfkill_fop_open()
1186 mutex_unlock(&data->mtx); in rfkill_fop_open()
1188 mutex_destroy(&data->mtx); in rfkill_fop_open()
1202 mutex_lock(&data->mtx); in rfkill_fop_poll()
1205 mutex_unlock(&data->mtx); in rfkill_fop_poll()
[all …]
/linux-5.19.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()
/linux-5.19.10/sound/pci/aw2/
Daw2-alsa.c88 struct mutex mtx; member
281 mutex_init(&chip->mtx); in snd_aw2_probe()
351 mutex_lock(&chip->mtx); in snd_aw2_pcm_prepare_playback()
367 mutex_unlock(&chip->mtx); in snd_aw2_pcm_prepare_playback()
380 mutex_lock(&chip->mtx); in snd_aw2_pcm_prepare_capture()
396 mutex_unlock(&chip->mtx); in snd_aw2_pcm_prepare_capture()
/linux-5.19.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 …]
/linux-5.19.10/net/wireless/
Dcore.h225 mutex_lock(&wdev->mtx); in wdev_lock()
226 __acquire(wdev->mtx); in wdev_lock()
232 __release(wdev->mtx); in wdev_unlock()
233 mutex_unlock(&wdev->mtx); in wdev_unlock()
236 #define ASSERT_WDEV_LOCK(wdev) lockdep_assert_held(&(wdev)->mtx)
240 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_has_monitors_only()

123