Lines Matching defs:hdr
127 struct agx_map_header *hdr = segment_list;
128 if (hdr->resource_group_count == 0) {
133 if (hdr->segment_count != 1) {
135 hdr->segment_count);
139 fprintf(agxdecode_dump_stream, " Command buffer shmem ID: %" PRIx64 "\n", hdr->cmdbuf_id);
140 fprintf(agxdecode_dump_stream, " Encoder ID: %" PRIx64 "\n", hdr->encoder_id);
142 hdr->kernel_commands_start_offset);
144 hdr->kernel_commands_end_offset);
145 fprintf(agxdecode_dump_stream, " Unknown: 0x%X\n", hdr->unk);
149 length += sizeof(struct agx_map_entry) * hdr->resource_group_count;
151 if (length != hdr->length) {
153 length, hdr->length);
156 if (hdr->padding[0] || hdr->padding[1])
160 struct agx_map_entry *groups = ((void *) hdr) + sizeof(*hdr);
161 for (unsigned i = 0; i < hdr->resource_group_count; ++i) {
198 if (nr_handles != hdr->total_resources) {
200 nr_handles, hdr->total_resources, hdr->resource_group_count);