Home
last modified time | relevance | path

Searched refs:buffer_lock (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/i2c/
H A Di2c-slave-eeprom.c31 spinlock_t buffer_lock; member
59 spin_lock(&eeprom->buffer_lock); in i2c_slave_eeprom_slave_cb()
61 spin_unlock(&eeprom->buffer_lock); in i2c_slave_eeprom_slave_cb()
71 spin_lock(&eeprom->buffer_lock); in i2c_slave_eeprom_slave_cb()
73 spin_unlock(&eeprom->buffer_lock); in i2c_slave_eeprom_slave_cb()
101 spin_lock_irqsave(&eeprom->buffer_lock, flags); in i2c_slave_eeprom_bin_read()
103 spin_unlock_irqrestore(&eeprom->buffer_lock, flags); in i2c_slave_eeprom_bin_read()
116 spin_lock_irqsave(&eeprom->buffer_lock, flags); in i2c_slave_eeprom_bin_write()
118 spin_unlock_irqrestore(&eeprom->buffer_lock, flags); in i2c_slave_eeprom_bin_write()
158 spin_lock_init(&eeprom->buffer_lock); in i2c_slave_eeprom_probe()
/linux/drivers/platform/x86/
H A Dmsi-wmi-platform.c82 struct rw_semaphore buffer_lock; /* Protects debugfs buffer */ member
233 down_write(&data->buffer_lock); in msi_wmi_platform_write()
236 up_write(&data->buffer_lock); in msi_wmi_platform_write()
249 down_read(&data->buffer_lock); in msi_wmi_platform_show()
251 up_read(&data->buffer_lock); in msi_wmi_platform_show()
292 init_rwsem(&data->buffer_lock); in msi_wmi_platform_debugfs_add()
/linux/drivers/input/
H A Devdev.c44 spinlock_t buffer_lock; /* protects access to buffer, head and tail */ member
169 spin_lock_irqsave(&client->buffer_lock, flags); in evdev_queue_syn_dropped()
171 spin_unlock_irqrestore(&client->buffer_lock, flags); in evdev_queue_syn_dropped()
201 spin_lock_irqsave(&client->buffer_lock, flags); in evdev_set_clk_type()
208 spin_unlock_irqrestore(&client->buffer_lock, flags); in evdev_set_clk_type()
261 spin_lock(&client->buffer_lock); in evdev_pass_values()
281 spin_unlock(&client->buffer_lock); in evdev_pass_values()
474 spin_lock_init(&client->buffer_lock); in evdev_open()
543 spin_lock_irq(&client->buffer_lock); in evdev_fetch_next_event()
551 spin_unlock_irq(&client->buffer_lock); in evdev_fetch_next_event()
[all …]
H A Djoydev.c62 spinlock_t buffer_lock; /* protects access to buffer, head and tail */ member
96 spin_lock(&client->buffer_lock); in joydev_pass_event()
107 spin_unlock(&client->buffer_lock); in joydev_pass_event()
268 spin_lock_init(&client->buffer_lock); in joydev_open()
294 spin_lock_irq(&client->buffer_lock); in joydev_generate_startup_event()
314 spin_unlock_irq(&client->buffer_lock); in joydev_generate_startup_event()
324 spin_lock_irq(&client->buffer_lock); in joydev_fetch_next_event()
332 spin_unlock_irq(&client->buffer_lock); in joydev_fetch_next_event()
362 spin_lock(&client->buffer_lock); in joydev_0x_read()
365 spin_unlock(&client->buffer_lock); in joydev_0x_read()
/linux/drivers/hwmon/
H A Dgigabyte_waterforce.c55 struct mutex buffer_lock; member
115 mutex_lock(&priv->buffer_lock); in waterforce_write_expanded()
120 mutex_unlock(&priv->buffer_lock); in waterforce_write_expanded()
359 mutex_init(&priv->buffer_lock); in waterforce_probe()
H A Dasus_rog_ryujin.c85 struct mutex buffer_lock; member
158 mutex_lock(&priv->buffer_lock); in rog_ryujin_write_expanded()
163 mutex_unlock(&priv->buffer_lock); in rog_ryujin_write_expanded()
542 mutex_init(&priv->buffer_lock); in rog_ryujin_probe()
H A Dnzxt-kraken3.c97 struct mutex buffer_lock; /* For locking access to buffer */ member
189 mutex_lock(&priv->buffer_lock); in kraken3_write_expanded()
194 mutex_unlock(&priv->buffer_lock); in kraken3_write_expanded()
941 mutex_init(&priv->buffer_lock); in kraken3_probe()
/linux/drivers/net/wireless/marvell/libertas/
H A Dif_spi.c71 spinlock_t buffer_lock; member
898 spin_lock_irqsave(&card->buffer_lock, flags); in if_spi_host_to_card_worker()
904 spin_unlock_irqrestore(&card->buffer_lock, flags); in if_spi_host_to_card_worker()
912 spin_lock_irqsave(&card->buffer_lock, flags); in if_spi_host_to_card_worker()
918 spin_unlock_irqrestore(&card->buffer_lock, flags); in if_spi_host_to_card_worker()
965 spin_lock_irqsave(&card->buffer_lock, flags); in if_spi_host_to_card()
967 spin_unlock_irqrestore(&card->buffer_lock, flags); in if_spi_host_to_card()
971 spin_lock_irqsave(&card->buffer_lock, flags); in if_spi_host_to_card()
973 spin_unlock_irqrestore(&card->buffer_lock, flags); in if_spi_host_to_card()
1128 spin_lock_init(&card->buffer_lock); in if_spi_probe()
/linux/sound/soc/sof/
H A Dipc4-mtrace.c100 struct mutex buffer_lock; /* for log_buffer alloc/free */ member
121 mutex_lock(&core_data->buffer_lock); in sof_ipc4_mtrace_dfs_open()
146 mutex_unlock(&core_data->buffer_lock); in sof_ipc4_mtrace_dfs_open()
284 mutex_lock(&core_data->buffer_lock); in sof_ipc4_mtrace_dfs_release()
287 mutex_unlock(&core_data->buffer_lock); in sof_ipc4_mtrace_dfs_release()
573 mutex_init(&core_data->buffer_lock); in ipc4_mtrace_init()
/linux/fs/pstore/
H A Dram_core.c60 raw_spin_lock_irqsave(&prz->buffer_lock, flags); in buffer_start_add()
69 raw_spin_unlock_irqrestore(&prz->buffer_lock, flags); in buffer_start_add()
82 raw_spin_lock_irqsave(&prz->buffer_lock, flags); in buffer_size_add()
95 raw_spin_unlock_irqrestore(&prz->buffer_lock, flags); in buffer_size_add()
598 raw_spin_lock_init(&prz->buffer_lock); in persistent_ram_new()
H A Dram_internal.h67 raw_spinlock_t buffer_lock; member
/linux/sound/usb/
H A Dmidi.c131 spinlock_t buffer_lock; member
270 spin_lock_irqsave(&ep->buffer_lock, flags); in snd_usbmidi_out_urb_complete()
277 spin_unlock_irqrestore(&ep->buffer_lock, flags); in snd_usbmidi_out_urb_complete()
300 spin_lock_irqsave(&ep->buffer_lock, flags); in snd_usbmidi_do_output()
302 spin_unlock_irqrestore(&ep->buffer_lock, flags); in snd_usbmidi_do_output()
328 spin_unlock_irqrestore(&ep->buffer_lock, flags); in snd_usbmidi_do_output()
1184 spin_lock_irq(&ep->buffer_lock); in snd_usbmidi_output_drain()
1191 spin_unlock_irq(&ep->buffer_lock); in snd_usbmidi_output_drain()
1193 spin_lock_irq(&ep->buffer_lock); in snd_usbmidi_output_drain()
1199 spin_unlock_irq(&ep->buffer_lock); in snd_usbmidi_output_drain()
[all …]
/linux/fs/btrfs/
H A Dextent_io.c2811 spin_lock(&fs_info->buffer_lock); in alloc_test_extent_buffer()
2814 spin_unlock(&fs_info->buffer_lock); in alloc_test_extent_buffer()
3129 spin_lock(&fs_info->buffer_lock); in alloc_extent_buffer()
3132 spin_unlock(&fs_info->buffer_lock); in alloc_extent_buffer()
3213 spin_lock(&fs_info->buffer_lock); in release_extent_buffer()
3216 spin_unlock(&fs_info->buffer_lock); in release_extent_buffer()
4122 lockdep_assert_held(&fs_info->buffer_lock); in get_next_extent_buffer()
4168 spin_lock(&fs_info->buffer_lock); in try_release_subpage_extent_buffer()
4172 spin_unlock(&fs_info->buffer_lock); in try_release_subpage_extent_buffer()
4184 spin_unlock(&fs_info->buffer_lock); in try_release_subpage_extent_buffer()
[all …]
H A Dfs.h763 spinlock_t buffer_lock; member
H A Ddisk-io.c2715 spin_lock_init(&fs_info->buffer_lock); in btrfs_init_fs_info()