Home
last modified time | relevance | path

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

12

/drivers/staging/iio/meter/
Dade7854-i2c.c26 mutex_lock(&st->buf_lock); in ade7854_i2c_write_reg_8()
32 mutex_unlock(&st->buf_lock); in ade7854_i2c_write_reg_8()
45 mutex_lock(&st->buf_lock); in ade7854_i2c_write_reg_16()
52 mutex_unlock(&st->buf_lock); in ade7854_i2c_write_reg_16()
65 mutex_lock(&st->buf_lock); in ade7854_i2c_write_reg_24()
73 mutex_unlock(&st->buf_lock); in ade7854_i2c_write_reg_24()
86 mutex_lock(&st->buf_lock); in ade7854_i2c_write_reg_32()
95 mutex_unlock(&st->buf_lock); in ade7854_i2c_write_reg_32()
108 mutex_lock(&st->buf_lock); in ade7854_i2c_read_reg_8()
122 mutex_unlock(&st->buf_lock); in ade7854_i2c_read_reg_8()
[all …]
Dade7854-spi.c31 mutex_lock(&st->buf_lock); in ade7854_spi_write_reg_8()
38 mutex_unlock(&st->buf_lock); in ade7854_spi_write_reg_8()
56 mutex_lock(&st->buf_lock); in ade7854_spi_write_reg_16()
64 mutex_unlock(&st->buf_lock); in ade7854_spi_write_reg_16()
82 mutex_lock(&st->buf_lock); in ade7854_spi_write_reg_24()
91 mutex_unlock(&st->buf_lock); in ade7854_spi_write_reg_24()
109 mutex_lock(&st->buf_lock); in ade7854_spi_write_reg_32()
119 mutex_unlock(&st->buf_lock); in ade7854_spi_write_reg_32()
143 mutex_lock(&st->buf_lock); in ade7854_spi_read_reg_8()
158 mutex_unlock(&st->buf_lock); in ade7854_spi_read_reg_8()
[all …]
Dade7758_core.c35 mutex_lock(&st->buf_lock); in ade7758_spi_write_reg_8()
40 mutex_unlock(&st->buf_lock); in ade7758_spi_write_reg_8()
60 mutex_lock(&st->buf_lock); in ade7758_spi_write_reg_16()
66 mutex_unlock(&st->buf_lock); in ade7758_spi_write_reg_16()
86 mutex_lock(&st->buf_lock); in ade7758_spi_write_reg_24()
93 mutex_unlock(&st->buf_lock); in ade7758_spi_write_reg_24()
120 mutex_lock(&st->buf_lock); in ade7758_spi_read_reg_8()
133 mutex_unlock(&st->buf_lock); in ade7758_spi_read_reg_8()
160 mutex_lock(&st->buf_lock); in ade7758_spi_read_reg_16()
175 mutex_unlock(&st->buf_lock); in ade7758_spi_read_reg_16()
[all …]
Dade7759.c34 mutex_lock(&st->buf_lock); in ade7759_spi_write_reg_8()
39 mutex_unlock(&st->buf_lock); in ade7759_spi_write_reg_8()
52 mutex_lock(&st->buf_lock); in ade7759_spi_write_reg_16()
57 mutex_unlock(&st->buf_lock); in ade7759_spi_write_reg_16()
117 mutex_lock(&st->buf_lock); in ade7759_spi_read_reg_40()
131 mutex_unlock(&st->buf_lock); in ade7759_spi_read_reg_40()
465 mutex_init(&st->buf_lock); in ade7759_probe()
Dade7754.c34 mutex_lock(&st->buf_lock); in ade7754_spi_write_reg_8()
39 mutex_unlock(&st->buf_lock); in ade7754_spi_write_reg_8()
52 mutex_lock(&st->buf_lock); in ade7754_spi_write_reg_16()
57 mutex_unlock(&st->buf_lock); in ade7754_spi_write_reg_16()
117 mutex_lock(&st->buf_lock); in ade7754_spi_read_reg_24()
132 mutex_unlock(&st->buf_lock); in ade7754_spi_read_reg_24()
543 mutex_init(&st->buf_lock); in ade7754_probe()
Dade7753.c34 mutex_lock(&st->buf_lock); in ade7753_spi_write_reg_8()
39 mutex_unlock(&st->buf_lock); in ade7753_spi_write_reg_8()
52 mutex_lock(&st->buf_lock); in ade7753_spi_write_reg_16()
57 mutex_unlock(&st->buf_lock); in ade7753_spi_write_reg_16()
120 mutex_lock(&st->buf_lock); in ade7753_spi_read_reg_24()
132 mutex_unlock(&st->buf_lock); in ade7753_spi_read_reg_24()
508 mutex_init(&st->buf_lock); in ade7753_probe()
Dade7759.h48 struct mutex buf_lock; member
Dade7753.h67 struct mutex buf_lock; member
Dade7754.h85 struct mutex buf_lock; member
/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()
425 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()
156 mutex_init(&st->buf_lock); in adis16130_probe()
/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()
/drivers/staging/iio/gyro/
Dadis16060_core.c36 struct mutex buf_lock; member
48 mutex_lock(&st->buf_lock); in adis16060_spi_write()
51 mutex_unlock(&st->buf_lock); in adis16060_spi_write()
61 mutex_lock(&st->buf_lock); in adis16060_spi_read()
74 mutex_unlock(&st->buf_lock); in adis16060_spi_read()
167 mutex_init(&st->buf_lock); in adis16060_r_probe()
/drivers/iio/accel/
Dkxsd9.c54 struct mutex buf_lock; member
82 mutex_lock(&st->buf_lock); in kxsd9_write_scale()
91 mutex_unlock(&st->buf_lock); in kxsd9_write_scale()
112 mutex_lock(&st->buf_lock); in kxsd9_read()
117 mutex_unlock(&st->buf_lock); in kxsd9_read()
237 mutex_init(&st->buf_lock); in kxsd9_probe()
/drivers/input/serio/
Duserio.c44 spinlock_t buf_lock; member
60 spin_lock_irqsave(&userio->buf_lock, flags); in userio_device_write()
69 spin_unlock_irqrestore(&userio->buf_lock, flags); in userio_device_write()
85 spin_lock_init(&userio->buf_lock); in userio_char_open()
138 spin_lock_irqsave(&userio->buf_lock, flags); in userio_char_read()
150 spin_unlock_irqrestore(&userio->buf_lock, flags); in userio_char_read()
/drivers/tty/hvc/
Dhvc_vio.c75 spinlock_t buf_lock; member
94 spin_lock_irqsave(&pv->buf_lock, flags); in hvterm_raw_get_chars()
120 spin_unlock_irqrestore(&pv->buf_lock, flags); in hvterm_raw_get_chars()
359 spin_lock_init(&pv->buf_lock); in hvc_vio_probe()
441 spin_lock_init(&hvterm_priv0.buf_lock); in hvc_vio_init_early()
483 spin_lock_init(&hvterm_priv0.buf_lock); in udbg_init_debug_lpar()
496 spin_lock_init(&hvterm_priv0.buf_lock); in udbg_init_debug_lpar_hvsi()
/drivers/spi/
Dspidev.c82 struct mutex buf_lock; member
165 mutex_lock(&spidev->buf_lock); in spidev_read()
176 mutex_unlock(&spidev->buf_lock); in spidev_read()
196 mutex_lock(&spidev->buf_lock); in spidev_write()
202 mutex_unlock(&spidev->buf_lock); in spidev_write()
399 mutex_lock(&spidev->buf_lock); in spidev_ioctl()
509 mutex_unlock(&spidev->buf_lock); in spidev_ioctl()
542 mutex_lock(&spidev->buf_lock); in spidev_compat_ioc_message()
564 mutex_unlock(&spidev->buf_lock); in spidev_compat_ioc_message()
731 mutex_init(&spidev->buf_lock); in spidev_probe()
Dspi-dw.c186 spin_lock(&dws->buf_lock); in dw_writer()
199 spin_unlock(&dws->buf_lock); in dw_writer()
207 spin_lock(&dws->buf_lock); in dw_reader()
220 spin_unlock(&dws->buf_lock); in dw_reader()
301 spin_lock_irqsave(&dws->buf_lock, flags); in dw_spi_transfer_one()
307 spin_unlock_irqrestore(&dws->buf_lock, flags); in dw_spi_transfer_one()
499 spin_lock_init(&dws->buf_lock); in dw_spi_add_host()
/drivers/staging/iio/accel/
Dlis3l02dq_core.c64 mutex_lock(&st->buf_lock); in lis3l02dq_spi_read_reg_8()
70 mutex_unlock(&st->buf_lock); in lis3l02dq_spi_read_reg_8()
88 mutex_lock(&st->buf_lock); in lis3l02dq_spi_write_reg_8()
92 mutex_unlock(&st->buf_lock); in lis3l02dq_spi_write_reg_8()
122 mutex_lock(&st->buf_lock); in lis3l02dq_spi_write_reg_s16()
129 mutex_unlock(&st->buf_lock); in lis3l02dq_spi_write_reg_s16()
155 mutex_lock(&st->buf_lock); in lis3l02dq_read_reg_s16()
170 mutex_unlock(&st->buf_lock); in lis3l02dq_read_reg_s16()
706 mutex_init(&st->buf_lock); in lis3l02dq_probe()
Dadis16220_core.c139 mutex_lock(&st->buf_lock); in adis16220_capture_buffer_read()
149 mutex_unlock(&st->buf_lock); in adis16220_capture_buffer_read()
155 mutex_unlock(&st->buf_lock); in adis16220_capture_buffer_read()
Dadis16220.h135 struct mutex buf_lock; member
Dlis3l02dq_ring.c70 mutex_lock(&st->buf_lock); in lis3l02dq_read_all()
106 mutex_unlock(&st->buf_lock); in lis3l02dq_read_all()
Dlis3l02dq.h160 struct mutex buf_lock; member
/drivers/gpu/drm/
Ddrm_bufs.c657 spin_lock(&dev->buf_lock); in drm_legacy_addbufs_agp()
659 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_agp()
663 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_agp()
807 spin_lock(&dev->buf_lock); in drm_legacy_addbufs_pci()
809 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_pci()
813 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_pci()
1018 spin_lock(&dev->buf_lock); in drm_legacy_addbufs_sg()
1020 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_sg()
1024 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_sg()
1199 spin_lock(&dev->buf_lock); in drm_legacy_infobufs()
[all …]
/drivers/media/usb/stk1160/
Dstk1160-v4l.c702 spin_lock_irqsave(&dev->buf_lock, flags); in buffer_queue()
726 spin_unlock_irqrestore(&dev->buf_lock, flags); in buffer_queue()
768 spin_lock_irqsave(&dev->buf_lock, flags); in stk1160_clear_queue()
787 spin_unlock_irqrestore(&dev->buf_lock, flags); in stk1160_clear_queue()

12