Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/soc/mediatek/
A Dmtk-mutex.c622 return &mtx->mutex[i]; in mtk_mutex_get()
709 mtx->regs + in mtk_mutex_add_comp()
734 mtx->regs + in mtk_mutex_remove_comp()
776 if (!mtx->cmdq_reg.size) { in mtk_mutex_enable_by_cmdq()
887 mtx = devm_kzalloc(dev, sizeof(*mtx), GFP_KERNEL); in mtk_mutex_probe()
888 if (!mtx) in mtk_mutex_probe()
892 mtx->mutex[i].id = i; in mtk_mutex_probe()
896 if (!mtx->data->no_clk) { in mtk_mutex_probe()
898 if (IS_ERR(mtx->clk)) { in mtk_mutex_probe()
906 if (IS_ERR(mtx->regs)) { in mtk_mutex_probe()
[all …]
/linux-6.3-rc2/tools/perf/util/
A Dmutex.c37 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
52 void mutex_lock(struct mutex *mtx) in mutex_lock() argument
55 CHECK_ERR(pthread_mutex_lock(&mtx->lock)); in mutex_lock()
58 void mutex_unlock(struct mutex *mtx) in mutex_unlock() argument
61 CHECK_ERR(pthread_mutex_unlock(&mtx->lock)); in mutex_unlock()
64 bool mutex_trylock(struct mutex *mtx) in mutex_trylock() argument
[all …]
A 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-6.3-rc2/sound/aoa/codecs/
A Dtas.c97 struct mutex mtx; member
238 mutex_lock(&tas->mtx); in tas_snd_vol_get()
257 mutex_lock(&tas->mtx); in tas_snd_vol_put()
288 mutex_lock(&tas->mtx); in tas_snd_mute_get()
300 mutex_lock(&tas->mtx); in tas_snd_mute_put()
340 mutex_lock(&tas->mtx); in tas_snd_mixer_get()
354 mutex_lock(&tas->mtx); in tas_snd_mixer_put()
399 mutex_lock(&tas->mtx); in tas_snd_drc_range_get()
414 mutex_lock(&tas->mtx); in tas_snd_drc_range_put()
443 mutex_lock(&tas->mtx); in tas_snd_drc_switch_get()
[all …]
/linux-6.3-rc2/drivers/nfc/
A 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()
88 mutex_lock(&vdev->mtx); in virtual_ncidev_read()
103 mutex_unlock(&vdev->mtx); in virtual_ncidev_read()
[all …]
/linux-6.3-rc2/kernel/locking/
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()
53 complete(&mtx->done); in test_mutex_work()
60 struct test_mutex mtx; in __test_mutex() local
68 init_completion(&mtx.ready); in __test_mutex()
69 init_completion(&mtx.go); in __test_mutex()
70 init_completion(&mtx.done); in __test_mutex()
71 mtx.flags = flags; in __test_mutex()
73 schedule_work(&mtx.work); in __test_mutex()
77 complete(&mtx.go); in __test_mutex()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/atheros/alx/
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()
A Dmain.c1094 mutex_init(&alx->mtx); in alx_init_sw()
1356 mutex_lock(&alx->mtx); in alx_open()
1367 mutex_lock(&alx->mtx); in alx_stop()
1380 mutex_lock(&alx->mtx); in alx_link_check()
1389 mutex_lock(&alx->mtx); in alx_reset()
1798 mutex_lock(&alx->mtx); in alx_probe()
1918 mutex_lock(&alx->mtx); in alx_suspend()
1933 mutex_lock(&alx->mtx); in alx_resume()
1964 mutex_lock(&alx->mtx); in alx_pci_error_detected()
1989 mutex_lock(&alx->mtx); in alx_pci_error_slot_reset()
[all …]
/linux-6.3-rc2/drivers/regulator/
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()
/linux-6.3-rc2/drivers/staging/vme_user/
A Dvme.c1127 mutex_unlock(&list->mtx); in vme_dma_list_add()
1153 mutex_lock(&list->mtx); in vme_dma_list_exec()
1157 mutex_unlock(&list->mtx); in vme_dma_list_exec()
1197 mutex_unlock(&list->mtx); in vme_dma_list_free()
1489 mutex_lock(&lm->mtx); in vme_lm_request()
1492 mutex_unlock(&lm->mtx); in vme_lm_request()
1496 mutex_unlock(&lm->mtx); in vme_lm_request()
1514 mutex_lock(&lm->mtx); in vme_lm_request()
1516 mutex_unlock(&lm->mtx); in vme_lm_request()
1714 mutex_lock(&lm->mtx); in vme_lm_free()
[all …]
A Dvme_bridge.h31 struct mutex mtx; member
58 struct mutex mtx; member
64 struct mutex mtx; member
75 struct mutex mtx; member
A Dvme_fake.c206 mutex_lock(&image->mtx); in fake_slave_set()
234 mutex_lock(&image->mtx); in fake_slave_get()
865 mutex_lock(&lm->mtx); in fake_lm_set()
892 mutex_unlock(&lm->mtx); in fake_lm_set()
907 mutex_lock(&lm->mtx); in fake_lm_get()
913 mutex_unlock(&lm->mtx); in fake_lm_get()
933 mutex_lock(&lm->mtx); in fake_lm_attach()
956 mutex_unlock(&lm->mtx); in fake_lm_attach()
972 mutex_lock(&lm->mtx); in fake_lm_detach()
988 mutex_unlock(&lm->mtx); in fake_lm_detach()
[all …]
/linux-6.3-rc2/net/mac80211/
A Dscan.c1072 mutex_lock(&local->mtx); in ieee80211_scan_work()
1163 mutex_unlock(&local->mtx); in ieee80211_scan_work()
1188 mutex_lock(&local->mtx); in ieee80211_request_ibss_scan()
1245 mutex_unlock(&local->mtx); in ieee80211_request_ibss_scan()
1272 mutex_lock(&local->mtx); in ieee80211_scan_cancel()
1310 mutex_unlock(&local->mtx); in ieee80211_scan_cancel()
1380 mutex_lock(&local->mtx); in ieee80211_request_sched_scan_start()
1389 mutex_unlock(&local->mtx); in ieee80211_request_sched_scan_start()
1398 mutex_lock(&local->mtx); in ieee80211_request_sched_scan_stop()
1416 mutex_unlock(&local->mtx); in ieee80211_request_sched_scan_stop()
[all …]
A Doffchannel.c267 mutex_lock(&local->mtx); in ieee80211_hw_roc_start()
277 mutex_unlock(&local->mtx); in ieee80211_hw_roc_start()
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()
680 mutex_lock(&local->mtx); in ieee80211_remain_on_channel()
684 mutex_unlock(&local->mtx); in ieee80211_remain_on_channel()
700 mutex_lock(&local->mtx); in ieee80211_cancel_roc()
858 mutex_lock(&local->mtx); in ieee80211_mgmt_tx()
[all …]
A 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()
A Diface.c217 mutex_lock(&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()
578 mutex_lock(&local->mtx); in ieee80211_do_stop()
678 mutex_lock(&local->mtx); in ieee80211_do_stop()
1149 mutex_lock(&local->mtx); in ieee80211_add_virtual_monitor()
1194 mutex_lock(&local->mtx); in ieee80211_del_virtual_monitor()
1224 mutex_lock(&local->mtx); in ieee80211_do_open()
[all …]
A 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()
A Dagg-rx.c72 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_stop_rx_ba_session()
75 lockdep_is_held(&sta->ampdu_mlme.mtx)); in ___ieee80211_stop_rx_ba_session()
120 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_rx_ba_session()
122 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_rx_ba_session()
329 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_start_rx_ba_session()
454 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_start_rx_ba_session()
458 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_start_rx_ba_session()
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
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 …]
/linux-6.3-rc2/fs/
A Deventpoll.c184 struct mutex mtx; member
777 mutex_lock(&ep->mtx); in ep_free()
783 mutex_unlock(&ep->mtx); in ep_free()
838 mutex_unlock(&ep->mtx); in __ep_eventpoll_poll()
872 mutex_lock(&ep->mtx); in ep_show_fdinfo()
886 mutex_unlock(&ep->mtx); in ep_show_fdinfo()
950 mutex_init(&ep->mtx); in ep_alloc()
1029 mutex_lock(&ep->mtx); in get_epoll_tfile_raw_ptr()
1035 mutex_unlock(&ep->mtx); in get_epoll_tfile_raw_ptr()
1657 mutex_lock(&ep->mtx); in ep_send_events()
[all …]
/linux-6.3-rc2/drivers/usb/misc/
A 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-6.3-rc2/net/rfkill/
A Dcore.c78 struct mutex mtx; member
285 mutex_lock(&data->mtx); in rfkill_send_events()
287 mutex_unlock(&data->mtx); in rfkill_send_events()
1160 mutex_init(&data->mtx); in rfkill_fop_open()
1164 mutex_lock(&data->mtx); in rfkill_fop_open()
1178 mutex_unlock(&data->mtx); in rfkill_fop_open()
1186 mutex_unlock(&data->mtx); in rfkill_fop_open()
1202 mutex_lock(&data->mtx); in rfkill_fop_poll()
1218 mutex_lock(&data->mtx); in rfkill_fop_read()
1231 mutex_lock(&data->mtx); in rfkill_fop_read()
[all …]
/linux-6.3-rc2/drivers/video/fbdev/omap2/omapfb/
A Domapfb.h80 struct mutex mtx; member
165 mutex_lock(&fbdev->mtx); in omapfb_lock()
170 mutex_unlock(&fbdev->mtx); in omapfb_unlock()
/linux-6.3-rc2/sound/pci/aw2/
A 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-6.3-rc2/drivers/net/wireless/atmel/
A Dat76c50x-usb.c1475 mutex_lock(&priv->mtx); in at76_work_set_promisc()
1496 mutex_lock(&priv->mtx); in at76_work_submit_rx()
1720 mutex_lock(&priv->mtx); in at76_work_join_bssid()
1840 mutex_lock(&priv->mtx); in at76_mac80211_start()
1869 mutex_lock(&priv->mtx); in at76_mac80211_stop()
1892 mutex_lock(&priv->mtx); in at76_add_interface()
1927 mutex_lock(&priv->mtx); in at76_dwork_hw_scan()
1968 mutex_lock(&priv->mtx); in at76_hw_scan()
2019 mutex_lock(&priv->mtx); in at76_config()
2047 mutex_lock(&priv->mtx); in at76_bss_info_changed()
[all …]

Completed in 83 milliseconds

1234