Lines Matching full:i
46 unsigned int i = 0; in allegro_enc_init() local
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->l2_cache[0]; in allegro_enc_init()
53 dst[i++] = msg->l2_cache[1]; in allegro_enc_init()
54 dst[i++] = msg->l2_cache[2]; in allegro_enc_init()
56 dst[i++] = -1; in allegro_enc_init()
57 dst[i++] = 0; in allegro_enc_init()
60 return i * sizeof(*dst); in allegro_enc_init()
91 unsigned int i = 0; in allegro_encode_config_blob() local
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()
150 dst[i++] = param->num_slices; in allegro_encode_config_blob()
152 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->prefetch_auto) | in allegro_encode_config_blob()
154 dst[i++] = param->prefetch_mem_offset; in allegro_encode_config_blob()
155 dst[i++] = param->prefetch_mem_size; in allegro_encode_config_blob()
156 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->clip_vrt_range) | in allegro_encode_config_blob()
158 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->me_range[1]) | in allegro_encode_config_blob()
160 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->me_range[3]) | in allegro_encode_config_blob()
162 dst[i++] = FIELD_PREP(GENMASK(31, 24), param->min_tu_size) | in allegro_encode_config_blob()
166 dst[i++] = FIELD_PREP(GENMASK(15, 8), param->max_transfo_depth_intra) | in allegro_encode_config_blob()
168 dst[i++] = param->entropy_mode; in allegro_encode_config_blob()
169 dst[i++] = param->wp_mode; in allegro_encode_config_blob()
171 dst[i++] = param->rate_control_mode; in allegro_encode_config_blob()
172 dst[i++] = param->initial_rem_delay; in allegro_encode_config_blob()
173 dst[i++] = param->cpb_size; in allegro_encode_config_blob()
174 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->clk_ratio) | in allegro_encode_config_blob()
176 dst[i++] = param->target_bitrate; in allegro_encode_config_blob()
177 dst[i++] = param->max_bitrate; in allegro_encode_config_blob()
178 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->min_qp) | in allegro_encode_config_blob()
180 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->ip_delta) | in allegro_encode_config_blob()
182 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->golden_ref) | in allegro_encode_config_blob()
184 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->golden_ref_frequency) | in allegro_encode_config_blob()
187 dst[i++] = param->rate_control_option; in allegro_encode_config_blob()
189 dst[i++] = 0; in allegro_encode_config_blob()
192 dst[i++] = param->num_pixel; in allegro_encode_config_blob()
193 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->max_pixel_value) | in allegro_encode_config_blob()
196 dst[i++] = param->maxpicturesize[j]; in allegro_encode_config_blob()
200 dst[i++] = param->gop_ctrl_mode; in allegro_encode_config_blob()
202 dst[i++] = 0; in allegro_encode_config_blob()
205 dst[i++] = FIELD_PREP(GENMASK(31, 24), param->freq_golden_ref) | in allegro_encode_config_blob()
208 dst[i++] = param->freq_idr; in allegro_encode_config_blob()
210 dst[i++] = param->enable_lt; in allegro_encode_config_blob()
211 dst[i++] = param->freq_lt; in allegro_encode_config_blob()
212 dst[i++] = param->gdr_mode; in allegro_encode_config_blob()
214 dst[i++] = FIELD_PREP(GENMASK(31, 24), param->freq_golden_ref) | in allegro_encode_config_blob()
219 dst[i++] = param->tmpdqp; in allegro_encode_config_blob()
221 dst[i++] = param->subframe_latency; in allegro_encode_config_blob()
222 dst[i++] = param->lda_control_mode; in allegro_encode_config_blob()
224 dst[i++] = param->unknown41; in allegro_encode_config_blob()
228 dst[i++] = param->lda_factors[j]; in allegro_encode_config_blob()
229 dst[i++] = param->max_num_merge_cand; in allegro_encode_config_blob()
232 return i * sizeof(*dst); in allegro_encode_config_blob()
239 unsigned int i = 0; in allegro_enc_create_channel() local
241 dst[i++] = msg->user_id; in allegro_enc_create_channel()
244 dst[i++] = msg->blob_mcu_addr; in allegro_enc_create_channel()
246 memcpy(&dst[i], msg->blob, msg->blob_size); in allegro_enc_create_channel()
247 i += msg->blob_size / sizeof(*dst); in allegro_enc_create_channel()
251 dst[i++] = msg->ep1_addr; in allegro_enc_create_channel()
253 return i * sizeof(*dst); in allegro_enc_create_channel()
276 unsigned int i = 0; in allegro_enc_destroy_channel() local
278 dst[i++] = msg->channel_id; in allegro_enc_destroy_channel()
280 return i * sizeof(*dst); in allegro_enc_destroy_channel()
286 unsigned int i = 0; in allegro_enc_push_buffers() local
291 dst[i++] = msg->channel_id; in allegro_enc_push_buffers()
295 dst[i++] = buffer->dma_addr; in allegro_enc_push_buffers()
296 dst[i++] = buffer->mcu_addr; in allegro_enc_push_buffers()
297 dst[i++] = buffer->size; in allegro_enc_push_buffers()
300 return i * sizeof(*dst); in allegro_enc_push_buffers()
307 unsigned int i = 0; in allegro_enc_put_stream_buffer() local
309 dst[i++] = msg->channel_id; in allegro_enc_put_stream_buffer()
310 dst[i++] = msg->dma_addr; in allegro_enc_put_stream_buffer()
311 dst[i++] = msg->mcu_addr; in allegro_enc_put_stream_buffer()
312 dst[i++] = msg->size; in allegro_enc_put_stream_buffer()
313 dst[i++] = msg->offset; in allegro_enc_put_stream_buffer()
314 dst[i++] = lower_32_bits(msg->dst_handle); in allegro_enc_put_stream_buffer()
315 dst[i++] = upper_32_bits(msg->dst_handle); in allegro_enc_put_stream_buffer()
317 return i * sizeof(*dst); in allegro_enc_put_stream_buffer()
324 unsigned int i = 0; in allegro_enc_encode_frame() local
326 dst[i++] = msg->channel_id; in allegro_enc_encode_frame()
328 dst[i++] = msg->reserved; in allegro_enc_encode_frame()
329 dst[i++] = msg->encoding_options; in allegro_enc_encode_frame()
330 dst[i++] = FIELD_PREP(GENMASK(31, 16), msg->padding) | in allegro_enc_encode_frame()
334 dst[i++] = 0; in allegro_enc_encode_frame()
335 dst[i++] = 0; in allegro_enc_encode_frame()
336 dst[i++] = 0; in allegro_enc_encode_frame()
337 dst[i++] = 0; in allegro_enc_encode_frame()
340 dst[i++] = lower_32_bits(msg->user_param); in allegro_enc_encode_frame()
341 dst[i++] = upper_32_bits(msg->user_param); in allegro_enc_encode_frame()
342 dst[i++] = lower_32_bits(msg->src_handle); in allegro_enc_encode_frame()
343 dst[i++] = upper_32_bits(msg->src_handle); in allegro_enc_encode_frame()
344 dst[i++] = msg->request_options; in allegro_enc_encode_frame()
345 dst[i++] = msg->src_y; in allegro_enc_encode_frame()
346 dst[i++] = msg->src_uv; in allegro_enc_encode_frame()
348 dst[i++] = msg->is_10_bit; in allegro_enc_encode_frame()
349 dst[i++] = msg->stride; in allegro_enc_encode_frame()
351 dst[i++] = msg->format; in allegro_enc_encode_frame()
352 dst[i++] = msg->ep2; in allegro_enc_encode_frame()
353 dst[i++] = lower_32_bits(msg->ep2_v); in allegro_enc_encode_frame()
354 dst[i++] = upper_32_bits(msg->ep2_v); in allegro_enc_encode_frame()
356 return i * sizeof(*dst); in allegro_enc_encode_frame()
362 unsigned int i = 0; in allegro_dec_init() local
364 msg->reserved0 = src[i++]; in allegro_dec_init()
366 return i * sizeof(*src); in allegro_dec_init()
374 unsigned int i = 0; in allegro_dec_create_channel() local
376 msg->channel_id = src[i++]; in allegro_dec_create_channel()
377 msg->user_id = src[i++]; in allegro_dec_create_channel()
383 msg->options = src[i++]; in allegro_dec_create_channel()
384 msg->num_core = src[i++]; in allegro_dec_create_channel()
385 msg->num_ref_idx_l0 = FIELD_GET(GENMASK(7, 4), src[i]); in allegro_dec_create_channel()
386 msg->num_ref_idx_l1 = FIELD_GET(GENMASK(11, 8), src[i++]); in allegro_dec_create_channel()
388 msg->int_buffers_count = src[i++]; in allegro_dec_create_channel()
389 msg->int_buffers_size = src[i++]; in allegro_dec_create_channel()
390 msg->rec_buffers_count = src[i++]; in allegro_dec_create_channel()
391 msg->rec_buffers_size = src[i++]; in allegro_dec_create_channel()
392 msg->reserved = src[i++]; in allegro_dec_create_channel()
393 msg->error_code = src[i++]; in allegro_dec_create_channel()
395 return i * sizeof(*src); in allegro_dec_create_channel()
402 unsigned int i = 0; in allegro_dec_destroy_channel() local
404 msg->channel_id = src[i++]; in allegro_dec_destroy_channel()
406 return i * sizeof(*src); in allegro_dec_destroy_channel()
413 unsigned int i = 0; in allegro_dec_encode_frame() local
416 msg->channel_id = src[i++]; in allegro_dec_encode_frame()
418 msg->dst_handle = src[i++]; in allegro_dec_encode_frame()
419 msg->dst_handle |= (((u64)src[i++]) << 32); in allegro_dec_encode_frame()
420 msg->user_param = src[i++]; in allegro_dec_encode_frame()
421 msg->user_param |= (((u64)src[i++]) << 32); in allegro_dec_encode_frame()
422 msg->src_handle = src[i++]; in allegro_dec_encode_frame()
423 msg->src_handle |= (((u64)src[i++]) << 32); in allegro_dec_encode_frame()
424 msg->skip = FIELD_GET(GENMASK(31, 16), src[i]); in allegro_dec_encode_frame()
425 msg->is_ref = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
426 msg->initial_removal_delay = src[i++]; in allegro_dec_encode_frame()
427 msg->dpb_output_delay = src[i++]; in allegro_dec_encode_frame()
428 msg->size = src[i++]; in allegro_dec_encode_frame()
429 msg->frame_tag_size = src[i++]; in allegro_dec_encode_frame()
430 msg->stuffing = src[i++]; in allegro_dec_encode_frame()
431 msg->filler = src[i++]; in allegro_dec_encode_frame()
432 msg->num_column = FIELD_GET(GENMASK(31, 16), src[i]); in allegro_dec_encode_frame()
433 msg->num_row = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
434 msg->num_ref_idx_l1 = FIELD_GET(GENMASK(31, 24), src[i]); in allegro_dec_encode_frame()
435 msg->num_ref_idx_l0 = FIELD_GET(GENMASK(23, 16), src[i]); in allegro_dec_encode_frame()
436 msg->qp = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
437 msg->partition_table_offset = src[i++]; in allegro_dec_encode_frame()
438 msg->partition_table_size = src[i++]; in allegro_dec_encode_frame()
439 msg->sum_complex = src[i++]; in allegro_dec_encode_frame()
441 msg->tile_width[j] = src[i++]; in allegro_dec_encode_frame()
443 msg->tile_height[j] = src[i++]; in allegro_dec_encode_frame()
444 msg->error_code = src[i++]; in allegro_dec_encode_frame()
445 msg->slice_type = src[i++]; in allegro_dec_encode_frame()
446 msg->pic_struct = src[i++]; in allegro_dec_encode_frame()
447 msg->reserved = FIELD_GET(GENMASK(31, 24), src[i]); in allegro_dec_encode_frame()
448 msg->is_last_slice = FIELD_GET(GENMASK(23, 16), src[i]); in allegro_dec_encode_frame()
449 msg->is_first_slice = FIELD_GET(GENMASK(15, 8), src[i]); in allegro_dec_encode_frame()
450 msg->is_idr = FIELD_GET(GENMASK(7, 0), src[i++]); in allegro_dec_encode_frame()
452 msg->reserved1 = FIELD_GET(GENMASK(31, 16), src[i]); in allegro_dec_encode_frame()
453 msg->pps_qp = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
455 msg->reserved2 = src[i++]; in allegro_dec_encode_frame()
457 msg->reserved3 = src[i++]; in allegro_dec_encode_frame()
458 msg->reserved4 = src[i++]; in allegro_dec_encode_frame()
459 msg->reserved5 = src[i++]; in allegro_dec_encode_frame()
460 msg->reserved6 = src[i++]; in allegro_dec_encode_frame()
463 return i * sizeof(*src); in allegro_dec_encode_frame()