/Zephyr-latest/drivers/rtc/ |
D | rtc_numaker.c | 40 struct k_spinlock lock; member 88 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_numaker_set_time() 97 k_spin_unlock(&data->lock, key); in rtc_numaker_set_time() 108 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_numaker_get_time() 111 k_spin_unlock(&data->lock, key); in rtc_numaker_get_time() 209 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_numaker_alarm_set_time() 218 k_spin_unlock(&data->lock, key); in rtc_numaker_alarm_set_time() 275 k_spin_unlock(&data->lock, key); in rtc_numaker_alarm_set_time() 298 K_SPINLOCK(&data->lock) { in rtc_numaker_alarm_get_time() 334 K_SPINLOCK(&data->lock) { in rtc_numaker_alarm_is_pending() [all …]
|
D | rtc_ds1307.c | 42 struct k_spinlock lock; member 53 k_spinlock_key_t key = k_spin_lock(&data->lock); in ds1307_set_time() 70 k_spin_unlock(&data->lock, key); in ds1307_set_time() 83 k_spinlock_key_t key = k_spin_lock(&data->lock); in ds1307_get_time() 116 k_spin_unlock(&data->lock, key); in ds1307_get_time()
|
/Zephyr-latest/drivers/cache/ |
D | cache_andes.c | 67 static struct k_spinlock lock; variable 210 K_SPINLOCK(&lock) { in cache_data_enable() 245 K_SPINLOCK(&lock) { in cache_data_disable() 293 K_SPINLOCK(&lock) { in cache_data_invd_all() 316 K_SPINLOCK(&lock) { in cache_data_invd_range() 358 K_SPINLOCK(&lock) { in cache_instr_invd_all() 380 K_SPINLOCK(&lock) { in cache_instr_invd_range() 395 K_SPINLOCK(&lock) { in cache_data_flush_all() 415 K_SPINLOCK(&lock) { in cache_data_flush_range() 435 K_SPINLOCK(&lock) { in cache_data_flush_and_invd_all() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | hwspinlock.h | 54 hwspinlock_api_lock lock; member 104 if (api->lock != NULL) { in z_impl_hwspinlock_lock() 105 api->lock(dev, id); in z_impl_hwspinlock_lock()
|
/Zephyr-latest/tests/kernel/timer/starve/src/ |
D | main.c | 39 static struct k_spinlock lock; in ZTEST() local 94 key = k_spin_lock(&lock); in ZTEST() 96 k_spin_unlock(&lock, key); in ZTEST()
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_max31790.c | 26 struct k_mutex lock; member 282 k_mutex_lock(&data->lock, K_FOREVER); in max31790_set_cycles() 284 k_mutex_unlock(&data->lock); in max31790_set_cycles() 303 k_mutex_lock(&data->lock, K_FOREVER); in max31790_get_cycles_per_sec() 307 k_mutex_unlock(&data->lock); in max31790_get_cycles_per_sec() 314 k_mutex_unlock(&data->lock); in max31790_get_cycles_per_sec() 320 k_mutex_unlock(&data->lock); in max31790_get_cycles_per_sec() 334 k_mutex_init(&data->lock); in max31790_pwm_init()
|
/Zephyr-latest/modules/nrf_wifi/bus/ |
D | spi_if.c | 240 k_sem_init(&spim_config->lock, 1, 1); in spim_init() 277 k_sem_take(&spim_config->lock, K_FOREVER); in spim_write() 281 k_sem_give(&spim_config->lock); in spim_write() 294 k_sem_take(&spim_config->lock, K_FOREVER); in spim_read() 298 k_sem_give(&spim_config->lock); in spim_read() 307 k_sem_take(&spim_config->lock, K_FOREVER); in spim_hl_readw() 311 k_sem_give(&spim_config->lock); in spim_hl_readw()
|
/Zephyr-latest/drivers/mspi/ |
D | mspi_emul.c | 40 struct k_sem lock; member 51 struct k_mutex lock; member 118 return (k_sem_count_get(&data->ctx.lock) == 0); in mspi_is_inp() 140 if (k_sem_take(&ctx->lock, K_MSEC(xfer->timeout))) { in mspi_context_lock() 174 k_sem_give(&ctx->lock); in mspi_context_release() 471 if (k_mutex_lock(&data->lock, K_MSEC(CONFIG_MSPI_COMPLETION_TIMEOUT_TOLERANCE))) { in mspi_emul_config() 482 if (!k_sem_count_get(&data->ctx.lock)) { in mspi_emul_config() 484 k_sem_give(&data->ctx.lock); in mspi_emul_config() 488 k_mutex_unlock(&data->lock); in mspi_emul_config() 517 if (k_mutex_lock(&data->lock, K_MSEC(CONFIG_MSPI_COMPLETION_TIMEOUT_TOLERANCE))) { in mspi_emul_dev_config() [all …]
|
/Zephyr-latest/soc/intel/intel_adsp/ace/ |
D | timestamp.c | 26 static struct k_spinlock lock; variable 41 key = k_spin_lock(&lock); in intel_adsp_get_timestamp() 94 k_spin_unlock(&lock, key); in intel_adsp_get_timestamp()
|
/Zephyr-latest/drivers/counter/ |
D | counter_ace_v1x_art.c | 15 static struct k_spinlock lock; variable 79 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ace_v1x_art_get_value() 100 k_spin_unlock(&lock, key); in counter_ace_v1x_art_get_value()
|
D | counter_andes_atcpit100.c | 68 struct k_spinlock lock; member 166 key = k_spin_lock(&data->lock); in atcpit100_start() 173 k_spin_unlock(&data->lock, key); in atcpit100_start() 184 key = k_spin_lock(&data->lock); in atcpit100_stop() 199 k_spin_unlock(&data->lock, key); in atcpit100_stop() 209 key = k_spin_lock(&data->lock); in atcpit100_get_value() 213 k_spin_unlock(&data->lock, key); in atcpit100_get_value() 239 key = k_spin_lock(&data->lock); in atcpit100_set_alarm() 307 k_spin_unlock(&data->lock, key); in atcpit100_set_alarm() 322 key = k_spin_lock(&data->lock); in atcpit100_cancel_alarm() [all …]
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | vlan.c | 45 static K_MUTEX_DEFINE(lock); 160 k_mutex_lock(&lock, K_FOREVER); in get_vlan() 198 k_mutex_unlock(&lock); in get_vlan() 298 k_mutex_lock(&lock, K_FOREVER); in is_vlan_enabled_for_iface() 303 k_mutex_unlock(&lock); in is_vlan_enabled_for_iface() 320 k_mutex_lock(&lock, K_FOREVER); in net_eth_get_vlan_tag() 333 k_mutex_unlock(&lock); in net_eth_get_vlan_tag() 359 k_mutex_lock(&lock, K_FOREVER); in net_eth_get_vlan_status() 366 k_mutex_unlock(&lock); in net_eth_get_vlan_status() 427 k_mutex_lock(&lock, K_FOREVER); in net_eth_vlan_enable() [all …]
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_cache.h | 31 struct k_mutex *lock; member 47 .entries = name##_entries, .size = cache_size, .lock = &name##_mutex};
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | csip.rst | 13 or a laptop. The client is able to lock and release members of a coordinated 14 set. While the coordinated set is locked, no other clients may lock the set. 16 To lock a set, the client must connect to each of the set members it wants to 17 lock. This implementation will always try to connect to all the members of 37 all the members has been connected to, it can lock and release the set. 53 lock :Lock specific member [member_index] 55 lock_get :Get the lock value of the specific member and instance 119 <dbg> bt_csip_set_coordinator.notify_func: Instance 0 lock was locked 121 <dbg> bt_csip_set_coordinator.notify_func: Instance 0 lock was locked 130 <dbg> bt_csip_set_coordinator.notify_func: Instance 0 lock was released [all …]
|
/Zephyr-latest/drivers/disk/ |
D | flashdisk.c | 29 struct k_mutex lock; member 169 k_mutex_lock(&ctx->lock, K_FOREVER); in disk_flash_access_init() 177 k_mutex_unlock(&ctx->lock); in disk_flash_access_init() 218 k_mutex_lock(&ctx->lock, K_FOREVER); in disk_flash_access_read() 248 k_mutex_unlock(&ctx->lock); in disk_flash_access_read() 368 k_mutex_lock(&ctx->lock, K_FOREVER); in disk_flash_access_write() 425 k_mutex_unlock(&ctx->lock); in disk_flash_access_write() 440 k_mutex_lock(&ctx->lock, K_FOREVER); in disk_flash_access_ioctl() 442 k_mutex_unlock(&ctx->lock); in disk_flash_access_ioctl() 451 k_mutex_lock(&ctx->lock, K_FOREVER); in disk_flash_access_ioctl() [all …]
|
/Zephyr-latest/tests/boards/espressif/cache_coex/src/ |
D | cache_coex.c | 39 static struct k_spinlock lock; variable 52 k_spinlock_key_t key = k_spin_lock(&lock); in buffer_fill() 56 k_spin_unlock(&lock, key); in buffer_fill() 227 k_spinlock_key_t key = k_spin_lock(&lock); in flash_test() 231 k_spin_unlock(&lock, key); in flash_test()
|
/Zephyr-latest/arch/xtensa/include/ |
D | xtensa_mpu_priv.h | 116 .as.p.lock = 0, \ 227 return entry->as.p.lock != 0; in xtensa_mpu_entry_lock_get() 237 void xtensa_mpu_entry_lock_set(struct xtensa_mpu_entry *entry, bool lock) in xtensa_mpu_entry_lock_set() argument 239 entry->as.p.lock = lock ? 1 : 0; in xtensa_mpu_entry_lock_set()
|
/Zephyr-latest/include/zephyr/drivers/usb/ |
D | uhc.h | 218 int (*lock)(const struct device *dev); member 256 api->lock(dev); in uhc_bus_reset() 278 api->lock(dev); in uhc_sof_enable() 301 api->lock(dev); in uhc_bus_suspend() 324 api->lock(dev); in uhc_bus_resume()
|
/Zephyr-latest/modules/nrf_wifi/os/ |
D | shim.c | 119 struct k_mutex *lock = NULL; in zep_shim_spinlock_alloc() local 121 lock = k_malloc(sizeof(*lock)); in zep_shim_spinlock_alloc() 123 if (!lock) { in zep_shim_spinlock_alloc() 127 return lock; in zep_shim_spinlock_alloc() 130 static void zep_shim_spinlock_free(void *lock) in zep_shim_spinlock_free() argument 132 k_free(lock); in zep_shim_spinlock_free() 135 static void zep_shim_spinlock_init(void *lock) in zep_shim_spinlock_init() argument 137 k_mutex_init(lock); in zep_shim_spinlock_init() 140 static void zep_shim_spinlock_take(void *lock) in zep_shim_spinlock_take() argument 142 k_mutex_lock(lock, K_FOREVER); in zep_shim_spinlock_take() [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_context.h | 34 struct k_sem lock; member 59 ._ctx_name.lock = Z_SEM_INITIALIZER(_data._ctx_name.lock, 0, 1) 96 (k_sem_count_get(&ctx->lock) == 0) && in spi_context_lock() 101 k_sem_take(&ctx->lock, K_FOREVER); in spi_context_lock() 122 k_sem_give(&ctx->lock); in spi_context_release() 127 k_sem_give(&ctx->lock); in spi_context_release() 206 k_sem_give(&ctx->lock); in spi_context_complete() 265 if (!k_sem_count_get(&ctx->lock)) { in spi_context_unlock_unconditionally() 267 k_sem_give(&ctx->lock); in spi_context_unlock_unconditionally()
|
/Zephyr-latest/drivers/timer/ |
D | nrf_grtc_timer.c | 60 static struct k_spinlock lock; variable 393 k_spinlock_key_t key = k_spin_lock(&lock); in z_nrf_grtc_wakeup_prepare() 397 k_spin_unlock(&lock, key); in z_nrf_grtc_wakeup_prepare() 405 k_spin_unlock(&lock, key); in z_nrf_grtc_wakeup_prepare() 420 k_spin_unlock(&lock, key); in z_nrf_grtc_wakeup_prepare() 436 k_spin_unlock(&lock, key); in z_nrf_grtc_wakeup_prepare() 443 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32() 446 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32() 452 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_64() 455 k_spin_unlock(&lock, key); in sys_clock_cycle_get_64()
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_grgpio2.c | 33 struct k_spinlock lock; member 73 key = k_spin_lock(&data->lock); in pin_configure() 80 k_spin_unlock(&data->lock, key); in pin_configure() 107 key = k_spin_lock(&data->lock); in port_set_masked_raw() 110 k_spin_unlock(&data->lock, key); in port_set_masked_raw() 176 key = k_spin_lock(&data->lock); in pin_interrupt_configure() 192 k_spin_unlock(&data->lock, key); in pin_interrupt_configure()
|
/Zephyr-latest/kernel/ |
D | events.c | 55 event->lock = (struct k_spinlock) {}; in z_impl_k_event_init() 140 key = k_spin_lock(&event->lock); in k_event_post_internal() 174 z_reschedule(&event->lock, key); in k_event_post_internal() 261 k_spinlock_key_t key = k_spin_lock(&event->lock); in k_event_wait_internal() 272 k_spin_unlock(&event->lock, key); in k_event_wait_internal() 279 k_spin_unlock(&event->lock, key); in k_event_wait_internal() 294 if (z_pend_curr(&event->lock, key, &event->wait_q, timeout) == 0) { in k_event_wait_internal()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_adp5585.c | 57 k_sem_take(&data->lock, K_FOREVER); in mfd_adp5585_work_handler() 67 k_sem_give(&data->lock); in mfd_adp5585_work_handler() 137 .lock = Z_SEM_INITIALIZER(mfd_adp5585_data_##inst.lock, 1, 1), \
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_xilinx_axi.c | 30 struct k_spinlock lock; member 80 key = k_spin_lock(&data->lock); in i2c_xilinx_axi_target_register() 92 k_spin_unlock(&data->lock, key); in i2c_xilinx_axi_target_register() 107 key = k_spin_lock(&data->lock); in i2c_xilinx_axi_target_unregister() 129 k_spin_unlock(&data->lock, key); in i2c_xilinx_axi_target_unregister() 222 const k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_xilinx_axi_isr() 249 k_spin_unlock(&data->lock, key); in i2c_xilinx_axi_isr() 267 const k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_xilinx_axi_wait_interrupt() 274 k_spin_unlock(&data->lock, key); in i2c_xilinx_axi_wait_interrupt() 289 const k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_xilinx_axi_clear_interrupt() [all …]
|