Home
last modified time | relevance | path

Searched refs:lock (Results 201 – 225 of 483) sorted by relevance

12345678910>>...20

/Zephyr-latest/drivers/i2c/
Di2c_sam_twi.c68 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()
Di2c_smartbond.c32 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/
Dclock_control_renesas_cpg_mssr.c240 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()
Dclock_control_r8a779f0_cpg_mssr.c135 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/
Dipv6_pe.c85 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 …]
Dnet_if.c51 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/
Dcapture.c37 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/
Dgpio_pcal64xxa.c88 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/
Drtc_ifx_cat1.c92 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()
Drtc_pcf8523.c132 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/
Dw1.h98 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/
Dmain.c29 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/
Dcan_mcan.c53 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/
Dmtk_adsp_timer.c75 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()
Dsilabs_sleeptimer_timer.c41 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/
Dcore.c70 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/
Doff_raw_tx.h25 struct k_spinlock lock; member
/Zephyr-latest/subsys/sd/
Dsd_ops.c558 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/
Dpthread.h522 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/
Dalh.c167 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/
Dbtp_cas.h18 uint8_t lock; member
Dbtp_csis.h19 uint8_t lock; member
/Zephyr-latest/drivers/sensor/bosch/bmi323/
Dbmi323.c39 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/
Dw1_ds2482-800_channel.c106 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/
Ddhcpv4.c44 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 …]

12345678910>>...20