/Zephyr-latest/drivers/i2c/ |
D | i2c_sam_twi.c | 68 struct k_sem lock; member 137 k_sem_take(&dev_data->lock, K_FOREVER); in i2c_sam_twi_configure() 153 k_sem_give(&dev_data->lock); in i2c_sam_twi_configure() 199 k_sem_take(&dev_data->lock, K_FOREVER); in i2c_sam_twi_transfer() 245 k_sem_give(&dev_data->lock); in i2c_sam_twi_transfer() 321 k_sem_init(&dev_data->lock, 1, 1); in i2c_sam_twi_initialize()
|
D | i2c_smartbond.c | 32 struct k_spinlock lock; member 112 k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_smartbond_apply_configure() 155 k_spin_unlock(&data->lock, key); in i2c_smartbond_apply_configure() 176 k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_smartbond_get_config() 183 k_spin_unlock(&data->lock, key); in i2c_smartbond_get_config() 348 k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_smartbond_transfer() 389 k_spin_unlock(&data->lock, key); in i2c_smartbond_transfer() 425 k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_smartbond_transfer_cb() 444 k_spin_unlock(&data->lock, key); in i2c_smartbond_transfer_cb() 507 k_spin_unlock(&data->lock, data->spinlock_key); in i2c_smartbond_async_msg_done()
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_renesas_cpg_mssr.c | 240 key = k_spin_lock(&data->lock); in rcar_cpg_get_rate() 242 k_spin_unlock(&data->lock, key); in rcar_cpg_get_rate() 295 key = k_spin_lock(&data->lock); in rcar_cpg_set_rate() 336 k_spin_unlock(&data->lock, key); in rcar_cpg_set_rate() 350 key = k_spin_lock(&data->lock); in rcar_cpg_build_clock_relationship() 397 k_spin_unlock(&data->lock, key); in rcar_cpg_build_clock_relationship() 410 key = k_spin_lock(&data->lock); in rcar_cpg_update_all_in_out_freq() 425 k_spin_unlock(&data->lock, key); in rcar_cpg_update_all_in_out_freq()
|
D | clock_control_r8a779f0_cpg_mssr.c | 135 key = k_spin_lock(&data->cmn.lock); in r8a779f0_cpg_core_clock_endisable() 137 k_spin_unlock(&data->cmn.lock, key); in r8a779f0_cpg_core_clock_endisable() 155 key = k_spin_lock(&data->cmn.lock); in r8a779f0_cpg_mssr_start_stop() 157 k_spin_unlock(&data->cmn.lock, key); in r8a779f0_cpg_mssr_start_stop()
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv6_pe.c | 85 static K_MUTEX_DEFINE(lock); 97 k_mutex_lock(&lock, K_FOREVER); in ipv6_pe_use_this_prefix() 126 k_mutex_unlock(&lock); in ipv6_pe_use_this_prefix() 488 k_mutex_lock(&lock, K_FOREVER); in ipv6_pe_recheck_filters() 498 k_mutex_unlock(&lock); in ipv6_pe_recheck_filters() 529 k_mutex_lock(&lock, K_FOREVER); in net_ipv6_pe_add_filter() 575 k_mutex_unlock(&lock); in net_ipv6_pe_add_filter() 591 k_mutex_lock(&lock, K_FOREVER); in net_ipv6_pe_del_filter() 612 k_mutex_unlock(&lock); in net_ipv6_pe_del_filter() 632 k_mutex_lock(&lock, K_FOREVER); in net_ipv6_pe_filter_foreach() [all …]
|
D | net_if.c | 51 static K_MUTEX_DEFINE(lock); 443 k_mutex_init(&iface->lock); in init_iface() 717 k_mutex_lock(&lock, K_FOREVER); in iface_router_lookup() 738 k_mutex_unlock(&lock); in iface_router_lookup() 785 k_mutex_lock(&lock, K_FOREVER); in iface_router_update_timer() 805 k_mutex_unlock(&lock); in iface_router_update_timer() 816 k_mutex_lock(&lock, K_FOREVER); in iface_router_expired() 838 k_mutex_unlock(&lock); in iface_router_expired() 849 k_mutex_lock(&lock, K_FOREVER); in iface_router_add() 909 k_mutex_unlock(&lock); in iface_router_add() [all …]
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | capture.c | 37 static K_MUTEX_DEFINE(lock); 118 k_mutex_lock(&lock, K_FOREVER); in net_capture_foreach() 135 k_mutex_unlock(&lock); in net_capture_foreach() 137 k_mutex_lock(&lock, K_FOREVER); in net_capture_foreach() 140 k_mutex_unlock(&lock); in net_capture_foreach() 148 k_mutex_lock(&lock, K_FOREVER); in alloc_capture_dev() 162 k_mutex_unlock(&lock); in alloc_capture_dev() 528 k_mutex_lock(&lock, K_FOREVER); in net_capture_pkt_with_status() 582 k_mutex_unlock(&lock); in net_capture_pkt_with_status() 596 k_mutex_lock(&lock, K_FOREVER); in capture_dev_init() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_pcal64xxa.c | 88 struct k_sem lock; member 158 k_sem_take(&drv_data->lock, K_FOREVER); in pcal64xxa_pin_configure() 193 k_sem_give(&drv_data->lock); in pcal64xxa_pin_configure() 206 k_sem_take(&drv_data->lock, K_FOREVER); in pcal64xxa_process_input() 212 k_sem_give(&drv_data->lock); in pcal64xxa_process_input() 248 k_sem_give(&drv_data->lock); in pcal64xxa_process_input() 252 k_sem_give(&drv_data->lock); in pcal64xxa_process_input() 309 k_sem_take(&drv_data->lock, K_FOREVER); in pcal64xxa_port_set_raw() 323 k_sem_give(&drv_data->lock); in pcal64xxa_port_set_raw() 377 k_sem_take(&drv_data->lock, K_FOREVER); in pcal64xxa_pin_interrupt_configure() [all …]
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_ifx_cat1.c | 92 struct k_spinlock lock; member 229 k_spinlock_key_t key = k_spin_lock(&data->lock); in ifx_cat1_rtc_set_time() 236 k_spin_unlock(&data->lock, key); in ifx_cat1_rtc_set_time() 265 k_spinlock_key_t key = k_spin_lock(&data->lock); in ifx_cat1_rtc_get_time() 270 k_spin_unlock(&data->lock, key); in ifx_cat1_rtc_get_time()
|
D | rtc_pcf8523.c | 132 struct k_mutex lock; member 273 k_mutex_lock(&data->lock, K_FOREVER); in pcf8523_int1_thread() 319 k_mutex_unlock(&data->lock); in pcf8523_int1_thread() 356 k_mutex_lock(&data->lock, K_FOREVER); in pcf8523_set_time() 390 k_mutex_unlock(&data->lock); in pcf8523_set_time() 555 k_mutex_lock(&data->lock, K_FOREVER); in pcf8523_alarm_is_pending() 579 k_mutex_unlock(&data->lock); in pcf8523_alarm_is_pending() 609 k_mutex_lock(&data->lock, K_FOREVER); in pcf8523_alarm_set_callback() 642 k_mutex_unlock(&data->lock); in pcf8523_alarm_set_callback() 665 k_mutex_lock(&data->lock, K_FOREVER); in pcf8523_update_set_callback() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | w1.h | 98 typedef int (*w1_change_bus_lock_t)(const struct device *dev, bool lock); 114 __syscall int w1_change_bus_lock(const struct device *dev, bool lock); 116 static inline int z_impl_w1_change_bus_lock(const struct device *dev, bool lock) in z_impl_w1_change_bus_lock() argument 122 return api->change_bus_lock(dev, lock); in z_impl_w1_change_bus_lock() 125 if (lock) { in z_impl_w1_change_bus_lock()
|
/Zephyr-latest/tests/lib/p4workq/src/ |
D | main.c | 29 static struct k_spinlock lock; variable 54 k_spinlock_key_t k = k_spin_lock(&lock); in stress_handler() 66 k_spin_unlock(&lock, k); in stress_handler() 91 k_spin_unlock(&lock, k); in stress_handler()
|
/Zephyr-latest/drivers/can/ |
D | can_mcan.c | 53 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_exit_sleep_mode() 94 k_mutex_unlock(&data->lock); in can_mcan_exit_sleep_mode() 106 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_enter_init_mode() 146 k_mutex_unlock(&data->lock); in can_mcan_enter_init_mode() 158 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_leave_init_mode() 192 k_mutex_unlock(&data->lock); in can_mcan_leave_init_mode() 207 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_set_timing() 220 k_mutex_unlock(&data->lock); in can_mcan_set_timing() 238 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_set_timing_data() 268 k_mutex_unlock(&data->lock); in can_mcan_set_timing_data() [all …]
|
/Zephyr-latest/drivers/timer/ |
D | mtk_adsp_timer.c | 75 static struct k_spinlock lock; variable 122 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed() 127 k_spin_unlock(&lock, key); in sys_clock_elapsed()
|
D | silabs_sleeptimer_timer.c | 41 struct k_spinlock lock; /* Spinlock to sync between ISR and updating the timeout */ member 73 k_spinlock_key_t key = k_spin_lock(&timer->lock); in sleeptimer_clock_set_timeout() 90 k_spin_unlock(&timer->lock, key); in sleeptimer_clock_set_timeout()
|
/Zephyr-latest/drivers/firmware/scmi/ |
D | core.c | 70 k_mutex_init(&chan->lock); in scmi_core_setup_chan() 130 ret = k_mutex_lock(&proto->tx->lock, K_USEC(SCMI_CHAN_LOCK_TIMEOUT_USEC)); in scmi_send_message_post_kernel() 156 k_mutex_unlock(&proto->tx->lock); in scmi_send_message_post_kernel()
|
/Zephyr-latest/drivers/wifi/nrf_wifi/off_raw_tx/inc/ |
D | off_raw_tx.h | 25 struct k_spinlock lock; member
|
/Zephyr-latest/subsys/sd/ |
D | sd_ops.c | 558 ret = k_mutex_lock(&card->lock, K_MSEC(CONFIG_SD_DATA_TIMEOUT)); in card_read_blocks() 575 k_mutex_unlock(&card->lock); in card_read_blocks() 586 k_mutex_unlock(&card->lock); in card_read_blocks() 600 k_mutex_unlock(&card->lock); in card_read_blocks() 604 k_mutex_unlock(&card->lock); in card_read_blocks() 724 ret = k_mutex_lock(&card->lock, K_MSEC(CONFIG_SD_DATA_TIMEOUT)); in card_write_blocks() 740 k_mutex_unlock(&card->lock); in card_write_blocks() 753 k_mutex_unlock(&card->lock); in card_write_blocks() 765 k_mutex_unlock(&card->lock); in card_write_blocks() 769 k_mutex_unlock(&card->lock); in card_write_blocks() [all …]
|
/Zephyr-latest/include/zephyr/posix/ |
D | pthread.h | 522 int pthread_spin_destroy(pthread_spinlock_t *lock); 529 int pthread_spin_init(pthread_spinlock_t *lock, int pshared); 536 int pthread_spin_lock(pthread_spinlock_t *lock); 543 int pthread_spin_trylock(pthread_spinlock_t *lock); 550 int pthread_spin_unlock(pthread_spinlock_t *lock);
|
/Zephyr-latest/drivers/dai/intel/alh/ |
D | alh.c | 167 key = k_spin_lock(&dai_alh_global.lock); in dai_alh_probe() 175 k_spin_unlock(&dai_alh_global.lock, key); in dai_alh_probe() 186 key = k_spin_lock(&dai_alh_global.lock); in dai_alh_remove() 192 k_spin_unlock(&dai_alh_global.lock, key); in dai_alh_remove()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/ |
D | btp_cas.h | 18 uint8_t lock; member
|
D | btp_csis.h | 19 uint8_t lock; member
|
/Zephyr-latest/drivers/sensor/bosch/bmi323/ |
D | bmi323.c | 39 struct k_mutex lock; member 400 k_mutex_lock(&data->lock, K_FOREVER); in bosch_bmi323_driver_api_attr_set() 459 k_mutex_unlock(&data->lock); in bosch_bmi323_driver_api_attr_set() 742 k_mutex_lock(&data->lock, K_FOREVER); in bosch_bmi323_driver_api_attr_get() 800 k_mutex_unlock(&data->lock); in bosch_bmi323_driver_api_attr_get() 859 k_mutex_lock(&data->lock, K_FOREVER); in bosch_bmi323_driver_api_trigger_set() 887 k_mutex_unlock(&data->lock); in bosch_bmi323_driver_api_trigger_set() 1010 k_mutex_lock(&data->lock, K_FOREVER); in bosch_bmi323_driver_api_sample_fetch() 1051 k_mutex_unlock(&data->lock); in bosch_bmi323_driver_api_sample_fetch() 1062 k_mutex_lock(&data->lock, K_FOREVER); in bosch_bmi323_driver_api_channel_get() [all …]
|
/Zephyr-latest/drivers/w1/ |
D | w1_ds2482-800_channel.c | 106 static int ds2482_change_bus_lock(const struct device *dev, bool lock) in ds2482_change_bus_lock() argument 112 ret = ds2482_change_bus_lock_impl(config->parent, lock); in ds2482_change_bus_lock() 118 if (!lock) { in ds2482_change_bus_lock()
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4.c | 44 static K_MUTEX_DEFINE(lock); 861 k_mutex_lock(&lock, K_FOREVER); in dhcpv4_timeout() 875 k_mutex_unlock(&lock); in dhcpv4_timeout() 1509 k_mutex_lock(&lock, K_FOREVER); in net_dhcpv4_input() 1548 k_mutex_unlock(&lock); in net_dhcpv4_input() 1558 k_mutex_lock(&lock, K_FOREVER); in dhcpv4_iface_event_handler() 1595 k_mutex_unlock(&lock); in dhcpv4_iface_event_handler() 1606 k_mutex_lock(&lock, K_FOREVER); in dhcpv4_acd_event_handler() 1645 k_mutex_unlock(&lock); in dhcpv4_acd_event_handler() 1690 k_mutex_lock(&lock, K_FOREVER); in dhcpv4_start_internal() [all …]
|