Lines Matching refs:prof_info
566 struct aw_prof_info *prof_info = &aw_dev->prof_info; in aw_dev_cfg_get_reg_valid_prof() local
572 prof_info->count++; in aw_dev_cfg_get_reg_valid_prof()
575 dev_dbg(aw_dev->dev, "get valid profile:%d", aw_dev->prof_info.count); in aw_dev_cfg_get_reg_valid_prof()
577 if (!prof_info->count) { in aw_dev_cfg_get_reg_valid_prof()
582 prof_info->prof_desc = devm_kcalloc(aw_dev->dev, in aw_dev_cfg_get_reg_valid_prof()
583 prof_info->count, sizeof(struct aw_prof_desc), in aw_dev_cfg_get_reg_valid_prof()
585 if (!prof_info->prof_desc) in aw_dev_cfg_get_reg_valid_prof()
590 if (num >= prof_info->count) { in aw_dev_cfg_get_reg_valid_prof()
592 prof_info->count); in aw_dev_cfg_get_reg_valid_prof()
595 prof_info->prof_desc[num] = prof_desc[i]; in aw_dev_cfg_get_reg_valid_prof()
596 prof_info->prof_desc[num].id = i; in aw_dev_cfg_get_reg_valid_prof()
608 struct aw_prof_info *prof_info = &aw_dev->prof_info; in aw_dev_cfg_get_multiple_valid_prof() local
622 prof_info->count++; in aw_dev_cfg_get_multiple_valid_prof()
626 dev_dbg(aw_dev->dev, "get valid profile:%d", aw_dev->prof_info.count); in aw_dev_cfg_get_multiple_valid_prof()
628 if (!prof_info->count) { in aw_dev_cfg_get_multiple_valid_prof()
633 prof_info->prof_desc = devm_kcalloc(aw_dev->dev, in aw_dev_cfg_get_multiple_valid_prof()
634 prof_info->count, sizeof(struct aw_prof_desc), in aw_dev_cfg_get_multiple_valid_prof()
636 if (!prof_info->prof_desc) in aw_dev_cfg_get_multiple_valid_prof()
648 if (num >= prof_info->count) { in aw_dev_cfg_get_multiple_valid_prof()
650 prof_info->count); in aw_dev_cfg_get_multiple_valid_prof()
653 prof_info->prof_desc[num] = prof_desc[i]; in aw_dev_cfg_get_multiple_valid_prof()
654 prof_info->prof_desc[num].id = i; in aw_dev_cfg_get_multiple_valid_prof()
696 aw_dev->prof_info.prof_name_list = profile_name; in aw_dev_load_cfg_by_hdr()
703 struct aw_prof_info *prof_info = &aw_dev->prof_info; in aw_dev_create_prof_name_list_v1() local
704 struct aw_prof_desc *prof_desc = prof_info->prof_desc; in aw_dev_create_prof_name_list_v1()
712 prof_info->prof_name_list = devm_kzalloc(aw_dev->dev, in aw_dev_create_prof_name_list_v1()
713 prof_info->count * PROFILE_STR_MAX, in aw_dev_create_prof_name_list_v1()
715 if (!prof_info->prof_name_list) in aw_dev_create_prof_name_list_v1()
718 for (i = 0; i < prof_info->count; i++) { in aw_dev_create_prof_name_list_v1()
720 prof_info->prof_name_list[i] = prof_desc[i].prf_str; in aw_dev_create_prof_name_list_v1()
721 dev_dbg(aw_dev->dev, "prof name is %s", prof_info->prof_name_list[i]); in aw_dev_create_prof_name_list_v1()
745 aw_dev->prof_info.prof_type = AW88395_DEV_TYPE_ID; in aw_get_dde_type_info()
747 aw_dev->prof_info.prof_type = AW88395_DEV_DEFAULT_TYPE_ID; in aw_get_dde_type_info()
819 switch (aw_dev->prof_info.prof_type) { in aw_dev_parse_scene_count_v1()
827 dev_err(aw_dev->dev, "unsupported prof_type[%x]", aw_dev->prof_info.prof_type); in aw_dev_parse_scene_count_v1()
840 struct aw_prof_info *prof_info = &aw_dev->prof_info; in aw_dev_parse_data_by_sec_type_v1() local
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()
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()
939 switch (aw_dev->prof_info.prof_type) { in aw_dev_parse_by_hdr_v1()
948 aw_dev->prof_info.prof_type); in aw_dev_parse_by_hdr_v1()
960 struct aw_prof_info *prof_info = &aw_dev->prof_info; in aw_dev_load_cfg_by_hdr_v1() local
963 ret = aw_dev_parse_scene_count_v1(aw_dev, aw_cfg, &prof_info->count); in aw_dev_load_cfg_by_hdr_v1()
969 prof_info->prof_desc = devm_kcalloc(aw_dev->dev, in aw_dev_load_cfg_by_hdr_v1()
970 prof_info->count, sizeof(struct aw_prof_desc), in aw_dev_load_cfg_by_hdr_v1()
972 if (!prof_info->prof_desc) in aw_dev_load_cfg_by_hdr_v1()