Home
last modified time | relevance | path

Searched refs:lock (Results 26 – 50 of 483) sorted by relevance

12345678910>>...20

/Zephyr-latest/kernel/
Dkheap.c71 k_spinlock_key_t key = k_spin_lock(&heap->lock); in k_heap_aligned_alloc()
98 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_aligned_alloc()
99 key = k_spin_lock(&heap->lock); in k_heap_aligned_alloc()
104 k_spin_unlock(&heap->lock, key); in k_heap_aligned_alloc()
143 k_spinlock_key_t key = k_spin_lock(&heap->lock); in k_heap_realloc()
158 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_realloc()
159 key = k_spin_lock(&heap->lock); in k_heap_realloc()
164 k_spin_unlock(&heap->lock, key); in k_heap_realloc()
170 k_spinlock_key_t key = k_spin_lock(&heap->lock); in k_heap_free()
176 z_reschedule(&heap->lock, key); in k_heap_free()
[all …]
Dsem.c39 static struct k_spinlock lock; variable
98 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_sem_give()
115 z_reschedule(&lock, key); in z_impl_k_sem_give()
117 k_spin_unlock(&lock, key); in z_impl_k_sem_give()
139 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_sem_take()
145 k_spin_unlock(&lock, key); in z_impl_k_sem_take()
151 k_spin_unlock(&lock, key); in z_impl_k_sem_take()
158 ret = z_pend_curr(&lock, key, &sem->wait_q, timeout); in z_impl_k_sem_take()
169 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_sem_reset()
185 z_reschedule(&lock, key); in z_impl_k_sem_reset()
Dcondvar.c19 static struct k_spinlock lock; variable
46 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_condvar_signal()
57 z_reschedule(&lock, key); in z_impl_k_condvar_signal()
59 k_spin_unlock(&lock, key); in z_impl_k_condvar_signal()
82 key = k_spin_lock(&lock); in z_impl_k_condvar_broadcast()
96 z_reschedule(&lock, key); in z_impl_k_condvar_broadcast()
117 key = k_spin_lock(&lock); in z_impl_k_condvar_wait()
120 ret = z_pend_curr(&lock, key, &condvar->wait_q, timeout); in z_impl_k_condvar_wait()
Dmem_slab.c34 key = k_spin_lock(&slab->lock); in k_mem_slab_stats_raw()
36 k_spin_unlock(&slab->lock, key); in k_mem_slab_stats_raw()
50 key = k_spin_lock(&slab->lock); in k_mem_slab_stats_query()
59 k_spin_unlock(&slab->lock, key); in k_mem_slab_stats_query()
72 key = k_spin_lock(&slab->lock); in k_mem_slab_stats_reset()
78 k_spin_unlock(&slab->lock, key); in k_mem_slab_stats_reset()
180 slab->lock = (struct k_spinlock) {}; in k_mem_slab_init()
223 k_spinlock_key_t key = k_spin_lock(&slab->lock); in k_mem_slab_alloc()
253 result = z_pend_curr(&slab->lock, key, &slab->wait_q, timeout); in k_mem_slab_alloc()
265 k_spin_unlock(&slab->lock, key); in k_mem_slab_alloc()
[all …]
Dpoll.c36 static struct k_spinlock lock; variable
223 k_spin_unlock(&lock, key); in clear_event_registrations()
224 key = k_spin_lock(&lock); in clear_event_registrations()
245 key = k_spin_lock(&lock); in register_events()
259 k_spin_unlock(&lock, key); in register_events()
307 key = k_spin_lock(&lock); in z_impl_k_poll()
316 k_spin_unlock(&lock, key); in z_impl_k_poll()
326 k_spin_unlock(&lock, key); in z_impl_k_poll()
335 int swap_rc = z_pend_curr(&lock, key, &wait_q, timeout); in z_impl_k_poll()
346 key = k_spin_lock(&lock); in z_impl_k_poll()
[all …]
/Zephyr-latest/drivers/timer/
Dmips_cp0_timer.c28 static struct k_spinlock lock; variable
45 k_spinlock_key_t key = k_spin_lock(&lock); in timer_isr()
60 k_spin_unlock(&lock, key); in timer_isr()
75 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
94 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
103 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
106 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Dlitex_timer.c50 static struct k_spinlock lock; in sys_clock_cycle_get_32() local
52 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
57 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
64 static struct k_spinlock lock; in sys_clock_cycle_get_64() local
66 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_64()
71 k_spin_unlock(&lock, key); in sys_clock_cycle_get_64()
Dti_dmtimer.c31 static struct k_spinlock lock; variable
61 k_spinlock_key_t key = k_spin_lock(&lock); in ti_dmtimer_isr()
79 k_spin_unlock(&lock, key); in ti_dmtimer_isr()
95 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
103 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
108 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
112 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32()
124 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
130 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Dxtensa_sys_timer.c21 static struct k_spinlock lock; variable
47 k_spinlock_key_t key = k_spin_lock(&lock); in ccompare_isr()
62 k_spin_unlock(&lock, key); in ccompare_isr()
74 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
93 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
103 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
106 k_spin_unlock(&lock, key); in sys_clock_elapsed()
Dmchp_mec5_ktimer.c92 static struct k_spinlock lock; variable
164 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
188 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
202 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
216 k_spin_unlock(&lock, key); in sys_clock_elapsed()
228 k_spinlock_key_t key = k_spin_lock(&lock); in mec5_ktimer_isr()
248 k_spin_unlock(&lock, key); in mec5_ktimer_isr()
258 k_spinlock_key_t key = k_spin_lock(&lock); in mec5_ktimer_isr()
268 k_spin_unlock(&lock, key); in mec5_ktimer_isr()
294 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32()
[all …]
Darm_arch_timer.c65 static struct k_spinlock lock; variable
78 k_spinlock_key_t key = k_spin_lock(&lock); in arm_arch_timer_compare_isr()
93 k_spin_unlock(&lock, key); in arm_arch_timer_compare_isr()
136 k_spin_unlock(&lock, key);
151 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
165 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
174 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
180 k_spin_unlock(&lock, key); in sys_clock_elapsed()
/Zephyr-latest/drivers/gpio/
Dgpio_rt1718s_port.c35 struct k_sem lock; member
86 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_pin_config()
88 k_sem_give(&data->lock); in gpio_rt1718s_pin_config()
114 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_set_masked_raw()
134 k_sem_give(&data->lock); in gpio_rt1718s_port_set_masked_raw()
146 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_set_bits_raw()
161 k_sem_give(&data->lock); in gpio_rt1718s_port_set_bits_raw()
173 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_clear_bits_raw()
188 k_sem_give(&data->lock); in gpio_rt1718s_port_clear_bits_raw()
200 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_toggle_bits()
[all …]
Dgpio_nct38xx_port.c35 struct k_sem *lock; member
64 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_pin_config()
125 k_sem_give(data->lock); in gpio_nct38xx_pin_config()
138 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_pin_get_config()
195 k_sem_give(data->lock); in gpio_nct38xx_pin_get_config()
206 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_get_raw()
211 k_sem_give(data->lock); in gpio_nct38xx_port_get_raw()
222 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_set_masked_raw()
227 k_sem_give(data->lock); in gpio_nct38xx_port_set_masked_raw()
238 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_set_bits_raw()
[all …]
Dgpio_sn74hc595.c40 struct k_mutex lock; member
69 k_mutex_lock(&drv_data->lock, K_FOREVER); in gpio_sn74hc595_port_get_raw()
73 k_mutex_unlock(&drv_data->lock); in gpio_sn74hc595_port_get_raw()
85 k_mutex_lock(&drv_data->lock, K_FOREVER); in gpio_sn74hc595_port_set_masked_raw()
101 k_mutex_unlock(&drv_data->lock); in gpio_sn74hc595_port_set_masked_raw()
121 k_mutex_lock(&drv_data->lock, K_FOREVER); in gpio_sn74hc595_port_toggle_bits()
133 k_mutex_unlock(&drv_data->lock); in gpio_sn74hc595_port_toggle_bits()
184 .lock = Z_MUTEX_INITIALIZER(sn74hc595_data_##n.lock), \
/Zephyr-latest/drivers/serial/
Duart_mchp_xec.c202 struct k_spinlock lock; member
335 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in uart_xec_configure()
421 k_spin_unlock(&dev_data->lock, key); in uart_xec_configure()
564 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in uart_xec_poll_in()
572 k_spin_unlock(&dev_data->lock, key); in uart_xec_poll_in()
594 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in uart_xec_poll_out()
602 k_spin_unlock(&dev_data->lock, key); in uart_xec_poll_out()
618 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in uart_xec_err_check()
621 k_spin_unlock(&dev_data->lock, key); in uart_xec_err_check()
644 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in uart_xec_fifo_fill()
[all …]
/Zephyr-latest/subsys/net/ip/
Dpmtu.c36 static K_MUTEX_DEFINE(lock);
43 k_mutex_lock(&lock, K_FOREVER); in get_pmtu_entry()
73 k_mutex_unlock(&lock); in get_pmtu_entry()
84 k_mutex_lock(&lock, K_FOREVER); in get_free_pmtu_entry()
102 k_mutex_unlock(&lock); in get_free_pmtu_entry()
186 k_mutex_lock(&lock, K_FOREVER); in add_entry()
214 k_mutex_unlock(&lock); in add_entry()
220 k_mutex_unlock(&lock); in add_entry()
267 k_mutex_lock(&lock, K_FOREVER); in net_pmtu_foreach()
274 k_mutex_unlock(&lock); in net_pmtu_foreach()
[all …]
/Zephyr-latest/subsys/pm/
Ddevice_runtime.c62 ret = k_sem_take(&pm->lock, k_is_in_isr() ? K_NO_WAIT : K_FOREVER); in runtime_suspend()
96 k_sem_give(&pm->lock); in runtime_suspend()
110 (void)k_sem_take(&pm->lock, K_FOREVER); in runtime_suspend_work()
118 k_sem_give(&pm->lock); in runtime_suspend_work()
186 k_spinlock_key_t k = k_spin_lock(&pm_sync->lock); in pm_device_runtime_get()
189 k_spin_unlock(&pm_sync->lock, k); in pm_device_runtime_get()
194 ret = k_sem_take(&pm->lock, k_is_in_isr() ? K_NO_WAIT : K_FOREVER); in pm_device_runtime_get()
246 k_sem_give(&pm->lock); in pm_device_runtime_get()
250 (void)k_sem_take(&pm->lock, K_FOREVER); in pm_device_runtime_get()
268 k_sem_give(&pm->lock); in pm_device_runtime_get()
[all …]
/Zephyr-latest/drivers/bbram/
Dbbram_microchip_mcp7940n.c27 struct k_mutex lock; member
46 k_mutex_init(&data->lock); in microchip_mcp7940n_bbram_init()
74 k_mutex_lock(&data->lock, K_FOREVER); in microchip_mcp7940n_bbram_is_invalid()
98 k_mutex_unlock(&data->lock); in microchip_mcp7940n_bbram_is_invalid()
115 k_mutex_lock(&data->lock, K_FOREVER); in microchip_mcp7940n_bbram_check_standby_power()
139 k_mutex_unlock(&data->lock); in microchip_mcp7940n_bbram_check_standby_power()
160 k_mutex_lock(&data->lock, K_FOREVER); in microchip_mcp7940n_bbram_read()
176 k_mutex_unlock(&data->lock); in microchip_mcp7940n_bbram_read()
193 k_mutex_lock(&data->lock, K_FOREVER); in microchip_mcp7940n_bbram_write()
210 k_mutex_unlock(&data->lock); in microchip_mcp7940n_bbram_write()
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_adsp.c22 static struct k_spinlock lock; variable
60 k_spinlock_key_t key = k_spin_lock(&lock); in panic()
64 k_spin_unlock(&lock, key); in panic()
78 k_spinlock_key_t key = k_spin_lock(&lock); in process()
82 k_spin_unlock(&lock, key); in process()
/Zephyr-latest/subsys/pm/policy/
Dpolicy_state_lock.c19 .lock = ATOMIC_INIT(0), \
36 atomic_t lock; member
50 atomic_inc(&substate_lock_t[i].lock); in pm_policy_state_lock_get()
63 atomic_t cnt = atomic_dec(&substate_lock_t[i].lock); in pm_policy_state_lock_put()
80 return (atomic_get(&substate_lock_t[i].lock) != 0); in pm_policy_state_lock_is_active()
/Zephyr-latest/drivers/watchdog/
Dwdt_tco.c58 struct k_spinlock lock; member
95 key = k_spin_lock(&data->lock); in tco_setup()
99 k_spin_unlock(&data->lock, key); in tco_setup()
113 k_spin_unlock(&data->lock, key); in tco_setup()
128 key = k_spin_lock(&data->lock); in tco_disable()
138 k_spin_unlock(&data->lock, key); in tco_disable()
195 key = k_spin_lock(&data->lock); in tco_install_timeout()
206 k_spin_unlock(&data->lock, key); in tco_install_timeout()
221 key = k_spin_lock(&data->lock); in tco_feed()
228 k_spin_unlock(&data->lock, key); in tco_feed()
[all …]
Dwdt_xilinx_axi.c54 struct k_spinlock lock; member
65 k_spinlock_key_t key = k_spin_lock(&data->lock); in wdt_xilinx_axi_setup()
88 k_spin_unlock(&data->lock, key); in wdt_xilinx_axi_setup()
96 k_spinlock_key_t key = k_spin_lock(&data->lock); in wdt_xilinx_axi_disable()
115 k_spin_unlock(&data->lock, key); in wdt_xilinx_axi_disable()
124 k_spinlock_key_t key = k_spin_lock(&data->lock); in wdt_xilinx_axi_install_timeout()
170 k_spin_unlock(&data->lock, key); in wdt_xilinx_axi_install_timeout()
178 k_spinlock_key_t key = k_spin_lock(&data->lock); in wdt_xilinx_axi_feed()
196 k_spin_unlock(&data->lock, key); in wdt_xilinx_axi_feed()
241 k_spinlock_key_t key = k_spin_lock(&data->lock); in z_impl_hwinfo_clear_reset_cause()
[all …]
/Zephyr-latest/soc/nordic/nrf54h/gpd/
Dgpd.c33 struct k_mutex lock; member
51 .lock = Z_MUTEX_INITIALIZER(fast_active0.lock),
56 .lock = Z_MUTEX_INITIALIZER(fast_active1.lock),
61 .lock = Z_MUTEX_INITIALIZER(fast_main.lock),
66 .lock = Z_MUTEX_INITIALIZER(slow_active.lock),
71 .lock = Z_MUTEX_INITIALIZER(slow_main.lock),
115 key = k_spin_lock(&gpd_mgr->mgr.lock); in nrf_gpd_sync()
123 k_spin_unlock(&gpd_mgr->mgr.lock, key); in nrf_gpd_sync()
242 k_mutex_lock(&gpd_mgr->lock, K_FOREVER); in nrf_gpd_request()
250 k_mutex_unlock(&gpd_mgr->lock); in nrf_gpd_request()
/Zephyr-latest/soc/intel/intel_adsp/common/
Dipc.c20 k_spinlock_key_t key = k_spin_lock(&devdata->lock); in intel_adsp_ipc_set_message_handler()
24 k_spin_unlock(&devdata->lock, key); in intel_adsp_ipc_set_message_handler()
31 k_spinlock_key_t key = k_spin_lock(&devdata->lock); in intel_adsp_ipc_set_done_handler()
35 k_spin_unlock(&devdata->lock, key); in intel_adsp_ipc_set_done_handler()
45 k_spinlock_key_t key = k_spin_lock(&devdata->lock); in z_intel_adsp_ipc_isr()
85 k_spin_unlock(&devdata->lock, key); in z_intel_adsp_ipc_isr()
92 k_spin_unlock(&devdata->lock, key); in z_intel_adsp_ipc_isr()
156 k_spinlock_key_t key = k_spin_lock(&devdata->lock); in intel_adsp_ipc_send_message()
159 k_spin_unlock(&devdata->lock, key); in intel_adsp_ipc_send_message()
169 k_spin_unlock(&devdata->lock, key); in intel_adsp_ipc_send_message()
[all …]
/Zephyr-latest/drivers/counter/
Dcounter_ambiq_timer.c33 static struct k_spinlock lock; variable
59 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_init()
90 k_spin_unlock(&lock, key); in counter_ambiq_init()
98 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_start()
106 k_spin_unlock(&lock, key); in counter_ambiq_start()
115 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_stop()
123 k_spin_unlock(&lock, key); in counter_ambiq_stop()
132 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_get_value()
141 k_spin_unlock(&lock, key); in counter_ambiq_get_value()
156 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_set_alarm()
[all …]

12345678910>>...20