| /linux/sound/soc/atmel/ |
| H A D | mchp-spdifrx.c | 302 struct mutex mlock; member 397 mutex_lock(&dev->mlock); in mchp_spdifrx_trigger() 405 mutex_unlock(&dev->mlock); in mchp_spdifrx_trigger() 410 mutex_lock(&dev->mlock); in mchp_spdifrx_trigger() 418 mutex_unlock(&dev->mlock); in mchp_spdifrx_trigger() 469 mutex_lock(&dev->mlock); in mchp_spdifrx_hw_params() 501 mutex_unlock(&dev->mlock); in mchp_spdifrx_hw_params() 535 mutex_lock(&dev->mlock); in mchp_spdifrx_cs_get() 582 mutex_unlock(&dev->mlock); in mchp_spdifrx_cs_get() 621 mutex_lock(&dev->mlock); in mchp_spdifrx_subcode_ch_get() [all …]
|
| /linux/drivers/gpu/host1x/hw/ |
| H A D | opcodes.h | 138 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/Documentation/mm/ |
| H A D | unevictable-lru.rst | 49 * 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/tools/testing/selftests/mm/ |
| H A D | .gitignore | 34 mlock-intersect-test 35 mlock-random-test
|
| H A D | mlock-random-test.c | 158 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 D | run_vmtests.sh | 42 - mlock 43 tests for mlock(2) 386 CATEGORY="mlock" run_test ./mlock-random-test
|
| H A D | Makefile | 81 TEST_GEN_FILES += mlock-random-test 255 $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap
|
| H A D | guard-regions.c | 942 /* 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/drivers/spi/ |
| H A D | spi-sn-f-ospi.c | 114 struct mutex mlock; member 410 mutex_lock(&ospi->mlock); in f_ospi_indir_read() 452 mutex_unlock(&ospi->mlock); in f_ospi_indir_read() 464 mutex_lock(&ospi->mlock); in f_ospi_indir_write() 499 mutex_unlock(&ospi->mlock); in f_ospi_indir_write() 645 ret = devm_mutex_init(dev, &ospi->mlock); in f_ospi_probe()
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-prng.c | 127 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate() 159 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate()
|
| H A D | sun8i-ss-hash.c | 310 mutex_lock(&ss->mlock); in sun8i_ss_run_hash_task() 333 mutex_unlock(&ss->mlock); in sun8i_ss_run_hash_task()
|
| /linux/drivers/media/platform/renesas/ |
| H A D | renesas-ceu.c | 199 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/drivers/iio/ |
| H A D | industrialio-trigger.c | 122 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 D | industrialio-core.c | 285 ret = mutex_lock_interruptible(&iio_dev_opaque->mlock); in iio_device_set_clock() 290 mutex_unlock(&iio_dev_opaque->mlock); in iio_device_set_clock() 294 mutex_unlock(&iio_dev_opaque->mlock); in iio_device_set_clock() 1657 mutex_destroy(&iio_dev_opaque->mlock); in iio_dev_release() 1722 mutex_init_with_key(&iio_dev_opaque->mlock, &iio_dev_opaque->mlock_key); in iio_device_alloc() 2191 mutex_lock(&to_iio_dev_opaque(indio_dev)->mlock); in __iio_dev_mode_lock() 2201 mutex_unlock(&to_iio_dev_opaque(indio_dev)->mlock); in __iio_dev_mode_unlock()
|
| H A D | industrialio-event.c | 201 fd = mutex_lock_interruptible(&iio_dev_opaque->mlock); in iio_event_getfd() 222 mutex_unlock(&iio_dev_opaque->mlock); in iio_event_getfd()
|
| H A D | industrialio-buffer.c | 583 guard(mutex)(&iio_dev_opaque->mlock); in iio_scan_el_store() 628 guard(mutex)(&iio_dev_opaque->mlock); in iio_scan_el_ts_store() 718 guard(mutex)(&iio_dev_opaque->mlock); in length_store() 1336 guard(mutex)(&iio_dev_opaque->mlock); in iio_update_buffers() 1374 guard(mutex)(&iio_dev_opaque->mlock); in enable_store() 1416 guard(mutex)(&iio_dev_opaque->mlock); in watermark_store()
|
| /linux/include/linux/iio/ |
| H A D | iio-opaque.h | 48 struct mutex mlock; member
|
| /linux/drivers/media/platform/intel/ |
| H A D | pxa_camera.c | 683 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/tools/testing/selftests/mincore/ |
| H A D | mincore_selftest.c | 107 mlock(addr, page_size); in TEST() 165 mlock(addr, page_size); in TEST()
|
| /linux/drivers/input/touchscreen/ |
| H A D | tsc2007.h | 85 struct mutex mlock; member
|
| /linux/arch/mips/include/asm/sgi/ |
| H A D | mc.h | 148 volatile u32 mlock; /* Global GIO memory access lock */ member
|
| /linux/mm/ |
| H A D | memory-failure.c | 1211 #define mlock (1UL << PG_mlocked) macro 1228 { mlock|dirty, mlock|dirty, MF_MSG_DIRTY_MLOCKED_LRU, me_pagecache_dirty }, 1229 { mlock|dirty, mlock, MF_MSG_CLEAN_MLOCKED_LRU, me_pagecache_clean }, 1246 #undef mlock
|
| /linux/drivers/pmdomain/ |
| H A D | core.c | 66 mutex_lock(&genpd->mlock); in genpd_lock_mtx() 72 mutex_lock_nested(&genpd->mlock, depth); in genpd_lock_nested_mtx() 77 return mutex_lock_interruptible(&genpd->mlock); in genpd_lock_interruptible_mtx() 82 return mutex_unlock(&genpd->mlock); in genpd_unlock_mtx() 2376 mutex_init(&genpd->mlock); in genpd_lock_init()
|
| /linux/Documentation/trace/rv/ |
| H A D | monitor_rtapp.rst | 37 To fix warnings reported by this monitor, `mlockall()` or `mlock()` can be used
|
| /linux/tools/perf/Documentation/ |
| H A D | security.txt | 147 Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
|