Lines Matching full:cap
14 typedef void (*func)(struct venus_caps *cap, const void *data,
19 struct venus_caps *caps = core->caps, *cap; in init_codecs() local
23 cap = &caps[core->codecs_count++]; in init_codecs()
24 cap->codec = BIT(bit); in init_codecs()
25 cap->domain = VIDC_SESSION_TYPE_DEC; in init_codecs()
26 cap->valid = false; in init_codecs()
30 cap = &caps[core->codecs_count++]; in init_codecs()
31 cap->codec = BIT(bit); in init_codecs()
32 cap->domain = VIDC_SESSION_TYPE_ENC; in init_codecs()
33 cap->valid = false; in init_codecs()
41 struct venus_caps *cap; in for_each_codec() local
45 cap = &caps[i]; in for_each_codec()
46 if (cap->valid && cap->domain == domain) in for_each_codec()
48 if (cap->codec & codecs && cap->domain == domain) in for_each_codec()
49 cb(cap, data, size); in for_each_codec()
54 fill_buf_mode(struct venus_caps *cap, const void *data, unsigned int num) in fill_buf_mode() argument
59 cap->cap_bufs_mode_dynamic = true; in fill_buf_mode()
84 static void fill_profile_level(struct venus_caps *cap, const void *data, in fill_profile_level() argument
89 memcpy(&cap->pl[cap->num_pl], pl, num * sizeof(*pl)); in fill_profile_level()
90 cap->num_pl += num; in fill_profile_level()
110 fill_caps(struct venus_caps *cap, const void *data, unsigned int num) in fill_caps() argument
114 memcpy(&cap->caps[cap->num_caps], caps, num * sizeof(*caps)); in fill_caps()
115 cap->num_caps += num; in fill_caps()
122 struct hfi_capability *cap = caps->data; in parse_caps() local
129 memcpy(caps_arr, cap, num_caps * sizeof(*cap)); in parse_caps()
135 static void fill_raw_fmts(struct venus_caps *cap, const void *fmts, in fill_raw_fmts() argument
140 memcpy(&cap->fmts[cap->num_fmts], formats, num_fmts * sizeof(*formats)); in fill_raw_fmts()
141 cap->num_fmts += num_fmts; in fill_raw_fmts()
214 struct venus_caps *caps, *cap; in parser_fini() local
225 cap = &caps[i]; in parser_fini()
226 if (cap->codec & codecs && cap->domain == dom) in parser_fini()
227 cap->valid = true; in parser_fini()