Lines Matching refs:cfg_dde
461 struct aw_cfg_dde *cfg_dde, struct aw_prof_desc *scene_prof_desc) in aw_dev_parse_data_by_sec_type() argument
463 switch (cfg_dde->data_type) { in aw_dev_parse_data_by_sec_type()
465 return aw_dev_parse_raw_reg((u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
466 cfg_dde->data_size, scene_prof_desc); in aw_dev_parse_data_by_sec_type()
468 return aw_dev_parse_raw_dsp_cfg((u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
469 cfg_dde->data_size, scene_prof_desc); in aw_dev_parse_data_by_sec_type()
472 (u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
473 cfg_dde->data_size, scene_prof_desc); in aw_dev_parse_data_by_sec_type()
476 aw_dev, (u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
477 cfg_dde->data_size, scene_prof_desc); in aw_dev_parse_data_by_sec_type()
479 return aw_dev_parse_reg_bin_with_hdr(aw_dev, (u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
480 cfg_dde->data_size, scene_prof_desc); in aw_dev_parse_data_by_sec_type()
482 dev_err(aw_dev->dev, "%s cfg_dde->data_type = %d\n", __func__, cfg_dde->data_type); in aw_dev_parse_data_by_sec_type()
492 struct aw_cfg_dde *cfg_dde = in aw_dev_parse_dev_type() local
498 if ((aw_dev->i2c->adapter->nr == cfg_dde[i].dev_bus) && in aw_dev_parse_dev_type()
499 (aw_dev->i2c->addr == cfg_dde[i].dev_addr) && in aw_dev_parse_dev_type()
500 (cfg_dde[i].type == AW88395_DEV_TYPE_ID) && in aw_dev_parse_dev_type()
501 (cfg_dde[i].data_type != ACF_SEC_TYPE_MONITOR)) { in aw_dev_parse_dev_type()
502 if (cfg_dde[i].dev_profile >= AW88395_PROFILE_MAX) { in aw_dev_parse_dev_type()
504 cfg_dde[i].dev_profile); in aw_dev_parse_dev_type()
507 aw_dev->prof_data_type = cfg_dde[i].data_type; in aw_dev_parse_dev_type()
508 ret = aw_dev_parse_data_by_sec_type(aw_dev, prof_hdr, &cfg_dde[i], in aw_dev_parse_dev_type()
509 &all_prof_info->prof_desc[cfg_dde[i].dev_profile]); in aw_dev_parse_dev_type()
529 struct aw_cfg_dde *cfg_dde = in aw_dev_parse_dev_default_type() local
535 if ((aw_dev->channel == cfg_dde[i].dev_index) && in aw_dev_parse_dev_default_type()
536 (cfg_dde[i].type == AW88395_DEV_DEFAULT_TYPE_ID) && in aw_dev_parse_dev_default_type()
537 (cfg_dde[i].data_type != ACF_SEC_TYPE_MONITOR)) { in aw_dev_parse_dev_default_type()
538 if (cfg_dde[i].dev_profile >= AW88395_PROFILE_MAX) { in aw_dev_parse_dev_default_type()
540 cfg_dde[i].dev_profile); in aw_dev_parse_dev_default_type()
543 aw_dev->prof_data_type = cfg_dde[i].data_type; in aw_dev_parse_dev_default_type()
544 ret = aw_dev_parse_data_by_sec_type(aw_dev, prof_hdr, &cfg_dde[i], in aw_dev_parse_dev_default_type()
545 &all_prof_info->prof_desc[cfg_dde[i].dev_profile]); in aw_dev_parse_dev_default_type()
730 struct aw_cfg_dde_v1 *cfg_dde = in aw_get_dde_type_info() local
737 if (cfg_dde[i].type == AW88395_DEV_TYPE_ID) in aw_get_dde_type_info()
740 if (cfg_dde[i].type == AW88395_DEV_DEFAULT_TYPE_ID) in aw_get_dde_type_info()
760 struct aw_cfg_dde_v1 *cfg_dde = in aw_get_dev_scene_count_v1() local
765 if (((cfg_dde[i].data_type == ACF_SEC_TYPE_REG) || in aw_get_dev_scene_count_v1()
766 (cfg_dde[i].data_type == ACF_SEC_TYPE_HDR_REG) || in aw_get_dev_scene_count_v1()
767 (cfg_dde[i].data_type == ACF_SEC_TYPE_MULTIPLE_BIN)) && in aw_get_dev_scene_count_v1()
768 (aw_dev->chip_id == cfg_dde[i].chip_id) && in aw_get_dev_scene_count_v1()
769 (aw_dev->i2c->adapter->nr == cfg_dde[i].dev_bus) && in aw_get_dev_scene_count_v1()
770 (aw_dev->i2c->addr == cfg_dde[i].dev_addr)) in aw_get_dev_scene_count_v1()
787 struct aw_cfg_dde_v1 *cfg_dde = in aw_get_default_scene_count_v1() local
793 if (((cfg_dde[i].data_type == ACF_SEC_TYPE_MULTIPLE_BIN) || in aw_get_default_scene_count_v1()
794 (cfg_dde[i].data_type == ACF_SEC_TYPE_REG) || in aw_get_default_scene_count_v1()
795 (cfg_dde[i].data_type == ACF_SEC_TYPE_HDR_REG)) && in aw_get_default_scene_count_v1()
796 (aw_dev->chip_id == cfg_dde[i].chip_id) && in aw_get_default_scene_count_v1()
797 (aw_dev->channel == cfg_dde[i].dev_index)) in aw_get_default_scene_count_v1()
837 struct aw_cfg_dde_v1 *cfg_dde, in aw_dev_parse_data_by_sec_type_v1() argument
843 switch (cfg_dde->data_type) { in aw_dev_parse_data_by_sec_type_v1()
845 ret = aw_dev_prof_parse_multi_bin(aw_dev, (u8 *)prof_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type_v1()
846 cfg_dde->data_size, &prof_info->prof_desc[*cur_scene_id]); in aw_dev_parse_data_by_sec_type_v1()
851 prof_info->prof_desc[*cur_scene_id].prf_str = cfg_dde->dev_profile_str; in aw_dev_parse_data_by_sec_type_v1()
852 prof_info->prof_desc[*cur_scene_id].id = cfg_dde->dev_profile; in aw_dev_parse_data_by_sec_type_v1()
857 (uint8_t *)prof_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type_v1()
858 cfg_dde->data_size, &prof_info->prof_desc[*cur_scene_id]); in aw_dev_parse_data_by_sec_type_v1()
863 prof_info->prof_desc[*cur_scene_id].prf_str = cfg_dde->dev_profile_str; in aw_dev_parse_data_by_sec_type_v1()
864 prof_info->prof_desc[*cur_scene_id].id = cfg_dde->dev_profile; in aw_dev_parse_data_by_sec_type_v1()
868 dev_err(aw_dev->dev, "unsupported SEC_TYPE [%d]", cfg_dde->data_type); in aw_dev_parse_data_by_sec_type_v1()
878 struct aw_cfg_dde_v1 *cfg_dde = in aw_dev_parse_dev_type_v1() local
885 if ((aw_dev->i2c->adapter->nr == cfg_dde[i].dev_bus) && in aw_dev_parse_dev_type_v1()
886 (aw_dev->i2c->addr == cfg_dde[i].dev_addr) && in aw_dev_parse_dev_type_v1()
887 (aw_dev->chip_id == cfg_dde[i].chip_id)) { in aw_dev_parse_dev_type_v1()
889 &cfg_dde[i], &cur_scene_id); in aw_dev_parse_dev_type_v1()
908 struct aw_cfg_dde_v1 *cfg_dde = in aw_dev_parse_default_type_v1() local
915 if ((aw_dev->channel == cfg_dde[i].dev_index) && in aw_dev_parse_default_type_v1()
916 (aw_dev->chip_id == cfg_dde[i].chip_id)) { in aw_dev_parse_default_type_v1()
918 &cfg_dde[i], &cur_scene_id); in aw_dev_parse_default_type_v1()
1028 struct aw_cfg_dde *cfg_dde; in aw_dev_check_cfg_by_hdr() local
1049 cfg_dde = (struct aw_cfg_dde *)((char *)aw_cfg->data + cfg_hdr->hdr_offset); in aw_dev_check_cfg_by_hdr()
1052 act_data += cfg_dde[i].data_size; in aw_dev_check_cfg_by_hdr()
1062 end_data_offset = cfg_dde[i].data_offset + cfg_dde[i].data_size; in aw_dev_check_cfg_by_hdr()
1070 act_crc8 = crc8(aw_crc8_table, aw_cfg->data + cfg_dde[i].data_offset, in aw_dev_check_cfg_by_hdr()
1071 cfg_dde[i].data_size, 0); in aw_dev_check_cfg_by_hdr()
1072 if (act_crc8 != cfg_dde[i].data_crc) { in aw_dev_check_cfg_by_hdr()
1074 i, (u32)act_crc8, cfg_dde[i].data_crc); in aw_dev_check_cfg_by_hdr()
1084 struct aw_cfg_dde_v1 *cfg_dde; in aw_dev_check_acf_by_hdr_v1() local
1108 cfg_dde = (struct aw_cfg_dde_v1 *)((char *)aw_cfg->data + cfg_hdr->hdr_offset); in aw_dev_check_acf_by_hdr_v1()
1111 act_data += cfg_dde[i].data_size; in aw_dev_check_acf_by_hdr_v1()
1121 end_data_offset = cfg_dde[i].data_offset + cfg_dde[i].data_size; in aw_dev_check_acf_by_hdr_v1()
1129 act_crc8 = crc8(aw_crc8_table, aw_cfg->data + cfg_dde[i].data_offset, in aw_dev_check_acf_by_hdr_v1()
1130 cfg_dde[i].data_size, 0); in aw_dev_check_acf_by_hdr_v1()
1131 if (act_crc8 != cfg_dde[i].data_crc) { in aw_dev_check_acf_by_hdr_v1()
1133 i, (u32)act_crc8, cfg_dde[i].data_crc); in aw_dev_check_acf_by_hdr_v1()