Home
last modified time | relevance | path

Searched refs:buffer_mutex (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/char/tpm/
H A Dtpm-dev-common.c66 mutex_lock(&priv->buffer_mutex); in tpm_dev_async_work()
88 mutex_unlock(&priv->buffer_mutex); in tpm_dev_async_work()
107 mutex_lock(&priv->buffer_mutex); in tpm_timeout_work()
111 mutex_unlock(&priv->buffer_mutex); in tpm_timeout_work()
122 mutex_init(&priv->buffer_mutex); in tpm_common_open()
141 mutex_lock(&priv->buffer_mutex); in tpm_common_read()
170 mutex_unlock(&priv->buffer_mutex); in tpm_common_write()
173 * tpm_timeout_work() takes buffer_mutex, so flush it after dropping in tpm_common_write()
192 mutex_lock(&priv->buffer_mutex); in tpm_common_write()
228 mutex_unlock(&priv->buffer_mutex); in tpm_common_write()
[all...]
H A Dtpm-dev.h12 struct mutex buffer_mutex; member
/linux/drivers/net/ieee802154/
H A Dcc2520.c205 struct mutex buffer_mutex; /* SPI buffer mutex */ member
230 mutex_lock(&priv->buffer_mutex); in cc2520_cmd_strobe()
239 mutex_unlock(&priv->buffer_mutex); in cc2520_cmd_strobe()
258 mutex_lock(&priv->buffer_mutex); in cc2520_get_status()
268 mutex_unlock(&priv->buffer_mutex); in cc2520_get_status()
287 mutex_lock(&priv->buffer_mutex); in cc2520_write_register()
301 mutex_unlock(&priv->buffer_mutex); in cc2520_write_register()
322 mutex_lock(&priv->buffer_mutex); in cc2520_write_ram()
336 mutex_unlock(&priv->buffer_mutex); in cc2520_write_ram()
360 mutex_lock(&priv->buffer_mutex); in cc2520_read_register()
[all...]
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda.h225 struct mutex buffer_mutex; member
H A Dcoda-bit.c1710 mutex_lock(&ctx->buffer_mutex); in coda_seq_end_work()
1739 mutex_unlock(&ctx->buffer_mutex); in coda_seq_end_work()
1744 mutex_lock(&ctx->buffer_mutex); in coda_bit_release()
1748 mutex_unlock(&ctx->buffer_mutex); in coda_bit_release()
2047 mutex_lock(&ctx->buffer_mutex); in coda_dec_seq_init_work()
2054 mutex_unlock(&ctx->buffer_mutex); in coda_dec_seq_init_work()
H A Dcoda-common.c1534 mutex_lock(&ctx->buffer_mutex); in coda_pic_run_work()
1563 mutex_unlock(&ctx->buffer_mutex); in coda_pic_run_work()
2708 mutex_init(&ctx->buffer_mutex); in coda_open()
/linux/sound/core/
H A Dpcm.c975 mutex_init(&runtime->buffer_mutex); in snd_pcm_attach_substream()
1012 mutex_destroy(&runtime->buffer_mutex); in pcm_class_show()
H A Dpcm_native.c718 /* acquire buffer_mutex; if it's in r/w operation, return -EBUSY, otherwise in snd_pcm_hw_params_choose()
726 mutex_lock_nested(&runtime->buffer_mutex, depth); in snd_pcm_hw_params_choose()
727 return 0; /* keep buffer_mutex, unlocked by below */ in snd_pcm_hw_params_choose()
735 /* release buffer_mutex and clear r/w access flag */ in snd_pcm_hw_params_choose()
738 mutex_unlock(&runtime->buffer_mutex); in snd_pcm_hw_params_choose()