Lines Matching refs:read_ptr
191 u32 log_buffer_offset, log_buffer_size, read_ptr, write_ptr; in sof_ipc4_mtrace_dfs_read() local
223 read_ptr = core_data->host_read_ptr; in sof_ipc4_mtrace_dfs_read()
226 if (read_ptr < write_ptr) in sof_ipc4_mtrace_dfs_read()
227 avail = write_ptr - read_ptr; in sof_ipc4_mtrace_dfs_read()
229 avail = log_buffer_size - read_ptr + write_ptr; in sof_ipc4_mtrace_dfs_read()
244 core_data->id, read_ptr, write_ptr, avail); in sof_ipc4_mtrace_dfs_read()
246 if (read_ptr < write_ptr) { in sof_ipc4_mtrace_dfs_read()
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()
271 read_ptr += avail; in sof_ipc4_mtrace_dfs_read()
272 if (read_ptr >= log_buffer_size) in sof_ipc4_mtrace_dfs_read()
273 read_ptr -= log_buffer_size; in sof_ipc4_mtrace_dfs_read()
274 sof_mailbox_write(sdev, core_data->slot_offset, &read_ptr, sizeof(read_ptr)); in sof_ipc4_mtrace_dfs_read()
278 core_data->host_read_ptr = read_ptr; in sof_ipc4_mtrace_dfs_read()