Home
last modified time | relevance | path

Searched refs:list_lock (Results 1 – 25 of 117) sorted by relevance

12345

/linux-6.6.21/drivers/gpu/drm/msm/disp/
Dmdp_kms.c19 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-6.6.21/drivers/staging/most/video/
Dvideo.c36 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-6.6.21/Documentation/RCU/
Drcuref.rst24 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-6.6.21/drivers/soc/qcom/
Dpdr_interface.c44 struct mutex list_lock; member
89 mutex_lock(&pdr->list_lock); in pdr_locator_new_server()
94 mutex_unlock(&pdr->list_lock); in pdr_locator_new_server()
171 mutex_lock(&pdr->list_lock); in pdr_notifier_work()
193 mutex_unlock(&pdr->list_lock); in pdr_notifier_work()
203 mutex_lock(&pdr->list_lock); in pdr_notifier_new_server()
215 mutex_unlock(&pdr->list_lock); in pdr_notifier_new_server()
227 mutex_lock(&pdr->list_lock); in pdr_notifier_del_server()
238 mutex_unlock(&pdr->list_lock); in pdr_notifier_del_server()
291 mutex_lock(&pdr->list_lock); in pdr_indack_work()
[all …]
Dsmem_state.c14 static DEFINE_MUTEX(list_lock);
63 mutex_lock(&list_lock); in of_node_to_state()
74 mutex_unlock(&list_lock); in of_node_to_state()
149 mutex_lock(&list_lock); in qcom_smem_state_put()
151 mutex_unlock(&list_lock); in qcom_smem_state_put()
213 mutex_lock(&list_lock); in qcom_smem_state_register()
215 mutex_unlock(&list_lock); in qcom_smem_state_register()
/linux-6.6.21/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c63 spinlock_t list_lock; member
160 spin_lock_irqsave(&sp->list_lock, irq_flags); in pvr2_buffer_set_none()
162 spin_unlock_irqrestore(&sp->list_lock, irq_flags); in pvr2_buffer_set_none()
177 spin_lock_irqsave(&sp->list_lock, irq_flags); in pvr2_buffer_set_ready()
188 spin_unlock_irqrestore(&sp->list_lock, irq_flags); in pvr2_buffer_set_ready()
203 spin_lock_irqsave(&sp->list_lock, irq_flags); in pvr2_buffer_set_idle()
213 spin_unlock_irqrestore(&sp->list_lock, irq_flags); in pvr2_buffer_set_idle()
227 spin_lock_irqsave(&sp->list_lock, irq_flags); in pvr2_buffer_set_queued()
237 spin_unlock_irqrestore(&sp->list_lock, irq_flags); in pvr2_buffer_set_queued()
400 spin_lock_init(&sp->list_lock); in pvr2_stream_init()
[all …]
/linux-6.6.21/drivers/media/v4l2-core/
Dv4l2-async.c176 static DEFINE_MUTEX(list_lock);
517 lockdep_assert_held(&list_lock); in v4l2_async_nf_has_async_match()
584 mutex_lock(&list_lock); in __v4l2_async_nf_register()
603 mutex_unlock(&list_lock); in __v4l2_async_nf_register()
614 mutex_unlock(&list_lock); in __v4l2_async_nf_register()
647 mutex_lock(&list_lock); in v4l2_async_nf_unregister()
651 mutex_unlock(&list_lock); in v4l2_async_nf_unregister()
680 mutex_lock(&list_lock); in v4l2_async_nf_cleanup()
684 mutex_unlock(&list_lock); in v4l2_async_nf_cleanup()
691 mutex_lock(&list_lock); in __v4l2_async_nf_add_connection()
[all …]
/linux-6.6.21/drivers/iio/buffer/
Dindustrialio-buffer-dma.c218 spin_lock_irqsave(&queue->list_lock, flags); in iio_dma_buffer_block_done()
220 spin_unlock_irqrestore(&queue->list_lock, flags); in iio_dma_buffer_block_done()
243 spin_lock_irqsave(&queue->list_lock, flags); in iio_dma_buffer_block_list_abort()
250 spin_unlock_irqrestore(&queue->list_lock, flags); in iio_dma_buffer_block_list_abort()
306 spin_lock_irq(&queue->list_lock); in iio_dma_buffer_request_update()
321 spin_unlock_irq(&queue->list_lock); in iio_dma_buffer_request_update()
460 spin_lock_irq(&queue->list_lock); in iio_dma_buffer_dequeue()
467 spin_unlock_irq(&queue->list_lock); in iio_dma_buffer_dequeue()
554 spin_lock_irq(&queue->list_lock); in iio_dma_buffer_data_available()
557 spin_unlock_irq(&queue->list_lock); in iio_dma_buffer_data_available()
[all …]
/linux-6.6.21/net/hsr/
Dhsr_framereg.c90 spin_lock_bh(&hsr->list_lock); in hsr_create_self_node()
92 lockdep_is_held(&hsr->list_lock)); in hsr_create_self_node()
93 spin_unlock_bh(&hsr->list_lock); in hsr_create_self_node()
104 spin_lock_bh(&hsr->list_lock); in hsr_del_self_node()
106 lockdep_is_held(&hsr->list_lock)); in hsr_del_self_node()
107 spin_unlock_bh(&hsr->list_lock); in hsr_del_self_node()
169 spin_lock_bh(&hsr->list_lock); in hsr_add_node()
171 lockdep_is_held(&hsr->list_lock)) { in hsr_add_node()
178 spin_unlock_bh(&hsr->list_lock); in hsr_add_node()
181 spin_unlock_bh(&hsr->list_lock); in hsr_add_node()
[all …]
/linux-6.6.21/drivers/scsi/
Dscsi_dh.c16 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-6.6.21/net/batman-adv/
Dhash.h85 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()
Dgateway_client.c133 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-6.6.21/drivers/s390/cio/
Deadm_sch.c37 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-6.6.21/drivers/staging/greybus/
Draw.c23 struct mutex list_lock; member
66 mutex_lock(&raw->list_lock); in receive_data()
85 mutex_unlock(&raw->list_lock); in receive_data()
176 mutex_init(&raw->list_lock); in gb_raw_probe()
238 mutex_lock(&raw->list_lock); in gb_raw_disconnect()
243 mutex_unlock(&raw->list_lock); in gb_raw_disconnect()
292 mutex_lock(&raw->list_lock); in raw_read()
313 mutex_unlock(&raw->list_lock); in raw_read()
/linux-6.6.21/fs/
Dfs-writeback.c122 assert_spin_locked(&wb->list_lock); in inode_io_list_move_locked()
282 assert_spin_locked(&wb->list_lock); in inode_cgwb_move_to_attached()
305 __acquires(&wb->list_lock) in locked_inode_to_wb_and_lock_list()
318 spin_lock(&wb->list_lock); in locked_inode_to_wb_and_lock_list()
326 spin_unlock(&wb->list_lock); in locked_inode_to_wb_and_lock_list()
341 __acquires(&wb->list_lock) in inode_to_wb_and_lock_list()
493 spin_lock(&old_wb->list_lock); in inode_switch_wbs_work_fn()
494 spin_lock_nested(&new_wb->list_lock, SINGLE_DEPTH_NESTING); in inode_switch_wbs_work_fn()
496 spin_lock(&new_wb->list_lock); in inode_switch_wbs_work_fn()
497 spin_lock_nested(&old_wb->list_lock, SINGLE_DEPTH_NESTING); in inode_switch_wbs_work_fn()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/core/
Devent.c84 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-6.6.21/drivers/xen/
Dunpopulated-alloc.c15 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-6.6.21/drivers/pci/endpoint/
Dpci-epc-core.c615 mutex_lock(&epc->list_lock); in pci_epc_add_epf()
642 mutex_unlock(&epc->list_lock); in pci_epc_add_epf()
674 mutex_lock(&epc->list_lock); in pci_epc_remove_epf()
678 mutex_unlock(&epc->list_lock); in pci_epc_remove_epf()
697 mutex_lock(&epc->list_lock); in pci_epc_linkup()
704 mutex_unlock(&epc->list_lock); in pci_epc_linkup()
723 mutex_lock(&epc->list_lock); in pci_epc_linkdown()
730 mutex_unlock(&epc->list_lock); in pci_epc_linkdown()
749 mutex_lock(&epc->list_lock); in pci_epc_init_notify()
756 mutex_unlock(&epc->list_lock); in pci_epc_init_notify()
[all …]
/linux-6.6.21/net/netfilter/
Dnf_conncount.c88 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()
430 spin_lock_bh(&rbconn->list.list_lock); in count_tree()
435 spin_unlock_bh(&rbconn->list.list_lock); in count_tree()
[all …]
/linux-6.6.21/sound/pci/ctxfi/
Dcttimer.c47 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-6.6.21/mm/
Dslab.c236 raw_spin_lock_init(&parent->list_lock); in kmem_cache_node_init()
561 raw_spin_lock(&n->list_lock); in cache_free_pfmemalloc()
563 raw_spin_unlock(&n->list_lock); in cache_free_pfmemalloc()
686 raw_spin_lock(&n->list_lock); in __drain_alien_cache()
697 raw_spin_unlock(&n->list_lock); in __drain_alien_cache()
770 raw_spin_lock(&n->list_lock); in __cache_free_alien()
772 raw_spin_unlock(&n->list_lock); in __cache_free_alien()
813 raw_spin_lock_irq(&n->list_lock); in init_cache_node()
816 raw_spin_unlock_irq(&n->list_lock); in init_cache_node()
895 raw_spin_lock_irq(&n->list_lock); in setup_kmem_cache_node()
[all …]
/linux-6.6.21/drivers/staging/most/net/
Dnet.c72 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-6.6.21/sound/pci/asihpi/
Dhpios.h132 #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-6.6.21/fs/btrfs/
Dasync-thread.c33 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()
349 spin_lock_irqsave(&wq->list_lock, flags); in btrfs_queue_work()
351 spin_unlock_irqrestore(&wq->list_lock, flags); in btrfs_queue_work()
/linux-6.6.21/drivers/s390/block/
Dscm_blk.c27 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()

12345