Home
last modified time | relevance | path

Searched refs:lock (Results 251 – 275 of 483) sorted by relevance

1...<<11121314151617181920

/Zephyr-latest/include/zephyr/sys/
Donoff.h169 struct k_spinlock lock; member
578 struct k_spinlock lock; member
Dfdtable.h173 struct k_mutex **lock);
190 bool zvfs_get_obj_lock_and_cond(void *obj, const struct fd_op_vtable *vtable, struct k_mutex **lock,
/Zephyr-latest/drivers/gpio/
Dgpio_pca_series.c169 struct k_sem lock; member
924 k_sem_take(&data->lock, K_FOREVER); in gpio_pca_series_pin_configure()
1027 k_sem_give(&data->lock); in gpio_pca_series_pin_configure()
1063 k_sem_take(&data->lock, K_FOREVER); in gpio_pca_series_port_read_standard()
1073 k_sem_give(&data->lock); in gpio_pca_series_port_read_standard()
1121 k_sem_take(&data->lock, K_FOREVER); in gpio_pca_series_port_read_extended()
1132 k_sem_give(&data->lock); in gpio_pca_series_port_read_extended()
1153 k_sem_take(&data->lock, K_FOREVER); in gpio_pca_series_port_write()
1179 k_sem_give(&data->lock); in gpio_pca_series_port_write()
1242 k_sem_take(&data->lock, K_FOREVER); in gpio_pca_series_pin_interrupt_configure_standard()
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_mcux.c39 struct k_mutex lock; member
169 k_mutex_lock(&data->lock, K_FOREVER); in mcux_pwm_set_cycles()
171 k_mutex_unlock(&data->lock); in mcux_pwm_set_cycles()
198 k_mutex_init(&data->lock); in pwm_mcux_init()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx_subg.h36 struct k_sem lock; member
/Zephyr-latest/drivers/hwspinlock/
Dhwspinlock_handlers.c20 K_OOPS(K_SYSCALL_DRIVER_HWSPINLOCK(dev, lock)); in z_vrfy_hwspinlock_lock()
/Zephyr-latest/include/zephyr/net/
Dethernet_bridge.h45 struct k_mutex lock; member
/Zephyr-latest/drivers/sensor/aosong/dht/
Ddht.c71 int lock; in dht_sample_fetch() local
80 lock = irq_lock(); in dht_sample_fetch()
166 irq_unlock(lock); in dht_sample_fetch()
/Zephyr-latest/drivers/mspi/
Dmspi_ambiq_ap3.c44 struct k_sem lock; member
64 struct k_mutex lock; member
205 k_sem_give(&ctx->lock); in mspi_context_release()
212 if (!k_sem_count_get(&ctx->lock)) { in mspi_context_unlock_unconditionally()
214 k_sem_give(&ctx->lock); in mspi_context_unlock_unconditionally()
227 if ((k_sem_count_get(&ctx->lock) == 0) && !lockon && in mspi_context_lock()
232 if (k_sem_take(&ctx->lock, K_MSEC(xfer->timeout))) { in mspi_context_lock()
269 return (k_sem_count_get(&data->ctx.lock) == 0); in mspi_is_inp()
307 if (k_mutex_lock(&data->lock, K_MSEC(CONFIG_MSPI_COMPLETION_TIMEOUT_TOLERANCE))) { in mspi_ambiq_deinit()
353 k_mutex_unlock(&data->lock); in mspi_ambiq_deinit()
[all …]
/Zephyr-latest/drivers/dma/
Ddma_andes_atcdmac300.c136 struct k_spinlock lock; member
156 key = k_spin_lock(&data->lock); in dma_atcdmac300_isr()
161 k_spin_unlock(&data->lock, key); in dma_atcdmac300_isr()
292 key = k_spin_lock(&data->lock); in dma_atcdmac300_config()
295 k_spin_unlock(&data->lock, key); in dma_atcdmac300_config()
451 key = k_spin_lock(&data->lock); in dma_atcdmac300_transfer_stop()
458 k_spin_unlock(&data->lock, key); in dma_atcdmac300_transfer_stop()
/Zephyr-latest/doc/kernel/data_structures/
Dmpsc_lockfree.rst8 at `1024cores <https://www.1024cores.net/home/lock-free-algorithms/queues/intrusive-mpsc-node-based…
/Zephyr-latest/drivers/rtc/
Drtc_rv8263.c82 struct k_sem lock; member
293 k_sem_init(&data->lock, 1, 1); in rv8263c8_init()
361 (void)k_sem_take(&data->lock, K_FOREVER); in rv8263c8_init()
369 k_sem_give(&data->lock); in rv8263c8_init()
537 (void)k_sem_take(&data->lock, K_FOREVER); in rv8263c8_alarm_set_callback()
540 k_sem_give(&data->lock); in rv8263c8_alarm_set_callback()
580 (void)k_sem_take(&data->lock, K_FOREVER); in rv8263_update_callback()
583 k_sem_give(&data->lock); in rv8263_update_callback()
/Zephyr-latest/drivers/watchdog/
Dwdt_cmsdk_apb.c35 volatile uint32_t lock; member
81 wdog->lock = CMSDK_APB_WDOG_UNLOCK_VALUE; in wdog_cmsdk_apb_unlock()
/Zephyr-latest/drivers/i2c/
Di2c_mcux_flexcomm.c52 struct k_sem lock; member
99 k_sem_take(&data->lock, K_FOREVER); in mcux_flexcomm_configure()
101 k_sem_give(&data->lock); in mcux_flexcomm_configure()
146 k_sem_take(&data->lock, K_FOREVER); in mcux_flexcomm_transfer()
202 k_sem_give(&data->lock); in mcux_flexcomm_transfer()
490 k_sem_init(&data->lock, 1, 1); in mcux_flexcomm_init()
/Zephyr-latest/drivers/mipi_dbi/
Dmipi_dbi_spi.c30 struct k_mutex lock; member
262 ret = k_mutex_lock(&data->lock, K_FOREVER); in mipi_dbi_spi_write_helper()
303 k_mutex_unlock(&data->lock); in mipi_dbi_spi_write_helper()
448 ret = k_mutex_lock(&data->lock, K_FOREVER); in mipi_dbi_spi_command_read()
472 k_mutex_unlock(&data->lock); in mipi_dbi_spi_command_read()
541 k_mutex_init(&data->lock); in mipi_dbi_spi_init()
/Zephyr-latest/drivers/gnss/
Dgnss_luatos_air530z.c73 struct k_sem lock; member
88 (void)k_sem_take(&data->lock, K_FOREVER); in luatos_air530z_lock()
95 k_sem_give(&data->lock); in luatos_air530z_unlock()
175 k_sem_init(&data->lock, 1, 1); in gnss_luatos_air530z_init()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_client.c358 k_mutex_lock(&client->lock, K_FOREVER); in coap_client_req()
456 k_mutex_unlock(&client->lock); in coap_client_req()
532 k_mutex_lock(&client->lock, K_FOREVER); in coap_client_resend_handler()
549 k_mutex_unlock(&client->lock); in coap_client_resend_handler()
620 k_mutex_lock(&client->lock, K_FOREVER); in handle_poll()
626 k_mutex_unlock(&client->lock); in handle_poll()
1005 k_mutex_lock(&client->lock, K_FOREVER); in cancel_requests_with()
1025 k_mutex_unlock(&client->lock); in cancel_requests_with()
1057 k_mutex_lock(&client->lock, K_FOREVER); in coap_client_cancel_request()
1068 k_mutex_unlock(&client->lock); in coap_client_cancel_request()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_mspi_emul_device.c49 struct k_sem lock; member
63 k_sem_take(&data->lock, K_FOREVER); in acquire()
90 k_sem_give(&data->lock); in release()
437 .lock = Z_SEM_INITIALIZER(flash_mspi_emul_device_data_##n.lock, 0, 1), \
/Zephyr-latest/tests/bsim/bluetooth/audio/test_scripts/
Dcsip_no_lock.sh20 -RealEncryption=1 -rs=1 -D=4 -argstest no-lock
Dcsip_no_rank.sh20 -RealEncryption=1 -rs=1 -D=4 -argstest no-rank no-lock
/Zephyr-latest/drivers/auxdisplay/
Dauxdisplay_itron.c61 bool lock);
315 bool lock) in send_cmd() argument
331 if (lock) { in send_cmd()
381 if (lock) { in send_cmd()
/Zephyr-latest/include/zephyr/sd/
Dsd.h67 struct k_mutex lock; /*!< card mutex */ member
/Zephyr-latest/include/zephyr/drivers/spi/
Drtio.h22 struct k_spinlock lock; member
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket_internal.h70 struct k_mutex lock; member
/Zephyr-latest/
D.gitignore62 # Cargo drops lock files in projects to capture resolved dependencies.
64 Cargo.lock

1...<<11121314151617181920