Home
last modified time | relevance | path

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

1234

/Linux-v5.15/tools/testing/selftests/vm/
D.gitignore19 mlock-intersect-test
20 mlock-random-test
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()
DMakefile39 TEST_GEN_FILES += mlock-random-test
140 $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap
/Linux-v5.15/Documentation/vm/
Dunevictable-lru.rst49 * Those mapped into VM_LOCKED [mlock()ed] VMAs.
166 the page tables for the region as does, for example, mlock(), nor need it make
186 list at mlock() or mmap() time, vmscan will not encounter the pages until they
216 The unevictable page 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
253 (1) in the mlock()/mlockall() system call handlers;
283 mlock()/mlockall() System Call Handling
286 Both [do\_]mlock() and [do\_]mlockall() system call handlers call mlock_fixup()
289 is used for both mlocking and munlocking a range of memory. A call to mlock()
306 migrated out from under us, while we're trying to mlock it. To detect this,
[all …]
/Linux-v5.15/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.c97 mutex_lock(&indio_dev->mlock); in rockchip_saradc_read_raw()
102 mutex_unlock(&indio_dev->mlock); in rockchip_saradc_read_raw()
107 mutex_unlock(&indio_dev->mlock); in rockchip_saradc_read_raw()
273 mutex_lock(&i_dev->mlock); in rockchip_saradc_trigger_handler()
290 mutex_unlock(&i_dev->mlock); in rockchip_saradc_trigger_handler()
Dad799x.c350 mutex_lock(&indio_dev->mlock); in ad799x_write_frequency()
372 mutex_unlock(&indio_dev->mlock); in ad799x_write_frequency()
453 mutex_lock(&indio_dev->mlock); in ad799x_write_event_value()
457 mutex_unlock(&indio_dev->mlock); in ad799x_write_event_value()
472 mutex_lock(&indio_dev->mlock); in ad799x_read_event_value()
475 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()
/Linux-v5.15/drivers/gpio/
Dgpio-aggregator.c244 struct mutex mlock; /* protects tmp[] if can_sleep */ member
314 mutex_lock(&fwd->mlock); in gpio_fwd_get_multiple_locked()
316 mutex_unlock(&fwd->mlock); in gpio_fwd_get_multiple_locked()
359 mutex_lock(&fwd->mlock); in gpio_fwd_set_multiple_locked()
361 mutex_unlock(&fwd->mlock); in gpio_fwd_set_multiple_locked()
440 mutex_init(&fwd->mlock); in gpiochip_fwd_create()
/Linux-v5.15/drivers/iio/
Dindustrialio-trigger.c126 mutex_lock(&indio_dev->mlock); in iio_trigger_set_immutable()
131 mutex_unlock(&indio_dev->mlock); in iio_trigger_set_immutable()
413 mutex_lock(&indio_dev->mlock); in iio_trigger_write_current()
415 mutex_unlock(&indio_dev->mlock); in iio_trigger_write_current()
419 mutex_unlock(&indio_dev->mlock); in iio_trigger_write_current()
422 mutex_unlock(&indio_dev->mlock); in iio_trigger_write_current()
Dindustrialio-buffer.c422 mutex_lock(&indio_dev->mlock); in iio_scan_el_store()
441 mutex_unlock(&indio_dev->mlock); in iio_scan_el_store()
470 mutex_lock(&indio_dev->mlock); in iio_scan_el_ts_store()
477 mutex_unlock(&indio_dev->mlock); in iio_scan_el_ts_store()
564 mutex_lock(&indio_dev->mlock); in iio_buffer_write_length()
576 mutex_unlock(&indio_dev->mlock); in iio_buffer_write_length()
1160 mutex_lock(&indio_dev->mlock); in iio_update_buffers()
1181 mutex_unlock(&indio_dev->mlock); in iio_update_buffers()
1209 mutex_lock(&indio_dev->mlock); in iio_buffer_store_enable()
1223 mutex_unlock(&indio_dev->mlock); in iio_buffer_store_enable()
[all …]
DTODO10 - Replace iio_dev->mlock by either a local lock or use
/Linux-v5.15/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.c122 mutex_lock(&ts->mlock); in tsc2007_soft_irq()
124 mutex_unlock(&ts->mlock); in tsc2007_soft_irq()
340 mutex_init(&ts->mlock); in tsc2007_probe()
Dtsc2007.h83 struct mutex mlock; member
/Linux-v5.15/drivers/iio/common/st_sensors/
Dst_sensors_core.c556 mutex_lock(&indio_dev->mlock); in st_sensors_read_info_raw()
575 mutex_unlock(&indio_dev->mlock); in st_sensors_read_info_raw()
648 mutex_lock(&indio_dev->mlock); in st_sensors_sysfs_sampling_frequency_avail()
656 mutex_unlock(&indio_dev->mlock); in st_sensors_sysfs_sampling_frequency_avail()
670 mutex_lock(&indio_dev->mlock); in st_sensors_sysfs_scale_avail()
680 mutex_unlock(&indio_dev->mlock); in st_sensors_sysfs_scale_avail()
/Linux-v5.15/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-prng.c122 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate()
154 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate()
/Linux-v5.15/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()
/Linux-v5.15/tools/testing/selftests/mincore/
Dmincore_selftest.c107 mlock(addr, page_size); in TEST()
165 mlock(addr, page_size); in TEST()
/Linux-v5.15/drivers/media/platform/
Drenesas-ceu.c200 struct mutex mlock; member
1103 mutex_lock(&ceudev->mlock); in ceu_open()
1106 mutex_unlock(&ceudev->mlock); in ceu_open()
1117 mutex_lock(&ceudev->mlock); in ceu_release()
1120 mutex_unlock(&ceudev->mlock); in ceu_release()
1417 q->lock = &ceudev->mlock; in ceu_notify_complete()
1446 vdev->lock = &ceudev->mlock; in ceu_notify_complete()
1645 mutex_init(&ceudev->mlock); in ceu_probe()
Dpxa_camera.c682 struct mutex mlock; member
1525 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 …]

1234