/linux/Documentation/vm/ |
A D | unevictable-lru.rst | 49 * Those mapped into VM_LOCKED [mlock()ed] VMAs. 253 (1) in the mlock()/mlockall() system call handlers; 283 mlock()/mlockall() System Call Handling 342 neither need nor want to mlock() these pages. However, to preserve the 343 prior behavior of mlock() - before the unevictable/mlock changes - 373 populate_vma_page_range() - the same function used to mlock a VMA range - 448 If a user tries to mlock() part of a huge page, we want the rest of the 451 We cannot just split the page on partial mlock() as split_huge_page() can 476 in the newly mapped memory being mlocked. Before the unevictable/mlock 480 To mlock a range of memory under the unevictable/mlock infrastructure, the [all …]
|
/linux/tools/testing/selftests/vm/ |
A D | .gitignore | 20 mlock-intersect-test 21 mlock-random-test
|
A D | mlock-random-test.c | 166 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()
|
A D | Makefile | 40 TEST_GEN_FILES += mlock-random-test 141 $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap
|
/linux/drivers/gpio/ |
A D | gpio-aggregator.c | 244 struct mutex mlock; /* protects tmp[] if can_sleep */ member 315 mutex_lock(&fwd->mlock); in gpio_fwd_get_multiple_locked() 317 mutex_unlock(&fwd->mlock); in gpio_fwd_get_multiple_locked() 356 mutex_lock(&fwd->mlock); in gpio_fwd_set_multiple_locked() 358 mutex_unlock(&fwd->mlock); in gpio_fwd_set_multiple_locked() 437 mutex_init(&fwd->mlock); in gpiochip_fwd_create()
|
/linux/drivers/iio/adc/ |
A D | vf610_adc.c | 471 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()
|
A D | lpc32xx_adc.c | 67 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()
|
A D | rockchip_saradc.c | 97 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()
|
A D | ad799x.c | 354 mutex_lock(&indio_dev->mlock); in ad799x_write_frequency() 376 mutex_unlock(&indio_dev->mlock); in ad799x_write_frequency() 457 mutex_lock(&indio_dev->mlock); in ad799x_write_event_value() 461 mutex_unlock(&indio_dev->mlock); in ad799x_write_event_value() 476 mutex_lock(&indio_dev->mlock); in ad799x_read_event_value() 479 mutex_unlock(&indio_dev->mlock); in ad799x_read_event_value()
|
A D | imx7d_adc.c | 295 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()
|
A D | sc27xx_adc.c | 336 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()
|
A D | axp288_adc.c | 164 mutex_lock(&indio_dev->mlock); in axp288_adc_read_raw() 181 mutex_unlock(&indio_dev->mlock); in axp288_adc_read_raw()
|
A D | ltc2497-core.c | 84 mutex_lock(&indio_dev->mlock); in ltc2497core_read_raw() 86 mutex_unlock(&indio_dev->mlock); in ltc2497core_read_raw()
|
/linux/drivers/iio/ |
A D | industrialio-trigger.c | 126 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()
|
A D | industrialio-buffer.c | 516 mutex_lock(&indio_dev->mlock); in iio_scan_el_store() 535 mutex_unlock(&indio_dev->mlock); in iio_scan_el_store() 564 mutex_lock(&indio_dev->mlock); in iio_scan_el_ts_store() 571 mutex_unlock(&indio_dev->mlock); in iio_scan_el_ts_store() 658 mutex_lock(&indio_dev->mlock); in iio_buffer_write_length() 670 mutex_unlock(&indio_dev->mlock); in iio_buffer_write_length() 1258 mutex_lock(&indio_dev->mlock); in iio_update_buffers() 1279 mutex_unlock(&indio_dev->mlock); in iio_update_buffers() 1307 mutex_lock(&indio_dev->mlock); in iio_buffer_store_enable() 1321 mutex_unlock(&indio_dev->mlock); in iio_buffer_store_enable() [all …]
|
A D | TODO | 10 - Replace iio_dev->mlock by either a local lock or use
|
/linux/drivers/iio/common/st_sensors/ |
A D | st_sensors_core.c | 552 mutex_lock(&indio_dev->mlock); in st_sensors_read_info_raw() 571 mutex_unlock(&indio_dev->mlock); in st_sensors_read_info_raw() 644 mutex_lock(&indio_dev->mlock); in st_sensors_sysfs_sampling_frequency_avail() 652 mutex_unlock(&indio_dev->mlock); in st_sensors_sysfs_sampling_frequency_avail() 666 mutex_lock(&indio_dev->mlock); in st_sensors_sysfs_scale_avail() 676 mutex_unlock(&indio_dev->mlock); in st_sensors_sysfs_scale_avail()
|
/linux/drivers/input/touchscreen/ |
A D | tsc2007_iio.c | 52 mutex_lock(&tsc->mlock); in tsc2007_read_raw() 95 mutex_unlock(&tsc->mlock); in tsc2007_read_raw()
|
A D | tsc2007_core.c | 122 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()
|
A D | tsc2007.h | 83 struct mutex mlock; member
|
/linux/drivers/iio/gyro/ |
A D | itg3200_core.c | 142 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/drivers/crypto/allwinner/sun8i-ss/ |
A D | sun8i-ss-prng.c | 122 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate() 154 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate()
|
/linux/drivers/media/platform/ |
A D | renesas-ceu.c | 200 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() 1644 mutex_init(&ceudev->mlock); in ceu_probe()
|
A D | pxa_camera.c | 682 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 …]
|
/linux/tools/testing/selftests/mincore/ |
A D | mincore_selftest.c | 107 mlock(addr, page_size); in TEST() 165 mlock(addr, page_size); in TEST()
|