Home
last modified time | relevance | path

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

1234

/linux/Documentation/vm/
A Dunevictable-lru.rst49 * 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.gitignore20 mlock-intersect-test
21 mlock-random-test
A 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()
A DMakefile40 TEST_GEN_FILES += mlock-random-test
141 $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap
/linux/drivers/gpio/
A Dgpio-aggregator.c244 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 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()
A 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()
A 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()
A Dad799x.c354 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 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()
A 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()
A Daxp288_adc.c164 mutex_lock(&indio_dev->mlock); in axp288_adc_read_raw()
181 mutex_unlock(&indio_dev->mlock); in axp288_adc_read_raw()
A Dltc2497-core.c84 mutex_lock(&indio_dev->mlock); in ltc2497core_read_raw()
86 mutex_unlock(&indio_dev->mlock); in ltc2497core_read_raw()
/linux/drivers/iio/
A 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()
A Dindustrialio-buffer.c516 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 DTODO10 - Replace iio_dev->mlock by either a local lock or use
/linux/drivers/iio/common/st_sensors/
A Dst_sensors_core.c552 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 Dtsc2007_iio.c52 mutex_lock(&tsc->mlock); in tsc2007_read_raw()
95 mutex_unlock(&tsc->mlock); in tsc2007_read_raw()
A 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()
A Dtsc2007.h83 struct mutex mlock; member
/linux/drivers/iio/gyro/
A 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/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-prng.c122 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate()
154 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate()
/linux/drivers/media/platform/
A 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()
1644 mutex_init(&ceudev->mlock); in ceu_probe()
A 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 …]
/linux/tools/testing/selftests/mincore/
A Dmincore_selftest.c107 mlock(addr, page_size); in TEST()
165 mlock(addr, page_size); in TEST()

Completed in 52 milliseconds

1234