/sof-2.7.6/src/include/sof/ |
D | spinlock.h | 82 #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/ |
D | spinlock.h | 16 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/ |
D | spinlock.c | 25 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/ |
D | spinlock.h | 16 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/ |
D | zephyr_ll.c | 28 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 …]
|
D | ll_schedule.c | 66 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/ |
D | interrupt.c | 63 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/ |
D | clk.c | 87 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()
|
D | dai.c | 150 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()
|
D | pm_runtime.c | 59 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/ |
D | mn.c | 62 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/ |
D | dai.c | 110 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/ |
D | trace.c | 52 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 …]
|
D | dma-trace.c | 104 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/ |
D | ipc-common.c | 175 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/ |
D | notifier.c | 48 spin_lock(¬ify->lock); in notifier_register() 77 spin_unlock(¬ify->lock); in notifier_register() 90 spin_lock(¬ify->lock); in notifier_unregister() 113 spin_unlock(¬ify->lock); in notifier_unregister() 195 spinlock_init(&(*notify)->lock); in init_system_notify()
|
D | dai.c | 153 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/ |
D | buffer.h | 88 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/ |
D | buffer.c | 48 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/ |
D | msg.h | 77 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/ |
D | dai.c | 93 spinlock_init(&esai[i].lock); in dai_init() 96 spinlock_init(&sai[i].lock); in dai_init()
|
/sof-2.7.6/src/drivers/generic/ |
D | dummy-dma.c | 229 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/ |
D | pipeline-graph.c | 39 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/ |
D | interrupt.c | 78 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/ |
D | acp_dmic_dma.c | 48 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()
|