Lines Matching defs:ref
246 struct tplg_ref *ref;
248 ref = calloc(1, sizeof(*ref));
249 if (!ref)
252 strncpy(ref->id, id, SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
253 ref->id[SNDRV_CTL_ELEM_ID_NAME_MAXLEN - 1] = 0;
254 ref->type = type;
256 list_add_tail(&ref->list, &elem->ref_list);
263 struct tplg_ref *ref;
265 ref = calloc(1, sizeof(*ref));
266 if (!ref)
269 ref->type = elem_ref->type;
270 ref->elem = elem_ref;
271 snd_strlcpy(ref->id, elem_ref->id, SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
273 list_add_tail(&ref->list, &elem->ref_list);
280 struct tplg_ref *ref;
283 ref = list_entry(pos, struct tplg_ref, list);
284 list_del(&ref->list);
285 free(ref);