Home
last modified time | relevance | path

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

1234

/Linux-v6.6/drivers/soc/mediatek/
Dmtk-mutex.c718 struct mtk_mutex_ctx *mtx = dev_get_drvdata(dev); in mtk_mutex_get() local
722 if (!mtx->mutex[i].claimed) { in mtk_mutex_get()
723 mtx->mutex[i].claimed = true; in mtk_mutex_get()
724 return &mtx->mutex[i]; in mtk_mutex_get()
733 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_put() local
736 WARN_ON(&mtx->mutex[mutex->id] != mutex); in mtk_mutex_put()
744 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_prepare() local
746 return clk_prepare_enable(mtx->clk); in mtk_mutex_prepare()
752 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, in mtk_mutex_unprepare() local
754 clk_disable_unprepare(mtx->clk); in mtk_mutex_unprepare()
[all …]
/Linux-v6.6/tools/perf/util/
Dmutex.c20 static void __mutex_init(struct mutex *mtx, bool pshared) in __mutex_init() argument
33 CHECK_ERR(pthread_mutex_init(&mtx->lock, &attr)); in __mutex_init()
37 void mutex_init(struct mutex *mtx) in mutex_init() argument
39 __mutex_init(mtx, /*pshared=*/false); in mutex_init()
42 void mutex_init_pshared(struct mutex *mtx) in mutex_init_pshared() argument
44 __mutex_init(mtx, /*pshared=*/true); in mutex_init_pshared()
47 void mutex_destroy(struct mutex *mtx) in mutex_destroy() argument
49 CHECK_ERR(pthread_mutex_destroy(&mtx->lock)); in mutex_destroy()
52 void mutex_lock(struct mutex *mtx) in mutex_lock() argument
55 CHECK_ERR(pthread_mutex_lock(&mtx->lock)); in mutex_lock()
[all …]
Dmutex.h82 void mutex_init(struct mutex *mtx);
87 void mutex_init_pshared(struct mutex *mtx);
88 void mutex_destroy(struct mutex *mtx);
90 void mutex_lock(struct mutex *mtx) EXCLUSIVE_LOCK_FUNCTION(*mtx);
91 void mutex_unlock(struct mutex *mtx) UNLOCK_FUNCTION(*mtx);
93 bool mutex_trylock(struct mutex *mtx) EXCLUSIVE_TRYLOCK_FUNCTION(true, *mtx);
104 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
/Linux-v6.6/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-v6.6/drivers/nfc/
Dvirtual_ncidev.c26 struct mutex mtx; member
40 mutex_lock(&vdev->mtx); in virtual_nci_close()
43 mutex_unlock(&vdev->mtx); in virtual_nci_close()
52 mutex_lock(&vdev->mtx); in virtual_nci_send()
54 mutex_unlock(&vdev->mtx); in virtual_nci_send()
60 mutex_unlock(&vdev->mtx); in virtual_nci_send()
64 mutex_unlock(&vdev->mtx); in virtual_nci_send()
83 mutex_lock(&vdev->mtx); in virtual_ncidev_read()
85 mutex_unlock(&vdev->mtx); in virtual_ncidev_read()
88 mutex_lock(&vdev->mtx); in virtual_ncidev_read()
[all …]
/Linux-v6.6/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-v6.6/net/mac80211/
Dscan.c347 lockdep_is_held(&local->mtx)); in ieee80211_prep_hw_scan()
412 lockdep_assert_held(&local->mtx); in __ieee80211_scan_completed()
427 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
436 lockdep_is_held(&local->mtx)), in __ieee80211_scan_completed()
453 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
595 lockdep_assert_held(&local->mtx); in ieee80211_run_deferred_scan()
603 lockdep_is_held(&local->mtx)))) in ieee80211_run_deferred_scan()
648 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
659 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
684 lockdep_assert_held(&local->mtx); in __ieee80211_start_scan()
[all …]
Doffchannel.c200 lockdep_assert_held(&local->mtx); in ieee80211_end_finished_rocs()
267 mutex_lock(&local->mtx); in ieee80211_hw_roc_start()
277 mutex_unlock(&local->mtx); in ieee80211_hw_roc_start()
298 lockdep_assert_held(&local->mtx); in _ieee80211_start_next_roc()
389 lockdep_assert_held(&local->mtx); in ieee80211_start_next_roc()
420 lockdep_assert_held(&local->mtx); in __ieee80211_roc_work()
459 mutex_lock(&local->mtx); in ieee80211_roc_work()
461 mutex_unlock(&local->mtx); in ieee80211_roc_work()
469 mutex_lock(&local->mtx); in ieee80211_hw_roc_done()
476 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()
Diface.c113 lockdep_assert_held(&local->mtx); in __ieee80211_recalc_idle()
217 mutex_lock(&local->mtx); in ieee80211_can_powered_addr_change()
233 lockdep_is_held(&local->mtx)); in ieee80211_can_powered_addr_change()
250 mutex_unlock(&local->mtx); in ieee80211_can_powered_addr_change()
528 mutex_lock(&local->mtx); in ieee80211_do_stop()
537 mutex_unlock(&local->mtx); in ieee80211_do_stop()
548 mutex_lock(&local->mtx); in ieee80211_do_stop()
550 mutex_unlock(&local->mtx); in ieee80211_do_stop()
578 mutex_lock(&local->mtx); in ieee80211_do_stop()
580 mutex_unlock(&local->mtx); in ieee80211_do_stop()
[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()
464 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_send_addba_with_timeout()
767 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_agg_tx_operational()
804 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_start_tx_ba_cb()
876 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
880 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
1006 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp()
[all …]
Dht.c319 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
328 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
338 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
349 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_sta_tear_down_BA_sessions()
364 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_ba_session_work()
417 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_ba_session_work()
456 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_ba_session_work()
/Linux-v6.6/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.c1093 mutex_init(&alx->mtx); in alx_init_sw()
1125 lockdep_assert_held(&alx->mtx); in alx_halt()
1152 lockdep_assert_held(&alx->mtx); in alx_activate()
1168 lockdep_assert_held(&alx->mtx); in alx_reinit()
1184 mutex_lock(&alx->mtx); in alx_change_mtu()
1186 mutex_unlock(&alx->mtx); in alx_change_mtu()
1259 lockdep_assert_held(&alx->mtx); in __alx_stop()
1296 lockdep_assert_held(&alx->mtx); in alx_check_link()
1355 mutex_lock(&alx->mtx); in alx_open()
1357 mutex_unlock(&alx->mtx); in alx_open()
[all …]
/Linux-v6.6/drivers/regulator/
Disl6271a-regulator.c26 struct mutex mtx; member
34 mutex_lock(&pmic->mtx); in isl6271a_get_voltage_sel()
40 mutex_unlock(&pmic->mtx); in isl6271a_get_voltage_sel()
50 mutex_lock(&pmic->mtx); in isl6271a_set_voltage_sel()
56 mutex_unlock(&pmic->mtx); in isl6271a_set_voltage_sel()
118 mutex_init(&pmic->mtx); in isl6271a_probe()
/Linux-v6.6/drivers/staging/vme_user/
Dvme.c307 mutex_lock(&slave_image->mtx); in vme_slave_request()
312 mutex_unlock(&slave_image->mtx); in vme_slave_request()
316 mutex_unlock(&slave_image->mtx); in vme_slave_request()
334 mutex_lock(&slave_image->mtx); in vme_slave_request()
336 mutex_unlock(&slave_image->mtx); in vme_slave_request()
457 mutex_lock(&slave_image->mtx); in vme_slave_free()
462 mutex_unlock(&slave_image->mtx); in vme_slave_free()
884 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
888 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
892 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
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()
861 mutex_lock(&lm->mtx); in fake_lm_set()
866 mutex_unlock(&lm->mtx); in fake_lm_set()
879 mutex_unlock(&lm->mtx); in fake_lm_set()
888 mutex_unlock(&lm->mtx); in fake_lm_set()
903 mutex_lock(&lm->mtx); in fake_lm_get()
909 mutex_unlock(&lm->mtx); in fake_lm_get()
[all …]
/Linux-v6.6/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-v6.6/fs/
Deventpoll.c185 struct mutex mtx; member
582 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
707 mutex_destroy(&ep->mtx); in ep_free()
795 mutex_lock(&ep->mtx); in ep_clear_and_put()
823 mutex_unlock(&ep->mtx); in ep_clear_and_put()
858 mutex_lock_nested(&ep->mtx, depth); in __ep_eventpoll_poll()
875 mutex_unlock(&ep->mtx); in __ep_eventpoll_poll()
909 mutex_lock(&ep->mtx); in ep_show_fdinfo()
923 mutex_unlock(&ep->mtx); in ep_show_fdinfo()
965 mutex_lock(&ep->mtx); in eventpoll_release_file()
[all …]
/Linux-v6.6/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-v6.6/net/rfkill/
Dcore.c79 struct mutex mtx; member
286 mutex_lock(&data->mtx); in rfkill_send_events()
288 mutex_unlock(&data->mtx); in rfkill_send_events()
1179 mutex_init(&data->mtx); in rfkill_fop_open()
1194 mutex_lock(&data->mtx); in rfkill_fop_open()
1196 mutex_unlock(&data->mtx); in rfkill_fop_open()
1207 mutex_destroy(&data->mtx); in rfkill_fop_open()
1221 mutex_lock(&data->mtx); in rfkill_fop_poll()
1224 mutex_unlock(&data->mtx); in rfkill_fop_poll()
1237 mutex_lock(&data->mtx); in rfkill_fop_read()
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/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 …]

1234