Home
last modified time | relevance | path

Searched refs:mtx (Results 1 - 25 of 142) sorted by relevance

123456

/kernel/linux/linux-6.6/drivers/soc/mediatek/
H A 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 in mtk_mutex_unprepare()
761 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_add_comp() local
819 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_remove_comp() local
860 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_enable() local
871 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_enable_by_cmdq() local
890 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_disable() local
901 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_acquire() local
915 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_release() local
925 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_write_mod() local
974 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mtk_mutex_write_sof() local
995 struct mtk_mutex_ctx *mtx; mtk_mutex_probe() local
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A 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)
55 CHECK_ERR(pthread_mutex_lock(&mtx
64 mutex_trylock(struct mutex *mtx) mutex_trylock() argument
106 cond_wait(struct cond *cnd, struct mutex *mtx) cond_wait() argument
[all...]
H A Dmutex.h81 /* Default initialize the mtx struct. */
82 void mutex_init(struct mutex *mtx);
84 * Initialize the mtx struct and set the process-shared rather than default
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); variable
91 void mutex_unlock(struct mutex *mtx) UNLOCK_FUNCTION(*mtx); variable
93 bool mutex_trylock(struct mutex *mtx) EXCLUSIVE_TRYLOCK_FUNCTIO
104 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx); global() variable
[all...]
/kernel/linux/linux-5.10/sound/aoa/codecs/
H A 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-6.6/sound/aoa/codecs/
H A 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...]
/kernel/linux/linux-6.6/drivers/nfc/
H A Dvirtual_ncidev.c26 struct mutex mtx; member
44 mutex_lock(&vdev->mtx); in virtual_nci_close()
48 mutex_unlock(&vdev->mtx); in virtual_nci_close()
57 mutex_lock(&vdev->mtx); in virtual_nci_send()
59 mutex_unlock(&vdev->mtx); in virtual_nci_send()
65 mutex_unlock(&vdev->mtx); in virtual_nci_send()
69 mutex_unlock(&vdev->mtx); in virtual_nci_send()
88 mutex_lock(&vdev->mtx); in virtual_ncidev_read()
90 mutex_unlock(&vdev->mtx); in virtual_ncidev_read()
93 mutex_lock(&vdev->mtx); in virtual_ncidev_read()
[all...]
/kernel/linux/linux-5.10/kernel/locking/
H A 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
[all...]
/kernel/linux/linux-6.6/kernel/locking/
H A 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
[all...]
/kernel/liteos_m/testsuites/sample/posix/mutex/
H A DIt_posix_mutex_013.c56 pthread_mutex_t mtx; in Testcase() local
74 ret = pthread_mutex_init(&mtx, pma[i]); in Testcase()
77 ret = pthread_mutex_destroy(&mtx); in Testcase()
80 ret = pthread_mutex_init(&mtx, pma[j]); in Testcase()
83 ret = pthread_mutex_destroy(&mtx); in Testcase()
/kernel/linux/linux-6.6/drivers/net/ethernet/atheros/alx/
H A 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()
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
H A 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/
H A 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-6.6/drivers/regulator/
H A 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()
/kernel/linux/linux-5.10/net/mac80211/
H A Dscan.c358 lockdep_is_held(&local->mtx)); in ieee80211_prep_hw_scan()
423 lockdep_assert_held(&local->mtx); in __ieee80211_scan_completed()
438 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
447 lockdep_is_held(&local->mtx)), in __ieee80211_scan_completed()
464 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
606 lockdep_assert_held(&local->mtx); in ieee80211_run_deferred_scan()
614 lockdep_is_held(&local->mtx)))) in ieee80211_run_deferred_scan()
659 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
670 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
695 lockdep_assert_held(&local->mtx); in __ieee80211_start_scan()
[all...]
H A 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...]
/kernel/linux/linux-6.6/net/mac80211/
H A Dscan.c353 lockdep_is_held(&local->mtx)); in ieee80211_prep_hw_scan()
418 lockdep_assert_held(&local->mtx); in __ieee80211_scan_completed()
433 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
442 lockdep_is_held(&local->mtx)), in __ieee80211_scan_completed()
459 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed()
600 lockdep_assert_held(&local->mtx); in ieee80211_run_deferred_scan()
608 lockdep_is_held(&local->mtx)))) in ieee80211_run_deferred_scan()
653 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
664 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe()
689 lockdep_assert_held(&local->mtx); in __ieee80211_start_scan()
[all...]
H A 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...]
/kernel/linux/linux-5.10/drivers/vme/
H A 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...]
H A 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-6.6/drivers/staging/vme_user/
H A 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...]
H A 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-6.6/drivers/net/ethernet/marvell/prestera/
H A 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...]
/kernel/linux/linux-5.10/tools/lib/lockdep/include/liblockdep/
H A Dmutex.h16 #define LIBLOCKDEP_PTHREAD_MUTEX_INITIALIZER(mtx) \
19 .dep_map = STATIC_LOCKDEP_MAP_INIT(#mtx, &((&(mtx))->dep_map)), \
/kernel/linux/linux-5.10/drivers/usb/misc/
H A Dadutux.c64 * adu_device.mtx: A mutex to hold across sleepers like copy_from_user.
71 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()
[all...]
/kernel/linux/linux-6.6/drivers/usb/misc/
H A Dadutux.c64 * adu_device.mtx: A mutex to hold across sleepers like copy_from_user.
71 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()
[all...]

Completed in 18 milliseconds

123456