Lines Matching +full:in +full:-

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
16 pkt->hdr.size = sizeof(*pkt); in pkt_sys_init()
17 pkt->hdr.pkt_type = HFI_CMD_SYS_INIT; in pkt_sys_init()
18 pkt->arch_type = arch_type; in pkt_sys_init()
23 pkt->hdr.size = sizeof(*pkt); in pkt_sys_pc_prep()
24 pkt->hdr.pkt_type = HFI_CMD_SYS_PC_PREP; in pkt_sys_pc_prep()
29 struct hfi_enable *hfi = (struct hfi_enable *)&pkt->data[1]; in pkt_sys_idle_indicator()
31 pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi); in pkt_sys_idle_indicator()
32 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_idle_indicator()
33 pkt->num_properties = 1; in pkt_sys_idle_indicator()
34 pkt->data[0] = HFI_PROPERTY_SYS_IDLE_INDICATOR; in pkt_sys_idle_indicator()
35 hfi->enable = enable; in pkt_sys_idle_indicator()
43 pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi); in pkt_sys_debug_config()
44 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_debug_config()
45 pkt->num_properties = 1; in pkt_sys_debug_config()
46 pkt->data[0] = HFI_PROPERTY_SYS_DEBUG_CONFIG; in pkt_sys_debug_config()
47 hfi = (struct hfi_debug_config *)&pkt->data[1]; in pkt_sys_debug_config()
48 hfi->config = config; in pkt_sys_debug_config()
49 hfi->mode = mode; in pkt_sys_debug_config()
54 pkt->hdr.size = struct_size(pkt, data, 2); in pkt_sys_coverage_config()
55 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_coverage_config()
56 pkt->num_properties = 1; in pkt_sys_coverage_config()
57 pkt->data[0] = HFI_PROPERTY_SYS_CONFIG_COVERAGE; in pkt_sys_coverage_config()
58 pkt->data[1] = mode; in pkt_sys_coverage_config()
63 pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi); in pkt_sys_ubwc_config()
64 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_ubwc_config()
65 pkt->num_properties = 1; in pkt_sys_ubwc_config()
66 pkt->data[0] = HFI_PROPERTY_SYS_UBWC_CONFIG; in pkt_sys_ubwc_config()
67 memcpy(&pkt->data[1], hfi, sizeof(*hfi)); in pkt_sys_ubwc_config()
73 pkt->hdr.size = sizeof(*pkt); in pkt_sys_set_resource()
74 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_RESOURCE; in pkt_sys_set_resource()
75 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource()
81 (struct hfi_resource_ocmem *)&pkt->resource_data[0]; in pkt_sys_set_resource()
83 res->size = size; in pkt_sys_set_resource()
84 res->mem = addr; in pkt_sys_set_resource()
85 pkt->resource_type = HFI_RESOURCE_OCMEM; in pkt_sys_set_resource()
86 pkt->hdr.size += sizeof(*res); in pkt_sys_set_resource()
91 return -ENOTSUPP; in pkt_sys_set_resource()
100 pkt->hdr.size = sizeof(*pkt); in pkt_sys_unset_resource()
101 pkt->hdr.pkt_type = HFI_CMD_SYS_RELEASE_RESOURCE; in pkt_sys_unset_resource()
102 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource()
107 pkt->resource_type = HFI_RESOURCE_OCMEM; in pkt_sys_unset_resource()
112 return -ENOTSUPP; in pkt_sys_unset_resource()
120 pkt->hdr.size = sizeof(*pkt); in pkt_sys_ping()
121 pkt->hdr.pkt_type = HFI_CMD_SYS_PING; in pkt_sys_ping()
122 pkt->client_data = cookie; in pkt_sys_ping()
127 struct hfi_enable *hfi = (struct hfi_enable *)&pkt->data[1]; in pkt_sys_power_control()
129 pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi); in pkt_sys_power_control()
130 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_power_control()
131 pkt->num_properties = 1; in pkt_sys_power_control()
132 pkt->data[0] = HFI_PROPERTY_SYS_CODEC_POWER_PLANE_CTRL; in pkt_sys_power_control()
133 hfi->enable = enable; in pkt_sys_power_control()
144 return -EINVAL; in pkt_sys_ssr_cmd()
147 pkt->hdr.size = sizeof(*pkt); in pkt_sys_ssr_cmd()
148 pkt->hdr.pkt_type = HFI_CMD_SYS_TEST_SSR; in pkt_sys_ssr_cmd()
149 pkt->trigger_type = trigger_type; in pkt_sys_ssr_cmd()
156 pkt->hdr.size = sizeof(*pkt); in pkt_sys_image_version()
157 pkt->hdr.pkt_type = HFI_CMD_SYS_GET_PROPERTY; in pkt_sys_image_version()
158 pkt->num_properties = 1; in pkt_sys_image_version()
159 pkt->data = HFI_PROPERTY_SYS_IMAGE_VERSION; in pkt_sys_image_version()
166 return -EINVAL; in pkt_session_init()
168 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_init()
169 pkt->shdr.hdr.pkt_type = HFI_CMD_SYS_SESSION_INIT; in pkt_session_init()
170 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init()
171 pkt->session_domain = session_type; in pkt_session_init()
172 pkt->session_codec = codec; in pkt_session_init()
179 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_cmd()
180 pkt->shdr.hdr.pkt_type = pkt_type; in pkt_session_cmd()
181 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_cmd()
190 return -EINVAL; in pkt_session_set_buffers()
192 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_BUFFERS; in pkt_session_set_buffers()
193 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_set_buffers()
194 pkt->buffer_size = bd->buffer_size; in pkt_session_set_buffers()
195 pkt->min_buffer_size = bd->buffer_size; in pkt_session_set_buffers()
196 pkt->num_buffers = bd->num_buffers; in pkt_session_set_buffers()
198 if (bd->buffer_type == HFI_BUFFER_OUTPUT || in pkt_session_set_buffers()
199 bd->buffer_type == HFI_BUFFER_OUTPUT2) { in pkt_session_set_buffers()
202 pkt->extradata_size = bd->extradata_size; in pkt_session_set_buffers()
203 pkt->shdr.hdr.size = sizeof(*pkt) + in pkt_session_set_buffers()
204 bd->num_buffers * sizeof(*bi); in pkt_session_set_buffers()
205 bi = (struct hfi_buffer_info *)pkt->buffer_info; in pkt_session_set_buffers()
206 for (i = 0; i < pkt->num_buffers; i++) { in pkt_session_set_buffers()
207 bi->buffer_addr = bd->device_addr; in pkt_session_set_buffers()
208 bi->extradata_addr = bd->extradata_addr; in pkt_session_set_buffers()
211 pkt->extradata_size = 0; in pkt_session_set_buffers()
212 pkt->shdr.hdr.size = struct_size(pkt, buffer_info, in pkt_session_set_buffers()
213 bd->num_buffers); in pkt_session_set_buffers()
214 for (i = 0; i < pkt->num_buffers; i++) in pkt_session_set_buffers()
215 pkt->buffer_info[i] = bd->device_addr; in pkt_session_set_buffers()
218 pkt->buffer_type = bd->buffer_type; in pkt_session_set_buffers()
229 return -EINVAL; in pkt_session_unset_buffers()
231 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_RELEASE_BUFFERS; in pkt_session_unset_buffers()
232 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_unset_buffers()
233 pkt->buffer_size = bd->buffer_size; in pkt_session_unset_buffers()
234 pkt->num_buffers = bd->num_buffers; in pkt_session_unset_buffers()
236 if (bd->buffer_type == HFI_BUFFER_OUTPUT || in pkt_session_unset_buffers()
237 bd->buffer_type == HFI_BUFFER_OUTPUT2) { in pkt_session_unset_buffers()
240 bi = (struct hfi_buffer_info *)pkt->buffer_info; in pkt_session_unset_buffers()
241 for (i = 0; i < pkt->num_buffers; i++) { in pkt_session_unset_buffers()
242 bi->buffer_addr = bd->device_addr; in pkt_session_unset_buffers()
243 bi->extradata_addr = bd->extradata_addr; in pkt_session_unset_buffers()
245 pkt->shdr.hdr.size = in pkt_session_unset_buffers()
247 bd->num_buffers * sizeof(*bi); in pkt_session_unset_buffers()
249 for (i = 0; i < pkt->num_buffers; i++) in pkt_session_unset_buffers()
250 pkt->buffer_info[i] = bd->device_addr; in pkt_session_unset_buffers()
252 pkt->extradata_size = 0; in pkt_session_unset_buffers()
253 pkt->shdr.hdr.size = in pkt_session_unset_buffers()
255 buffer_info, bd->num_buffers); in pkt_session_unset_buffers()
258 pkt->response_req = bd->response_required; in pkt_session_unset_buffers()
259 pkt->buffer_type = bd->buffer_type; in pkt_session_unset_buffers()
268 return -EINVAL; in pkt_session_etb_decoder()
270 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_etb_decoder()
271 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER; in pkt_session_etb_decoder()
272 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_etb_decoder()
273 pkt->time_stamp_hi = upper_32_bits(in_frame->timestamp); in pkt_session_etb_decoder()
274 pkt->time_stamp_lo = lower_32_bits(in_frame->timestamp); in pkt_session_etb_decoder()
275 pkt->flags = in_frame->flags; in pkt_session_etb_decoder()
276 pkt->mark_target = in_frame->mark_target; in pkt_session_etb_decoder()
277 pkt->mark_data = in_frame->mark_data; in pkt_session_etb_decoder()
278 pkt->offset = in_frame->offset; in pkt_session_etb_decoder()
279 pkt->alloc_len = in_frame->alloc_len; in pkt_session_etb_decoder()
280 pkt->filled_len = in_frame->filled_len; in pkt_session_etb_decoder()
281 pkt->input_tag = in_frame->clnt_data; in pkt_session_etb_decoder()
282 pkt->packet_buffer = in_frame->device_addr; in pkt_session_etb_decoder()
291 if (!cookie || !in_frame->device_addr) in pkt_session_etb_encoder()
292 return -EINVAL; in pkt_session_etb_encoder()
294 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_etb_encoder()
295 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER; in pkt_session_etb_encoder()
296 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_etb_encoder()
297 pkt->view_id = 0; in pkt_session_etb_encoder()
298 pkt->time_stamp_hi = upper_32_bits(in_frame->timestamp); in pkt_session_etb_encoder()
299 pkt->time_stamp_lo = lower_32_bits(in_frame->timestamp); in pkt_session_etb_encoder()
300 pkt->flags = in_frame->flags; in pkt_session_etb_encoder()
301 pkt->mark_target = in_frame->mark_target; in pkt_session_etb_encoder()
302 pkt->mark_data = in_frame->mark_data; in pkt_session_etb_encoder()
303 pkt->offset = in_frame->offset; in pkt_session_etb_encoder()
304 pkt->alloc_len = in_frame->alloc_len; in pkt_session_etb_encoder()
305 pkt->filled_len = in_frame->filled_len; in pkt_session_etb_encoder()
306 pkt->input_tag = in_frame->clnt_data; in pkt_session_etb_encoder()
307 pkt->packet_buffer = in_frame->device_addr; in pkt_session_etb_encoder()
308 pkt->extradata_buffer = in_frame->extradata_addr; in pkt_session_etb_encoder()
316 if (!cookie || !out_frame || !out_frame->device_addr) in pkt_session_ftb()
317 return -EINVAL; in pkt_session_ftb()
319 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_ftb()
320 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_FILL_BUFFER; in pkt_session_ftb()
321 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_ftb()
323 if (out_frame->buffer_type == HFI_BUFFER_OUTPUT) in pkt_session_ftb()
324 pkt->stream_id = 0; in pkt_session_ftb()
325 else if (out_frame->buffer_type == HFI_BUFFER_OUTPUT2) in pkt_session_ftb()
326 pkt->stream_id = 1; in pkt_session_ftb()
328 pkt->output_tag = out_frame->clnt_data; in pkt_session_ftb()
329 pkt->packet_buffer = out_frame->device_addr; in pkt_session_ftb()
330 pkt->extradata_buffer = out_frame->extradata_addr; in pkt_session_ftb()
331 pkt->alloc_len = out_frame->alloc_len; in pkt_session_ftb()
332 pkt->filled_len = out_frame->filled_len; in pkt_session_ftb()
333 pkt->offset = out_frame->offset; in pkt_session_ftb()
334 pkt->data = out_frame->extradata_size; in pkt_session_ftb()
344 return -EINVAL; in pkt_session_parse_seq_header()
346 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_parse_seq_header()
347 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_PARSE_SEQUENCE_HEADER; in pkt_session_parse_seq_header()
348 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_parse_seq_header()
349 pkt->header_len = seq_hdr_len; in pkt_session_parse_seq_header()
350 pkt->packet_buffer = seq_hdr; in pkt_session_parse_seq_header()
359 return -EINVAL; in pkt_session_get_seq_hdr()
361 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_get_seq_hdr()
362 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_SEQUENCE_HEADER; in pkt_session_get_seq_hdr()
363 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_get_seq_hdr()
364 pkt->buffer_len = seq_hdr_len; in pkt_session_get_seq_hdr()
365 pkt->packet_buffer = seq_hdr; in pkt_session_get_seq_hdr()
379 return -EINVAL; in pkt_session_flush()
382 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_flush()
383 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH; in pkt_session_flush()
384 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_flush()
385 pkt->flush_type = type; in pkt_session_flush()
398 return -EINVAL; in pkt_session_get_property_1x()
401 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_get_property_1x()
402 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_PROPERTY; in pkt_session_get_property_1x()
403 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_get_property_1x()
404 pkt->num_properties = 1; in pkt_session_get_property_1x()
405 pkt->data = ptype; in pkt_session_get_property_1x()
417 return -EINVAL; in pkt_session_set_property_1x()
419 prop_data = &pkt->data[1]; in pkt_session_set_property_1x()
421 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_set_property_1x()
422 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY; in pkt_session_set_property_1x()
423 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_set_property_1x()
424 pkt->num_properties = 1; in pkt_session_set_property_1x()
425 pkt->data[0] = ptype; in pkt_session_set_property_1x()
429 struct hfi_framerate *in = pdata, *frate = prop_data; in pkt_session_set_property_1x() local
431 frate->buffer_type = in->buffer_type; in pkt_session_set_property_1x()
432 frate->framerate = in->framerate; in pkt_session_set_property_1x()
433 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*frate); in pkt_session_set_property_1x()
437 struct hfi_uncompressed_format_select *in = pdata; in pkt_session_set_property_1x() local
440 hfi->buffer_type = in->buffer_type; in pkt_session_set_property_1x()
441 hfi->format = in->format; in pkt_session_set_property_1x()
442 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi); in pkt_session_set_property_1x()
446 struct hfi_framesize *in = pdata, *fsize = prop_data; in pkt_session_set_property_1x() local
448 fsize->buffer_type = in->buffer_type; in pkt_session_set_property_1x()
449 fsize->height = in->height; in pkt_session_set_property_1x()
450 fsize->width = in->width; in pkt_session_set_property_1x()
451 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*fsize); in pkt_session_set_property_1x()
455 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
457 en->enable = in->enable; in pkt_session_set_property_1x()
458 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
462 struct hfi_buffer_count_actual *in = pdata, *count = prop_data; in pkt_session_set_property_1x() local
464 count->count_actual = in->count_actual; in pkt_session_set_property_1x()
465 count->type = in->type; in pkt_session_set_property_1x()
466 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count); in pkt_session_set_property_1x()
470 struct hfi_buffer_size_actual *in = pdata, *sz = prop_data; in pkt_session_set_property_1x() local
472 sz->size = in->size; in pkt_session_set_property_1x()
473 sz->type = in->type; in pkt_session_set_property_1x()
474 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*sz); in pkt_session_set_property_1x()
478 struct hfi_buffer_display_hold_count_actual *in = pdata; in pkt_session_set_property_1x() local
481 count->hold_count = in->hold_count; in pkt_session_set_property_1x()
482 count->type = in->type; in pkt_session_set_property_1x()
483 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count); in pkt_session_set_property_1x()
487 struct hfi_nal_stream_format_select *in = pdata; in pkt_session_set_property_1x() local
490 fmt->format = in->format; in pkt_session_set_property_1x()
491 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*fmt); in pkt_session_set_property_1x()
495 u32 *in = pdata; in pkt_session_set_property_1x() local
497 switch (*in) { in pkt_session_set_property_1x()
502 ret = -EINVAL; in pkt_session_set_property_1x()
506 pkt->data[1] = *in; in pkt_session_set_property_1x()
507 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
511 struct hfi_enable_picture *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
513 en->picture_type = in->picture_type; in pkt_session_set_property_1x()
514 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
518 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
520 en->enable = in->enable; in pkt_session_set_property_1x()
521 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
526 struct hfi_enable *in = pdata; in pkt_session_set_property_1x() local
529 en->enable = in->enable; in pkt_session_set_property_1x()
530 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
534 struct hfi_multi_stream *in = pdata, *multi = prop_data; in pkt_session_set_property_1x() local
536 multi->buffer_type = in->buffer_type; in pkt_session_set_property_1x()
537 multi->enable = in->enable; in pkt_session_set_property_1x()
538 multi->width = in->width; in pkt_session_set_property_1x()
539 multi->height = in->height; in pkt_session_set_property_1x()
540 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi); in pkt_session_set_property_1x()
544 struct hfi_display_picture_buffer_count *in = pdata; in pkt_session_set_property_1x() local
547 count->count = in->count; in pkt_session_set_property_1x()
548 count->enable = in->enable; in pkt_session_set_property_1x()
549 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count); in pkt_session_set_property_1x()
553 u32 *in = pdata; in pkt_session_set_property_1x() local
555 switch (*in) { in pkt_session_set_property_1x()
561 ret = -EINVAL; in pkt_session_set_property_1x()
565 pkt->data[1] = *in; in pkt_session_set_property_1x()
566 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
570 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
572 en->enable = in->enable; in pkt_session_set_property_1x()
573 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
577 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
579 en->enable = in->enable; in pkt_session_set_property_1x()
580 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
584 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
586 en->enable = in->enable; in pkt_session_set_property_1x()
587 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
591 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
593 en->enable = in->enable; in pkt_session_set_property_1x()
594 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
598 pkt->shdr.hdr.size += sizeof(u32); in pkt_session_set_property_1x()
605 struct hfi_bitrate *in = pdata, *brate = prop_data; in pkt_session_set_property_1x() local
607 brate->bitrate = in->bitrate; in pkt_session_set_property_1x()
608 brate->layer_id = in->layer_id; in pkt_session_set_property_1x()
609 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*brate); in pkt_session_set_property_1x()
613 struct hfi_bitrate *in = pdata, *hfi = prop_data; in pkt_session_set_property_1x() local
615 hfi->bitrate = in->bitrate; in pkt_session_set_property_1x()
616 hfi->layer_id = in->layer_id; in pkt_session_set_property_1x()
617 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi); in pkt_session_set_property_1x()
621 struct hfi_profile_level *in = pdata, *pl = prop_data; in pkt_session_set_property_1x() local
623 pl->level = in->level; in pkt_session_set_property_1x()
624 pl->profile = in->profile; in pkt_session_set_property_1x()
625 if (pl->profile <= 0) in pkt_session_set_property_1x()
627 pl->profile = HFI_H264_PROFILE_HIGH; in pkt_session_set_property_1x()
629 if (!pl->level) in pkt_session_set_property_1x()
631 pl->level = 1; in pkt_session_set_property_1x()
633 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*pl); in pkt_session_set_property_1x()
637 struct hfi_h264_entropy_control *in = pdata, *hfi = prop_data; in pkt_session_set_property_1x() local
639 hfi->entropy_mode = in->entropy_mode; in pkt_session_set_property_1x()
640 if (hfi->entropy_mode == HFI_H264_ENTROPY_CABAC) in pkt_session_set_property_1x()
641 hfi->cabac_model = in->cabac_model; in pkt_session_set_property_1x()
642 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi); in pkt_session_set_property_1x()
646 u32 *in = pdata; in pkt_session_set_property_1x() local
648 switch (*in) { in pkt_session_set_property_1x()
657 ret = -EINVAL; in pkt_session_set_property_1x()
661 pkt->data[1] = *in; in pkt_session_set_property_1x()
662 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
666 struct hfi_mpeg4_time_resolution *in = pdata, *res = prop_data; in pkt_session_set_property_1x() local
668 res->time_increment_resolution = in->time_increment_resolution; in pkt_session_set_property_1x()
669 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*res); in pkt_session_set_property_1x()
673 struct hfi_mpeg4_header_extension *in = pdata, *ext = prop_data; in pkt_session_set_property_1x() local
675 ext->header_extension = in->header_extension; in pkt_session_set_property_1x()
676 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ext); in pkt_session_set_property_1x()
680 struct hfi_h264_db_control *in = pdata, *db = prop_data; in pkt_session_set_property_1x() local
682 switch (in->mode) { in pkt_session_set_property_1x()
688 ret = -EINVAL; in pkt_session_set_property_1x()
692 db->mode = in->mode; in pkt_session_set_property_1x()
693 db->slice_alpha_offset = in->slice_alpha_offset; in pkt_session_set_property_1x()
694 db->slice_beta_offset = in->slice_beta_offset; in pkt_session_set_property_1x()
695 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*db); in pkt_session_set_property_1x()
699 struct hfi_quantization *in = pdata, *quant = prop_data; in pkt_session_set_property_1x() local
701 quant->qp_i = in->qp_i; in pkt_session_set_property_1x()
702 quant->qp_p = in->qp_p; in pkt_session_set_property_1x()
703 quant->qp_b = in->qp_b; in pkt_session_set_property_1x()
704 quant->layer_id = in->layer_id; in pkt_session_set_property_1x()
705 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*quant); in pkt_session_set_property_1x()
709 struct hfi_quantization_range *in = pdata, *range = prop_data; in pkt_session_set_property_1x() local
712 min_qp = in->min_qp; in pkt_session_set_property_1x()
713 max_qp = in->max_qp; in pkt_session_set_property_1x()
715 /* We'll be packing in the qp, so make sure we in pkt_session_set_property_1x()
719 ret = -ERANGE; in pkt_session_set_property_1x()
724 * 0xiippbb, where ii = qp range for I-frames, in pkt_session_set_property_1x()
725 * pp = qp range for P-frames, etc. in pkt_session_set_property_1x()
727 range->min_qp = min_qp | min_qp << 8 | min_qp << 16; in pkt_session_set_property_1x()
728 range->max_qp = max_qp | max_qp << 8 | max_qp << 16; in pkt_session_set_property_1x()
729 range->layer_id = in->layer_id; in pkt_session_set_property_1x()
731 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*range); in pkt_session_set_property_1x()
735 struct hfi_vc1e_perf_cfg_type *in = pdata, *perf = prop_data; in pkt_session_set_property_1x() local
737 memcpy(perf->search_range_x_subsampled, in pkt_session_set_property_1x()
738 in->search_range_x_subsampled, in pkt_session_set_property_1x()
739 sizeof(perf->search_range_x_subsampled)); in pkt_session_set_property_1x()
740 memcpy(perf->search_range_y_subsampled, in pkt_session_set_property_1x()
741 in->search_range_y_subsampled, in pkt_session_set_property_1x()
742 sizeof(perf->search_range_y_subsampled)); in pkt_session_set_property_1x()
744 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*perf); in pkt_session_set_property_1x()
749 u32 *in = pdata; in pkt_session_set_property_1x() local
751 bframes->max_num_b_frames = *in; in pkt_session_set_property_1x()
752 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*bframes); in pkt_session_set_property_1x()
756 struct hfi_intra_period *in = pdata, *intra = prop_data; in pkt_session_set_property_1x() local
758 intra->pframes = in->pframes; in pkt_session_set_property_1x()
759 intra->bframes = in->bframes; in pkt_session_set_property_1x()
760 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra); in pkt_session_set_property_1x()
764 struct hfi_idr_period *in = pdata, *idr = prop_data; in pkt_session_set_property_1x() local
766 idr->idr_period = in->idr_period; in pkt_session_set_property_1x()
767 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*idr); in pkt_session_set_property_1x()
772 u32 *in = pdata; in pkt_session_set_property_1x() local
774 color->conceal_color = *in & 0xff; in pkt_session_set_property_1x()
775 color->conceal_color |= ((*in >> 10) & 0xff) << 8; in pkt_session_set_property_1x()
776 color->conceal_color |= ((*in >> 20) & 0xff) << 16; in pkt_session_set_property_1x()
777 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*color); in pkt_session_set_property_1x()
781 struct hfi_operations_type *in = pdata, *ops = prop_data; in pkt_session_set_property_1x() local
783 switch (in->rotation) { in pkt_session_set_property_1x()
790 ret = -EINVAL; in pkt_session_set_property_1x()
794 switch (in->flip) { in pkt_session_set_property_1x()
800 ret = -EINVAL; in pkt_session_set_property_1x()
804 ops->rotation = in->rotation; in pkt_session_set_property_1x()
805 ops->flip = in->flip; in pkt_session_set_property_1x()
806 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ops); in pkt_session_set_property_1x()
810 struct hfi_intra_refresh *in = pdata, *intra = prop_data; in pkt_session_set_property_1x() local
812 switch (in->mode) { in pkt_session_set_property_1x()
820 ret = -EINVAL; in pkt_session_set_property_1x()
824 intra->mode = in->mode; in pkt_session_set_property_1x()
825 intra->air_mbs = in->air_mbs; in pkt_session_set_property_1x()
826 intra->air_ref = in->air_ref; in pkt_session_set_property_1x()
827 intra->cir_mbs = in->cir_mbs; in pkt_session_set_property_1x()
828 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra); in pkt_session_set_property_1x()
832 struct hfi_multi_slice_control *in = pdata, *multi = prop_data; in pkt_session_set_property_1x() local
834 switch (in->multi_slice) { in pkt_session_set_property_1x()
841 ret = -EINVAL; in pkt_session_set_property_1x()
845 multi->multi_slice = in->multi_slice; in pkt_session_set_property_1x()
846 multi->slice_size = in->slice_size; in pkt_session_set_property_1x()
847 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi); in pkt_session_set_property_1x()
851 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
853 en->enable = in->enable; in pkt_session_set_property_1x()
854 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
858 struct hfi_h264_vui_timing_info *in = pdata, *vui = prop_data; in pkt_session_set_property_1x() local
860 vui->enable = in->enable; in pkt_session_set_property_1x()
861 vui->fixed_framerate = in->fixed_framerate; in pkt_session_set_property_1x()
862 vui->time_scale = in->time_scale; in pkt_session_set_property_1x()
863 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*vui); in pkt_session_set_property_1x()
867 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
869 en->enable = in->enable; in pkt_session_set_property_1x()
870 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
874 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
876 en->enable = in->enable; in pkt_session_set_property_1x()
877 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
881 struct hfi_buffer_alloc_mode *in = pdata, *mode = prop_data; in pkt_session_set_property_1x() local
883 mode->type = in->type; in pkt_session_set_property_1x()
884 mode->mode = in->mode; in pkt_session_set_property_1x()
885 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*mode); in pkt_session_set_property_1x()
889 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
891 en->enable = in->enable; in pkt_session_set_property_1x()
892 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
896 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
898 en->enable = in->enable; in pkt_session_set_property_1x()
899 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
903 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
905 en->enable = in->enable; in pkt_session_set_property_1x()
906 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
911 u32 *in = pdata; in pkt_session_set_property_1x() local
913 thres->threshold_value = *in; in pkt_session_set_property_1x()
914 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*thres); in pkt_session_set_property_1x()
918 struct hfi_mvc_buffer_layout_descp_type *in = pdata; in pkt_session_set_property_1x() local
921 switch (in->layout_type) { in pkt_session_set_property_1x()
926 ret = -EINVAL; in pkt_session_set_property_1x()
930 mvc->layout_type = in->layout_type; in pkt_session_set_property_1x()
931 mvc->bright_view_first = in->bright_view_first; in pkt_session_set_property_1x()
932 mvc->ngap = in->ngap; in pkt_session_set_property_1x()
933 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*mvc); in pkt_session_set_property_1x()
937 struct hfi_ltr_mode *in = pdata, *ltr = prop_data; in pkt_session_set_property_1x() local
939 switch (in->ltr_mode) { in pkt_session_set_property_1x()
945 ret = -EINVAL; in pkt_session_set_property_1x()
949 ltr->ltr_mode = in->ltr_mode; in pkt_session_set_property_1x()
950 ltr->ltr_count = in->ltr_count; in pkt_session_set_property_1x()
951 ltr->trust_mode = in->trust_mode; in pkt_session_set_property_1x()
952 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr); in pkt_session_set_property_1x()
956 struct hfi_ltr_use *in = pdata, *ltr_use = prop_data; in pkt_session_set_property_1x() local
958 ltr_use->frames = in->frames; in pkt_session_set_property_1x()
959 ltr_use->ref_ltr = in->ref_ltr; in pkt_session_set_property_1x()
960 ltr_use->use_constrnt = in->use_constrnt; in pkt_session_set_property_1x()
961 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr_use); in pkt_session_set_property_1x()
965 struct hfi_ltr_mark *in = pdata, *ltr_mark = prop_data; in pkt_session_set_property_1x() local
967 ltr_mark->mark_frame = in->mark_frame; in pkt_session_set_property_1x()
968 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr_mark); in pkt_session_set_property_1x()
972 u32 *in = pdata; in pkt_session_set_property_1x() local
974 pkt->data[1] = *in; in pkt_session_set_property_1x()
975 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
979 u32 *in = pdata; in pkt_session_set_property_1x() local
981 pkt->data[1] = *in; in pkt_session_set_property_1x()
982 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
986 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
988 en->enable = in->enable; in pkt_session_set_property_1x()
989 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
993 struct hfi_initial_quantization *in = pdata, *quant = prop_data; in pkt_session_set_property_1x() local
995 quant->init_qp_enable = in->init_qp_enable; in pkt_session_set_property_1x()
996 quant->qp_i = in->qp_i; in pkt_session_set_property_1x()
997 quant->qp_p = in->qp_p; in pkt_session_set_property_1x()
998 quant->qp_b = in->qp_b; in pkt_session_set_property_1x()
999 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*quant); in pkt_session_set_property_1x()
1003 struct hfi_vpe_color_space_conversion *in = pdata; in pkt_session_set_property_1x() local
1006 memcpy(csc->csc_matrix, in->csc_matrix, in pkt_session_set_property_1x()
1007 sizeof(csc->csc_matrix)); in pkt_session_set_property_1x()
1008 memcpy(csc->csc_bias, in->csc_bias, sizeof(csc->csc_bias)); in pkt_session_set_property_1x()
1009 memcpy(csc->csc_limit, in->csc_limit, sizeof(csc->csc_limit)); in pkt_session_set_property_1x()
1010 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*csc); in pkt_session_set_property_1x()
1014 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
1016 en->enable = in->enable; in pkt_session_set_property_1x()
1017 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
1021 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
1023 en->enable = in->enable; in pkt_session_set_property_1x()
1024 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
1028 u32 *in = pdata; in pkt_session_set_property_1x() local
1030 pkt->data[1] = *in; in pkt_session_set_property_1x()
1031 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
1035 u32 *in = pdata; in pkt_session_set_property_1x() local
1037 pkt->data[1] = *in; in pkt_session_set_property_1x()
1038 pkt->shdr.hdr.size += sizeof(u32) * 2; in pkt_session_set_property_1x()
1042 struct hfi_enable *in = pdata, *en = prop_data; in pkt_session_set_property_1x() local
1044 en->enable = in->enable; in pkt_session_set_property_1x()
1045 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en); in pkt_session_set_property_1x()
1049 struct hfi_hybrid_hierp *in = pdata, *hierp = prop_data; in pkt_session_set_property_1x() local
1051 hierp->layers = in->layers; in pkt_session_set_property_1x()
1052 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hierp); in pkt_session_set_property_1x()
1056 struct hfi_uncompressed_plane_actual_info *in = pdata; in pkt_session_set_property_1x() local
1059 info->buffer_type = in->buffer_type; in pkt_session_set_property_1x()
1060 info->num_planes = in->num_planes; in pkt_session_set_property_1x()
1061 info->plane_format[0] = in->plane_format[0]; in pkt_session_set_property_1x()
1062 if (in->num_planes > 1) in pkt_session_set_property_1x()
1063 info->plane_format[1] = in->plane_format[1]; in pkt_session_set_property_1x()
1064 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info); in pkt_session_set_property_1x()
1068 return -ENOTSUPP; in pkt_session_set_property_1x()
1070 /* FOLLOWING PROPERTIES ARE NOT IMPLEMENTED IN CORE YET */ in pkt_session_set_property_1x()
1091 return -EINVAL; in pkt_session_set_property_1x()
1104 return -EINVAL; in pkt_session_get_property_3xx()
1106 pkt->shdr.hdr.size = sizeof(struct hfi_session_get_property_pkt); in pkt_session_get_property_3xx()
1107 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_PROPERTY; in pkt_session_get_property_3xx()
1108 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_get_property_3xx()
1109 pkt->num_properties = 1; in pkt_session_get_property_3xx()
1113 pkt->data = HFI_PROPERTY_CONFIG_VDEC_ENTROPY; in pkt_session_get_property_3xx()
1131 return -EINVAL; in pkt_session_set_property_3xx()
1133 prop_data = &pkt->data[1]; in pkt_session_set_property_3xx()
1135 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_set_property_3xx()
1136 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY; in pkt_session_set_property_3xx()
1137 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_set_property_3xx()
1138 pkt->num_properties = 1; in pkt_session_set_property_3xx()
1139 pkt->data[0] = ptype; in pkt_session_set_property_3xx()
1142 * Any session set property which is different in 3XX packetization in pkt_session_set_property_3xx()
1144 * properties will be handled in the default case. in pkt_session_set_property_3xx()
1148 struct hfi_multi_stream *in = pdata; in pkt_session_set_property_3xx() local
1151 multi->buffer_type = in->buffer_type; in pkt_session_set_property_3xx()
1152 multi->enable = in->enable; in pkt_session_set_property_3xx()
1153 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi); in pkt_session_set_property_3xx()
1157 struct hfi_intra_refresh *in = pdata; in pkt_session_set_property_3xx() local
1160 switch (in->mode) { in pkt_session_set_property_3xx()
1168 ret = -EINVAL; in pkt_session_set_property_3xx()
1172 intra->mode = in->mode; in pkt_session_set_property_3xx()
1173 intra->mbs = in->cir_mbs; in pkt_session_set_property_3xx()
1174 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra); in pkt_session_set_property_3xx()
1195 return -EINVAL; in pkt_session_set_property_4xx()
1197 prop_data = &pkt->data[1]; in pkt_session_set_property_4xx()
1199 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_set_property_4xx()
1200 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY; in pkt_session_set_property_4xx()
1201 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_set_property_4xx()
1202 pkt->num_properties = 1; in pkt_session_set_property_4xx()
1203 pkt->data[0] = ptype; in pkt_session_set_property_4xx()
1206 * Any session set property which is different in 3XX packetization in pkt_session_set_property_4xx()
1208 * properties will be handled in the default case. in pkt_session_set_property_4xx()
1212 struct hfi_buffer_count_actual *in = pdata; in pkt_session_set_property_4xx() local
1215 count->count_actual = in->count_actual; in pkt_session_set_property_4xx()
1216 count->type = in->type; in pkt_session_set_property_4xx()
1217 count->count_min_host = in->count_actual; in pkt_session_set_property_4xx()
1218 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count); in pkt_session_set_property_4xx()
1222 struct hfi_video_work_mode *in = pdata, *wm = prop_data; in pkt_session_set_property_4xx() local
1224 wm->video_work_mode = in->video_work_mode; in pkt_session_set_property_4xx()
1225 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*wm); in pkt_session_set_property_4xx()
1229 struct hfi_videocores_usage_type *in = pdata, *cu = prop_data; in pkt_session_set_property_4xx() local
1231 cu->video_core_enable_mask = in->video_core_enable_mask; in pkt_session_set_property_4xx()
1232 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*cu); in pkt_session_set_property_4xx()
1236 struct hfi_hdr10_pq_sei *in = pdata, *hdr10 = prop_data; in pkt_session_set_property_4xx() local
1238 memcpy(hdr10, in, sizeof(*hdr10)); in pkt_session_set_property_4xx()
1239 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hdr10); in pkt_session_set_property_4xx()
1244 u32 *in = pdata; in pkt_session_set_property_4xx() local
1246 color->conceal_color_8bit = *in & 0xff; in pkt_session_set_property_4xx()
1247 color->conceal_color_8bit |= ((*in >> 10) & 0xff) << 8; in pkt_session_set_property_4xx()
1248 color->conceal_color_8bit |= ((*in >> 20) & 0xff) << 16; in pkt_session_set_property_4xx()
1249 color->conceal_color_10bit = *in; in pkt_session_set_property_4xx()
1250 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*color); in pkt_session_set_property_4xx()
1255 struct hfi_h264_8x8_transform *in = pdata, *tm = prop_data; in pkt_session_set_property_4xx() local
1257 tm->enable_type = in->enable_type; in pkt_session_set_property_4xx()
1258 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*tm); in pkt_session_set_property_4xx()
1262 struct hfi_quantization_range_v2 *in = pdata, *range = prop_data; in pkt_session_set_property_4xx() local
1265 min_qp = in->min_qp.qp_packed; in pkt_session_set_property_4xx()
1266 max_qp = in->max_qp.qp_packed; in pkt_session_set_property_4xx()
1268 /* We'll be packing in the qp, so make sure we in pkt_session_set_property_4xx()
1272 return -ERANGE; in pkt_session_set_property_4xx()
1274 range->min_qp.layer_id = 0xFF; in pkt_session_set_property_4xx()
1275 range->max_qp.layer_id = 0xFF; in pkt_session_set_property_4xx()
1276 range->min_qp.qp_packed = (min_qp & 0xFF) | ((min_qp & 0xFF) << 8) | in pkt_session_set_property_4xx()
1278 range->max_qp.qp_packed = (max_qp & 0xFF) | ((max_qp & 0xFF) << 8) | in pkt_session_set_property_4xx()
1280 range->min_qp.enable = 7; in pkt_session_set_property_4xx()
1281 range->max_qp.enable = 7; in pkt_session_set_property_4xx()
1282 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*range); in pkt_session_set_property_4xx()
1291 return -ENOTSUPP; in pkt_session_set_property_4xx()
1306 return -EINVAL; in pkt_session_set_property_6xx()
1308 prop_data = &pkt->data[1]; in pkt_session_set_property_6xx()
1310 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_set_property_6xx()
1311 pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY; in pkt_session_set_property_6xx()
1312 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_set_property_6xx()
1313 pkt->num_properties = 1; in pkt_session_set_property_6xx()
1314 pkt->data[0] = ptype; in pkt_session_set_property_6xx()
1318 struct hfi_uncompressed_plane_actual_constraints_info *in = pdata; in pkt_session_set_property_6xx() local
1321 info->buffer_type = in->buffer_type; in pkt_session_set_property_6xx()
1322 info->num_planes = in->num_planes; in pkt_session_set_property_6xx()
1323 info->plane_format[0] = in->plane_format[0]; in pkt_session_set_property_6xx()
1324 if (in->num_planes > 1) in pkt_session_set_property_6xx()
1325 info->plane_format[1] = in->plane_format[1]; in pkt_session_set_property_6xx()
1327 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info); in pkt_session_set_property_6xx()
1331 struct hfi_heic_frame_quality *in = pdata, *cq = prop_data; in pkt_session_set_property_6xx() local
1333 cq->frame_quality = in->frame_quality; in pkt_session_set_property_6xx()
1334 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*cq); in pkt_session_set_property_6xx()
1338 struct hfi_video_work_route *in = pdata, *wr = prop_data; in pkt_session_set_property_6xx() local
1340 wr->video_work_route = in->video_work_route; in pkt_session_set_property_6xx()
1341 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*wr); in pkt_session_set_property_6xx()