Home
last modified time | relevance | path

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

/drivers/block/zram/
Dzram_drv.c240 down_read(&zram->init_lock); in initstate_show()
242 up_read(&zram->init_lock); in initstate_show()
266 down_write(&zram->init_lock); in mem_limit_store()
268 up_write(&zram->init_lock); in mem_limit_store()
284 down_read(&zram->init_lock); in mem_used_max_store()
289 up_read(&zram->init_lock); in mem_used_max_store()
304 down_read(&zram->init_lock); in idle_store()
306 up_read(&zram->init_lock); in idle_store()
322 up_read(&zram->init_lock); in idle_store()
338 down_read(&zram->init_lock); in writeback_limit_enable_store()
[all …]
Dzram_drv.h99 struct rw_semaphore init_lock; member
/drivers/platform/chrome/
Dcros_ec_ishtp.c82 static DECLARE_RWSEM(init_lock);
225 if (!down_read_trylock(&init_lock)) { in process_recv()
336 up_read(&init_lock); in process_recv()
510 if (!down_read_trylock(&init_lock)) { in cros_ec_pkt_xfer_ish()
556 up_read(&init_lock); in cros_ec_pkt_xfer_ish()
595 down_write(&init_lock); in reset_handler()
607 up_write(&init_lock); in reset_handler()
619 up_write(&init_lock); in reset_handler()
630 up_write(&init_lock); in reset_handler()
650 down_write(&init_lock); in cros_ec_ishtp_probe()
[all …]
/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()
/drivers/tty/serial/
Dfsl_linflexuart.c134 static DEFINE_SPINLOCK(init_lock);
603 spin_lock_irqsave(&init_lock, flags); in linflex_earlycon_putchar()
632 spin_unlock_irqrestore(&init_lock, flags); in linflex_earlycon_putchar()
735 spin_lock_irqsave(&init_lock, flags); in linflex_console_setup()
737 spin_unlock_irqrestore(&init_lock, flags); in linflex_console_setup()
753 spin_lock_irqsave(&init_lock, flags); in linflex_console_setup()
766 spin_unlock_irqrestore(&init_lock, flags); in linflex_console_setup()
/drivers/iommu/
Dapple-dart.c155 struct mutex init_lock; member
410 mutex_lock(&dart_domain->init_lock); in apple_dart_finalize_domain()
444 mutex_unlock(&dart_domain->init_lock); in apple_dart_finalize_domain()
587 mutex_init(&dart_domain->init_lock); in apple_dart_domain_alloc()
/drivers/nvdimm/
Dbtt.h229 struct mutex init_lock; member
Dbtt.c1031 mutex_lock(&btt->init_lock); in btt_meta_init()
1053 mutex_unlock(&btt->init_lock); in btt_meta_init()
1593 mutex_init(&btt->init_lock); in btt_init()
/drivers/gpu/drm/msm/
Dmsm_drv.c682 static DEFINE_MUTEX(init_lock); in load_gpu()
685 mutex_lock(&init_lock); in load_gpu()
690 mutex_unlock(&init_lock); in load_gpu()