Lines Matching full:cap
14 typedef void (*func)(struct hfi_plat_caps *cap, const void *data,
19 struct hfi_plat_caps *caps = core->caps, *cap; in init_codecs() local
26 cap = &caps[core->codecs_count++]; in init_codecs()
27 cap->codec = BIT(bit); in init_codecs()
28 cap->domain = VIDC_SESSION_TYPE_DEC; in init_codecs()
29 cap->valid = false; in init_codecs()
33 cap = &caps[core->codecs_count++]; in init_codecs()
34 cap->codec = BIT(bit); in init_codecs()
35 cap->domain = VIDC_SESSION_TYPE_ENC; in init_codecs()
36 cap->valid = false; in init_codecs()
44 struct hfi_plat_caps *cap; in for_each_codec() local
48 cap = &caps[i]; in for_each_codec()
49 if (cap->valid && cap->domain == domain) in for_each_codec()
51 if (cap->codec & codecs && cap->domain == domain) in for_each_codec()
52 cb(cap, data, size); in for_each_codec()
57 fill_buf_mode(struct hfi_plat_caps *cap, const void *data, unsigned int num) in fill_buf_mode() argument
62 cap->cap_bufs_mode_dynamic = true; in fill_buf_mode()
87 static void fill_profile_level(struct hfi_plat_caps *cap, const void *data, in fill_profile_level() argument
92 if (cap->num_pl + num >= HFI_MAX_PROFILE_COUNT) in fill_profile_level()
95 memcpy(&cap->pl[cap->num_pl], pl, num * sizeof(*pl)); in fill_profile_level()
96 cap->num_pl += num; in fill_profile_level()
116 fill_caps(struct hfi_plat_caps *cap, const void *data, unsigned int num) in fill_caps() argument
120 if (cap->num_caps + num >= MAX_CAP_ENTRIES) in fill_caps()
123 memcpy(&cap->caps[cap->num_caps], caps, num * sizeof(*caps)); in fill_caps()
124 cap->num_caps += num; in fill_caps()
131 struct hfi_capability *cap = caps->data; in parse_caps() local
138 memcpy(caps_arr, cap, num_caps * sizeof(*cap)); in parse_caps()
144 static void fill_raw_fmts(struct hfi_plat_caps *cap, const void *fmts, in fill_raw_fmts() argument
149 if (cap->num_fmts + num_fmts >= MAX_FMT_ENTRIES) in fill_raw_fmts()
152 memcpy(&cap->fmts[cap->num_fmts], formats, num_fmts * sizeof(*formats)); in fill_raw_fmts()
153 cap->num_fmts += num_fmts; in fill_raw_fmts()
229 struct hfi_plat_caps *caps, *cap; in parser_fini() local
240 cap = &caps[i]; in parser_fini()
241 if (cap->codec & codecs && cap->domain == dom) in parser_fini()
242 cap->valid = true; in parser_fini()