Lines Matching refs:cfg_hdr

482 static int aw_dev_parse_data_by_sec_type(struct aw_device *aw_dev, struct aw_cfg_hdr *cfg_hdr,  in aw_dev_parse_data_by_sec_type()  argument
487 return aw_dev_parse_raw_reg((u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
490 return aw_dev_parse_raw_dsp_cfg((u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
494 (u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
498 aw_dev, (u8 *)cfg_hdr + cfg_dde->data_offset, in aw_dev_parse_data_by_sec_type()
501 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()
756 struct aw_cfg_hdr *cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw_get_dde_type_info() local
758 (struct aw_cfg_dde_v1 *)(aw_cfg->data + cfg_hdr->hdr_offset); in aw_get_dde_type_info()
763 for (i = 0; i < cfg_hdr->ddt_num; i++) { in aw_get_dde_type_info()
786 struct aw_cfg_hdr *cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw_get_dev_scene_count_v1() local
788 (struct aw_cfg_dde_v1 *)(aw_cfg->data + cfg_hdr->hdr_offset); in aw_get_dev_scene_count_v1()
794 for (i = 0; i < cfg_hdr->ddt_num; ++i) { in aw_get_dev_scene_count_v1()
804 for (i = 0; i < cfg_hdr->ddt_num; ++i) { in aw_get_dev_scene_count_v1()
827 struct aw_cfg_hdr *cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw_get_default_scene_count_v1() local
829 (struct aw_cfg_dde_v1 *)(aw_cfg->data + cfg_hdr->hdr_offset); in aw_get_default_scene_count_v1()
835 for (i = 0; i < cfg_hdr->ddt_num; ++i) { in aw_get_default_scene_count_v1()
844 for (i = 0; i < cfg_hdr->ddt_num; ++i) { in aw_get_default_scene_count_v1()
988 struct aw_cfg_hdr *cfg_hdr) in aw_dev_parse_by_hdr_v1() argument
994 ret = aw_dev_parse_dev_type_v1(aw_dev, cfg_hdr); in aw_dev_parse_by_hdr_v1()
997 ret = aw_dev_parse_default_type_v1(aw_dev, cfg_hdr); in aw_dev_parse_by_hdr_v1()
1012 struct aw_cfg_hdr *cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw_dev_load_cfg_by_hdr_v1() local
1028 ret = aw_dev_parse_by_hdr_v1(aw_dev, cfg_hdr); in aw_dev_load_cfg_by_hdr_v1()
1045 struct aw_cfg_hdr *cfg_hdr; in aw88395_dev_cfg_load() local
1048 cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw88395_dev_cfg_load()
1050 switch (cfg_hdr->hdr_version) { in aw88395_dev_cfg_load()
1052 ret = aw_dev_load_cfg_by_hdr(aw_dev, cfg_hdr); in aw88395_dev_cfg_load()
1055 cfg_hdr->hdr_version); in aw88395_dev_cfg_load()
1063 cfg_hdr->hdr_version); in aw88395_dev_cfg_load()
1068 dev_err(aw_dev->dev, "unsupported hdr_version [0x%x]", cfg_hdr->hdr_version); in aw88395_dev_cfg_load()
1080 struct aw_cfg_hdr *cfg_hdr; in aw_dev_check_cfg_by_hdr() local
1087 cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw_dev_check_cfg_by_hdr()
1089 if (cfg_hdr->id != ACF_FILE_ID) { in aw_dev_check_cfg_by_hdr()
1094 hdr_ddt_len = cfg_hdr->hdr_offset + cfg_hdr->ddt_size; in aw_dev_check_cfg_by_hdr()
1097 cfg_hdr->hdr_offset, aw_cfg->len); in aw_dev_check_cfg_by_hdr()
1102 cfg_dde = (struct aw_cfg_dde *)((char *)aw_cfg->data + cfg_hdr->hdr_offset); in aw_dev_check_cfg_by_hdr()
1104 for (i = 0; i < cfg_hdr->ddt_num; i++) in aw_dev_check_cfg_by_hdr()
1113 for (i = 0; i < cfg_hdr->ddt_num; i++) { in aw_dev_check_cfg_by_hdr()
1139 struct aw_cfg_hdr *cfg_hdr; in aw_dev_check_acf_by_hdr_v1() local
1145 cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw_dev_check_acf_by_hdr_v1()
1148 if (cfg_hdr->id != ACF_FILE_ID) { in aw_dev_check_acf_by_hdr_v1()
1153 hdr_ddt_len = cfg_hdr->hdr_offset + cfg_hdr->ddt_size; in aw_dev_check_acf_by_hdr_v1()
1156 cfg_hdr->hdr_offset, aw_cfg->len); in aw_dev_check_acf_by_hdr_v1()
1161 cfg_dde = (struct aw_cfg_dde_v1 *)((char *)aw_cfg->data + cfg_hdr->hdr_offset); in aw_dev_check_acf_by_hdr_v1()
1163 for (i = 0; i < cfg_hdr->ddt_num; i++) in aw_dev_check_acf_by_hdr_v1()
1172 for (i = 0; i < cfg_hdr->ddt_num; i++) { in aw_dev_check_acf_by_hdr_v1()
1196 struct aw_cfg_hdr *cfg_hdr; in aw88395_dev_load_acf_check() local
1211 cfg_hdr = (struct aw_cfg_hdr *)aw_cfg->data; in aw88395_dev_load_acf_check()
1212 switch (cfg_hdr->hdr_version) { in aw88395_dev_load_acf_check()
1218 dev_err(aw_dev->dev, "unsupported hdr_version [0x%x]", cfg_hdr->hdr_version); in aw88395_dev_load_acf_check()