Lines Matching refs:log_buffer
110 void *log_buffer; member
134 if (core_data->log_buffer) { in sof_ipc4_mtrace_dfs_open()
143 core_data->log_buffer = kmalloc(SOF_MTRACE_SLOT_SIZE, GFP_KERNEL); in sof_ipc4_mtrace_dfs_open()
144 if (!core_data->log_buffer) { in sof_ipc4_mtrace_dfs_open()
152 kfree(core_data->log_buffer); in sof_ipc4_mtrace_dfs_open()
194 void *log_buffer = core_data->log_buffer; in sof_ipc4_mtrace_dfs_read() local
248 sof_mailbox_read(sdev, log_buffer_offset + read_ptr, log_buffer, avail); in sof_ipc4_mtrace_dfs_read()
251 sof_mailbox_read(sdev, log_buffer_offset + read_ptr, log_buffer, in sof_ipc4_mtrace_dfs_read()
256 (u8 *)(log_buffer) + avail - write_ptr, in sof_ipc4_mtrace_dfs_read()
266 ret = copy_to_user(buffer + sizeof(avail), log_buffer, avail); in sof_ipc4_mtrace_dfs_read()
296 kfree(core_data->log_buffer); in sof_ipc4_mtrace_dfs_release()
297 core_data->log_buffer = NULL; in sof_ipc4_mtrace_dfs_release()