Lines Matching refs:dbg_buff
56 static void align_debug_buffer(struct cudbg_buffer *dbg_buff,
62 remain = (dbg_buff->offset - entity_hdr->start_offset) % 4;
65 memcpy(((u8 *) dbg_buff->data) + dbg_buff->offset, &zero_buf,
67 dbg_buff->offset += padding;
71 entity_hdr->size = dbg_buff->offset - entity_hdr->start_offset;
96 struct cudbg_buffer *dbg_buff,
104 if (dbg_buff->size - dbg_buff->offset <=
122 if (dbg_buff->size - dbg_buff->offset + *ext_size <=
142 dbg_buff->offset = ext_offset;
147 static int wr_entity_to_flash(void *handle, struct cudbg_buffer *dbg_buff,
190 rc = cudbg_write_flash(handle, timestamp, dbg_buff,
208 struct cudbg_buffer dbg_buff;
224 dbg_buff.data = outbuf;
225 dbg_buff.size = *outbuf_size;
226 dbg_buff.offset = 0;
228 cudbg_hdr = (struct cudbg_hdr *)dbg_buff.data;
263 dbg_buff.size) {
280 dbg_buff.offset = cudbg_hdr->data_len;
282 dbg_buff.offset += cudbg_hdr->hdr_len; /* move 24 bytes*/
283 dbg_buff.offset += CUDBG_MAX_ENTITY *
287 total_size = dbg_buff.offset;
302 rc = get_entity_hdr(outbuf, i, dbg_buff.size,
308 &dbg_buff,
314 dbg_buff.offset +=
319 entity_hdr->start_offset = dbg_buff.offset;
321 remaining_buf_size = dbg_buff.size - dbg_buff.offset;
352 rc = process_entity[i-1](cudbg_init, &dbg_buff,
358 dbg_buff.offset = entity_hdr->start_offset;
360 align_debug_buffer(&dbg_buff, entity_hdr);
393 &dbg_buff,
403 &dbg_buff,
418 dbg_buff.size, &entity_hdr);
423 &dbg_buff,
428 dbg_buff.offset +=
448 entity_hdr->start_offset = dbg_buff.offset;
455 &dbg_buff,
459 dbg_buff.offset = entity_hdr->start_offset;
461 align_debug_buffer(&dbg_buff, entity_hdr);
494 &dbg_buff,
502 &dbg_buff,
571 struct cudbg_buffer *dbg_buff,
580 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
593 rc = write_compression_hdr(&scratch_buff, dbg_buff);
597 rc = compress_buff(&scratch_buff, dbg_buff);
600 release_scratch_buff(&scratch_buff, dbg_buff);
606 struct cudbg_buffer *dbg_buff,
617 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
628 rc = write_compression_hdr(&scratch_buff, dbg_buff);
632 rc = compress_buff(&scratch_buff, dbg_buff);
635 release_scratch_buff(&scratch_buff, dbg_buff);
641 struct cudbg_buffer *dbg_buff,
652 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
662 rc = write_compression_hdr(&scratch_buff, dbg_buff);
666 rc = compress_buff(&scratch_buff, dbg_buff);
669 release_scratch_buff(&scratch_buff, dbg_buff);
675 struct cudbg_buffer *dbg_buff,
686 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
709 rc = write_compression_hdr(&scratch_buff, dbg_buff);
713 rc = compress_buff(&scratch_buff, dbg_buff);
716 release_scratch_buff(&scratch_buff, dbg_buff);
723 struct cudbg_buffer *dbg_buff,
734 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
742 rc = write_compression_hdr(&scratch_buff, dbg_buff);
746 rc = compress_buff(&scratch_buff, dbg_buff);
749 release_scratch_buff(&scratch_buff, dbg_buff);
755 struct cudbg_buffer *dbg_buff,
766 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
777 rc = write_compression_hdr(&scratch_buff, dbg_buff);
781 rc = compress_buff(&scratch_buff, dbg_buff);
784 release_scratch_buff(&scratch_buff, dbg_buff);
790 struct cudbg_buffer *dbg_buff,
804 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
820 rc = write_compression_hdr(&scratch_buff, dbg_buff);
824 rc = compress_buff(&scratch_buff, dbg_buff);
826 release_scratch_buff(&scratch_buff, dbg_buff);
1092 struct cudbg_buffer *dbg_buff,
1103 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1113 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1117 rc = compress_buff(&scratch_buff, dbg_buff);
1119 release_scratch_buff(&scratch_buff, dbg_buff);
1125 struct cudbg_buffer *dbg_buff,
1143 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1157 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1161 rc = compress_buff(&scratch_buff, dbg_buff);
1163 release_scratch_buff(&scratch_buff, dbg_buff);
1169 struct cudbg_buffer *dbg_buff,
1180 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1190 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1194 rc = compress_buff(&scratch_buff, dbg_buff);
1196 release_scratch_buff(&scratch_buff, dbg_buff);
1202 struct cudbg_buffer *dbg_buff,
1218 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1255 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1260 rc = compress_buff(&scratch_buff, dbg_buff);
1262 release_scratch_buff(&scratch_buff, dbg_buff);
1269 struct cudbg_buffer *dbg_buff,
1285 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1300 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1304 rc = compress_buff(&scratch_buff, dbg_buff);
1306 release_scratch_buff(&scratch_buff, dbg_buff);
1312 struct cudbg_buffer *dbg_buff,
1324 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1335 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1339 rc = compress_buff(&scratch_buff, dbg_buff);
1341 release_scratch_buff(&scratch_buff, dbg_buff);
1347 struct cudbg_buffer *dbg_buff,
1358 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1367 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1371 rc = compress_buff(&scratch_buff, dbg_buff);
1373 release_scratch_buff(&scratch_buff, dbg_buff);
1379 struct cudbg_buffer *dbg_buff,
1390 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1405 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1409 rc = compress_buff(&scratch_buff, dbg_buff);
1411 release_scratch_buff(&scratch_buff, dbg_buff);
1417 struct cudbg_buffer *dbg_buff,
1428 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1439 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1443 rc = compress_buff(&scratch_buff, dbg_buff);
1445 release_scratch_buff(&scratch_buff, dbg_buff);
1451 struct cudbg_buffer *dbg_buff,
1462 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1472 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1476 rc = compress_buff(&scratch_buff, dbg_buff);
1478 release_scratch_buff(&scratch_buff, dbg_buff);
1484 struct cudbg_buffer *dbg_buff,
1499 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1514 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1518 rc = compress_buff(&scratch_buff, dbg_buff);
1520 release_scratch_buff(&scratch_buff, dbg_buff);
1526 struct cudbg_buffer *dbg_buff,
1537 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1546 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1550 rc = compress_buff(&scratch_buff, dbg_buff);
1552 release_scratch_buff(&scratch_buff, dbg_buff);
1558 struct cudbg_buffer *dbg_buff,
1568 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1574 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1578 rc = compress_buff(&scratch_buff, dbg_buff);
1580 release_scratch_buff(&scratch_buff, dbg_buff);
1586 struct cudbg_buffer *dbg_buff,
1596 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1602 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1606 rc = compress_buff(&scratch_buff, dbg_buff);
1608 release_scratch_buff(&scratch_buff, dbg_buff);
1614 struct cudbg_buffer *dbg_buff,
1625 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1639 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1643 rc = compress_buff(&scratch_buff, dbg_buff);
1646 release_scratch_buff(&scratch_buff, dbg_buff);
1652 struct cudbg_buffer *dbg_buff,
1664 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1675 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1679 rc = compress_buff(&scratch_buff, dbg_buff);
1682 release_scratch_buff(&scratch_buff, dbg_buff);
1688 struct cudbg_buffer *dbg_buff,
1699 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1715 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1719 rc = compress_buff(&scratch_buff, dbg_buff);
1721 release_scratch_buff(&scratch_buff, dbg_buff);
1849 struct cudbg_buffer *dbg_buff,
1880 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1892 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
1934 rc = write_compression_hdr(&scratch_buff, dbg_buff);
1946 rc = compress_buff(&temp_buff, dbg_buff);
1956 release_scratch_buff(&scratch_buff, dbg_buff);
1962 struct cudbg_buffer *dbg_buff,
1996 rc = get_scratch_buff(dbg_buff, dparams->size, &scratch_buff);
2018 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2023 rc = compress_buff(&scratch_buff, dbg_buff);
2026 release_scratch_buff(&scratch_buff, dbg_buff);
2035 struct cudbg_buffer *dbg_buff,
2040 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2046 struct cudbg_buffer *dbg_buff,
2051 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2057 struct cudbg_buffer *dbg_buff,
2062 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2068 struct cudbg_buffer *dbg_buff,
2073 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2079 struct cudbg_buffer *dbg_buff,
2084 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2090 struct cudbg_buffer *dbg_buff,
2095 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2101 struct cudbg_buffer *dbg_buff,
2106 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2112 struct cudbg_buffer *dbg_buff,
2117 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid);
2123 struct cudbg_buffer *dbg_buff,
2134 rc = get_scratch_buff(dbg_buff, qsize, &scratch_buff);
2158 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2163 rc = compress_buff(&scratch_buff, dbg_buff);
2169 release_scratch_buff(&scratch_buff, dbg_buff);
2177 struct cudbg_buffer *dbg_buff,
2182 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid);
2187 struct cudbg_buffer *dbg_buff,
2192 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid);
2197 struct cudbg_buffer *dbg_buff,
2202 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid);
2207 struct cudbg_buffer *dbg_buff,
2212 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid);
2217 struct cudbg_buffer *dbg_buff,
2222 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid);
2227 struct cudbg_buffer *dbg_buff,
2232 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid);
2237 struct cudbg_buffer *dbg_buff,
2248 rc = get_scratch_buff(dbg_buff, qsize, &scratch_buff);
2270 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2274 rc = compress_buff(&scratch_buff, dbg_buff);
2279 release_scratch_buff(&scratch_buff, dbg_buff);
2286 struct cudbg_buffer *dbg_buff,
2295 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
2306 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2310 rc = compress_buff(&scratch_buff, dbg_buff);
2313 release_scratch_buff(&scratch_buff, dbg_buff);
2319 struct cudbg_buffer *dbg_buff,
2340 rc = get_scratch_buff(dbg_buff, size, &scratch_buff);
2368 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2372 rc = compress_buff(&scratch_buff, dbg_buff);
2377 release_scratch_buff(&scratch_buff, dbg_buff);
2383 struct cudbg_buffer *dbg_buff,
2393 rc = get_scratch_buff(dbg_buff, sizeof(struct struct_cim_qcfg),
2436 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2440 rc = compress_buff(&scratch_buff, dbg_buff);
2445 release_scratch_buff(&scratch_buff, dbg_buff);
2551 struct cudbg_buffer *dbg_buff, u8 mem_type,
2610 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2616 rc = get_scratch_buff(dbg_buff, bytes, &scratch_buff);
2651 rc = compress_buff(&scratch_buff, dbg_buff);
2657 release_scratch_buff(&scratch_buff, dbg_buff);
2662 release_scratch_buff(&scratch_buff, dbg_buff);
2747 struct cudbg_buffer *dbg_buff,
2760 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_EDC0,
2778 struct cudbg_buffer *dbg_buff,
2791 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_EDC1,
2809 struct cudbg_buffer *dbg_buff,
2822 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_MC0,
2839 struct cudbg_buffer *dbg_buff,
2852 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_MC1,
2869 struct cudbg_buffer *dbg_buff,
2889 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
2897 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2906 compress_buff(&tmp_scratch_buff, dbg_buff);
2912 release_scratch_buff(&scratch_buff, dbg_buff);
2918 struct cudbg_buffer *dbg_buff,
2929 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
2935 rc = write_compression_hdr(&scratch_buff, dbg_buff);
2939 rc = compress_buff(&scratch_buff, dbg_buff);
2942 release_scratch_buff(&scratch_buff, dbg_buff);
3011 struct cudbg_buffer *dbg_buff,
3024 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3055 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3059 rc = compress_buff(&scratch_buff, dbg_buff);
3062 release_scratch_buff(&scratch_buff, dbg_buff);
3068 struct cudbg_buffer *dbg_buff,
3095 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3122 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3126 rc = compress_buff(&scratch_buff, dbg_buff);
3129 release_scratch_buff(&scratch_buff, dbg_buff);
3137 struct cudbg_buffer *dbg_buff,
3150 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3206 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3210 rc = compress_buff(&scratch_buff, dbg_buff);
3213 release_scratch_buff(&scratch_buff, dbg_buff);
3219 struct cudbg_buffer *dbg_buff,
3232 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3279 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3283 rc = compress_buff(&scratch_buff, dbg_buff);
3286 release_scratch_buff(&scratch_buff, dbg_buff);
3293 struct cudbg_buffer *dbg_buff,
3307 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3429 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3432 rc = compress_buff(&scratch_buff, dbg_buff);
3436 release_scratch_buff(&scratch_buff, dbg_buff);
3442 struct cudbg_buffer *dbg_buff,
3454 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3462 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3466 rc = compress_buff(&scratch_buff, dbg_buff);
3469 release_scratch_buff(&scratch_buff, dbg_buff);
3509 struct cudbg_buffer *dbg_buff,
3524 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3662 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3666 rc = compress_buff(&scratch_buff, dbg_buff);
3670 release_scratch_buff(&scratch_buff, dbg_buff);
3676 struct cudbg_buffer *dbg_buff,
3688 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3700 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3704 rc = compress_buff(&scratch_buff, dbg_buff);
3707 release_scratch_buff(&scratch_buff, dbg_buff);
3770 struct cudbg_buffer *dbg_buff,
3822 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3826 rc = get_scratch_buff(dbg_buff, CUDBG_CHUNK_SIZE, &scratch_buff);
3841 rc = compress_buff(&scratch_buff, dbg_buff);
3845 release_scratch_buff(&scratch_buff, dbg_buff);
3848 rc = get_scratch_buff(dbg_buff, CUDBG_CHUNK_SIZE,
3872 rc = compress_buff(&scratch_buff, dbg_buff);
3877 release_scratch_buff(&scratch_buff, dbg_buff);
3883 struct cudbg_buffer *dbg_buff,
3903 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
3946 rc = write_compression_hdr(&scratch_buff, dbg_buff);
3950 rc = compress_buff(&scratch_buff, dbg_buff);
3953 release_scratch_buff(&scratch_buff, dbg_buff);
3959 struct cudbg_buffer *dbg_buff,
3979 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
4002 rc = write_compression_hdr(&scratch_buff, dbg_buff);
4006 rc = compress_buff(&scratch_buff, dbg_buff);
4009 release_scratch_buff(&scratch_buff, dbg_buff);
4015 struct cudbg_buffer *dbg_buff,
4028 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
4075 rc = write_compression_hdr(&scratch_buff, dbg_buff);
4079 rc = compress_buff(&scratch_buff, dbg_buff);
4082 release_scratch_buff(&scratch_buff, dbg_buff);
4089 struct cudbg_buffer *dbg_buff,
4106 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
4195 rc = write_compression_hdr(&scratch_buff, dbg_buff);
4199 rc = compress_buff(&scratch_buff, dbg_buff);
4202 release_scratch_buff(&scratch_buff, dbg_buff);
4208 struct cudbg_buffer *dbg_buff,
4220 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
4245 rc = write_compression_hdr(&scratch_buff, dbg_buff);
4249 rc = compress_buff(&scratch_buff, dbg_buff);
4252 release_scratch_buff(&scratch_buff, dbg_buff);
4258 struct cudbg_buffer *dbg_buff,
4285 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
4350 rc = write_compression_hdr(&scratch_buff, dbg_buff);
4354 rc = compress_buff(&scratch_buff, dbg_buff);
4357 release_scratch_buff(&scratch_buff, dbg_buff);
4363 struct cudbg_buffer *dbg_buff,
4378 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff);
4442 rc = write_compression_hdr(&scratch_buff, dbg_buff);
4446 rc = compress_buff(&scratch_buff, dbg_buff);
4449 release_scratch_buff(&scratch_buff, dbg_buff);