Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/tools/testing/selftests/vm/
D.gitignore15 mlock-intersect-test
16 mlock-random-test
DMakefile33 TEST_GEN_FILES += mlock-random-test
136 $(OUTPUT)/mlock-random-test: LDLIBS += -lcap
Dmlock-random-test.c166 ret = mlock(p + start_offset, lock_size); in test_mlock_within_limit()
238 ret = mlock(p + start_offset, lock_size); in test_mlock_outof_limit()
/kernel/linux/linux-5.10/Documentation/vm/
Dunevictable-lru.rst49 * Those mapped into VM_LOCKED [mlock()ed] VMAs.
172 the page tables for the region as does, for example, mlock(), nor need it make
192 list at mlock() or mmap() time, vmscan will not encounter the pages until they
222 The unevictable page list is also useful for mlock(), in addition to ramfs and
223 SYSV SHM. Note that mlock() is only available in CONFIG_MMU=y situations; in
259 (1) in the mlock()/mlockall() system call handlers;
289 mlock()/mlockall() System Call Handling
292 Both [do\_]mlock() and [do\_]mlockall() system call handlers call mlock_fixup()
295 is used for both mlocking and munlocking a range of memory. A call to mlock()
312 migrated out from under us, while we're trying to mlock it. To detect this,
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dlpc32xx_adc.c67 mutex_lock(&indio_dev->mlock); in lpc32xx_read_raw()
70 mutex_unlock(&indio_dev->mlock); in lpc32xx_read_raw()
83 mutex_unlock(&indio_dev->mlock); in lpc32xx_read_raw()
Dvf610_adc.c471 mutex_lock(&indio_dev->mlock); in vf610_set_conversion_mode()
475 mutex_unlock(&indio_dev->mlock); in vf610_set_conversion_mode()
639 mutex_lock(&indio_dev->mlock); in vf610_read_raw()
641 mutex_unlock(&indio_dev->mlock); in vf610_read_raw()
652 mutex_unlock(&indio_dev->mlock); in vf610_read_raw()
656 mutex_unlock(&indio_dev->mlock); in vf610_read_raw()
675 mutex_unlock(&indio_dev->mlock); in vf610_read_raw()
679 mutex_unlock(&indio_dev->mlock); in vf610_read_raw()
Drockchip_saradc.c95 mutex_lock(&indio_dev->mlock); in rockchip_saradc_read_raw()
100 mutex_unlock(&indio_dev->mlock); in rockchip_saradc_read_raw()
105 mutex_unlock(&indio_dev->mlock); in rockchip_saradc_read_raw()
257 mutex_lock(&i_dev->mlock); in rockchip_saradc_trigger_handler()
274 mutex_unlock(&i_dev->mlock); in rockchip_saradc_trigger_handler()
Dspear_adc.c149 mutex_lock(&indio_dev->mlock); in spear_adc_read_raw()
162 mutex_unlock(&indio_dev->mlock); in spear_adc_read_raw()
190 mutex_lock(&indio_dev->mlock); in spear_adc_write_raw()
202 mutex_unlock(&indio_dev->mlock); in spear_adc_write_raw()
Dad799x.c356 mutex_lock(&indio_dev->mlock); in ad799x_write_frequency()
378 mutex_unlock(&indio_dev->mlock); in ad799x_write_frequency()
459 mutex_lock(&indio_dev->mlock); in ad799x_write_event_value()
463 mutex_unlock(&indio_dev->mlock); in ad799x_write_event_value()
478 mutex_lock(&indio_dev->mlock); in ad799x_read_event_value()
481 mutex_unlock(&indio_dev->mlock); in ad799x_read_event_value()
Dimx7d_adc.c295 mutex_lock(&indio_dev->mlock); in imx7d_adc_read_raw()
305 mutex_unlock(&indio_dev->mlock); in imx7d_adc_read_raw()
309 mutex_unlock(&indio_dev->mlock); in imx7d_adc_read_raw()
314 mutex_unlock(&indio_dev->mlock); in imx7d_adc_read_raw()
Dsc27xx_adc.c336 mutex_lock(&indio_dev->mlock); in sc27xx_adc_read_raw()
338 mutex_unlock(&indio_dev->mlock); in sc27xx_adc_read_raw()
347 mutex_lock(&indio_dev->mlock); in sc27xx_adc_read_raw()
350 mutex_unlock(&indio_dev->mlock); in sc27xx_adc_read_raw()
Dltc2497-core.c84 mutex_lock(&indio_dev->mlock); in ltc2497core_read_raw()
86 mutex_unlock(&indio_dev->mlock); in ltc2497core_read_raw()
Daxp288_adc.c164 mutex_lock(&indio_dev->mlock); in axp288_adc_read_raw()
181 mutex_unlock(&indio_dev->mlock); in axp288_adc_read_raw()
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-aggregator.c301 struct mutex mlock; /* protects tmp[] if can_sleep */ member
375 mutex_lock(&fwd->mlock); in gpio_fwd_get_multiple_locked()
377 mutex_unlock(&fwd->mlock); in gpio_fwd_get_multiple_locked()
426 mutex_lock(&fwd->mlock); in gpio_fwd_set_multiple_locked()
428 mutex_unlock(&fwd->mlock); in gpio_fwd_set_multiple_locked()
507 mutex_init(&fwd->mlock); in gpiochip_fwd_create()
/kernel/linux/linux-5.10/drivers/iio/
Dindustrialio-trigger.c123 mutex_lock(&indio_dev->mlock); in iio_trigger_set_immutable()
128 mutex_unlock(&indio_dev->mlock); in iio_trigger_set_immutable()
408 mutex_lock(&indio_dev->mlock); in iio_trigger_write_current()
410 mutex_unlock(&indio_dev->mlock); in iio_trigger_write_current()
414 mutex_unlock(&indio_dev->mlock); in iio_trigger_write_current()
417 mutex_unlock(&indio_dev->mlock); in iio_trigger_write_current()
Dindustrialio-buffer.c388 mutex_lock(&indio_dev->mlock); in iio_scan_el_store()
407 mutex_unlock(&indio_dev->mlock); in iio_scan_el_store()
437 mutex_lock(&indio_dev->mlock); in iio_scan_el_ts_store()
444 mutex_unlock(&indio_dev->mlock); in iio_scan_el_ts_store()
528 mutex_lock(&indio_dev->mlock); in iio_buffer_write_length()
540 mutex_unlock(&indio_dev->mlock); in iio_buffer_write_length()
1123 mutex_lock(&indio_dev->mlock); in iio_update_buffers()
1144 mutex_unlock(&indio_dev->mlock); in iio_update_buffers()
1172 mutex_lock(&indio_dev->mlock); in iio_buffer_store_enable()
1186 mutex_unlock(&indio_dev->mlock); in iio_buffer_store_enable()
[all …]
DTODO10 - Replace iio_dev->mlock by either a local lock or use
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dtsc2007_iio.c52 mutex_lock(&tsc->mlock); in tsc2007_read_raw()
95 mutex_unlock(&tsc->mlock); in tsc2007_read_raw()
Dtsc2007_core.c121 mutex_lock(&ts->mlock); in tsc2007_soft_irq()
123 mutex_unlock(&ts->mlock); in tsc2007_soft_irq()
352 mutex_init(&ts->mlock); in tsc2007_probe()
Dtsc2007.h81 struct mutex mlock; member
/kernel/linux/linux-5.10/drivers/iio/common/st_sensors/
Dst_sensors_core.c561 mutex_lock(&indio_dev->mlock); in st_sensors_read_info_raw()
586 mutex_unlock(&indio_dev->mlock); in st_sensors_read_info_raw()
659 mutex_lock(&indio_dev->mlock); in st_sensors_sysfs_sampling_frequency_avail()
667 mutex_unlock(&indio_dev->mlock); in st_sensors_sysfs_sampling_frequency_avail()
681 mutex_lock(&indio_dev->mlock); in st_sensors_sysfs_scale_avail()
691 mutex_unlock(&indio_dev->mlock); in st_sensors_sysfs_scale_avail()
/kernel/linux/linux-5.10/drivers/lightnvm/
Dcore.c57 mutex_lock(&dev->mlock); in nvm_target_exists()
61 mutex_unlock(&dev->mlock); in nvm_target_exists()
65 mutex_unlock(&dev->mlock); in nvm_target_exists()
420 mutex_lock(&dev->mlock); in nvm_create_tgt()
422 mutex_unlock(&dev->mlock); in nvm_create_tgt()
483 mutex_lock(&dev->mlock); in nvm_remove_tgt()
486 mutex_unlock(&dev->mlock); in nvm_remove_tgt()
489 mutex_unlock(&dev->mlock); in nvm_remove_tgt()
1105 mutex_init(&dev->mlock); in nvm_core_init()
1213 mutex_lock(&dev->mlock); in nvm_unregister()
[all …]
/kernel/liteos_a/testsuites/unittest/fuzz/
Dmlock_fuzzer.cpp43 mlock(p, lockSize); in TestMlock()
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-prng.c124 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate()
156 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate()
/kernel/linux/linux-5.10/drivers/iio/gyro/
Ditg3200_core.c142 mutex_lock(&indio_dev->mlock); in itg3200_write_raw()
146 mutex_unlock(&indio_dev->mlock); in itg3200_write_raw()
155 mutex_unlock(&indio_dev->mlock); in itg3200_write_raw()

1234