Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 76) sorted by relevance

1234

/sof-2.7.6/src/include/sof/
Dspinlock.h82 #define spin_try_lock_dbg(lock, line) \ argument
86 if (arch_try_lock(lock)) \
92 tr_err_atomic(&sl_tr, "user: %d", (lock)->user); \
98 #define spin_lock_log(lock, line) \ argument
128 #define spin_lock_log(lock, line) do {} while (0) argument
143 static inline int _spin_try_lock(spinlock_t *lock, int line) in _spin_try_lock() argument
146 return arch_try_lock(lock); in _spin_try_lock()
149 #define spin_try_lock(lock) _spin_try_lock(lock, __LINE__) argument
152 static inline void _spinlock_init(spinlock_t *lock, int line) in _spinlock_init() argument
154 arch_spinlock_init(lock); in _spinlock_init()
[all …]
/sof-2.7.6/src/arch/xtensa/include/arch/
Dspinlock.h16 volatile uint32_t lock; member
22 static inline void arch_spinlock_init(spinlock_t *lock) in arch_spinlock_init() argument
24 lock->lock = 0; in arch_spinlock_init()
27 static inline void arch_spin_lock(spinlock_t *lock) in arch_spin_lock() argument
42 : "a" (&lock->lock) in arch_spin_lock()
46 static inline int arch_try_lock(spinlock_t *lock) in arch_try_lock() argument
56 : "a" (&lock->lock) in arch_try_lock()
63 static inline void arch_spin_unlock(spinlock_t *lock) in arch_spin_unlock() argument
71 : "a" (&lock->lock) in arch_spin_unlock()
/sof-2.7.6/src/
Dspinlock.c25 uint32_t _spin_lock_irq(spinlock_t *lock) in _spin_lock_irq() argument
33 spin_lock(lock); in _spin_lock_irq()
36 lock_dbg_user[lock_dbg_atomic - 1] = (lock)->user; in _spin_lock_irq()
41 void _spin_unlock_irq(spinlock_t *lock, uint32_t flags, int line) in _spin_unlock_irq() argument
43 _spin_unlock(lock, line); in _spin_unlock_irq()
/sof-2.7.6/src/arch/host/include/arch/
Dspinlock.h16 static inline void arch_spinlock_init(spinlock_t *lock) { } in arch_spinlock_init() argument
17 static inline void arch_spin_lock(spinlock_t *lock) {} in arch_spin_lock() argument
18 static inline int arch_try_lock(spinlock_t *lock) in arch_try_lock() argument
22 static inline void arch_spin_unlock(spinlock_t *lock) {} in arch_spin_unlock() argument
/sof-2.7.6/src/schedule/
Dzephyr_ll.c28 spinlock_t lock; /* protects the list of tasks and the counter */ member
155 spin_lock_irq(&sch->lock, flags); in zephyr_ll_run()
185 spin_unlock_irq(&sch->lock, flags); in zephyr_ll_run()
218 spin_lock_irq(&sch->lock, flags); in zephyr_ll_run()
251 spin_unlock_irq(&sch->lock, flags); in zephyr_ll_run()
266 spinlock_init(&sch->lock); in zephyr_ll_init_scheduler_for_first_task()
301 spin_lock_irq(&sch->lock, flags); in zephyr_ll_task_schedule()
311 spin_unlock_irq(&sch->lock, flags); in zephyr_ll_task_schedule()
324 spin_unlock_irq(&sch->lock, flags); in zephyr_ll_task_schedule()
340 spin_unlock_irq(&sch->lock, flags); in zephyr_ll_task_schedule()
[all …]
Dll_schedule.c66 spin_lock(&domain->lock); in schedule_ll_is_pending()
90 spin_unlock(&domain->lock); in schedule_ll_is_pending()
141 spin_lock(&domain->lock); in schedule_ll_tasks_execute()
154 spin_unlock(&domain->lock); in schedule_ll_tasks_execute()
201 spin_lock(&domain->lock); in schedule_ll_tasks_run()
211 spin_unlock(&domain->lock); in schedule_ll_tasks_run()
224 spin_lock(&domain->lock); in schedule_ll_tasks_run()
243 spin_unlock(&domain->lock); in schedule_ll_tasks_run()
260 spin_lock(&domain->lock); in schedule_ll_domain_set()
312 spin_unlock(&domain->lock); in schedule_ll_domain_set()
[all …]
/sof-2.7.6/src/drivers/
Dinterrupt.c63 spin_lock_irq(&root->lock, flags); in interrupt_cascade_register()
77 spinlock_init(&(*cascade)->lock); in interrupt_cascade_register()
98 spin_unlock_irq(&root->lock, flags); in interrupt_cascade_register()
120 spin_lock_irq(&root->lock, flags); in interrupt_get_irq()
132 spin_unlock_irq(&root->lock, flags); in interrupt_get_irq()
146 spin_lock_irq(&root->lock, flags); in interrupt_get_parent()
158 spin_unlock_irq(&root->lock, flags); in interrupt_get_parent()
169 spinlock_init(&sof->cascade_root->lock); in interrupt_init()
287 spin_lock_irq(&cascade->lock, flags); in irq_enable_child()
314 spin_unlock_irq(&cascade->lock, flags); in irq_enable_child()
[all …]
/sof-2.7.6/src/platform/intel/cavs/lib/
Dclk.c87 spin_lock_irq(&clk_info[CLK_CPU(i)].lock, flags[i]); in select_cpu_clock()
96 spin_unlock_irq(&clk_info[CLK_CPU(i)].lock, flags[i]); in select_cpu_clock()
187 spin_lock_irq(&prd->lock, flags); in platform_clock_on_waiti()
203 spin_unlock_irq(&prd->lock, flags); in platform_clock_on_waiti()
262 spin_lock_irq(&prd->lock, flags); in platform_clock_on_waiti()
278 spin_unlock_irq(&prd->lock, flags); in platform_clock_on_waiti()
289 spin_lock_irq(&prd->lock, flags); in platform_clock_on_wakeup()
298 spin_unlock_irq(&prd->lock, flags); in platform_clock_on_wakeup()
343 spinlock_init(&sof->clocks[i].lock); in platform_clock_init()
356 spinlock_init(&sof->clocks[CLK_SSP].lock); in platform_clock_init()
Ddai.c150 spinlock_init(&dai[i].lock); in dai_init()
165 spinlock_init(&dai[i].lock); in dai_init()
173 spinlock_init(&dai[i].lock); in dai_init()
192 spinlock_init(&dai[i].lock); in dai_init()
Dpm_runtime.c59 spin_lock_irq(&prd->lock, flags); in cavs_pm_runtime_host_dma_l1_get()
63 spin_unlock_irq(&prd->lock, flags); in cavs_pm_runtime_host_dma_l1_get()
76 spin_lock_irq(&prd->lock, flags); in cavs_pm_runtime_host_dma_l1_put()
88 spin_unlock_irq(&prd->lock, flags); in cavs_pm_runtime_host_dma_l1_put()
371 spin_lock_irq(&prd->lock, flags); in cavs_pm_runtime_core_dis_hp_clk()
381 spin_unlock_irq(&prd->lock, flags); in cavs_pm_runtime_core_dis_hp_clk()
390 spin_lock_irq(&prd->lock, flags); in cavs_pm_runtime_core_en_hp_clk()
395 spin_unlock_irq(&prd->lock, flags); in cavs_pm_runtime_core_en_hp_clk()
/sof-2.7.6/src/drivers/intel/ssp/
Dmn.c62 spinlock_t lock; /**< lock mechanism */ member
86 spinlock_init(&sof->mn->lock); in mn_init()
247 spin_lock(&mn->lock); in mn_set_mclk()
268 spin_unlock(&mn->lock); in mn_set_mclk()
286 spin_lock(&mn->lock); in mn_release_mclk()
309 spin_unlock(&mn->lock); in mn_release_mclk()
600 spin_lock(&mn->lock); in mn_set_bclk()
633 spin_unlock(&mn->lock); in mn_set_bclk()
643 spin_lock(&mn->lock); in mn_release_bclk()
650 spin_unlock(&mn->lock); in mn_release_bclk()
[all …]
/sof-2.7.6/src/platform/amd/renoir/lib/
Ddai.c110 spinlock_init(&acp_dmic_dai[i].lock); in dai_init()
113 spinlock_init(&spdai[i].lock); in dai_init()
117 spinlock_init(&btdai[i].lock); in dai_init()
/sof-2.7.6/src/trace/
Dtrace.c52 spinlock_t lock; /* locking mechanism */ member
258 spin_lock_irq(&trace->lock, flags); in vatrace_log()
260 spin_unlock_irq(&trace->lock, flags); in vatrace_log()
473 spin_lock_irq(&trace->lock, flags); in trace_flush_dma_to_mbox()
481 spin_unlock_irq(&trace->lock, flags); in trace_flush_dma_to_mbox()
489 spin_lock_irq(&trace->lock, flags); in trace_on()
494 spin_unlock_irq(&trace->lock, flags); in trace_on()
502 spin_lock_irq(&trace->lock, flags); in trace_off()
507 spin_unlock_irq(&trace->lock, flags); in trace_off()
517 spinlock_init(&sof->trace->lock); in trace_init()
[all …]
Ddma-trace.c104 spin_lock_irq(&d->lock, flags); in trace_work()
117 spin_unlock_irq(&d->lock, flags); in trace_work()
143 spinlock_init(&sof->dmat->lock); in dma_trace_init_early()
236 spin_lock_irq(&d->lock, flags); in dma_trace_buffer_init()
245 spin_unlock_irq(&d->lock, flags); in dma_trace_buffer_init()
255 spin_lock_irq(&d->lock, flags); in dma_trace_buffer_free()
260 spin_unlock_irq(&d->lock, flags); in dma_trace_buffer_free()
608 spin_lock_irq(&trace_data->lock, flags); in dtrace_event()
616 spin_unlock_irq(&trace_data->lock, flags); in dtrace_event()
620 spin_unlock_irq(&trace_data->lock, flags); in dtrace_event()
/sof-2.7.6/src/ipc/
Dipc-common.c175 spin_lock_irq(&ipc->lock, flags); in ipc_send_queued_msg()
187 spin_unlock_irq(&ipc->lock, flags); in ipc_send_queued_msg()
196 spin_lock_irq(&ipc->lock, flags); in ipc_msg_send()
220 spin_unlock_irq(&ipc->lock, flags); in ipc_msg_send()
237 spinlock_init(&sof->ipc->lock); in ipc_init()
/sof-2.7.6/src/lib/
Dnotifier.c48 spin_lock(&notify->lock); in notifier_register()
77 spin_unlock(&notify->lock); in notifier_register()
90 spin_lock(&notify->lock); in notifier_unregister()
113 spin_unlock(&notify->lock); in notifier_unregister()
195 spinlock_init(&(*notify)->lock); in init_system_notify()
Ddai.c153 spin_lock_irq(&d->lock, flags_irq); in dai_get()
166 spin_unlock_irq(&d->lock, flags_irq); in dai_get()
179 spin_lock_irq(&dai->lock, flags); in dai_put()
189 spin_unlock_irq(&dai->lock, flags); in dai_put()
/sof-2.7.6/src/include/sof/audio/
Dbuffer.h88 spinlock_t *lock; /* locking mechanism */ member
208 spin_lock_irq(buffer->lock, *flags); in buffer_lock()
228 spinlock_t *lock = buffer->lock; in buffer_unlock() local
233 spin_unlock_irq(lock, flags); in buffer_unlock()
/sof-2.7.6/src/audio/
Dbuffer.c48 buffer->lock = rzalloc(SOF_MEM_ZONE_RUNTIME_SHARED, 0, SOF_MEM_CAPS_RAM, in buffer_alloc()
49 sizeof(*buffer->lock)); in buffer_alloc()
50 if (!buffer->lock) { in buffer_alloc()
68 spinlock_init(buffer->lock); in buffer_alloc()
180 rfree(buffer->lock); in buffer_free()
/sof-2.7.6/src/include/sof/ipc/
Dmsg.h77 spin_lock_irq(&ipc->lock, flags); in ipc_msg_free()
83 spin_unlock_irq(&ipc->lock, flags); in ipc_msg_free()
/sof-2.7.6/src/platform/imx8/lib/
Ddai.c93 spinlock_init(&esai[i].lock); in dai_init()
96 spinlock_init(&sai[i].lock); in dai_init()
/sof-2.7.6/src/drivers/generic/
Ddummy-dma.c229 spin_lock_irq(&dma->lock, flags); in dummy_dma_channel_get()
238 spin_unlock_irq(&dma->lock, flags); in dummy_dma_channel_get()
242 spin_unlock_irq(&dma->lock, flags); in dummy_dma_channel_get()
277 spin_lock_irq(&channel->dma->lock, flags); in dummy_dma_channel_put()
279 spin_unlock_irq(&channel->dma->lock, flags); in dummy_dma_channel_put()
338 spin_lock_irq(&channel->dma->lock, flags); in dummy_dma_set_config()
367 spin_unlock_irq(&channel->dma->lock, flags); in dummy_dma_set_config()
/sof-2.7.6/src/audio/pipeline/
Dpipeline-graph.c39 spinlock_t lock; /**< lock mechanism */ member
64 spin_lock(&pipeline_posn->lock); in pipeline_posn_offset_get()
76 spin_unlock(&pipeline_posn->lock); in pipeline_posn_offset_get()
90 spin_lock(&pipeline_posn->lock); in pipeline_posn_offset_put()
95 spin_unlock(&pipeline_posn->lock); in pipeline_posn_offset_put()
102 spinlock_init(&sof->pipeline_posn->lock); in pipeline_posn_init()
/sof-2.7.6/src/drivers/intel/cavs/
Dinterrupt.c78 spin_lock(&cascade->lock); in irq_lvl2_handler()
86 spin_unlock(&cascade->lock); in irq_lvl2_handler()
88 spin_lock(&cascade->lock); in irq_lvl2_handler()
95 spin_unlock(&cascade->lock); in irq_lvl2_handler()
/sof-2.7.6/src/drivers/amd/renoir/
Dacp_dmic_dma.c48 spin_lock_irq(&dma->lock, flags); in acp_dmic_dma_channel_get()
50 spin_unlock_irq(&dma->lock, flags); in acp_dmic_dma_channel_get()
57 spin_unlock_irq(&dma->lock, flags); in acp_dmic_dma_channel_get()
64 spin_unlock_irq(&dma->lock, flags); in acp_dmic_dma_channel_get()
73 spin_lock_irq(&channel->dma->lock, flags); in acp_dmic_dma_channel_put()
76 spin_unlock_irq(&channel->dma->lock, flags); in acp_dmic_dma_channel_put()

1234