56 ocs_log_info(NULL,
"Driver dump begin time %u",
57 ocs_ticks_to_ms(ocs_get_os_ticks()));
92 ocs_textbuf_printf(textbuf,
"<%s type=\"section\" instance=\"%d\">\n", name, instance);
132 vsnprintf(valuebuf,
sizeof(valuebuf), fmt, ap);
160 count = size /
sizeof(uint32_t);
166 ocs_textbuf_printf(textbuf,
"<%s type=\"buffer\" instance=\"%d\">\n", name, instance);
169 for (i = 0; i < count; i++) {
170 #define OCS_NEWLINE_MOD 8
197 uint32_t length, int32_t index, uint32_t qentries)
203 uint32_t entry_count = 0;
204 uint32_t entry_words = size /
sizeof(uint32_t);
209 if ((qentries == (uint32_t)-1) || (qentries > length)) {
211 entry_count = length;
214 entry_count = qentries;
216 index -= (qentries - 1);
222 #define OCS_NEWLINE_MOD 8
224 for (i = 0; i < entry_count; i++){
226 entry += index * size;
227 dword = (uint32_t *)entry;
230 for (j = 0; j < entry_words; j++) {
232 if (((j+1) == entry_words) ||
235 if ((j+1) < entry_words) {
242 if ((uint32_t)index >= length) {
void ocs_ddump_queue_entries(ocs_textbuf_t *textbuf, void *q_addr, uint32_t size, uint32_t length, int32_t index, uint32_t qentries)
Generate driver dump for queue.
void ocs_ddump_endfile(ocs_textbuf_t *textbuf)
Generate driver dump end of file information.
const char const char void ocs_ddump_buffer(ocs_textbuf_t *textbuf, const char *name, uint32_t instance, void *buffer, uint32_t size)
Generate driver dump data for an arbitrary buffer of DWORDS.
void ocs_ddump_section(ocs_textbuf_t *textbuf, const char *name, uint32_t instance)
Generate driver dump section start data.
const char const char va_list ap
void ocs_ddump_endsection(ocs_textbuf_t *textbuf, const char *name, uint32_t instance)
Generate driver dump section end data.
void ocs_ddump_startfile(ocs_textbuf_t *textbuf)
Generate driver dump start of file information.
void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt,...)
Helper function to dump message.
const char const char * fmt
void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt,...)
Generate driver dump data for a given value.