Lines Matching full:layout

53 	struct apl_log_buffer_layout layout;  in apl_log_buffer_status()  local
60 memcpy_fromio(&layout, addr, sizeof(layout)); in apl_log_buffer_status()
68 if (layout.read_ptr > layout.write_ptr) { in apl_log_buffer_status()
69 avs_dump_fw_log(adev, buf + layout.read_ptr, in apl_log_buffer_status()
70 apl_log_payload_size(adev) - layout.read_ptr); in apl_log_buffer_status()
71 layout.read_ptr = 0; in apl_log_buffer_status()
73 avs_dump_fw_log_wakeup(adev, buf + layout.read_ptr, layout.write_ptr - layout.read_ptr); in apl_log_buffer_status()
76 writel(layout.write_ptr, addr); in apl_log_buffer_status()
80 static int apl_wait_log_entry(struct avs_dev *adev, u32 core, struct apl_log_buffer_layout *layout) in apl_wait_log_entry() argument
92 memcpy_fromio(layout, addr, sizeof(*layout)); in apl_wait_log_entry()
93 if (layout->read_ptr != layout->write_ptr) in apl_wait_log_entry()
106 struct apl_log_buffer_layout layout; in apl_coredump() local
128 memcpy_fromio(&layout, addr, sizeof(layout)); in apl_coredump()
129 if (!apl_is_entry_stackdump(buf + layout.read_ptr)) { in apl_coredump()
145 if (apl_wait_log_entry(adev, msg->ext.coredump.core_id, &layout)) in apl_coredump()
148 if (layout.read_ptr > layout.write_ptr) { in apl_coredump()
149 count = apl_log_payload_size(adev) - layout.read_ptr; in apl_coredump()
150 memcpy_fromio(pos + offset, buf + layout.read_ptr, count); in apl_coredump()
151 layout.read_ptr = 0; in apl_coredump()
154 count = layout.write_ptr - layout.read_ptr; in apl_coredump()
155 memcpy_fromio(pos + offset, buf + layout.read_ptr, count); in apl_coredump()
159 writel(layout.write_ptr, addr); in apl_coredump()