Home
last modified time | relevance | path

Searched refs:open_mutex (Results 1 – 25 of 32) sorted by relevance

12

/linux/sound/core/
H A Dhwdep.c95 mutex_lock(&hw->open_mutex); in snd_hwdep_open()
116 mutex_unlock(&hw->open_mutex); in snd_hwdep_open()
118 mutex_lock(&hw->open_mutex); in snd_hwdep_open()
139 mutex_unlock(&hw->open_mutex); in snd_hwdep_open()
152 scoped_guard(mutex, &hw->open_mutex) { in snd_hwdep_release()
382 mutex_init(&hwdep->open_mutex); in snd_hwdep_new()
464 guard(mutex)(&hwdep->open_mutex); in snd_hwdep_dev_disconnect()
H A Drawmidi.c423 mutex_lock_nested(&rmidi->open_mutex, depth); in snd_rawmidi_kernel_open_nested()
427 mutex_unlock(&rmidi->open_mutex); in snd_rawmidi_kernel_open_nested()
467 mutex_lock(&rmidi->open_mutex); in snd_rawmidi_open()
496 mutex_unlock(&rmidi->open_mutex); in snd_rawmidi_open()
498 mutex_lock(&rmidi->open_mutex); in snd_rawmidi_open()
520 mutex_unlock(&rmidi->open_mutex); in snd_rawmidi_open()
527 mutex_unlock(&rmidi->open_mutex); in snd_rawmidi_open()
596 mutex_lock_nested(&rmidi->open_mutex, depth); in snd_rawmidi_kernel_release_nested()
598 mutex_unlock(&rmidi->open_mutex); in snd_rawmidi_kernel_release_nested()
612 scoped_guard(mutex, &rmidi->open_mutex) in snd_rawmidi_release()
[all …]
H A Dpcm.c134 guard(mutex)(&pcm->open_mutex); in snd_pcm_control_ioctl()
376 guard(mutex)(&substream->pcm->open_mutex); in snd_pcm_substream_proc_hw_params_read()
411 guard(mutex)(&substream->pcm->open_mutex); in snd_pcm_substream_proc_sw_params_read()
439 guard(mutex)(&substream->pcm->open_mutex); in snd_pcm_substream_proc_status_read()
720 mutex_init(&pcm->open_mutex); in _snd_pcm_new()
1092 guard(mutex)(&pcm->open_mutex); in snd_pcm_dev_disconnect()
H A Dump.c173 mutex_init(&ump->open_mutex); in snd_ump_endpoint_new()
1153 guard(mutex)(&ump->open_mutex); in snd_ump_legacy_open()
1182 guard(mutex)(&ump->open_mutex); in snd_ump_legacy_close()
H A Dpcm_memory.c189 guard(mutex)(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write()
H A Dpcm_native.c1808 guard(mutex)(&pcm->open_mutex); in snd_pcm_suspend_all()
2930 mutex_lock(&pcm->open_mutex); in snd_pcm_open()
2943 mutex_unlock(&pcm->open_mutex); in snd_pcm_open()
2945 mutex_lock(&pcm->open_mutex); in snd_pcm_open()
2956 mutex_unlock(&pcm->open_mutex); in snd_pcm_open()
2984 scoped_guard(mutex, &pcm->open_mutex) { in snd_pcm_release()
/linux/block/
H A Dholder.c77 mutex_lock(&bdev->bd_disk->open_mutex); in bd_link_disk_holder()
79 mutex_unlock(&bdev->bd_disk->open_mutex); in bd_link_disk_holder()
83 mutex_unlock(&bdev->bd_disk->open_mutex); in bd_link_disk_holder()
H A Dbdev.c990 mutex_lock(&disk->open_mutex); in bdev_open()
1023 mutex_unlock(&disk->open_mutex); in bdev_open()
1044 mutex_unlock(&disk->open_mutex); in bdev_open()
1144 lockdep_assert_held(&bdev->bd_disk->open_mutex); in bd_yield_claim()
1173 mutex_lock(&disk->open_mutex); in bdev_release()
1190 mutex_unlock(&disk->open_mutex); in bdev_release()
1217 mutex_lock(&disk->open_mutex); in bdev_yield_claim()
1226 mutex_unlock(&disk->open_mutex); in bdev_yield_claim()
1369 mutex_lock(&bdev->bd_disk->open_mutex); in sync_bdevs()
1383 mutex_unlock(&bdev->bd_disk->open_mutex); in sync_bdevs()
H A Dgenhd.c644 lockdep_assert_not_held(&disk->open_mutex); in blk_report_disk_dead()
714 mutex_lock(&disk->open_mutex); in __del_gendisk()
717 mutex_unlock(&disk->open_mutex); in __del_gendisk()
729 mutex_lock(&disk->open_mutex); in __del_gendisk()
735 mutex_unlock(&disk->open_mutex); in __del_gendisk()
1478 mutex_init(&disk->open_mutex); in __alloc_disk_node()
/linux/sound/core/seq/oss/
H A Dseq_oss_midi.c40 struct mutex open_mutex; member
166 mutex_init(&mdev->open_mutex); in snd_seq_oss_midi_check_new_port()
315 guard(mutex)(&mdev->open_mutex); in snd_seq_oss_midi_open()
373 guard(mutex)(&mdev->open_mutex); in snd_seq_oss_midi_close()
/linux/include/sound/
H A Dhwdep.h58 struct mutex open_mutex; member
H A Drawmidi.h137 struct mutex open_mutex; member
H A Dwss.h98 struct mutex open_mutex; member
/linux/sound/hda/common/
H A Dhda_controller.h121 struct mutex open_mutex; /* Prevents concurrent open/close operations */
120 struct mutex open_mutex; /* Prevents concurrent open/close operations */ global() member
H A Dcontroller.c99 scoped_guard(mutex, &chip->open_mutex) { in azx_pcm_close()
587 mutex_lock(&chip->open_mutex); in azx_pcm_open()
660 mutex_unlock(&chip->open_mutex); in azx_pcm_open()
666 mutex_unlock(&chip->open_mutex); in azx_pcm_open()
/linux/sound/core/seq/
H A Dseq_ump_client.c42 * out_rfile itself is only touched by open/close under open_mutex
116 guard(mutex)(&ump->open_mutex); in seq_ump_client_open()
118 /* out_rfile is only accessed under open_mutex; the delivery in seq_ump_client_open()
140 guard(mutex)(&ump->open_mutex); in seq_ump_subscribe()
/linux/drivers/block/zram/
H A Dzram_drv.c2949 mutex_lock(&disk->open_mutex); in reset_store()
2952 mutex_unlock(&disk->open_mutex); in reset_store()
2958 mutex_unlock(&disk->open_mutex); in reset_store()
2964 mutex_lock(&disk->open_mutex); in reset_store()
2966 mutex_unlock(&disk->open_mutex); in reset_store()
2975 WARN_ON(!mutex_is_locked(&disk->open_mutex)); in zram_open()
3137 mutex_lock(&zram->disk->open_mutex); in zram_remove()
3139 mutex_unlock(&zram->disk->open_mutex); in zram_remove()
3146 mutex_unlock(&zram->disk->open_mutex); in zram_remove()
/linux/sound/hda/controllers/
H A Dacpi.c186 mutex_init(&azx->open_mutex); in hda_acpi_create()
H A Dcix-ipbloq.c199 mutex_init(&chip->open_mutex); in cix_ipbloq_hda_create()
H A Dtegra.c424 mutex_init(&chip->open_mutex); in hda_tegra_create()
/linux/sound/pci/ice1712/
H A Dice1712.h336 struct mutex open_mutex; member
/linux/sound/pci/
H A Dcmipci.c472 struct mutex open_mutex; member
667 guard(mutex)(&cm->open_mutex); in snd_cmipci_playback2_hw_params()
1570 guard(mutex)(&cm->open_mutex); in open_device_check()
1588 guard(mutex)(&cm->open_mutex); in close_device_check()
1667 guard(mutex)(&cm->open_mutex); in snd_cmipci_playback2_open()
2945 mutex_init(&cm->open_mutex); in snd_cmipci_create()
/linux/sound/core/oss/
H A Dpcm_oss.c2531 mutex_lock(&pcm->open_mutex); in snd_pcm_oss_open()
2545 mutex_unlock(&pcm->open_mutex); in snd_pcm_oss_open()
2547 mutex_lock(&pcm->open_mutex); in snd_pcm_oss_open()
2558 mutex_unlock(&pcm->open_mutex); in snd_pcm_oss_open()
2589 mutex_lock(&pcm->open_mutex); in snd_pcm_oss_release()
2591 mutex_unlock(&pcm->open_mutex); in snd_pcm_oss_release()
/linux/drivers/nvme/host/
H A Dmultipath.c673 mutex_lock(&head->disk->open_mutex); in nvme_partition_scan_work()
675 mutex_unlock(&head->disk->open_mutex); in nvme_partition_scan_work()
/linux/drivers/md/
H A Dmd.h524 struct mutex open_mutex; member

12