Lines Matching full:src
255 u32 *src) in allegro_decode_config_blob() argument
260 param->num_ref_idx_l0 = FIELD_GET(GENMASK(7, 4), src[9]); in allegro_decode_config_blob()
261 param->num_ref_idx_l1 = FIELD_GET(GENMASK(11, 8), src[9]); in allegro_decode_config_blob()
357 allegro_dec_init(struct mcu_msg_init_response *msg, u32 *src) in allegro_dec_init() argument
361 msg->reserved0 = src[i++]; in allegro_dec_init()
363 return i * sizeof(*src); in allegro_dec_init()
368 u32 *src) in allegro_dec_create_channel() argument
373 msg->channel_id = src[i++]; in allegro_dec_create_channel()
374 msg->user_id = src[i++]; in allegro_dec_create_channel()
380 msg->options = src[i++]; in allegro_dec_create_channel()
381 msg->num_core = src[i++]; in allegro_dec_create_channel()
382 msg->num_ref_idx_l0 = FIELD_GET(GENMASK(7, 4), src[i]); in allegro_dec_create_channel()
383 msg->num_ref_idx_l1 = FIELD_GET(GENMASK(11, 8), src[i++]); in allegro_dec_create_channel()
385 msg->int_buffers_count = src[i++]; in allegro_dec_create_channel()
386 msg->int_buffers_size = src[i++]; in allegro_dec_create_channel()
387 msg->rec_buffers_count = src[i++]; in allegro_dec_create_channel()
388 msg->rec_buffers_size = src[i++]; in allegro_dec_create_channel()
389 msg->reserved = src[i++]; in allegro_dec_create_channel()
390 msg->error_code = src[i++]; in allegro_dec_create_channel()
392 return i * sizeof(*src); in allegro_dec_create_channel()
397 u32 *src) in allegro_dec_destroy_channel() argument
401 msg->channel_id = src[i++]; in allegro_dec_destroy_channel()
403 return i * sizeof(*src); in allegro_dec_destroy_channel()
407 allegro_dec_encode_frame(struct mcu_msg_encode_frame_response *msg, u32 *src) in allegro_dec_encode_frame() argument
413 msg->channel_id = src[i++]; in allegro_dec_encode_frame()
415 msg->dst_handle = src[i++]; in allegro_dec_encode_frame()
416 msg->dst_handle |= (((u64)src[i++]) << 32); in allegro_dec_encode_frame()
417 msg->user_param = src[i++]; in allegro_dec_encode_frame()
418 msg->user_param |= (((u64)src[i++]) << 32); in allegro_dec_encode_frame()
419 msg->src_handle = src[i++]; in allegro_dec_encode_frame()
420 msg->src_handle |= (((u64)src[i++]) << 32); in allegro_dec_encode_frame()
421 msg->skip = FIELD_GET(GENMASK(31, 16), src[i]); in allegro_dec_encode_frame()
422 msg->is_ref = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
423 msg->initial_removal_delay = src[i++]; in allegro_dec_encode_frame()
424 msg->dpb_output_delay = src[i++]; in allegro_dec_encode_frame()
425 msg->size = src[i++]; in allegro_dec_encode_frame()
426 msg->frame_tag_size = src[i++]; in allegro_dec_encode_frame()
427 msg->stuffing = src[i++]; in allegro_dec_encode_frame()
428 msg->filler = src[i++]; in allegro_dec_encode_frame()
429 msg->num_row = FIELD_GET(GENMASK(31, 16), src[i]); in allegro_dec_encode_frame()
430 msg->num_column = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
431 msg->num_ref_idx_l1 = FIELD_GET(GENMASK(31, 24), src[i]); in allegro_dec_encode_frame()
432 msg->num_ref_idx_l0 = FIELD_GET(GENMASK(23, 16), src[i]); in allegro_dec_encode_frame()
433 msg->qp = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
434 msg->partition_table_offset = src[i++]; in allegro_dec_encode_frame()
435 msg->partition_table_size = src[i++]; in allegro_dec_encode_frame()
436 msg->sum_complex = src[i++]; in allegro_dec_encode_frame()
438 msg->tile_width[j] = src[i++]; in allegro_dec_encode_frame()
440 msg->tile_height[j] = src[i++]; in allegro_dec_encode_frame()
441 msg->error_code = src[i++]; in allegro_dec_encode_frame()
442 msg->slice_type = src[i++]; in allegro_dec_encode_frame()
443 msg->pic_struct = src[i++]; in allegro_dec_encode_frame()
444 msg->reserved = FIELD_GET(GENMASK(31, 24), src[i]); in allegro_dec_encode_frame()
445 msg->is_last_slice = FIELD_GET(GENMASK(23, 16), src[i]); in allegro_dec_encode_frame()
446 msg->is_first_slice = FIELD_GET(GENMASK(15, 8), src[i]); in allegro_dec_encode_frame()
447 msg->is_idr = FIELD_GET(GENMASK(7, 0), src[i++]); in allegro_dec_encode_frame()
449 msg->reserved1 = FIELD_GET(GENMASK(31, 16), src[i]); in allegro_dec_encode_frame()
450 msg->pps_qp = FIELD_GET(GENMASK(15, 0), src[i++]); in allegro_dec_encode_frame()
452 msg->reserved2 = src[i++]; in allegro_dec_encode_frame()
454 msg->reserved3 = src[i++]; in allegro_dec_encode_frame()
455 msg->reserved4 = src[i++]; in allegro_dec_encode_frame()
456 msg->reserved5 = src[i++]; in allegro_dec_encode_frame()
457 msg->reserved6 = src[i++]; in allegro_dec_encode_frame()
460 return i * sizeof(*src); in allegro_dec_encode_frame()
514 * @src: Pointer to the memory that will be parsed
520 int allegro_decode_mail(void *msg, u32 *src) in allegro_decode_mail() argument
524 if (!src || !msg) in allegro_decode_mail()
528 header->type = FIELD_GET(GENMASK(31, 16), src[0]); in allegro_decode_mail()
530 src++; in allegro_decode_mail()
533 allegro_dec_init(msg, src); in allegro_decode_mail()
536 allegro_dec_create_channel(msg, src); in allegro_decode_mail()
539 allegro_dec_destroy_channel(msg, src); in allegro_decode_mail()
542 allegro_dec_encode_frame(msg, src); in allegro_decode_mail()