Lines Matching refs:elem
77 struct tplg_elem *elem, *elem_next;
84 elem = list_entry(pos, struct tplg_elem, list);
86 if (elem->compound_elem)
90 block_size += elem->size;
93 if ((pos->next == base) || (elem_next->index != elem->index)) {
95 ret = write_block_header(tplg, tplg_type, elem->vendor_type,
96 tplg->version, elem->index, block_size, count);
105 elem = list_entry(sub_pos, struct tplg_elem, list);
107 if (elem->compound_elem)
110 if (elem->type != SND_TPLG_TYPE_DAPM_GRAPH)
113 obj_name, elem->id, elem->size);
117 obj_name, elem->route->source,
118 elem->route->control,
119 elem->route->sink, elem->size);
121 wsize = twrite(tplg, elem->obj, elem->size);
130 /* the last elem of the current sub list as the head of
158 struct tplg_elem *elem, *elem_next;
163 elem = list_entry(pos, struct tplg_elem, list);
166 if (elem->compound_elem)
169 if (elem->size <= 0)
172 size += elem->size;
176 if ((pos->next == base) || (elem_next->index != elem->index))
186 struct tplg_elem *elem;
191 elem = list_entry(pos, struct tplg_elem, list);
194 if (elem->compound_elem)
197 size += elem->size;