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

123

/linux-master/tools/perf/util/
H A Dmutex.c20 static void __mutex_init(struct mutex *mtx, bool pshared) argument
33 CHECK_ERR(pthread_mutex_init(&mtx->lock, &attr));
37 void mutex_init(struct mutex *mtx) argument
39 __mutex_init(mtx, /*pshared=*/false);
42 void mutex_init_pshared(struct mutex *mtx) argument
44 __mutex_init(mtx, /*pshared=*/true);
47 void mutex_destroy(struct mutex *mtx) argument
49 CHECK_ERR(pthread_mutex_destroy(&mtx->lock));
52 void mutex_lock(struct mutex *mtx)
55 CHECK_ERR(pthread_mutex_lock(&mtx
64 mutex_trylock(struct mutex *mtx) argument
106 cond_wait(struct cond *cnd, struct mutex *mtx) 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); variable
[all...]
H A Drwsem.c12 mutex_init(&sem->mtx);
22 mutex_destroy(&sem->mtx);
32 mutex_lock(&sem->mtx);
42 mutex_unlock(&sem->mtx);
52 mutex_lock(&sem->mtx);
62 mutex_unlock(&sem->mtx);
H A Drwsem.h15 struct mutex mtx; member in struct:rw_semaphore
/linux-master/drivers/soc/mediatek/
H A Dmtk-mutex.c769 struct mtk_mutex_ctx *mtx = dev_get_drvdata(dev); local
773 if (!mtx->mutex[i].claimed) {
774 mtx->mutex[i].claimed = true;
775 return &mtx->mutex[i];
784 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
787 WARN_ON(&mtx->mutex[mutex->id] != mutex);
795 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
797 return clk_prepare_enable(mtx->clk);
803 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
805 clk_disable_unprepare(mtx
812 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
870 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
911 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
922 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
941 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
952 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
966 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
976 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
1025 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local
1046 struct mtk_mutex_ctx *mtx; local
[all...]
/linux-master/drivers/nfc/
H A Dvirtual_ncidev.c26 struct mutex mtx; member in struct:virtual_nci_dev
44 mutex_lock(&vdev->mtx);
48 mutex_unlock(&vdev->mtx);
57 mutex_lock(&vdev->mtx);
59 mutex_unlock(&vdev->mtx);
65 mutex_unlock(&vdev->mtx);
69 mutex_unlock(&vdev->mtx);
88 mutex_lock(&vdev->mtx);
90 mutex_unlock(&vdev->mtx);
93 mutex_lock(&vdev->mtx);
[all...]
/linux-master/sound/aoa/codecs/
H A Dtas.c97 struct mutex mtx; member in struct:tas
238 mutex_lock(&tas->mtx);
241 mutex_unlock(&tas->mtx);
257 mutex_lock(&tas->mtx);
260 mutex_unlock(&tas->mtx);
268 mutex_unlock(&tas->mtx);
288 mutex_lock(&tas->mtx);
291 mutex_unlock(&tas->mtx);
300 mutex_lock(&tas->mtx);
303 mutex_unlock(&tas->mtx);
[all...]
/linux-master/kernel/locking/
H A Dtest-ww_mutex.c42 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); local
44 complete(&mtx->ready);
45 wait_for_completion(&mtx->go);
47 if (mtx->flags & TEST_MTX_TRY) {
48 while (!ww_mutex_trylock(&mtx->mutex, NULL))
51 ww_mutex_lock(&mtx->mutex, NULL);
53 complete(&mtx->done);
54 ww_mutex_unlock(&mtx->mutex);
60 struct test_mutex mtx; local
[all...]
/linux-master/drivers/regulator/
H A Disl6271a-regulator.c26 struct mutex mtx; member in struct:isl_pmic
34 mutex_lock(&pmic->mtx);
40 mutex_unlock(&pmic->mtx);
50 mutex_lock(&pmic->mtx);
56 mutex_unlock(&pmic->mtx);
118 mutex_init(&pmic->mtx);
/linux-master/drivers/net/ethernet/atheros/alx/
H A Dethtool.c166 mutex_lock(&alx->mtx);
169 mutex_unlock(&alx->mtx);
205 mutex_lock(&alx->mtx);
207 mutex_unlock(&alx->mtx);
218 mutex_lock(&alx->mtx);
223 mutex_unlock(&alx->mtx);
243 mutex_lock(&alx->mtx);
257 mutex_unlock(&alx->mtx);
267 mutex_unlock(&alx->mtx);
H A Dalx.h141 struct mutex mtx; member in struct:alx_priv
H A Dmain.c1093 mutex_init(&alx->mtx);
1125 lockdep_assert_held(&alx->mtx);
1152 lockdep_assert_held(&alx->mtx);
1168 lockdep_assert_held(&alx->mtx);
1184 mutex_lock(&alx->mtx);
1186 mutex_unlock(&alx->mtx);
1259 lockdep_assert_held(&alx->mtx);
1296 lockdep_assert_held(&alx->mtx);
1355 mutex_lock(&alx->mtx);
1357 mutex_unlock(&alx->mtx);
[all...]
/linux-master/drivers/staging/vme_user/
H A Dvme_bridge.h31 struct mutex mtx; member in struct:vme_slave_resource
58 struct mutex mtx; member in struct:vme_dma_list
64 struct mutex mtx; member in struct:vme_dma_resource
75 struct mutex mtx; member in struct:vme_lm_resource
H A Dvme.c274 mutex_lock(&slave_image->mtx);
279 mutex_unlock(&slave_image->mtx);
283 mutex_unlock(&slave_image->mtx);
301 mutex_lock(&slave_image->mtx);
303 mutex_unlock(&slave_image->mtx);
425 mutex_lock(&slave_image->mtx);
430 mutex_unlock(&slave_image->mtx);
850 mutex_lock(&dma_ctrlr->mtx);
854 mutex_unlock(&dma_ctrlr->mtx);
858 mutex_unlock(&dma_ctrlr->mtx);
[all...]
H A Dvme_fake.c206 mutex_lock(&image->mtx);
215 mutex_unlock(&image->mtx);
234 mutex_lock(&image->mtx);
243 mutex_unlock(&image->mtx);
858 mutex_lock(&lm->mtx);
863 mutex_unlock(&lm->mtx);
876 mutex_unlock(&lm->mtx);
885 mutex_unlock(&lm->mtx);
901 mutex_lock(&lm->mtx);
907 mutex_unlock(&lm->mtx);
[all...]
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_counter.c16 struct mutex mtx; /* protect block_list */ member in struct:prestera_counter
32 struct mutex mtx; /* protect stats and counter_idr */ member in struct:prestera_counter_block
52 mutex_lock(&counter->mtx);
57 mutex_unlock(&counter->mtx);
62 mutex_lock(&block->mtx);
67 mutex_unlock(&block->mtx);
176 mutex_init(&block->mtx);
188 mutex_destroy(&block->mtx);
221 mutex_destroy(&block->mtx);
451 mutex_init(&counter->mtx);
[all...]
/linux-master/drivers/video/fbdev/omap2/omapfb/
H A Domapfb.h80 struct mutex mtx; member in struct:omapfb2_device
165 mutex_lock(&fbdev->mtx);
170 mutex_unlock(&fbdev->mtx);
/linux-master/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 in struct:adu_device
356 if (mutex_lock_interruptible(&dev->mtx))
498 mutex_unlock(&dev->mtx);
516 retval = mutex_lock_interruptible(&dev->mtx);
541 mutex_unlock(&dev->mtx);
556 retval = mutex_lock_interruptible(&dev->mtx);
610 mutex_unlock(&dev->mtx);
614 mutex_unlock(&dev->mtx);
664 mutex_init(&dev->mtx);
[all...]
/linux-master/fs/
H A Deventpoll.c48 * 2) ep->mtx (mutex)
59 * mutex (ep->mtx). It is acquired during the event transfer loop,
68 * It is necessary to acquire multiple "ep->mtx"es at once in the
71 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired
72 * before e2->mtx). Since we disallow cycles of epoll file
77 * It is possible to drop the "ep->mtx" and to use the global
79 * but having "ep->mtx" will make the interface more scalable.
81 * normal operations the epoll private "ep->mtx" will guarantee
186 struct mutex mtx; member in struct:eventpoll
653 * descriptor. Must be called with "mtx" hel
[all...]
/linux-master/sound/pci/aw2/
H A Daw2-alsa.c88 struct mutex mtx; member in struct:aw2
281 mutex_init(&chip->mtx);
351 mutex_lock(&chip->mtx);
367 mutex_unlock(&chip->mtx);
380 mutex_lock(&chip->mtx);
396 mutex_unlock(&chip->mtx);
/linux-master/net/rfkill/
H A Dcore.c79 struct mutex mtx; member in struct:rfkill_data
286 mutex_lock(&data->mtx);
288 mutex_unlock(&data->mtx);
1179 mutex_init(&data->mtx);
1184 * start getting events from elsewhere but hold mtx to get
1194 mutex_lock(&data->mtx);
1196 mutex_unlock(&data->mtx);
1207 mutex_destroy(&data->mtx);
1221 mutex_lock(&data->mtx);
1224 mutex_unlock(&data->mtx);
[all...]
/linux-master/net/mac80211/
H A Dscan.c365 lockdep_is_held(&local->hw.wiphy->mtx));
447 lockdep_is_held(&local->hw.wiphy->mtx));
456 lockdep_is_held(&local->hw.wiphy->mtx)),
473 lockdep_is_held(&local->hw.wiphy->mtx));
620 lockdep_is_held(&local->hw.wiphy->mtx))))
666 lockdep_is_held(&local->hw.wiphy->mtx));
677 lockdep_is_held(&local->hw.wiphy->mtx));
926 lockdep_is_held(&local->hw.wiphy->mtx));
966 lockdep_is_held(&local->hw.wiphy->mtx));
1082 lockdep_is_held(&local->hw.wiphy->mtx));
[all...]
/linux-master/kernel/events/
H A Dhw_breakpoint.c600 struct mutex *mtx = bp_constraints_lock(bp); local
603 bp_constraints_unlock(mtx);
619 struct mutex *mtx = bp_constraints_lock(bp); local
622 bp_constraints_unlock(mtx);
649 struct mutex *mtx = bp_constraints_lock(bp); local
652 bp_constraints_unlock(mtx);
/linux-master/drivers/net/wireless/atmel/
H A Dat76c50x-usb.c1475 mutex_lock(&priv->mtx);
1487 mutex_unlock(&priv->mtx);
1496 mutex_lock(&priv->mtx);
1498 mutex_unlock(&priv->mtx);
1720 mutex_lock(&priv->mtx);
1725 mutex_unlock(&priv->mtx);
1840 mutex_lock(&priv->mtx);
1854 mutex_unlock(&priv->mtx);
1869 mutex_lock(&priv->mtx);
1881 mutex_unlock(&priv->mtx);
[all...]
/linux-master/drivers/net/wireless/ath/ath10k/
H A Dsdio.h165 struct mutex mtx; member in struct:ath10k_sdio_irq_data

Completed in 220 milliseconds

123