Home
last modified time | relevance | path

Searched refs:mlock (Results 1 – 25 of 40) sorted by relevance

12

/linux/sound/soc/atmel/
H A Dmchp-spdifrx.c299 * @mlock: mutex to protect concurency b/w configuration and control APIs
309 struct mutex mlock;
404 mutex_lock(&dev->mlock); in mchp_spdifrx_trigger()
412 mutex_unlock(&dev->mlock); in mchp_spdifrx_trigger()
417 mutex_lock(&dev->mlock); in mchp_spdifrx_trigger()
425 mutex_unlock(&dev->mlock); in mchp_spdifrx_trigger()
476 mutex_lock(&dev->mlock); in mchp_spdifrx_hw_params()
508 mutex_unlock(&dev->mlock);
542 mutex_lock(&dev->mlock); in mchp_spdifrx_cs_get()
589 mutex_unlock(&dev->mlock); in mchp_spdifrx_cs1_get()
302 struct mutex mlock; global() member
[all...]
/linux/drivers/gpu/host1x/hw/
H A Dopcodes.h138 static inline u32 host1x_opcode_acquire_mlock(unsigned mlock) in host1x_opcode_acquire_mlock() argument
140 return (14 << 28) | (0 << 24) | mlock; in host1x_opcode_acquire_mlock()
143 static inline u32 host1x_opcode_release_mlock(unsigned mlock) in host1x_opcode_release_mlock() argument
145 return (14 << 28) | (1 << 24) | mlock; in host1x_opcode_release_mlock()
/linux/tools/testing/selftests/mm/
H A D.gitignore
H A Dmlock-random-test.c158 ret = mlock(p + start_offset, lock_size); in test_mlock_within_limit()
220 ret = mlock(p + start_offset, lock_size); in test_mlock_outof_limit()
H A DMakefile79 TEST_GEN_FILES += mlock-random-test
257 $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap
H A Drun_vmtests.sh42 - mlock
43 tests for mlock(2)
305 CATEGORY="mlock" run_test sudo -u nobody sh -c ./on-fault-limit
313 CATEGORY="mlock" run_test ./mlock-random-test
315 CATEGORY="mlock" run_test ./mlock2-tests
H A Dguard-regions.c942 /* Assert that mlock()'ed pages work correctly with guard markers. */ in TEST_F() argument
943 TEST_F(guard_regions, mlock) in TEST_F()
961 ASSERT_EQ(mlock(ptr, 10 * page_size), 0); in TEST_F()
991 ASSERT_EQ(mlock(&ptr[5 * page_size], 5 * page_size), 0); in TEST_F()
994 * Now remove guard pages, we permit mlock()'d ranges to have guard in TEST_F()
/linux/Documentation/mm/
H A Dunevictable-lru.rst49 * Those mapped into VM_LOCKED [mlock()ed] VMAs.
169 the page tables for the region as does, for example, mlock(), nor need it make
189 list at mlock() or mmap() time, vmscan will not encounter the folios until they
216 The unevictable folio list is also useful for mlock(), in addition to ramfs and
217 SYSV SHM. Note that mlock() is only available in CONFIG_MMU=y situations; in
262 (1) in the mlock()/mlock2()/mlockall() system call handlers;
288 mlock()/mlock2()/mlockall() System Call Handling
291 mlock(), mlock2() and mlockall() system call handlers proceed to mlock_fixup()
294 is used for both mlocking and munlocking a range of memory. A call to mlock()
321 mlock folio batch, to batch up the rest of the work to be done under lru_lock by
[all …]
/linux/drivers/media/platform/renesas/
H A Drenesas-ceu.c199 struct mutex mlock; member
1091 mutex_lock(&ceudev->mlock); in ceu_open()
1094 mutex_unlock(&ceudev->mlock); in ceu_open()
1105 mutex_lock(&ceudev->mlock); in ceu_release()
1108 mutex_unlock(&ceudev->mlock); in ceu_release()
1401 q->lock = &ceudev->mlock; in ceu_notify_complete()
1430 vdev->lock = &ceudev->mlock; in ceu_notify_complete()
1628 mutex_init(&ceudev->mlock); in ceu_probe()
/linux/include/linux/iio/
H A Diio-opaque.h48 struct mutex mlock; member
/linux/drivers/iio/
H A Dindustrialio-trigger.c122 guard(mutex)(&iio_dev_opaque->mlock); in iio_trigger_set_immutable()
448 scoped_guard(mutex, &iio_dev_opaque->mlock) { in current_trigger_store()
776 guard(mutex)(&iio_dev_opaque->mlock); in iio_device_suspend_triggering()
789 guard(mutex)(&iio_dev_opaque->mlock); in iio_device_resume_triggering()
H A Dindustrialio-event.c201 fd = mutex_lock_interruptible(&iio_dev_opaque->mlock); in iio_event_getfd()
221 mutex_unlock(&iio_dev_opaque->mlock); in iio_event_getfd()
/linux/tools/testing/selftests/mincore/
H A Dmincore_selftest.c107 mlock(addr, page_size); in TEST()
165 mlock(addr, page_size); in TEST()
/linux/drivers/media/platform/intel/
H A Dpxa_camera.c683 struct mutex mlock; member
1524 vq->lock = &pcdev->mlock; in pxa_camera_init_videobuf2()
1961 mutex_lock(&pcdev->mlock); in pxac_fops_camera_open()
1973 mutex_unlock(&pcdev->mlock); in pxac_fops_camera_open()
1983 mutex_lock(&pcdev->mlock); in pxac_fops_camera_release()
1992 mutex_unlock(&pcdev->mlock); in pxac_fops_camera_release()
2060 mutex_lock(&pcdev->mlock); in pxa_camera_sensor_bound()
2063 vdev->lock = &pcdev->mlock; in pxa_camera_sensor_bound()
2119 mutex_unlock(&pcdev->mlock); in pxa_camera_sensor_bound()
2129 mutex_lock(&pcdev->mlock); in pxa_camera_sensor_unbind()
[all …]
/linux/drivers/input/touchscreen/
H A Dtsc2007.h85 struct mutex mlock; member
H A Dtsc2007_core.c123 scoped_guard(mutex, &ts->mlock) { in tsc2007_soft_irq()
329 mutex_init(&ts->mlock); in tsc2007_probe()
/linux/drivers/gpu/drm/bridge/
H A Dssd2825.c134 struct mutex mlock; /* for host transfer operations */ member
354 guard(mutex)(&priv->mlock); in ssd2825_dsi_host_transfer()
717 mutex_init(&priv->mlock); in ssd2825_probe()
/linux/drivers/gpio/
H A Dgpio-aggregator.c242 struct mutex mlock; /* protects tmp[] if can_sleep */ member
334 mutex_lock(&fwd->mlock); in gpio_fwd_get_multiple_locked()
336 mutex_unlock(&fwd->mlock); in gpio_fwd_get_multiple_locked()
413 mutex_lock(&fwd->mlock); in gpio_fwd_set_multiple_locked()
415 mutex_unlock(&fwd->mlock); in gpio_fwd_set_multiple_locked()
798 mutex_init(&fwd->mlock); in gpiochip_fwd_register()
/linux/arch/mips/include/asm/sgi/
H A Dmc.h148 volatile u32 mlock; /* Global GIO memory access lock */ member
/linux/tools/testing/selftests/ublk/
H A Dbatch.c106 if (mlock(t->commit_buf, total)) in alloc_batch_commit_buf()
197 if (mlock(t->fetch[i].fetch_buf, t->fetch[i].fetch_buf_size)) in alloc_batch_fetch_buf()
/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c310 mutex_lock(&ss->mlock); in sun8i_ss_run_hash_task()
333 mutex_unlock(&ss->mlock); in sun8i_ss_run_hash_task()
/linux/drivers/pmdomain/imx/
H A Dimx93-blk-ctrl.c314 lockdep_set_class(&domain->genpd.mlock, in imx93_blk_ctrl_probe()
/linux/tools/perf/Documentation/
H A Dsecurity.txt147 Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl156 146 n64 mlock sys_mlock
/linux/scripts/
H A Dsyscall.tbl274 228 common mlock sys_mlock

12