/linux/drivers/gpu/drm/msm/disp/ |
H A D | mdp_kms.c | 19 static DEFINE_SPINLOCK(list_lock); 26 assert_spin_locked(&list_lock); in update_irq() 41 spin_lock_irqsave(&list_lock, flags); in mdp_irq_update() 43 spin_unlock_irqrestore(&list_lock, flags); in mdp_irq_update() 51 spin_lock_irqsave(&list_lock, flags); in mdp_dispatch_irqs() 55 spin_unlock_irqrestore(&list_lock, flags); in mdp_dispatch_irqs() 57 spin_lock_irqsave(&list_lock, flags); in mdp_dispatch_irqs() 62 spin_unlock_irqrestore(&list_lock, flags); in mdp_dispatch_irqs() 70 spin_lock_irqsave(&list_lock, flags); in mdp_update_vblank_mask() 76 spin_unlock_irqrestore(&list_lock, flags); in mdp_update_vblank_mask() [all …]
|
/linux/drivers/staging/most/video/ |
H A D | video.c | 36 spinlock_t list_lock; member 56 static DEFINE_SPINLOCK(list_lock); 131 spin_lock_irq(&mdev->list_lock); in comp_vdev_close() 135 spin_unlock_irq(&mdev->list_lock); in comp_vdev_close() 137 spin_lock_irq(&mdev->list_lock); in comp_vdev_close() 139 spin_unlock_irq(&mdev->list_lock); in comp_vdev_close() 192 spin_lock_irq(&mdev->list_lock); in comp_vdev_read() 194 spin_unlock_irq(&mdev->list_lock); in comp_vdev_read() 373 spin_lock_irqsave(&list_lock, flags); in get_comp_dev() 376 spin_unlock_irqrestore(&list_lock, flags); in get_comp_dev() [all …]
|
/linux/Documentation/RCU/ |
H A D | rcuref.rst | 24 alloc_object read_lock(&list_lock); 27 write_lock(&list_lock); ... 28 add_element read_unlock(&list_lock); 30 write_unlock(&list_lock); } 36 ... write_lock(&list_lock); 40 } write_unlock(&list_lock); 62 spin_lock(&list_lock); rcu_read_unlock(); 66 spin_unlock(&list_lock); rcu_read_unlock(); 71 ... spin_lock(&list_lock); 74 ... spin_unlock(&list_lock); [all …]
|
/linux/drivers/soc/qcom/ |
H A D | pdr_interface.c | 45 struct mutex list_lock; member 90 mutex_lock(&pdr->list_lock); in pdr_locator_new_server() 95 mutex_unlock(&pdr->list_lock); in pdr_locator_new_server() 172 mutex_lock(&pdr->list_lock); in pdr_notifier_work() 194 mutex_unlock(&pdr->list_lock); in pdr_notifier_work() 204 mutex_lock(&pdr->list_lock); in pdr_notifier_new_server() 216 mutex_unlock(&pdr->list_lock); in pdr_notifier_new_server() 228 mutex_lock(&pdr->list_lock); in pdr_notifier_del_server() 239 mutex_unlock(&pdr->list_lock); in pdr_notifier_del_server() 292 mutex_lock(&pdr->list_lock); in pdr_indack_work() [all …]
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 176 static DEFINE_MUTEX(list_lock); 524 lockdep_assert_held(&list_lock); in v4l2_async_nf_has_async_match() 593 mutex_lock(&list_lock); in __v4l2_async_nf_register() 612 mutex_unlock(&list_lock); in __v4l2_async_nf_register() 623 mutex_unlock(&list_lock); in __v4l2_async_nf_register() 650 mutex_lock(&list_lock); in v4l2_async_nf_unregister() 654 mutex_unlock(&list_lock); in v4l2_async_nf_unregister() 683 mutex_lock(&list_lock); in v4l2_async_nf_cleanup() 687 mutex_unlock(&list_lock); in v4l2_async_nf_cleanup() 694 mutex_lock(&list_lock); in __v4l2_async_nf_add_connection() [all …]
|
/linux/net/hsr/ |
H A D | hsr_framereg.c | 106 spin_lock_bh(&hsr->list_lock); in hsr_create_self_node() 108 lockdep_is_held(&hsr->list_lock)); in hsr_create_self_node() 109 spin_unlock_bh(&hsr->list_lock); in hsr_create_self_node() 120 spin_lock_bh(&hsr->list_lock); in hsr_del_self_node() 122 lockdep_is_held(&hsr->list_lock)); in hsr_del_self_node() 123 spin_unlock_bh(&hsr->list_lock); in hsr_del_self_node() 185 spin_lock_bh(&hsr->list_lock); in hsr_add_node() 187 lockdep_is_held(&hsr->list_lock)) { in hsr_add_node() 194 spin_unlock_bh(&hsr->list_lock); in hsr_add_node() 197 spin_unlock_bh(&hsr->list_lock); in hsr_add_node() [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_dh.c | 16 static DEFINE_SPINLOCK(list_lock); 92 spin_lock(&list_lock); in __scsi_dh_lookup() 99 spin_unlock(&list_lock); in __scsi_dh_lookup() 207 spin_lock(&list_lock); in scsi_register_device_handler() 209 spin_unlock(&list_lock); in scsi_register_device_handler() 229 spin_lock(&list_lock); in scsi_unregister_device_handler() 231 spin_unlock(&list_lock); in scsi_unregister_device_handler()
|
/linux/net/batman-adv/ |
H A D | hash.h | 85 spinlock_t *list_lock; /* spinlock to protect write access */ in batadv_hash_add() local 92 list_lock = &hash->list_locks[index]; in batadv_hash_add() 94 spin_lock_bh(list_lock); in batadv_hash_add() 111 spin_unlock_bh(list_lock); in batadv_hash_add()
|
H A D | gateway_client.c | 133 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 143 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 331 lockdep_assert_held(&bat_priv->gw.list_lock); in batadv_gw_node_add() 405 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_node_update() 409 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_node_update() 412 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_node_update() 441 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_node_update() 447 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_node_update() 485 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_node_free() 492 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_node_free()
|
/linux/fs/ |
H A D | fs-writeback.c | 122 assert_spin_locked(&wb->list_lock); in inode_io_list_move_locked() 305 assert_spin_locked(&wb->list_lock); in inode_cgwb_move_to_attached() 328 __acquires(&wb->list_lock) in locked_inode_to_wb_and_lock_list() 341 spin_lock(&wb->list_lock); in locked_inode_to_wb_and_lock_list() 349 spin_unlock(&wb->list_lock); in locked_inode_to_wb_and_lock_list() 364 __acquires(&wb->list_lock) in inode_to_wb_and_lock_list() 516 spin_lock(&old_wb->list_lock); in inode_switch_wbs_work_fn() 517 spin_lock_nested(&new_wb->list_lock, SINGLE_DEPTH_NESTING); in inode_switch_wbs_work_fn() 519 spin_lock(&new_wb->list_lock); in inode_switch_wbs_work_fn() 520 spin_lock_nested(&old_wb->list_lock, SINGLE_DEPTH_NESTING); in inode_switch_wbs_work_fn() [all …]
|
/linux/drivers/s390/cio/ |
H A D | eadm_sch.c | 37 static DEFINE_SPINLOCK(list_lock); 163 spin_lock_irqsave(&list_lock, flags); in eadm_get_idle_sch() 171 spin_unlock_irqrestore(&list_lock, flags); in eadm_get_idle_sch() 177 spin_unlock_irqrestore(&list_lock, flags); in eadm_get_idle_sch() 238 spin_lock_irq(&list_lock); in eadm_subchannel_probe() 240 spin_unlock_irq(&list_lock); in eadm_subchannel_probe() 279 spin_lock_irq(&list_lock); in eadm_subchannel_remove() 281 spin_unlock_irq(&list_lock); in eadm_subchannel_remove()
|
/linux/drivers/staging/greybus/ |
H A D | raw.c | 23 struct mutex list_lock; member 69 mutex_lock(&raw->list_lock); in receive_data() 88 mutex_unlock(&raw->list_lock); in receive_data() 179 mutex_init(&raw->list_lock); in gb_raw_probe() 241 mutex_lock(&raw->list_lock); in gb_raw_disconnect() 246 mutex_unlock(&raw->list_lock); in gb_raw_disconnect() 295 mutex_lock(&raw->list_lock); in raw_read() 316 mutex_unlock(&raw->list_lock); in raw_read()
|
/linux/drivers/iio/buffer/ |
H A D | industrialio-buffer-dma.c | 240 spin_lock_irqsave(&queue->list_lock, flags); in iio_dma_buffer_block_done() 242 spin_unlock_irqrestore(&queue->list_lock, flags); in iio_dma_buffer_block_done() 272 spin_lock_irqsave(&queue->list_lock, flags); in iio_dma_buffer_block_list_abort() 282 spin_unlock_irqrestore(&queue->list_lock, flags); in iio_dma_buffer_block_list_abort() 357 spin_lock_irq(&queue->list_lock); in iio_dma_buffer_request_update() 371 spin_unlock_irq(&queue->list_lock); in iio_dma_buffer_request_update() 429 spin_lock_irq(&queue->list_lock); in iio_dma_buffer_fileio_free() 435 spin_unlock_irq(&queue->list_lock); in iio_dma_buffer_fileio_free() 554 spin_lock_irq(&queue->list_lock); in iio_dma_buffer_dequeue() 566 spin_unlock_irq(&queue->list_lock); in iio_dma_buffer_dequeue() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | event.c | 84 write_lock_irq(&ntfy->event->list_lock); in nvkm_event_ntfy_remove() 86 write_unlock_irq(&ntfy->event->list_lock); in nvkm_event_ntfy_remove() 92 write_lock_irq(&ntfy->event->list_lock); in nvkm_event_ntfy_insert() 94 write_unlock_irq(&ntfy->event->list_lock); in nvkm_event_ntfy_insert() 179 read_lock_irqsave(&event->list_lock, flags); in nvkm_event_ntfy() 188 read_unlock_irqrestore(&event->list_lock, flags); in nvkm_event_ntfy()
|
/linux/net/netfilter/ |
H A D | nf_conncount.c | 88 lockdep_assert_held(&list->list_lock); in conn_free() 209 spin_lock_bh(&list->list_lock); in nf_conncount_add() 211 spin_unlock_bh(&list->list_lock); in nf_conncount_add() 219 spin_lock_init(&list->list_lock); in nf_conncount_list_init() 241 if (!spin_trylock(&list->list_lock)) in nf_conncount_gc_list() 272 spin_unlock(&list->list_lock); in nf_conncount_gc_list() 295 spin_lock(&rbconn->list.list_lock); in tree_nodes_free() 300 spin_unlock(&rbconn->list.list_lock); in tree_nodes_free() 428 spin_lock_bh(&rbconn->list.list_lock); in count_tree() 433 spin_unlock_bh(&rbconn->list.list_lock); in count_tree() [all …]
|
/linux/drivers/xen/ |
H A D | unpopulated-alloc.c | 15 static DEFINE_MUTEX(list_lock); 171 mutex_lock(&list_lock); in xen_alloc_unpopulated_pages() 204 mutex_unlock(&list_lock); in xen_alloc_unpopulated_pages() 223 mutex_lock(&list_lock); in xen_free_unpopulated_pages() 229 mutex_unlock(&list_lock); in xen_free_unpopulated_pages()
|
/linux/sound/pci/ctxfi/ |
H A D | cttimer.c | 47 spinlock_t list_lock; /* lock for instance list */ member 234 spin_lock_irqsave(&atimer->list_lock, flags); in ct_xfitimer_check_period() 241 spin_unlock_irqrestore(&atimer->list_lock, flags); in ct_xfitimer_check_period() 350 spin_lock_irq(&atimer->list_lock); in ct_timer_instance_new() 352 spin_unlock_irq(&atimer->list_lock); in ct_timer_instance_new() 385 spin_lock_irq(&atimer->list_lock); in ct_timer_instance_free() 387 spin_unlock_irq(&atimer->list_lock); in ct_timer_instance_free() 414 spin_lock_init(&atimer->list_lock); in ct_timer_new()
|
/linux/drivers/staging/most/net/ |
H A D | net.c | 72 static DEFINE_SPINLOCK(list_lock); /* list_head, ch->linked = false, dev_hold */ 295 spin_lock_irqsave(&list_lock, flags); in get_net_dev_hold() 301 spin_unlock_irqrestore(&list_lock, flags); in get_net_dev_hold() 335 spin_lock_irqsave(&list_lock, flags); in comp_probe_channel() 337 spin_unlock_irqrestore(&list_lock, flags); in comp_probe_channel() 387 spin_lock_irqsave(&list_lock, flags); in comp_disconnect_channel() 389 spin_unlock_irqrestore(&list_lock, flags); in comp_disconnect_channel() 397 spin_lock_irqsave(&list_lock, flags); in comp_disconnect_channel() 399 spin_unlock_irqrestore(&list_lock, flags); in comp_disconnect_channel()
|
/linux/fs/btrfs/ |
H A D | async-thread.c | 33 spinlock_t list_lock; member 80 spin_lock_init(&wq->list_lock); in btrfs_init_workqueue() 215 spinlock_t *lock = &wq->list_lock; in run_ordered_work() 348 spin_lock_irqsave(&wq->list_lock, flags); in btrfs_queue_work() 350 spin_unlock_irqrestore(&wq->list_lock, flags); in btrfs_queue_work()
|
/linux/drivers/s390/block/ |
H A D | scm_blk.c | 27 static DEFINE_SPINLOCK(list_lock); 56 spin_lock_irq(&list_lock); in scm_free_rqs() 62 spin_unlock_irq(&list_lock); in scm_free_rqs() 87 spin_lock_irq(&list_lock); in __scm_alloc_rq() 89 spin_unlock_irq(&list_lock); in __scm_alloc_rq() 115 spin_lock_irq(&list_lock); in scm_request_fetch() 121 spin_unlock_irq(&list_lock); in scm_request_fetch() 141 spin_lock_irqsave(&list_lock, flags); in scm_request_done() 143 spin_unlock_irqrestore(&list_lock, flags); in scm_request_done()
|
/linux/sound/pci/asihpi/ |
H A D | hpios.h | 132 #define hpios_alistlock_init(obj) spin_lock_init(&((obj)->list_lock.lock)) 133 #define hpios_alistlock_lock(obj) spin_lock(&((obj)->list_lock.lock)) 134 #define hpios_alistlock_unlock(obj) spin_unlock(&((obj)->list_lock.lock))
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tir.c | 175 mutex_lock(&res->td.list_lock); in mlx5e_tir_init() 177 mutex_unlock(&res->td.list_lock); in mlx5e_tir_init() 195 mutex_lock(&res->td.list_lock); in mlx5e_tir_destroy() 197 mutex_unlock(&res->td.list_lock); in mlx5e_tir_destroy()
|
/linux/tools/testing/selftests/timers/ |
H A D | threadtest.c | 27 pthread_mutex_t list_lock = PTHREAD_MUTEX_INITIALIZER; variable 85 pthread_mutex_lock(&list_lock); in shared_thread() 94 pthread_mutex_unlock(&list_lock); in shared_thread()
|
/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_dmm_tiler.c | 43 static DEFINE_SPINLOCK(list_lock); 266 spin_lock_irqsave(&list_lock, flags); in release_engine() 268 spin_unlock_irqrestore(&list_lock, flags); in release_engine() 320 spin_lock_irqsave(&list_lock, flags); in dmm_txn_init() 326 spin_unlock_irqrestore(&list_lock, flags); in dmm_txn_init() 563 spin_lock_irqsave(&list_lock, flags); in tiler_reserve_2d() 565 spin_unlock_irqrestore(&list_lock, flags); in tiler_reserve_2d() 587 spin_lock_irqsave(&list_lock, flags); in tiler_reserve_1d() 589 spin_unlock_irqrestore(&list_lock, flags); in tiler_reserve_1d() 603 spin_lock_irqsave(&list_lock, flags); in tiler_release() [all …]
|
/linux/drivers/scsi/qedi/ |
H A D | qedi_fw.c | 62 spin_lock(&qedi_conn->list_lock); in qedi_process_logout_resp() 73 spin_unlock(&qedi_conn->list_lock); in qedi_process_logout_resp() 126 spin_lock(&qedi_conn->list_lock); in qedi_process_text_resp() 137 spin_unlock(&qedi_conn->list_lock); in qedi_process_text_resp() 222 spin_lock(&qedi_conn->list_lock); in qedi_process_tmf_resp() 228 spin_unlock(&qedi_conn->list_lock); in qedi_process_tmf_resp() 297 spin_lock(&qedi_conn->list_lock); in qedi_process_login_resp() 303 spin_unlock(&qedi_conn->list_lock); in qedi_process_login_resp() 462 spin_lock(&qedi_conn->list_lock); in qedi_process_nopin_mesg() 469 spin_unlock(&qedi_conn->list_lock); in qedi_process_nopin_mesg() [all …]
|