Home
last modified time | relevance | path

Searched refs:lock (Results 51 – 75 of 483) sorted by relevance

12345678910>>...20

/Zephyr-latest/drivers/gpio/
Dgpio_bd8lb600fs.c34 struct k_mutex lock; member
83 k_mutex_lock(&data->lock, K_FOREVER); in bd8lb600fs_gpio_pin_configure()
95 k_mutex_unlock(&data->lock); in bd8lb600fs_gpio_pin_configure()
117 k_mutex_lock(&data->lock, K_FOREVER); in bd8lb600fs_gpio_port_set_masked_raw()
122 k_mutex_unlock(&data->lock); in bd8lb600fs_gpio_port_set_masked_raw()
147 k_mutex_lock(&data->lock, K_FOREVER); in bd8lb600fs_gpio_port_toggle_bits()
152 k_mutex_unlock(&data->lock); in bd8lb600fs_gpio_port_toggle_bits()
176 int result = k_mutex_init(&data->lock); in bd8lb600fs_gpio_init()
Dgpio_ite_it8xxx2_v2.c66 struct k_spinlock lock; member
95 k_spinlock_key_t key = k_spin_lock(&data->lock); in gpio_ite_configure()
218 k_spin_unlock(&data->lock, key); in gpio_ite_configure()
236 k_spinlock_key_t key = k_spin_lock(&data->lock); in gpio_ite_get_config()
281 k_spin_unlock(&data->lock, key); in gpio_ite_get_config()
307 k_spinlock_key_t key = k_spin_lock(&data->lock); in gpio_ite_port_set_masked_raw()
311 k_spin_unlock(&data->lock, key); in gpio_ite_port_set_masked_raw()
323 k_spinlock_key_t key = k_spin_lock(&data->lock); in gpio_ite_port_set_bits_raw()
326 k_spin_unlock(&data->lock, key); in gpio_ite_port_set_bits_raw()
338 k_spinlock_key_t key = k_spin_lock(&data->lock); in gpio_ite_port_clear_bits_raw()
[all …]
Dgpio_emul.c94 struct k_spinlock lock; member
280 key = k_spin_lock(&drv_data->lock); in gpio_emul_pend_interrupt()
284 k_spin_unlock(&drv_data->lock, key); in gpio_emul_pend_interrupt()
286 key = k_spin_lock(&drv_data->lock); in gpio_emul_pend_interrupt()
293 k_spin_unlock(&drv_data->lock, key); in gpio_emul_pend_interrupt()
341 key = k_spin_lock(&drv_data->lock); in gpio_emul_input_set_masked()
345 k_spin_unlock(&drv_data->lock, key); in gpio_emul_input_set_masked()
372 key = k_spin_lock(&drv_data->lock); in gpio_emul_output_get_masked()
374 k_spin_unlock(&drv_data->lock, key); in gpio_emul_output_get_masked()
396 key = k_spin_lock(&drv_data->lock); in gpio_emul_flags_get()
[all …]
Dgpio_mcp23xxx.c181 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_pin_cfg()
202 k_sem_give(&drv_data->lock); in mcp23xxx_pin_cfg()
216 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_port_get_raw()
223 k_sem_give(&drv_data->lock); in mcp23xxx_port_get_raw()
237 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_port_set_masked_raw()
247 k_sem_give(&drv_data->lock); in mcp23xxx_port_set_masked_raw()
271 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_port_toggle_bits()
281 k_sem_give(&drv_data->lock); in mcp23xxx_port_toggle_bits()
300 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_pin_interrupt_configure()
377 k_sem_give(&drv_data->lock); in mcp23xxx_pin_interrupt_configure()
[all …]
Dgpio_cy8c95xx.c37 struct k_sem *lock; member
115 k_sem_take(drv_data->lock, K_FOREVER); in cy8c95xx_config()
133 k_sem_give(drv_data->lock); in cy8c95xx_config()
150 k_sem_take(drv_data->lock, K_FOREVER); in port_get()
158 k_sem_give(drv_data->lock); in port_get()
177 k_sem_take(drv_data->lock, K_FOREVER); in port_write()
184 k_sem_give(drv_data->lock); in port_write()
230 k_sem_take(drv_data->lock, K_FOREVER); in cy8c95xx_init()
261 k_sem_give(drv_data->lock); in cy8c95xx_init()
285 .lock = &cy8c95xx_lock, \
Dgpio_tle9104.c36 struct k_mutex lock; member
95 k_mutex_lock(&data->lock, K_FOREVER); in tle9104_gpio_pin_configure()
105 k_mutex_unlock(&data->lock); in tle9104_gpio_pin_configure()
140 k_mutex_lock(&data->lock, K_FOREVER); in tle9104_gpio_port_set_masked_raw()
143 k_mutex_unlock(&data->lock); in tle9104_gpio_port_set_masked_raw()
179 k_mutex_lock(&data->lock, K_FOREVER); in tle9104_gpio_port_toggle_bits()
182 k_mutex_unlock(&data->lock); in tle9104_gpio_port_toggle_bits()
220 result = k_mutex_init(&data->lock); in tle9104_gpio_init()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_cache.c16 k_mutex_lock(cache->lock, K_FOREVER); in dns_cache_flush()
20 k_mutex_unlock(cache->lock); in dns_cache_flush()
43 k_mutex_lock(cache->lock, K_FOREVER); in dns_cache_add()
70 k_mutex_unlock(cache->lock); in dns_cache_add()
85 k_mutex_lock(cache->lock, K_FOREVER); in dns_cache_remove()
95 k_mutex_unlock(cache->lock); in dns_cache_remove()
116 k_mutex_lock(cache->lock, K_FOREVER); in dns_cache_find()
137 k_mutex_unlock(cache->lock); in dns_cache_find()
/Zephyr-latest/drivers/adc/
Dadc_context.h61 struct k_sem lock; member
83 ._ctx_name.lock = Z_SEM_INITIALIZER(_data._ctx_name.lock, 0, 1)
97 k_sem_init(&ctx->lock, 0, 1); in adc_context_init()
141 k_sem_take(&ctx->lock, K_FOREVER); in adc_context_lock()
157 k_sem_give(&ctx->lock); in adc_context_release()
162 if (!k_sem_count_get(&ctx->lock)) { in adc_context_unlock_unconditionally()
163 k_sem_give(&ctx->lock); in adc_context_unlock_unconditionally()
196 k_sem_give(&ctx->lock); in adc_context_complete()
/Zephyr-latest/drivers/timer/
Dmchp_xec_rtos_timer.c103 static struct k_spinlock lock; variable
215 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
239 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
253 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
267 k_spin_unlock(&lock, key); in sys_clock_elapsed()
279 k_spinlock_key_t key = k_spin_lock(&lock); in xec_rtos_timer_isr()
299 k_spin_unlock(&lock, key); in xec_rtos_timer_isr()
311 k_spinlock_key_t key = k_spin_lock(&lock); in xec_rtos_timer_isr()
321 k_spin_unlock(&lock, key); in xec_rtos_timer_isr()
348 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
[all …]
Dnpcx_itim_timer.c71 static struct k_spinlock lock; variable
195 k_spinlock_key_t key = k_spin_lock(&lock); in npcx_itim_evt_isr()
202 k_spin_unlock(&lock, key); in npcx_itim_evt_isr()
267 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
269 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
279 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
284 k_spin_unlock(&lock, key); in sys_clock_elapsed()
292 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
295 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
303 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_64()
[all …]
Desp32_sys_timer.c34 static struct k_spinlock lock; variable
64 k_spinlock_key_t key = k_spin_lock(&lock); in sys_timer_isr()
80 k_spin_unlock(&lock, key); in sys_timer_isr()
92 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
110 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
120 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
123 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Dcortex_m_systick.c34 static struct k_spinlock lock; variable
276 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
331 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
341 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
345 k_spin_unlock(&lock, key); in sys_clock_elapsed()
351 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
355 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
362 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_64()
365 k_spin_unlock(&lock, key); in sys_clock_cycle_get_64()
432 K_SPINLOCK(&lock) { in sys_clock_idle_exit()
Dmcux_gpt_timer.c50 static struct k_spinlock lock; variable
91 key = k_spin_lock(&lock); in mcux_imx_gpt_isr()
125 k_spin_unlock(&lock, key); in mcux_imx_gpt_isr()
146 key = k_spin_lock(&lock); in sys_clock_set_timeout()
164 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
175 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
179 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Darcv2_timer0.c61 static struct k_spinlock lock; variable
223 key = k_spin_lock(&lock); in timer_int_handler()
231 k_spin_unlock(&lock, key); in timer_int_handler()
315 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
355 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
367 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
375 k_spin_unlock(&lock, key); in sys_clock_elapsed()
385 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
388 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
/Zephyr-latest/lib/utils/
Dbitarray.c224 key = k_spin_lock(&bitarray->lock); in sys_bitarray_popcount_region()
258 k_spin_unlock(&bitarray->lock, key); in sys_bitarray_popcount_region()
274 key_dst = k_spin_lock(&dst->lock); in sys_bitarray_xor()
275 key_other = k_spin_lock(&other->lock); in sys_bitarray_xor()
315 k_spin_unlock(&other->lock, key_other); in sys_bitarray_xor()
316 k_spin_unlock(&dst->lock, key_dst); in sys_bitarray_xor()
329 key = k_spin_lock(&bitarray->lock); in sys_bitarray_set_bit()
344 k_spin_unlock(&bitarray->lock, key); in sys_bitarray_set_bit()
357 key = k_spin_lock(&bitarray->lock); in sys_bitarray_clear_bit()
372 k_spin_unlock(&bitarray->lock, key); in sys_bitarray_clear_bit()
[all …]
Donoff.c204 k_spinlock_key_t key = k_spin_lock(&mgr->lock); in transition_complete()
383 k_spin_unlock(&mgr->lock, key); in process_event()
397 key = k_spin_lock(&mgr->lock); in process_event()
418 k_spin_unlock(&mgr->lock, key); in process_event()
433 k_spinlock_key_t key = k_spin_lock(&mgr->lock); in onoff_request()
468 k_spin_unlock(&mgr->lock, key); in onoff_request()
482 k_spinlock_key_t key = k_spin_lock(&mgr->lock); in onoff_release()
503 k_spin_unlock(&mgr->lock, key); in onoff_release()
524 k_spinlock_key_t key = k_spin_lock(&mgr->lock); in onoff_reset()
539 k_spin_unlock(&mgr->lock, key); in onoff_reset()
[all …]
/Zephyr-latest/lib/os/zvfs/
Dzvfs_poll.c30 struct k_mutex *lock; in zvfs_poll_internal() local
48 ctx = zvfs_get_fd_obj_and_vtable(pfd->fd, &vtable, &lock); in zvfs_poll_internal()
54 (void)k_mutex_lock(lock, K_FOREVER); in zvfs_poll_internal()
85 k_mutex_unlock(lock); in zvfs_poll_internal()
130 ctx = zvfs_get_fd_obj_and_vtable(pfd->fd, &vtable, &lock); in zvfs_poll_internal()
137 (void)k_mutex_lock(lock, K_FOREVER); in zvfs_poll_internal()
141 k_mutex_unlock(lock); in zvfs_poll_internal()
/Zephyr-latest/drivers/watchdog/
Dwdt_andes_atcwdt200.c92 struct k_spinlock lock; member
106 key = k_spin_lock(&wdt_data->lock); in wdt_counter_cb()
113 k_spin_unlock(&wdt_data->lock, key); in wdt_counter_cb()
128 key = k_spin_lock(&data->lock); in wdt_atcwdt200_set_max_timeout()
144 k_spin_unlock(&data->lock, key); in wdt_atcwdt200_set_max_timeout()
154 key = k_spin_lock(&data->lock); in wdt_atcwdt200_disable()
162 k_spin_unlock(&data->lock, key); in wdt_atcwdt200_disable()
183 key = k_spin_lock(&data->lock); in wdt_atcwdt200_setup()
206 k_spin_unlock(&data->lock, key); in wdt_atcwdt200_setup()
258 key = k_spin_lock(&data->lock); in wdt_atcwdt200_install_timeout()
[all …]
/Zephyr-latest/drivers/serial/
Duart_rcar.c35 struct k_spinlock lock; member
157 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_rcar_poll_in()
172 k_spin_unlock(&data->lock, key); in uart_rcar_poll_in()
181 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_rcar_poll_out()
193 k_spin_unlock(&data->lock, key); in uart_rcar_poll_out()
212 key = k_spin_lock(&data->lock); in uart_rcar_configure()
267 k_spin_unlock(&data->lock, key); in uart_rcar_configure()
342 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_rcar_fifo_fill()
356 k_spin_unlock(&data->lock, key); in uart_rcar_fifo_fill()
367 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_rcar_fifo_read()
[all …]
/Zephyr-latest/drivers/rtc/
Drtc_rpi_pico.c34 struct k_spinlock lock; member
59 K_SPINLOCK(&data->lock) { in rtc_rpi_isr()
113 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_rpi_pico_set_time()
127 k_spin_unlock(&data->lock, key); in rtc_rpi_pico_set_time()
137 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_rpi_pico_get_time()
154 k_spin_unlock(&data->lock, key); in rtc_rpi_pico_get_time()
200 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_rpi_pico_alarm_set_time()
244 k_spin_unlock(&data->lock, key); in rtc_rpi_pico_alarm_set_time()
263 K_SPINLOCK(&data->lock) { in rtc_rpi_pico_alarm_get_time()
280 K_SPINLOCK(&data->lock) { in rtc_rpi_pico_alarm_is_pending()
[all …]
/Zephyr-latest/drivers/peci/
Dpeci_npcx.c34 struct k_sem lock; member
77 k_sem_take(&data->lock, K_FOREVER); in peci_npcx_configure()
98 k_sem_give(&data->lock); in peci_npcx_configure()
107 k_sem_take(&data->lock, K_FOREVER); in peci_npcx_disable()
111 k_sem_give(&data->lock); in peci_npcx_disable()
122 k_sem_take(&data->lock, K_FOREVER); in peci_npcx_enable()
129 k_sem_give(&data->lock); in peci_npcx_enable()
144 k_sem_take(&data->lock, K_FOREVER); in peci_npcx_transfer()
196 k_sem_give(&data->lock); in peci_npcx_transfer()
268 k_sem_init(&data->lock, 1, 1); in peci_npcx_init()
/Zephyr-latest/drivers/eeprom/
Deeprom_mb85rsxx.c59 struct k_mutex lock; member
107 k_mutex_lock(&data->lock, K_FOREVER); in eeprom_mb85rsxx_read()
111 k_mutex_unlock(&data->lock); in eeprom_mb85rsxx_read()
191 k_mutex_lock(&data->lock, K_FOREVER); in eeprom_mb85rsxx_write()
196 k_mutex_unlock(&data->lock); in eeprom_mb85rsxx_write()
203 k_mutex_unlock(&data->lock); in eeprom_mb85rsxx_write()
212 k_mutex_unlock(&data->lock); in eeprom_mb85rsxx_write()
254 k_mutex_lock(&data->lock, K_FOREVER); in eeprom_mb85rsxx_rdid()
256 k_mutex_unlock(&data->lock); in eeprom_mb85rsxx_rdid()
282 k_mutex_init(&data->lock); in eeprom_mb85rsxx_init()
/Zephyr-latest/kernel/
Dstack.c31 stack->lock = (struct k_spinlock) {}; in k_stack_init()
105 k_spinlock_key_t key = k_spin_lock(&stack->lock); in z_impl_k_stack_push()
121 z_reschedule(&stack->lock, key); in z_impl_k_stack_push()
130 k_spin_unlock(&stack->lock, key); in z_impl_k_stack_push()
154 key = k_spin_lock(&stack->lock); in z_impl_k_stack_pop()
161 k_spin_unlock(&stack->lock, key); in z_impl_k_stack_pop()
171 k_spin_unlock(&stack->lock, key); in z_impl_k_stack_pop()
178 result = z_pend_curr(&stack->lock, key, &stack->wait_q, timeout); in z_impl_k_stack_pop()
Dmsg_q.c51 msgq->lock = (struct k_spinlock) {}; in k_msgq_init()
132 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_put()
148 z_reschedule(&msgq->lock, key); in z_impl_k_msgq_put()
174 result = z_pend_curr(&msgq->lock, key, &msgq->wait_q, timeout); in z_impl_k_msgq_put()
181 z_reschedule(&msgq->lock, key); in z_impl_k_msgq_put()
224 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_get()
256 z_reschedule(&msgq->lock, key); in z_impl_k_msgq_get()
272 result = z_pend_curr(&msgq->lock, key, &msgq->wait_q, timeout); in z_impl_k_msgq_get()
279 k_spin_unlock(&msgq->lock, key); in z_impl_k_msgq_get()
301 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_peek()
[all …]
/Zephyr-latest/soc/nordic/common/
Dsoc_lrcconf.c10 static struct k_spinlock lock; variable
28 K_SPINLOCK(&lock) { in soc_lrcconf_poweron_request()
52 K_SPINLOCK(&lock) { in soc_lrcconf_poweron_release()

12345678910>>...20