/kernel/linux/linux-5.10/sound/soc/atmel/ |
H A D | mchp-spdifrx.c | 233 struct mutex mlock; member 330 mutex_lock(&dev->mlock); in mchp_spdifrx_trigger() 338 mutex_unlock(&dev->mlock); in mchp_spdifrx_trigger() 343 mutex_lock(&dev->mlock); in mchp_spdifrx_trigger() 351 mutex_unlock(&dev->mlock); in mchp_spdifrx_trigger() 402 mutex_lock(&dev->mlock); in mchp_spdifrx_hw_params() 434 mutex_unlock(&dev->mlock); in mchp_spdifrx_hw_params() 444 mutex_lock(&dev->mlock); in mchp_spdifrx_hw_free() 449 mutex_unlock(&dev->mlock); in mchp_spdifrx_hw_free() 488 mutex_lock(&dev->mlock); in mchp_spdifrx_cs_get() [all...] |
/kernel/linux/linux-6.6/sound/soc/atmel/ |
H A D | mchp-spdifrx.c | 292 * @mlock: mutex to protect concurency b/w configuration and control APIs 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() 583 mutex_unlock(&dev->mlock); in mchp_spdifrx_cs_get() [all...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-sn-f-ospi.c | 114 struct mutex mlock; member 408 mutex_lock(&ospi->mlock); in f_ospi_indir_read() 450 mutex_unlock(&ospi->mlock); in f_ospi_indir_read() 462 mutex_lock(&ospi->mlock); in f_ospi_indir_write() 497 mutex_unlock(&ospi->mlock); in f_ospi_indir_write() 643 mutex_init(&ospi->mlock); in f_ospi_probe() 656 mutex_destroy(&ospi->mlock); in f_ospi_probe() 668 mutex_destroy(&ospi->mlock); in f_ospi_remove()
|
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-aggregator.c | 301 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/ |
H A D | industrialio-trigger.c | 123 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()
|
H A D | industrialio-buffer.c | 388 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...] |
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | spear_adc.c | 149 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()
|
H 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()
|
H A D | rockchip_saradc.c | 95 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()
|
H 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()
|
H A D | ad799x.c | 356 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()
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | tsc2007_iio.c | 52 mutex_lock(&tsc->mlock); in tsc2007_read_raw() 95 mutex_unlock(&tsc->mlock); in tsc2007_read_raw()
|
/kernel/linux/linux-6.6/drivers/input/touchscreen/ |
H A D | tsc2007_iio.c | 52 mutex_lock(&tsc->mlock); in tsc2007_read_raw() 95 mutex_unlock(&tsc->mlock); in tsc2007_read_raw()
|
/kernel/linux/linux-5.10/drivers/lightnvm/ |
H A D | core.c | 57 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/linux/linux-5.10/drivers/iio/common/st_sensors/ |
H A D | st_sensors_core.c | 561 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-6.6/drivers/gpio/ |
H A D | gpio-aggregator.c | 254 struct mutex mlock; /* protects tmp[] if can_sleep */ member 330 mutex_lock(&fwd->mlock); in gpio_fwd_get_multiple_locked() 332 mutex_unlock(&fwd->mlock); in gpio_fwd_get_multiple_locked() 401 mutex_lock(&fwd->mlock); in gpio_fwd_set_multiple_locked() 403 mutex_unlock(&fwd->mlock); in gpio_fwd_set_multiple_locked() 546 mutex_init(&fwd->mlock); in gpiochip_fwd_create()
|
/kernel/linux/linux-6.6/drivers/iio/ |
H A D | industrialio-trigger.c | 123 mutex_lock(&iio_dev_opaque->mlock); in iio_trigger_set_immutable() 128 mutex_unlock(&iio_dev_opaque->mlock); in iio_trigger_set_immutable() 454 mutex_lock(&iio_dev_opaque->mlock); in current_trigger_store() 456 mutex_unlock(&iio_dev_opaque->mlock); in current_trigger_store() 460 mutex_unlock(&iio_dev_opaque->mlock); in current_trigger_store() 463 mutex_unlock(&iio_dev_opaque->mlock); in current_trigger_store()
|
/kernel/linux/linux-6.6/mm/ |
H A D | mlock.c | 3 * linux/mm/mlock.c 140 /* else assume that was the last mlock: reclaim will fix it if not */ in __munlock_folio() 182 * mlock. We could use three separate folio batches instead, but one feels 189 unsigned long mlock; in mlock_folio_batch() local 195 mlock = (unsigned long)folio & (LRU_FOLIO | NEW_FOLIO); in mlock_folio_batch() 196 folio = (struct folio *)((unsigned long)folio - mlock); in mlock_folio_batch() 199 if (mlock & LRU_FOLIO) in mlock_folio_batch() 201 else if (mlock & NEW_FOLIO) in mlock_folio_batch() 240 * mlock_folio - mlock a folio already on (or temporarily off) LRU 265 * mlock_new_folio - mlock [all...] |
/kernel/liteos_a/testsuites/unittest/fuzz/ |
H A D | mlock_fuzzer.cpp | 43 mlock(p, lockSize); in TestMlock()
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-prng.c | 124 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate() 148 * one, the mlock could be left just after the final writel. in sun8i_ss_prng_generate() 151 * The easiest way is to grab mlock until the hardware end our requests. in sun8i_ss_prng_generate() 156 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | Makefile | 33 TEST_GEN_FILES += mlock-random-test 136 $(OUTPUT)/mlock-random-test: LDLIBS += -lcap
|
H A D | mlock-random-test.c | 3 * It tests the mlock/mlock2() when they are invoked 122 * Test mlock/mlock2() on provided memory chunk. 123 * It expects the mlock/mlock2() to be successful (within rlimit) 126 * test will choose start/len randomly to perform mlock/mlock2 131 * So we always expect a success of mlock/mlock2. 148 printf("alloc_size[%d] < %u rlimit,lead to mlock failure\n", in test_mlock_within_limit() 156 * - choose mlock/mlock2 randomly in test_mlock_within_limit() 166 ret = mlock(p + start_offset, lock_size); in test_mlock_within_limit() 172 printf("%s() failure at |%p(%d)| mlock:|%p(%d)|\n", in test_mlock_within_limit() 173 is_mlock ? "mlock" in test_mlock_within_limit() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-prng.c | 127 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate() 151 * one, the mlock could be left just after the final writel. in sun8i_ss_prng_generate() 154 * The easiest way is to grab mlock until the hardware end our requests. in sun8i_ss_prng_generate() 159 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | mlock-random-test.c | 3 * It tests the mlock/mlock2() when they are invoked 123 * Test mlock/mlock2() on provided memory chunk. 124 * It expects the mlock/mlock2() to be successful (within rlimit) 127 * test will choose start/len randomly to perform mlock/mlock2 132 * So we always expect a success of mlock/mlock2. 149 printf("alloc_size[%d] < %u rlimit,lead to mlock failure\n", in test_mlock_within_limit() 157 * - choose mlock/mlock2 randomly in test_mlock_within_limit() 167 ret = mlock(p + start_offset, lock_size); in test_mlock_within_limit() 173 printf("%s() failure at |%p(%d)| mlock:|%p(%d)|\n", in test_mlock_within_limit() 174 is_mlock ? "mlock" in test_mlock_within_limit() [all...] |