/openbmc/linux/drivers/soc/mediatek/ |
H A D | mtk-mutex.c | 718 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 …]
|
/openbmc/linux/tools/perf/util/ |
H A D | mutex.c | 20 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 …]
|
H A D | mutex.h | 82 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);
|
/openbmc/linux/sound/aoa/codecs/ |
H A D | tas.c | 97 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 …]
|
/openbmc/linux/drivers/nfc/ |
H A D | virtual_ncidev.c | 26 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 …]
|
/openbmc/linux/kernel/locking/ |
H A D | test-ww_mutex.c | 42 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 …]
|
/openbmc/linux/drivers/net/ethernet/atheros/alx/ |
H A D | ethtool.c | 166 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()
|
H A D | main.c | 1093 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 …]
|
/openbmc/linux/drivers/regulator/ |
H A D | isl6271a-regulator.c | 26 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()
|
/openbmc/linux/drivers/staging/vme_user/ |
H A D | vme.c | 307 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 D | vme_bridge.h | 31 struct mutex mtx; member 58 struct mutex mtx; member 64 struct mutex mtx; member 75 struct mutex mtx; member
|
H A D | vme_fake.c | 206 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 …]
|
/openbmc/linux/net/mac80211/ |
H A D | scan.c | 354 lockdep_is_held(&local->mtx)); in ieee80211_prep_hw_scan() 419 lockdep_assert_held(&local->mtx); in __ieee80211_scan_completed() 434 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed() 443 lockdep_is_held(&local->mtx)), in __ieee80211_scan_completed() 460 lockdep_is_held(&local->mtx)); in __ieee80211_scan_completed() 601 lockdep_assert_held(&local->mtx); in ieee80211_run_deferred_scan() 609 lockdep_is_held(&local->mtx)))) in ieee80211_run_deferred_scan() 655 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe() 666 lockdep_is_held(&local->mtx)); in ieee80211_scan_state_send_probe() 691 lockdep_assert_held(&local->mtx); in __ieee80211_start_scan() [all …]
|
H A D | offchannel.c | 200 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 …]
|
H A D | ocb.c | 188 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()
|
H A D | iface.c | 113 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() 550 mutex_lock(&local->mtx); in ieee80211_do_stop() 559 mutex_unlock(&local->mtx); in ieee80211_do_stop() 570 mutex_lock(&local->mtx); in ieee80211_do_stop() 572 mutex_unlock(&local->mtx); in ieee80211_do_stop() 600 mutex_lock(&local->mtx); in ieee80211_do_stop() 602 mutex_unlock(&local->mtx); in ieee80211_do_stop() [all …]
|
H A D | agg-tx.c | 145 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() 765 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_agg_tx_operational() 802 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_start_tx_ba_cb() 874 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session() 878 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session() 1004 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_counter.c | 16 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 …]
|
/openbmc/linux/fs/ |
H A D | eventpoll.c | 185 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() 796 mutex_lock(&ep->mtx); in ep_clear_and_put() 824 mutex_unlock(&ep->mtx); in ep_clear_and_put() 859 mutex_lock_nested(&ep->mtx, depth); in __ep_eventpoll_poll() 876 mutex_unlock(&ep->mtx); in __ep_eventpoll_poll() 946 mutex_lock(&ep->mtx); in ep_show_fdinfo() 960 mutex_unlock(&ep->mtx); in ep_show_fdinfo() 1002 mutex_lock(&ep->mtx); in eventpoll_release_file() [all …]
|
/openbmc/linux/drivers/usb/misc/ |
H A D | adutux.c | 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() 773 mutex_lock(&dev->mtx); /* not interruptible */ in adu_disconnect() [all …]
|
/openbmc/linux/net/rfkill/ |
H A D | core.c | 79 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 …]
|
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/ |
H A D | omapfb.h | 80 struct mutex mtx; member 165 mutex_lock(&fbdev->mtx); in omapfb_lock() 170 mutex_unlock(&fbdev->mtx); in omapfb_unlock()
|
/openbmc/linux/sound/pci/aw2/ |
H A D | aw2-alsa.c | 88 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()
|
/openbmc/u-boot/drivers/video/ |
H A D | stb_truetype.h | 1393 float mtx[6] = {1,0,0,1,0,0}, m, n; in stbtt_GetGlyphShape() local 1400 mtx[4] = ttSHORT(comp); comp+=2; in stbtt_GetGlyphShape() 1401 mtx[5] = ttSHORT(comp); comp+=2; in stbtt_GetGlyphShape() 1403 mtx[4] = ttCHAR(comp); comp+=1; in stbtt_GetGlyphShape() 1404 mtx[5] = ttCHAR(comp); comp+=1; in stbtt_GetGlyphShape() 1412 mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; in stbtt_GetGlyphShape() 1413 mtx[1] = mtx[2] = 0; in stbtt_GetGlyphShape() 1415 mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; in stbtt_GetGlyphShape() 1416 mtx[1] = mtx[2] = 0; in stbtt_GetGlyphShape() 1417 mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; in stbtt_GetGlyphShape() [all …]
|
/openbmc/linux/drivers/net/wireless/atmel/ |
H A D | at76c50x-usb.c | 1475 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 …]
|