Lines Matching refs:caps
19 struct hfi_plat_caps *caps = core->caps, *cap; in init_codecs() local
26 cap = &caps[core->codecs_count++]; in init_codecs()
33 cap = &caps[core->codecs_count++]; in init_codecs()
40 static void for_each_codec(struct hfi_plat_caps *caps, unsigned int caps_num, in for_each_codec() argument
48 cap = &caps[i]; in for_each_codec()
80 for_each_codec(core->caps, ARRAY_SIZE(core->caps), in parse_alloc_mode()
111 for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, in parse_profile_level()
118 const struct hfi_capability *caps = data; in fill_caps() local
123 memcpy(&cap->caps[cap->num_caps], caps, num * sizeof(*caps)); in fill_caps()
130 struct hfi_capabilities *caps = data; in parse_caps() local
131 struct hfi_capability *cap = caps->data; in parse_caps()
132 u32 num_caps = caps->num_capabilities; in parse_caps()
140 for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, in parse_caps()
185 for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, in parse_raw_formats()
229 struct hfi_plat_caps *caps, *cap; in parser_fini() local
236 caps = inst->core->caps; in parser_fini()
240 cap = &caps[i]; in parser_fini()
249 const struct hfi_plat_caps *caps = NULL; in hfi_platform_parser() local
266 caps = plat->capabilities(&entries); in hfi_platform_parser()
268 if (!caps || !entries || !count) in hfi_platform_parser()
275 memset(core->caps, 0, sizeof(*caps) * MAX_CODEC_NUM); in hfi_platform_parser()
276 memcpy(core->caps, caps, sizeof(*caps) * entries); in hfi_platform_parser()
299 memset(core->caps, 0, sizeof(core->caps)); in hfi_parser()