Home
last modified time | relevance | path

Searched refs:buf_lock (Results 1 – 12 of 12) sorted by relevance

/linux-4.19.296/drivers/char/tpm/
Dtpm_vtpm_proxy.c40 struct mutex buf_lock; /* protect buffer and flags */ member
90 mutex_lock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read()
93 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read()
100 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read()
113 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read()
137 mutex_lock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write()
140 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write()
146 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write()
155 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write()
161 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write()
[all …]
/linux-4.19.296/drivers/iio/common/st_sensors/
Dst_sensors_spi.c47 mutex_lock(&tb->buf_lock); in st_sensors_spi_read()
58 mutex_unlock(&tb->buf_lock); in st_sensors_spi_read()
62 mutex_unlock(&tb->buf_lock); in st_sensors_spi_read()
90 mutex_lock(&tb->buf_lock); in st_sensors_spi_write_byte()
95 mutex_unlock(&tb->buf_lock); in st_sensors_spi_write_byte()
/linux-4.19.296/drivers/iio/gyro/
Dadxrs450.c76 struct mutex buf_lock; member
109 mutex_lock(&st->buf_lock); in adxrs450_spi_read_reg_16()
126 mutex_unlock(&st->buf_lock); in adxrs450_spi_read_reg_16()
145 mutex_lock(&st->buf_lock); in adxrs450_spi_write_reg_16()
157 mutex_unlock(&st->buf_lock); in adxrs450_spi_write_reg_16()
183 mutex_lock(&st->buf_lock); in adxrs450_spi_sensor_data()
195 mutex_unlock(&st->buf_lock); in adxrs450_spi_sensor_data()
217 mutex_lock(&st->buf_lock); in adxrs450_spi_initial()
231 mutex_unlock(&st->buf_lock); in adxrs450_spi_initial()
424 mutex_init(&st->buf_lock); in adxrs450_probe()
Dadis16130.c42 struct mutex buf_lock; member
56 mutex_lock(&st->buf_lock); in adis16130_spi_read()
64 mutex_unlock(&st->buf_lock); in adis16130_spi_read()
155 mutex_init(&st->buf_lock); in adis16130_probe()
Dst_gyro_core.c453 mutex_init(&gdata->tb.buf_lock); in st_gyro_common_probe()
/linux-4.19.296/fs/pstore/
Dplatform.c391 if (down_trylock(&psinfo->buf_lock)) { in pstore_dump()
398 if (down_interruptible(&psinfo->buf_lock)) { in pstore_dump()
462 up(&psinfo->buf_lock); in pstore_dump()
581 sema_init(&psinfo->buf_lock, 1); in pstore_register()
/linux-4.19.296/include/drm/
Ddrm_device.h69 spinlock_t buf_lock; /**< For drm_device::buf_use and a few other things. */ member
/linux-4.19.296/include/linux/
Dpstore.h176 struct semaphore buf_lock; member
/linux-4.19.296/include/linux/iio/common/
Dst_sensors.h182 struct mutex buf_lock; member
/linux-4.19.296/drivers/iio/magnetometer/
Dst_magn_core.c477 mutex_init(&mdata->tb.buf_lock); in st_magn_common_probe()
/linux-4.19.296/drivers/iio/pressure/
Dst_pressure_core.c609 mutex_init(&press_data->tb.buf_lock); in st_press_common_probe()
/linux-4.19.296/drivers/iio/accel/
Dst_accel_core.c930 mutex_init(&adata->tb.buf_lock); in st_accel_common_probe()