/linux-master/tools/perf/util/ |
H A D | mutex.c | 20 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 D | mutex.h | 81 /* 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 D | rwsem.c | 12 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 D | rwsem.h | 15 struct mutex mtx; member in struct:rw_semaphore
|
/linux-master/drivers/soc/mediatek/ |
H A D | mtk-mutex.c | 809 struct mtk_mutex_ctx *mtx = dev_get_drvdata(dev); local 813 if (!mtx->mutex[i].claimed) { 814 mtx->mutex[i].claimed = true; 815 return &mtx->mutex[i]; 824 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 827 WARN_ON(&mtx->mutex[mutex->id] != mutex); 835 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 837 return clk_prepare_enable(mtx->clk); 843 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 845 clk_disable_unprepare(mtx 852 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 910 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 951 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 962 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 981 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 992 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 1006 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 1016 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 1065 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, local 1086 struct mtk_mutex_ctx *mtx; local [all...] |
/linux-master/drivers/nfc/ |
H A D | virtual_ncidev.c | 26 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 D | tas.c | 97 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 D | test-ww_mutex.c | 42 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 D | isl6271a-regulator.c | 26 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 D | ethtool.c | 166 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 D | alx.h | 141 struct mutex mtx; member in struct:alx_priv
|
H A D | main.c | 1093 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 D | vme_bridge.h | 31 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 D | vme.c | 274 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 D | vme_fake.c | 206 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 D | prestera_counter.c | 16 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 D | omapfb.h | 80 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 D | adutux.c | 64 * 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 D | eventpoll.c | 48 * 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 D | aw2-alsa.c | 88 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 D | core.c | 79 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 D | scan.c | 365 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)); 918 lockdep_is_held(&local->hw.wiphy->mtx)); 958 lockdep_is_held(&local->hw.wiphy->mtx)); 1074 lockdep_is_held(&local->hw.wiphy->mtx)); [all...] |
/linux-master/kernel/events/ |
H A D | hw_breakpoint.c | 600 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 D | at76c50x-usb.c | 1475 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 D | sdio.h | 165 struct mutex mtx; member in struct:ath10k_sdio_irq_data
|