Lines Matching refs:tokens

59 	const struct sof_topology_token *tokens;  in sof_update_ipc_object()  local
76 tokens = token_list[token_id].tokens; in sof_update_ipc_object()
77 if (!tokens) { in sof_update_ipc_object()
87 if (tokens[i].token == tuples[j].token) { in sof_update_ipc_object()
88 switch (tokens[i].type) { in sof_update_ipc_object()
91 u32 *val = (u32 *)((u8 *)object + tokens[i].offset + in sof_update_ipc_object()
100 u16 *val = (u16 *)((u8 *)object + tokens[i].offset + in sof_update_ipc_object()
108 if (!tokens[i].get_token) { in sof_update_ipc_object()
111 tokens[i].token, token_list[token_id].name); in sof_update_ipc_object()
115 tokens[i].get_token((void *)tuples[j].value.s, object, in sof_update_ipc_object()
116 tokens[i].offset + offset); in sof_update_ipc_object()
448 const struct sof_topology_token *tokens, int num_tokens, in sof_parse_uuid_tokens() argument
462 if (tokens[j].type != SND_SOC_TPLG_TUPLE_TYPE_UUID) in sof_parse_uuid_tokens()
466 if (tokens[j].token != le32_to_cpu(elem->token)) in sof_parse_uuid_tokens()
470 tokens[j].get_token(elem, object, in sof_parse_uuid_tokens()
471 offset + tokens[j].offset); in sof_parse_uuid_tokens()
500 const struct sof_topology_token *tokens; in sof_copy_tuples() local
515 tokens = token_list[token_id].tokens; in sof_copy_tuples()
518 if (!tokens) { in sof_copy_tuples()
551 if (!(tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_WORD || in sof_copy_tuples()
552 tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_SHORT || in sof_copy_tuples()
553 tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_BYTE || in sof_copy_tuples()
554 tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_BOOL || in sof_copy_tuples()
555 tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_STRING)) in sof_copy_tuples()
558 if (tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_STRING) { in sof_copy_tuples()
564 if (tokens[j].token != le32_to_cpu(elem->token)) in sof_copy_tuples()
567 tuples[*num_copied_tuples].token = tokens[j].token; in sof_copy_tuples()
575 if (tokens[j].token != le32_to_cpu(elem->token)) in sof_copy_tuples()
578 tuples[*num_copied_tuples].token = tokens[j].token; in sof_copy_tuples()
615 const struct sof_topology_token *tokens, int num_tokens, in sof_parse_string_tokens() argument
629 if (tokens[j].type != SND_SOC_TPLG_TUPLE_TYPE_STRING) in sof_parse_string_tokens()
633 if (tokens[j].token != le32_to_cpu(elem->token)) in sof_parse_string_tokens()
637 ret = tokens[j].get_token(elem->string, object, offset + tokens[j].offset); in sof_parse_string_tokens()
661 const struct sof_topology_token *tokens, int num_tokens, in sof_parse_word_tokens() argument
675 if (!(tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_WORD || in sof_parse_word_tokens()
676 tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_SHORT || in sof_parse_word_tokens()
677 tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_BYTE || in sof_parse_word_tokens()
678 tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_BOOL)) in sof_parse_word_tokens()
682 if (tokens[j].token != le32_to_cpu(elem->token)) in sof_parse_word_tokens()
686 tokens[j].get_token(elem, object, offset + tokens[j].offset); in sof_parse_word_tokens()
711 void *object, const struct sof_topology_token *tokens, in sof_parse_token_sets() argument
742 found += sof_parse_uuid_tokens(scomp, object, offset, tokens, count, in sof_parse_token_sets()
747 ret = sof_parse_string_tokens(scomp, object, offset, tokens, count, in sof_parse_token_sets()
760 found += sof_parse_word_tokens(scomp, object, offset, tokens, count, in sof_parse_token_sets()
797 const struct sof_topology_token *tokens, int num_tokens, in sof_parse_tokens() argument
808 return sof_parse_token_sets(scomp, object, tokens, num_tokens, array, in sof_parse_tokens()
1231 token_list[object_token_list[i]].tokens, in sof_widget_parse_tokens()
1977 if (token_list[SOF_DAI_LINK_TOKENS].tokens) { in sof_link_load()
1990 if (!token_id || !token_list[token_id].tokens) in sof_link_load()