Lines Matching full:layout

71 	struct avs_apl_log_buffer_layout layout;  in avs_apl_log_buffer_status()  local
78 memcpy_fromio(&layout, addr, sizeof(layout)); in avs_apl_log_buffer_status()
86 if (layout.read_ptr > layout.write_ptr) { in avs_apl_log_buffer_status()
87 avs_dump_fw_log(adev, buf + layout.read_ptr, in avs_apl_log_buffer_status()
88 avs_apl_log_payload_size(adev) - layout.read_ptr); in avs_apl_log_buffer_status()
89 layout.read_ptr = 0; in avs_apl_log_buffer_status()
91 avs_dump_fw_log_wakeup(adev, buf + layout.read_ptr, layout.write_ptr - layout.read_ptr); in avs_apl_log_buffer_status()
94 writel(layout.write_ptr, addr); in avs_apl_log_buffer_status()
99 struct avs_apl_log_buffer_layout *layout) in avs_apl_wait_log_entry() argument
111 memcpy_fromio(layout, addr, sizeof(*layout)); in avs_apl_wait_log_entry()
112 if (layout->read_ptr != layout->write_ptr) in avs_apl_wait_log_entry()
125 struct avs_apl_log_buffer_layout layout; in avs_apl_coredump() local
147 memcpy_fromio(&layout, addr, sizeof(layout)); in avs_apl_coredump()
148 if (!avs_apl_is_entry_stackdump(buf + layout.read_ptr)) { in avs_apl_coredump()
164 if (avs_apl_wait_log_entry(adev, msg->ext.coredump.core_id, &layout)) in avs_apl_coredump()
167 if (layout.read_ptr > layout.write_ptr) { in avs_apl_coredump()
168 count = avs_apl_log_payload_size(adev) - layout.read_ptr; in avs_apl_coredump()
169 memcpy_fromio(pos + offset, buf + layout.read_ptr, count); in avs_apl_coredump()
170 layout.read_ptr = 0; in avs_apl_coredump()
173 count = layout.write_ptr - layout.read_ptr; in avs_apl_coredump()
174 memcpy_fromio(pos + offset, buf + layout.read_ptr, count); in avs_apl_coredump()
178 writel(layout.write_ptr, addr); in avs_apl_coredump()