Home
last modified time | relevance | path

Searched refs:lock (Results 301 – 325 of 483) sorted by relevance

1...<<11121314151617181920

/Zephyr-latest/drivers/gnss/
Dgnss_emul.c35 struct k_sem lock; member
53 (void)k_sem_take(&data->lock, K_FOREVER); in gnss_emul_lock_sem()
60 k_sem_give(&data->lock); in gnss_emul_unlock_sem()
470 k_sem_init(&data->lock, 1, 1); in gnss_emul_init_data()
/Zephyr-latest/subsys/net/ip/
Dtcp.c773 k_mutex_lock(&conn->lock, K_FOREVER); in tcp_conn_release()
810 k_mutex_unlock(&conn->lock); in tcp_conn_release()
869 k_mutex_lock(&conn->lock, K_FOREVER); in tcp_conn_close_debug()
872 k_mutex_unlock(&conn->lock); in tcp_conn_close_debug()
967 k_mutex_lock(&conn->lock, K_FOREVER); in tcp_send_process()
971 k_mutex_unlock(&conn->lock); in tcp_send_process()
1847 k_mutex_lock(&conn->lock, K_FOREVER); in tcp_cleanup_recv_queue()
1856 k_mutex_unlock(&conn->lock); in tcp_cleanup_recv_queue()
1867 k_mutex_lock(&conn->lock, K_FOREVER); in tcp_resend_data()
1932 k_mutex_unlock(&conn->lock); in tcp_resend_data()
[all …]
Dtcp_private.h26 k_mutex_lock(&_conn->lock, K_FOREVER); \
32 k_mutex_unlock(&_conn->lock); \
273 struct k_mutex lock; member
/Zephyr-latest/include/zephyr/arch/xtensa/
Dmpu.h121 uint32_t lock:1; member
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_cas.c42 err = bt_csip_set_member_lock(csis_svc_inst, cp->lock, cp->force); in cas_set_member_lock()
/Zephyr-latest/tests/bluetooth/common/testlib/src/
Dconnect.c17 struct k_mutex lock; member
/Zephyr-latest/subsys/logging/frontends/
Dlog_frontend_dict_uart.c213 static struct k_spinlock lock; in uart_isr_callback() local
214 k_spinlock_key_t key = k_spin_lock(&lock); in uart_isr_callback()
220 k_spin_unlock(&lock, key); in uart_isr_callback()
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dremote-fw-service.py235 self.lock = threading.Lock()
253 self.lock.acquire()
258 self.lock.release()
/Zephyr-latest/drivers/mipi_dbi/
Dmipi_dbi_bitbang.c57 struct k_mutex lock; member
94 ret = k_mutex_lock(&data->lock, K_FOREVER); in mipi_dbi_bitbang_write_helper()
153 k_mutex_unlock(&data->lock); in mipi_dbi_bitbang_write_helper()
Dmipi_dbi_nxp_lcdic.c117 struct k_sem lock; member
419 ret = k_sem_take(&dev_data->lock, K_FOREVER); in mipi_dbi_lcdic_write_display()
511 k_sem_give(&dev_data->lock); in mipi_dbi_lcdic_write_display()
528 ret = k_sem_take(&dev_data->lock, K_FOREVER); in mipi_dbi_lcdic_write_cmd()
601 k_sem_give(&dev_data->lock); in mipi_dbi_lcdic_write_cmd()
721 ret = k_sem_init(&data->lock, 1, 1); in mipi_dbi_lcdic_init()
/Zephyr-latest/drivers/disk/nvme/
Dnvme.h426 struct k_mutex lock; member
469 k_mutex_lock(&nvme_ctrlr->lock, K_FOREVER); in nvme_lock()
476 k_mutex_unlock(&nvme_ctrlr->lock); in nvme_unlock()
/Zephyr-latest/tests/drivers/uart/uart_async_rx/src/
Dmain.c157 struct k_spinlock lock; member
230 k_spinlock_key_t key = k_spin_lock(&test_data->lock); in consumer()
239 k_spin_unlock(&test_data->lock, key); in consumer()
/Zephyr-latest/drivers/serial/
Duart_nrfx_uart.c236 atomic_t *lock; in uart_nrfx_poll_out() local
250 lock = &uart0_cb.tx_buffer_length; in uart_nrfx_poll_out()
254 lock = &poll_out_lock; in uart_nrfx_poll_out()
260 while (atomic_cas((atomic_t *) lock, in uart_nrfx_poll_out()
276 *lock = 1; in uart_nrfx_poll_out()
298 *lock = 0; in uart_nrfx_poll_out()
/Zephyr-latest/drivers/eeprom/
Deeprom_emulator.c95 struct k_mutex lock; member
554 k_mutex_lock(&dev_data->lock, K_FOREVER); in eeprom_emu_read()
570 k_mutex_unlock(&dev_data->lock); in eeprom_emu_read()
611 k_mutex_lock(&dev_data->lock, K_FOREVER); in eeprom_emu_write()
627 k_mutex_unlock(&dev_data->lock); in eeprom_emu_write()
647 k_mutex_init(&dev_data->lock); in eeprom_emu_init()
/Zephyr-latest/include/zephyr/net/
Dcoap_client.h111 struct k_mutex lock; member
/Zephyr-latest/drivers/flash/
Dspi_flash_at45.c61 struct k_sem lock; member
97 k_sem_take(&data->lock, K_FOREVER); in acquire()
104 k_sem_give(&data->lock); in release()
692 .lock = Z_SEM_INITIALIZER(inst_##idx##_data.lock, 1, 1), \
/Zephyr-latest/tests/arch/arm/arm_interrupt/src/
Darm_interrupt.c431 int lock = irq_lock(); in ZTEST_USER() local
433 zassert_false(lock, "IRQs shown locked in user mode\n"); in ZTEST_USER()
/Zephyr-latest/modules/nrf_wifi/bus/
Dqspi_if.c1209 k_sem_init(&qspi_cfg->lock, 1, 1); in qspi_init()
1252 k_sem_take(&qspi_cfg->lock, K_FOREVER); in qspi_write()
1258 k_sem_give(&qspi_cfg->lock); in qspi_write()
1271 k_sem_take(&qspi_cfg->lock, K_FOREVER); in qspi_read()
1277 k_sem_give(&qspi_cfg->lock); in qspi_read()
1299 k_sem_take(&qspi_cfg->lock, K_FOREVER); in qspi_hl_readw()
1305 k_sem_give(&qspi_cfg->lock); in qspi_hl_readw()
/Zephyr-latest/drivers/i2c/
Di2c_max32.c56 struct k_sem lock; member
372 k_sem_take(&data->lock, K_FOREVER); in i2c_max32_transfer_dma()
422 k_sem_give(&data->lock); in i2c_max32_transfer_dma()
443 k_sem_take(&data->lock, K_FOREVER); in i2c_max32_transfer()
517 k_sem_give(&data->lock); in i2c_max32_transfer()
536 k_sem_take(&data->lock, K_FOREVER); in i2c_max32_transfer()
587 k_sem_give(&data->lock); in i2c_max32_transfer()
878 k_sem_init(&data->lock, 1, 1); in i2c_max32_init()
/Zephyr-latest/kernel/
Dsched.c650 int z_pend_curr(struct k_spinlock *lock, k_spinlock_key_t key, in z_pend_curr() argument
656 __ASSERT_NO_MSG(sizeof(_sched_spinlock) == 0 || lock != &_sched_spinlock); in z_pend_curr()
668 k_spin_release(lock); in z_pend_curr()
769 void z_reschedule(struct k_spinlock *lock, k_spinlock_key_t key) in z_reschedule() argument
772 z_swap(lock, key); in z_reschedule()
774 k_spin_unlock(lock, key); in z_reschedule()
1505 int z_sched_wait(struct k_spinlock *lock, k_spinlock_key_t key, in z_sched_wait() argument
1508 int ret = z_pend_curr(lock, key, wait_q, timeout); in z_sched_wait()
/Zephyr-latest/subsys/net/l2/ethernet/
Dbridge.c36 k_mutex_lock(&ctx->lock, K_FOREVER); in lock_bridge()
41 k_mutex_unlock(&ctx->lock); in unlock_bridge()
249 k_mutex_init(&ctx->lock); in bridge_iface_init()
/Zephyr-latest/drivers/stepper/step_dir/
Dstep_dir_stepper_common.h69 struct k_spinlock lock; member
/Zephyr-latest/drivers/fpga/
Dfpga_ice40_common.h62 struct k_spinlock lock; member
/Zephyr-latest/include/zephyr/drivers/wifi/nrf_wifi/bus/
Dqspi_if.h39 struct k_sem lock; member
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c217 if (ctx->cond.lock) { in zsock_received_cb()
218 (void)k_mutex_lock(ctx->cond.lock, K_FOREVER); in zsock_received_cb()
260 if (ctx->cond.lock) { in zsock_received_cb()
261 (void)k_mutex_unlock(ctx->cond.lock); in zsock_received_cb()
555 if (ctx->cond.lock) { in send_check_and_wait()
556 (void)k_mutex_unlock(ctx->cond.lock); in send_check_and_wait()
585 if (ctx->cond.lock) { in send_check_and_wait()
586 (void)k_mutex_lock(ctx->cond.lock, K_FOREVER); in send_check_and_wait()
898 if (ctx->cond.lock == NULL) { in zsock_wait_data()
910 ret = k_condvar_wait(&ctx->cond.recv, ctx->cond.lock, in zsock_wait_data()
[all …]

1...<<11121314151617181920