Lines Matching defs:hdr
22 struct snd_soc_tplg_hdr *hdr,
27 type = tplg_get_type(hdr->type);
29 hdr->type, type);
35 t->index = hdr->index;
36 t->version = hdr->version;
37 t->vendor_type = hdr->vendor_type;
39 hdr->index, hdr->version, hdr->vendor_type);
45 struct snd_soc_tplg_hdr *hdr;
62 if (size - pos < sizeof(*hdr)) {
67 hdr = b;
68 if (hdr->magic != SND_SOC_TPLG_MAGIC) {
69 SNDERR("bad block magic %08x", hdr->magic);
74 hdr->abi, hdr->size, hdr->payload_size);
75 if (hdr->abi != SND_SOC_TPLG_ABI_VERSION) {
76 SNDERR("unsupported ABI version %d", hdr->abi);
79 if (hdr->size != sizeof(*hdr)) {
84 if (size - pos < hdr->size + hdr->payload_size) {
89 if (hdr->payload_size < 8) {
90 SNDERR("wrong payload size %d", hdr->payload_size);
96 if (hdr->type != SND_SOC_TPLG_TYPE_MANIFEST) {
97 SNDERR("first block must be manifest (value %d)", hdr->type);
100 err = snd_tplg_set_version(tplg, hdr->version);
105 pos += hdr->size;
108 if (tptr->tsoc == (int)hdr->type)
112 SNDERR("unknown block type %d", hdr->type);
115 tplg_log(tplg, 'D', pos, "block: type %d - %s", hdr->type, tptr->name);
116 err = tptr->decod(tplg, pos, hdr, b + hdr->size, hdr->payload_size);
119 b += hdr->size + hdr->payload_size;