Searched refs:buf_lock (Results 1 - 45 of 45) sorted by relevance

/linux-4.4.14/drivers/staging/iio/meter/
H A Dade7854-i2c.c26 mutex_lock(&st->buf_lock); ade7854_i2c_write_reg_8()
32 mutex_unlock(&st->buf_lock); ade7854_i2c_write_reg_8()
45 mutex_lock(&st->buf_lock); ade7854_i2c_write_reg_16()
52 mutex_unlock(&st->buf_lock); ade7854_i2c_write_reg_16()
65 mutex_lock(&st->buf_lock); ade7854_i2c_write_reg_24()
73 mutex_unlock(&st->buf_lock); ade7854_i2c_write_reg_24()
86 mutex_lock(&st->buf_lock); ade7854_i2c_write_reg_32()
95 mutex_unlock(&st->buf_lock); ade7854_i2c_write_reg_32()
108 mutex_lock(&st->buf_lock); ade7854_i2c_read_reg_8()
122 mutex_unlock(&st->buf_lock); ade7854_i2c_read_reg_8()
134 mutex_lock(&st->buf_lock); ade7854_i2c_read_reg_16()
148 mutex_unlock(&st->buf_lock); ade7854_i2c_read_reg_16()
160 mutex_lock(&st->buf_lock); ade7854_i2c_read_reg_24()
174 mutex_unlock(&st->buf_lock); ade7854_i2c_read_reg_24()
186 mutex_lock(&st->buf_lock); ade7854_i2c_read_reg_32()
201 mutex_unlock(&st->buf_lock); ade7854_i2c_read_reg_32()
H A Dade7854-spi.c31 mutex_lock(&st->buf_lock); ade7854_spi_write_reg_8()
38 mutex_unlock(&st->buf_lock); ade7854_spi_write_reg_8()
56 mutex_lock(&st->buf_lock); ade7854_spi_write_reg_16()
64 mutex_unlock(&st->buf_lock); ade7854_spi_write_reg_16()
82 mutex_lock(&st->buf_lock); ade7854_spi_write_reg_24()
91 mutex_unlock(&st->buf_lock); ade7854_spi_write_reg_24()
109 mutex_lock(&st->buf_lock); ade7854_spi_write_reg_32()
119 mutex_unlock(&st->buf_lock); ade7854_spi_write_reg_32()
143 mutex_lock(&st->buf_lock); ade7854_spi_read_reg_8()
158 mutex_unlock(&st->buf_lock); ade7854_spi_read_reg_8()
181 mutex_lock(&st->buf_lock); ade7854_spi_read_reg_16()
195 mutex_unlock(&st->buf_lock); ade7854_spi_read_reg_16()
218 mutex_lock(&st->buf_lock); ade7854_spi_read_reg_24()
233 mutex_unlock(&st->buf_lock); ade7854_spi_read_reg_24()
256 mutex_lock(&st->buf_lock); ade7854_spi_read_reg_32()
271 mutex_unlock(&st->buf_lock); ade7854_spi_read_reg_32()
H A Dade7759.h42 * @buf_lock: mutex to protect tx and rx
48 struct mutex buf_lock; member in struct:ade7759_state
H A Dade7753.h63 * @buf_lock: mutex to protect tx and rx
67 struct mutex buf_lock; member in struct:ade7753_state
H A Dade7754.h79 * @buf_lock: mutex to protect tx and rx
85 struct mutex buf_lock; member in struct:ade7754_state
H A Dade7758_core.c35 mutex_lock(&st->buf_lock); ade7758_spi_write_reg_8()
40 mutex_unlock(&st->buf_lock); ade7758_spi_write_reg_8()
60 mutex_lock(&st->buf_lock); ade7758_spi_write_reg_16()
66 mutex_unlock(&st->buf_lock); ade7758_spi_write_reg_16()
86 mutex_lock(&st->buf_lock); ade7758_spi_write_reg_24()
93 mutex_unlock(&st->buf_lock); ade7758_spi_write_reg_24()
120 mutex_lock(&st->buf_lock); ade7758_spi_read_reg_8()
133 mutex_unlock(&st->buf_lock); ade7758_spi_read_reg_8()
160 mutex_lock(&st->buf_lock); ade7758_spi_read_reg_16()
175 mutex_unlock(&st->buf_lock); ade7758_spi_read_reg_16()
201 mutex_lock(&st->buf_lock); ade7758_spi_read_reg_24()
216 mutex_unlock(&st->buf_lock); ade7758_spi_read_reg_24()
841 mutex_init(&st->buf_lock); ade7758_probe()
H A Dade7753.c34 mutex_lock(&st->buf_lock); ade7753_spi_write_reg_8()
39 mutex_unlock(&st->buf_lock); ade7753_spi_write_reg_8()
52 mutex_lock(&st->buf_lock); ade7753_spi_write_reg_16()
57 mutex_unlock(&st->buf_lock); ade7753_spi_write_reg_16()
120 mutex_lock(&st->buf_lock); ade7753_spi_read_reg_24()
132 mutex_unlock(&st->buf_lock); ade7753_spi_read_reg_24()
508 mutex_init(&st->buf_lock); ade7753_probe()
H A Dade7754.c34 mutex_lock(&st->buf_lock); ade7754_spi_write_reg_8()
39 mutex_unlock(&st->buf_lock); ade7754_spi_write_reg_8()
52 mutex_lock(&st->buf_lock); ade7754_spi_write_reg_16()
57 mutex_unlock(&st->buf_lock); ade7754_spi_write_reg_16()
117 mutex_lock(&st->buf_lock); ade7754_spi_read_reg_24()
132 mutex_unlock(&st->buf_lock); ade7754_spi_read_reg_24()
543 mutex_init(&st->buf_lock); ade7754_probe()
H A Dade7759.c34 mutex_lock(&st->buf_lock); ade7759_spi_write_reg_8()
39 mutex_unlock(&st->buf_lock); ade7759_spi_write_reg_8()
52 mutex_lock(&st->buf_lock); ade7759_spi_write_reg_16()
57 mutex_unlock(&st->buf_lock); ade7759_spi_write_reg_16()
117 mutex_lock(&st->buf_lock); ade7759_spi_read_reg_40()
131 mutex_unlock(&st->buf_lock); ade7759_spi_read_reg_40()
465 mutex_init(&st->buf_lock); ade7759_probe()
H A Dade7758.h114 * @buf_lock: mutex to protect tx and rx
121 struct mutex buf_lock; member in struct:ade7758_state
H A Dade7854.h149 * @buf_lock: mutex to protect tx and rx
165 struct mutex buf_lock; member in struct:ade7854_state
H A Dade7854.c545 mutex_init(&st->buf_lock); ade7854_probe()
/linux-4.4.14/drivers/iio/common/st_sensors/
H A Dst_sensors_spi.c47 mutex_lock(&tb->buf_lock); st_sensors_spi_read()
58 mutex_unlock(&tb->buf_lock); st_sensors_spi_read()
62 mutex_unlock(&tb->buf_lock); st_sensors_spi_read()
90 mutex_lock(&tb->buf_lock); st_sensors_spi_write_byte()
95 mutex_unlock(&tb->buf_lock); st_sensors_spi_write_byte()
/linux-4.4.14/drivers/iio/gyro/
H A Dadis16130.c37 * @buf_lock: mutex to protect tx and rx
42 struct mutex buf_lock; member in struct:adis16130_state
56 mutex_lock(&st->buf_lock); adis16130_spi_read()
64 mutex_unlock(&st->buf_lock); adis16130_spi_read()
156 mutex_init(&st->buf_lock); adis16130_probe()
H A Dadxrs450.c70 * @buf_lock: mutex to protect tx and rx
76 struct mutex buf_lock; member in struct:adxrs450_state
109 mutex_lock(&st->buf_lock); adxrs450_spi_read_reg_16()
126 mutex_unlock(&st->buf_lock); adxrs450_spi_read_reg_16()
145 mutex_lock(&st->buf_lock); adxrs450_spi_write_reg_16()
157 mutex_unlock(&st->buf_lock); adxrs450_spi_write_reg_16()
183 mutex_lock(&st->buf_lock); adxrs450_spi_sensor_data()
195 mutex_unlock(&st->buf_lock); adxrs450_spi_sensor_data()
217 mutex_lock(&st->buf_lock); adxrs450_spi_initial()
231 mutex_unlock(&st->buf_lock); adxrs450_spi_initial()
425 mutex_init(&st->buf_lock); adxrs450_probe()
H A Dst_gyro_core.c407 mutex_init(&gdata->tb.buf_lock); st_gyro_common_probe()
/linux-4.4.14/drivers/staging/iio/gyro/
H A Dadis16060_core.c31 * @buf_lock: mutex to protect tx and rx
36 struct mutex buf_lock; member in struct:adis16060_state
48 mutex_lock(&st->buf_lock); adis16060_spi_write()
51 mutex_unlock(&st->buf_lock); adis16060_spi_write()
61 mutex_lock(&st->buf_lock); adis16060_spi_read()
74 mutex_unlock(&st->buf_lock); adis16060_spi_read()
167 mutex_init(&st->buf_lock); adis16060_r_probe()
/linux-4.4.14/drivers/iio/accel/
H A Dkxsd9.c48 * @buf_lock: protect the rx and tx buffers.
54 struct mutex buf_lock; member in struct:kxsd9_state
82 mutex_lock(&st->buf_lock); kxsd9_write_scale()
91 mutex_unlock(&st->buf_lock); kxsd9_write_scale()
112 mutex_lock(&st->buf_lock); kxsd9_read()
117 mutex_unlock(&st->buf_lock); kxsd9_read()
235 mutex_init(&st->buf_lock); kxsd9_probe()
H A Dst_accel_core.c636 mutex_init(&adata->tb.buf_lock); st_accel_common_probe()
/linux-4.4.14/drivers/input/serio/
H A Duserio.c44 spinlock_t buf_lock; member in struct:userio_device
60 spin_lock_irqsave(&userio->buf_lock, flags); userio_device_write()
69 spin_unlock_irqrestore(&userio->buf_lock, flags); userio_device_write()
85 spin_lock_init(&userio->buf_lock); userio_char_open()
138 spin_lock_irqsave(&userio->buf_lock, flags); userio_char_read()
150 spin_unlock_irqrestore(&userio->buf_lock, flags); userio_char_read()
/linux-4.4.14/drivers/tty/hvc/
H A Dhvc_vio.c75 spinlock_t buf_lock; member in struct:hvterm_priv
94 spin_lock_irqsave(&pv->buf_lock, flags); hvterm_raw_get_chars()
120 spin_unlock_irqrestore(&pv->buf_lock, flags); hvterm_raw_get_chars()
345 spin_lock_init(&pv->buf_lock); hvc_vio_probe()
427 spin_lock_init(&hvterm_priv0.buf_lock); hvc_vio_init_early()
469 spin_lock_init(&hvterm_priv0.buf_lock); udbg_init_debug_lpar()
482 spin_lock_init(&hvterm_priv0.buf_lock); udbg_init_debug_lpar_hvsi()
/linux-4.4.14/drivers/staging/iio/accel/
H A Dlis3l02dq_core.c64 mutex_lock(&st->buf_lock); lis3l02dq_spi_read_reg_8()
70 mutex_unlock(&st->buf_lock); lis3l02dq_spi_read_reg_8()
88 mutex_lock(&st->buf_lock); lis3l02dq_spi_write_reg_8()
92 mutex_unlock(&st->buf_lock); lis3l02dq_spi_write_reg_8()
122 mutex_lock(&st->buf_lock); lis3l02dq_spi_write_reg_s16()
129 mutex_unlock(&st->buf_lock); lis3l02dq_spi_write_reg_s16()
155 mutex_lock(&st->buf_lock); lis3l02dq_read_reg_s16()
170 mutex_unlock(&st->buf_lock); lis3l02dq_read_reg_s16()
706 mutex_init(&st->buf_lock); lis3l02dq_probe()
H A Dadis16220.h130 * @buf_lock: mutex to protect tx and rx
135 struct mutex buf_lock; member in struct:adis16220_state
H A Dlis3l02dq.h153 * @buf_lock: mutex to protect tx and rx
160 struct mutex buf_lock; member in struct:lis3l02dq_state
H A Dadis16220_core.c139 mutex_lock(&st->buf_lock); adis16220_capture_buffer_read()
149 mutex_unlock(&st->buf_lock); adis16220_capture_buffer_read()
155 mutex_unlock(&st->buf_lock); adis16220_capture_buffer_read()
H A Dlis3l02dq_ring.c70 mutex_lock(&st->buf_lock); lis3l02dq_read_all()
106 mutex_unlock(&st->buf_lock); lis3l02dq_read_all()
/linux-4.4.14/fs/pstore/
H A Dplatform.c293 is_locked = spin_trylock_irqsave(&psinfo->buf_lock, flags); pstore_dump()
299 spin_lock_irqsave(&psinfo->buf_lock, flags); pstore_dump()
355 spin_unlock_irqrestore(&psinfo->buf_lock, flags); pstore_dump()
357 spin_unlock_irqrestore(&psinfo->buf_lock, flags); pstore_dump()
390 if (!spin_trylock_irqsave(&psinfo->buf_lock, flags)) pstore_console_write()
393 spin_lock_irqsave(&psinfo->buf_lock, flags); pstore_console_write()
397 spin_unlock_irqrestore(&psinfo->buf_lock, flags); pstore_console_write()
H A Dram.c535 spin_lock_init(&cxt->pstore.buf_lock); ramoops_probe()
/linux-4.4.14/drivers/spi/
H A Dspidev.c82 struct mutex buf_lock; member in struct:spidev_data
165 mutex_lock(&spidev->buf_lock); spidev_read()
176 mutex_unlock(&spidev->buf_lock); spidev_read()
196 mutex_lock(&spidev->buf_lock); spidev_write()
202 mutex_unlock(&spidev->buf_lock); spidev_write()
399 mutex_lock(&spidev->buf_lock); spidev_ioctl()
509 mutex_unlock(&spidev->buf_lock); spidev_ioctl()
542 mutex_lock(&spidev->buf_lock); spidev_compat_ioc_message()
564 mutex_unlock(&spidev->buf_lock); spidev_compat_ioc_message()
730 mutex_init(&spidev->buf_lock); spidev_probe()
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_bufs.c655 spin_lock(&dev->buf_lock); drm_legacy_addbufs_agp()
657 spin_unlock(&dev->buf_lock); drm_legacy_addbufs_agp()
661 spin_unlock(&dev->buf_lock); drm_legacy_addbufs_agp()
805 spin_lock(&dev->buf_lock); drm_legacy_addbufs_pci()
807 spin_unlock(&dev->buf_lock); drm_legacy_addbufs_pci()
811 spin_unlock(&dev->buf_lock); drm_legacy_addbufs_pci()
1016 spin_lock(&dev->buf_lock); drm_legacy_addbufs_sg()
1018 spin_unlock(&dev->buf_lock); drm_legacy_addbufs_sg()
1022 spin_unlock(&dev->buf_lock); drm_legacy_addbufs_sg()
1176 * Increments drm_device::buf_use while holding the drm_device::buf_lock
1197 spin_lock(&dev->buf_lock); drm_legacy_infobufs()
1199 spin_unlock(&dev->buf_lock); drm_legacy_infobufs()
1203 spin_unlock(&dev->buf_lock); drm_legacy_infobufs()
1381 spin_lock(&dev->buf_lock); drm_legacy_mapbufs()
1383 spin_unlock(&dev->buf_lock); drm_legacy_mapbufs()
1387 spin_unlock(&dev->buf_lock); drm_legacy_mapbufs()
H A Ddrm_drv.c592 spin_lock_init(&dev->buf_lock); drm_dev_alloc()
/linux-4.4.14/include/linux/
H A Dpstore.h52 spinlock_t buf_lock; /* serialize access to 'buf' */ member in struct:pstore_info
/linux-4.4.14/include/linux/iio/common/
H A Dst_sensors.h138 * @buf_lock: Mutex to protect rx and tx buffers.
145 struct mutex buf_lock; member in struct:st_sensor_transfer_buffer
/linux-4.4.14/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c702 spin_lock_irqsave(&dev->buf_lock, flags); buffer_queue()
726 spin_unlock_irqrestore(&dev->buf_lock, flags); buffer_queue()
768 spin_lock_irqsave(&dev->buf_lock, flags); stk1160_clear_queue()
787 spin_unlock_irqrestore(&dev->buf_lock, flags); stk1160_clear_queue()
H A Dstk1160.h161 spinlock_t buf_lock; member in struct:stk1160
H A Dstk1160-video.c83 spin_lock_irqsave(&dev->buf_lock, flags); stk1160_next_buffer()
89 spin_unlock_irqrestore(&dev->buf_lock, flags); stk1160_next_buffer()
H A Dstk1160-core.c332 spin_lock_init(&dev->buf_lock); stk1160_probe()
/linux-4.4.14/drivers/net/arcnet/
H A Darcnet.c312 if (!atomic_dec_and_test(&lp->buf_lock)) { get_arcbuf()
315 lp->buf_lock.counter); get_arcbuf()
336 atomic_inc(&lp->buf_lock); get_arcbuf()
466 atomic_set(&lp->buf_lock, 1); arcnet_open()
H A Darcdevice.h290 atomic_t buf_lock; member in struct:arcnet_local
/linux-4.4.14/drivers/iio/pressure/
H A Dst_pressure_core.c424 mutex_init(&press_data->tb.buf_lock); st_press_common_probe()
/linux-4.4.14/drivers/firmware/efi/
H A Defi-pstore.c383 spin_lock_init(&efi_pstore_info.buf_lock); efivars_pstore_init()
/linux-4.4.14/drivers/iio/magnetometer/
H A Dst_magn_core.c584 mutex_init(&mdata->tb.buf_lock); st_magn_common_probe()
/linux-4.4.14/drivers/acpi/apei/
H A Derst.c1193 spin_lock_init(&erst_info.buf_lock); erst_init()
/linux-4.4.14/arch/powerpc/kernel/
H A Dnvram_64.c581 spin_lock_init(&nvram_pstore_info.buf_lock); nvram_pstore_init()
/linux-4.4.14/include/drm/
H A DdrmP.h756 spinlock_t buf_lock; /**< For drm_device::buf_use and a few other things. */ member in struct:drm_device

Completed in 768 milliseconds