Lines Matching refs:dst

44 allegro_enc_init(u32 *dst, struct mcu_msg_init_request *msg)  in allegro_enc_init()  argument
49 dst[i++] = msg->reserved0; in allegro_enc_init()
50 dst[i++] = msg->suballoc_dma; in allegro_enc_init()
51 dst[i++] = msg->suballoc_size; in allegro_enc_init()
52 dst[i++] = msg->encoder_buffer_size; in allegro_enc_init()
53 dst[i++] = msg->encoder_buffer_color_depth; in allegro_enc_init()
54 dst[i++] = msg->num_cores; in allegro_enc_init()
56 dst[i++] = msg->clk_rate; in allegro_enc_init()
57 dst[i++] = 0; in allegro_enc_init()
60 return i * sizeof(*dst); in allegro_enc_init()
88 allegro_encode_config_blob(u32 *dst, struct create_channel_param *param) in allegro_encode_config_blob() argument
97 dst[i++] = param->layer_id; in allegro_encode_config_blob()
98 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->height) | in allegro_encode_config_blob()
101 dst[i++] = param->videomode; in allegro_encode_config_blob()
102 dst[i++] = param->format; in allegro_encode_config_blob()
104 dst[i++] = param->colorspace; in allegro_encode_config_blob()
105 dst[i++] = param->src_mode; in allegro_encode_config_blob()
107 dst[i++] = param->src_bit_depth; in allegro_encode_config_blob()
108 dst[i++] = FIELD_PREP(GENMASK(31, 24), codec) | in allegro_encode_config_blob()
111 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->tier) | in allegro_encode_config_blob()
121 dst[i++] = val; in allegro_encode_config_blob()
127 dst[i++] = val; in allegro_encode_config_blob()
133 dst[i++] = val; in allegro_encode_config_blob()
139 dst[i++] = val; in allegro_encode_config_blob()
142 dst[i++] = val; in allegro_encode_config_blob()
145 dst[i++] = FIELD_PREP(GENMASK(15, 8), param->beta_offset) | in allegro_encode_config_blob()
147 dst[i++] = param->unknown11; in allegro_encode_config_blob()
148 dst[i++] = param->unknown12; in allegro_encode_config_blob()
149 dst[i++] = param->num_slices; in allegro_encode_config_blob()
150 dst[i++] = param->encoder_buffer_offset; in allegro_encode_config_blob()
151 dst[i++] = param->encoder_buffer_enabled; in allegro_encode_config_blob()
153 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->clip_vrt_range) | in allegro_encode_config_blob()
155 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->me_range[1]) | in allegro_encode_config_blob()
157 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->me_range[3]) | in allegro_encode_config_blob()
159 dst[i++] = FIELD_PREP(GENMASK(31, 24), param->min_tu_size) | in allegro_encode_config_blob()
163 dst[i++] = FIELD_PREP(GENMASK(15, 8), param->max_transfo_depth_intra) | in allegro_encode_config_blob()
165 dst[i++] = param->entropy_mode; in allegro_encode_config_blob()
166 dst[i++] = param->wp_mode; in allegro_encode_config_blob()
168 dst[i++] = param->rate_control_mode; in allegro_encode_config_blob()
169 dst[i++] = param->initial_rem_delay; in allegro_encode_config_blob()
170 dst[i++] = param->cpb_size; in allegro_encode_config_blob()
171 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->clk_ratio) | in allegro_encode_config_blob()
173 dst[i++] = param->target_bitrate; in allegro_encode_config_blob()
174 dst[i++] = param->max_bitrate; in allegro_encode_config_blob()
175 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->min_qp) | in allegro_encode_config_blob()
177 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->ip_delta) | in allegro_encode_config_blob()
179 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->golden_ref) | in allegro_encode_config_blob()
181 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->golden_ref_frequency) | in allegro_encode_config_blob()
184 dst[i++] = param->rate_control_option; in allegro_encode_config_blob()
186 dst[i++] = 0; in allegro_encode_config_blob()
189 dst[i++] = param->num_pixel; in allegro_encode_config_blob()
190 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->max_pixel_value) | in allegro_encode_config_blob()
193 dst[i++] = param->maxpicturesize[j]; in allegro_encode_config_blob()
197 dst[i++] = param->gop_ctrl_mode; in allegro_encode_config_blob()
199 dst[i++] = 0; in allegro_encode_config_blob()
202 dst[i++] = FIELD_PREP(GENMASK(31, 24), param->freq_golden_ref) | in allegro_encode_config_blob()
205 dst[i++] = param->freq_idr; in allegro_encode_config_blob()
207 dst[i++] = param->enable_lt; in allegro_encode_config_blob()
208 dst[i++] = param->freq_lt; in allegro_encode_config_blob()
209 dst[i++] = param->gdr_mode; in allegro_encode_config_blob()
211 dst[i++] = FIELD_PREP(GENMASK(31, 24), param->freq_golden_ref) | in allegro_encode_config_blob()
216 dst[i++] = param->tmpdqp; in allegro_encode_config_blob()
218 dst[i++] = param->subframe_latency; in allegro_encode_config_blob()
219 dst[i++] = param->lda_control_mode; in allegro_encode_config_blob()
221 dst[i++] = param->unknown41; in allegro_encode_config_blob()
225 dst[i++] = param->lda_factors[j]; in allegro_encode_config_blob()
226 dst[i++] = param->max_num_merge_cand; in allegro_encode_config_blob()
229 return i * sizeof(*dst); in allegro_encode_config_blob()
233 allegro_enc_create_channel(u32 *dst, struct mcu_msg_create_channel *msg) in allegro_enc_create_channel() argument
238 dst[i++] = msg->user_id; in allegro_enc_create_channel()
241 dst[i++] = msg->blob_mcu_addr; in allegro_enc_create_channel()
243 memcpy(&dst[i], msg->blob, msg->blob_size); in allegro_enc_create_channel()
244 i += msg->blob_size / sizeof(*dst); in allegro_enc_create_channel()
248 dst[i++] = msg->ep1_addr; in allegro_enc_create_channel()
250 return i * sizeof(*dst); in allegro_enc_create_channel()
271 allegro_enc_destroy_channel(u32 *dst, struct mcu_msg_destroy_channel *msg) in allegro_enc_destroy_channel() argument
275 dst[i++] = msg->channel_id; in allegro_enc_destroy_channel()
277 return i * sizeof(*dst); in allegro_enc_destroy_channel()
281 allegro_enc_push_buffers(u32 *dst, struct mcu_msg_push_buffers_internal *msg) in allegro_enc_push_buffers() argument
288 dst[i++] = msg->channel_id; in allegro_enc_push_buffers()
292 dst[i++] = buffer->dma_addr; in allegro_enc_push_buffers()
293 dst[i++] = buffer->mcu_addr; in allegro_enc_push_buffers()
294 dst[i++] = buffer->size; in allegro_enc_push_buffers()
297 return i * sizeof(*dst); in allegro_enc_push_buffers()
301 allegro_enc_put_stream_buffer(u32 *dst, in allegro_enc_put_stream_buffer() argument
306 dst[i++] = msg->channel_id; in allegro_enc_put_stream_buffer()
307 dst[i++] = msg->dma_addr; in allegro_enc_put_stream_buffer()
308 dst[i++] = msg->mcu_addr; in allegro_enc_put_stream_buffer()
309 dst[i++] = msg->size; in allegro_enc_put_stream_buffer()
310 dst[i++] = msg->offset; in allegro_enc_put_stream_buffer()
311 dst[i++] = lower_32_bits(msg->dst_handle); in allegro_enc_put_stream_buffer()
312 dst[i++] = upper_32_bits(msg->dst_handle); in allegro_enc_put_stream_buffer()
314 return i * sizeof(*dst); in allegro_enc_put_stream_buffer()
318 allegro_enc_encode_frame(u32 *dst, struct mcu_msg_encode_frame *msg) in allegro_enc_encode_frame() argument
323 dst[i++] = msg->channel_id; in allegro_enc_encode_frame()
325 dst[i++] = msg->reserved; in allegro_enc_encode_frame()
326 dst[i++] = msg->encoding_options; in allegro_enc_encode_frame()
327 dst[i++] = FIELD_PREP(GENMASK(31, 16), msg->padding) | in allegro_enc_encode_frame()
331 dst[i++] = 0; in allegro_enc_encode_frame()
332 dst[i++] = 0; in allegro_enc_encode_frame()
333 dst[i++] = 0; in allegro_enc_encode_frame()
334 dst[i++] = 0; in allegro_enc_encode_frame()
337 dst[i++] = lower_32_bits(msg->user_param); in allegro_enc_encode_frame()
338 dst[i++] = upper_32_bits(msg->user_param); in allegro_enc_encode_frame()
339 dst[i++] = lower_32_bits(msg->src_handle); in allegro_enc_encode_frame()
340 dst[i++] = upper_32_bits(msg->src_handle); in allegro_enc_encode_frame()
341 dst[i++] = msg->request_options; in allegro_enc_encode_frame()
342 dst[i++] = msg->src_y; in allegro_enc_encode_frame()
343 dst[i++] = msg->src_uv; in allegro_enc_encode_frame()
345 dst[i++] = msg->is_10_bit; in allegro_enc_encode_frame()
346 dst[i++] = msg->stride; in allegro_enc_encode_frame()
348 dst[i++] = msg->format; in allegro_enc_encode_frame()
349 dst[i++] = msg->ep2; in allegro_enc_encode_frame()
350 dst[i++] = lower_32_bits(msg->ep2_v); in allegro_enc_encode_frame()
351 dst[i++] = upper_32_bits(msg->ep2_v); in allegro_enc_encode_frame()
353 return i * sizeof(*dst); in allegro_enc_encode_frame()
468 ssize_t allegro_encode_mail(u32 *dst, void *msg) in allegro_encode_mail() argument
473 if (!msg || !dst) in allegro_encode_mail()
478 size = allegro_enc_init(&dst[1], msg); in allegro_encode_mail()
481 size = allegro_enc_create_channel(&dst[1], msg); in allegro_encode_mail()
484 size = allegro_enc_destroy_channel(&dst[1], msg); in allegro_encode_mail()
487 size = allegro_enc_encode_frame(&dst[1], msg); in allegro_encode_mail()
490 size = allegro_enc_put_stream_buffer(&dst[1], msg); in allegro_encode_mail()
494 size = allegro_enc_push_buffers(&dst[1], msg); in allegro_encode_mail()
505 dst[0] = FIELD_PREP(GENMASK(31, 16), header->type) | in allegro_encode_mail()
508 return size + sizeof(*dst); in allegro_encode_mail()