Home
last modified time | relevance | path

Searched refs:init_lock (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/block/zram/
Dzram_drv.c238 down_read(&zram->init_lock); in initstate_show()
240 up_read(&zram->init_lock); in initstate_show()
264 down_write(&zram->init_lock); in mem_limit_store()
266 up_write(&zram->init_lock); in mem_limit_store()
282 down_read(&zram->init_lock); in mem_used_max_store()
287 up_read(&zram->init_lock); in mem_used_max_store()
341 down_read(&zram->init_lock); in idle_store()
353 up_read(&zram->init_lock); in idle_store()
369 down_read(&zram->init_lock); in writeback_limit_enable_store()
373 up_read(&zram->init_lock); in writeback_limit_enable_store()
[all …]
Dzram_drv.h98 struct rw_semaphore init_lock; member
/linux-6.1.9/drivers/platform/chrome/
Dcros_ec_ishtp.c85 static DECLARE_RWSEM(init_lock);
228 if (!down_read_trylock(&init_lock)) { in process_recv()
339 up_read(&init_lock); in process_recv()
513 if (!down_read_trylock(&init_lock)) { in cros_ec_pkt_xfer_ish()
561 up_read(&init_lock); in cros_ec_pkt_xfer_ish()
600 down_write(&init_lock); in reset_handler()
612 up_write(&init_lock); in reset_handler()
624 up_write(&init_lock); in reset_handler()
635 up_write(&init_lock); in reset_handler()
655 down_write(&init_lock); in cros_ec_ishtp_probe()
[all …]
/linux-6.1.9/drivers/net/wireguard/
Dratelimiter.c15 static DEFINE_MUTEX(init_lock);
160 mutex_lock(&init_lock); in wg_ratelimiter_init()
194 mutex_unlock(&init_lock); in wg_ratelimiter_init()
201 mutex_unlock(&init_lock); in wg_ratelimiter_init()
207 mutex_lock(&init_lock); in wg_ratelimiter_uninit()
220 mutex_unlock(&init_lock); in wg_ratelimiter_uninit()
/linux-6.1.9/fs/ksmbd/
Dconnection.c18 static DEFINE_MUTEX(init_lock);
395 mutex_lock(&init_lock); in ksmbd_conn_transport_init()
408 mutex_unlock(&init_lock); in ksmbd_conn_transport_init()
444 mutex_lock(&init_lock); in ksmbd_conn_transport_destroy()
448 mutex_unlock(&init_lock); in ksmbd_conn_transport_destroy()
/linux-6.1.9/drivers/tty/serial/
Dfsl_linflexuart.c134 static DEFINE_SPINLOCK(init_lock);
591 spin_lock_irqsave(&init_lock, flags); in linflex_earlycon_putchar()
620 spin_unlock_irqrestore(&init_lock, flags); in linflex_earlycon_putchar()
723 spin_lock_irqsave(&init_lock, flags); in linflex_console_setup()
725 spin_unlock_irqrestore(&init_lock, flags); in linflex_console_setup()
741 spin_lock_irqsave(&init_lock, flags); in linflex_console_setup()
754 spin_unlock_irqrestore(&init_lock, flags); in linflex_console_setup()
/linux-6.1.9/arch/powerpc/platforms/pasemi/
Ddma_lib.c501 static DEFINE_SPINLOCK(init_lock); in pasemi_dma_init()
513 spin_lock(&init_lock); in pasemi_dma_init()
618 spin_unlock(&init_lock); in pasemi_dma_init()
/linux-6.1.9/drivers/iommu/
Dapple-dart.c163 struct mutex init_lock; member
418 mutex_lock(&dart_domain->init_lock); in apple_dart_finalize_domain()
452 mutex_unlock(&dart_domain->init_lock); in apple_dart_finalize_domain()
591 mutex_init(&dart_domain->init_lock); in apple_dart_domain_alloc()
/linux-6.1.9/drivers/nvdimm/
Dbtt.h229 struct mutex init_lock; member
Dbtt.c1030 mutex_lock(&btt->init_lock); in btt_meta_init()
1052 mutex_unlock(&btt->init_lock); in btt_meta_init()
1596 mutex_init(&btt->init_lock); in btt_init()
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_drv.c555 static DEFINE_MUTEX(init_lock); in load_gpu()
558 mutex_lock(&init_lock); in load_gpu()
563 mutex_unlock(&init_lock); in load_gpu()