Lines Matching refs:uc_info
367 struct otx2_cpt_uc_info_t *uc_info; in load_fw() local
371 uc_info = kzalloc(sizeof(*uc_info), GFP_KERNEL); in load_fw()
372 if (!uc_info) in load_fw()
375 ret = request_firmware(&uc_info->fw, filename, dev); in load_fw()
379 ucode_hdr = (struct otx2_cpt_ucode_hdr *)uc_info->fw->data; in load_fw()
391 set_ucode_filename(&uc_info->ucode, filename); in load_fw()
392 memcpy(uc_info->ucode.ver_str, ucode_hdr->ver_str, in load_fw()
394 uc_info->ucode.ver_str[OTX2_CPT_UCODE_VER_STR_SZ] = 0; in load_fw()
395 uc_info->ucode.ver_num = ucode_hdr->ver_num; in load_fw()
396 uc_info->ucode.type = ucode_type; in load_fw()
397 uc_info->ucode.size = ucode_size; in load_fw()
398 list_add_tail(&uc_info->list, &fw_info->ucodes); in load_fw()
403 release_firmware(uc_info->fw); in load_fw()
405 kfree(uc_info); in load_fw()
985 struct otx2_cpt_uc_info_t *uc_info; in create_engine_group() local
996 uc_info = (struct otx2_cpt_uc_info_t *) ucode_data[i]; in create_engine_group()
997 eng_grp->ucode[i] = uc_info->ucode; in create_engine_group()
999 uc_info->fw->data); in create_engine_group()
1147 struct otx2_cpt_uc_info_t *uc_info[OTX2_CPT_MAX_ETYPES_PER_GRP] = { }; in otx2_cpt_create_eng_grps() local
1170 uc_info[0] = get_ucode(&fw_info, OTX2_CPT_SE_TYPES); in otx2_cpt_create_eng_grps()
1171 if (uc_info[0] == NULL) { in otx2_cpt_create_eng_grps()
1180 (void **) uc_info, 1); in otx2_cpt_create_eng_grps()
1188 uc_info[0] = get_ucode(&fw_info, OTX2_CPT_SE_TYPES); in otx2_cpt_create_eng_grps()
1189 uc_info[1] = get_ucode(&fw_info, OTX2_CPT_IE_TYPES); in otx2_cpt_create_eng_grps()
1191 if (uc_info[1] == NULL) { in otx2_cpt_create_eng_grps()
1202 (void **) uc_info, 1); in otx2_cpt_create_eng_grps()
1210 uc_info[0] = get_ucode(&fw_info, OTX2_CPT_AE_TYPES); in otx2_cpt_create_eng_grps()
1211 if (uc_info[0] == NULL) { in otx2_cpt_create_eng_grps()
1220 (void **) uc_info, 1); in otx2_cpt_create_eng_grps()
1417 struct otx2_cpt_uc_info_t *uc_info[OTX2_CPT_MAX_ETYPES_PER_GRP] = { }; in create_eng_caps_discovery_grps() local
1429 uc_info[0] = get_ucode(&fw_info, OTX2_CPT_AE_TYPES); in create_eng_caps_discovery_grps()
1430 if (uc_info[0] == NULL) { in create_eng_caps_discovery_grps()
1439 (void **) uc_info, 0); in create_eng_caps_discovery_grps()
1443 uc_info[0] = get_ucode(&fw_info, OTX2_CPT_SE_TYPES); in create_eng_caps_discovery_grps()
1444 if (uc_info[0] == NULL) { in create_eng_caps_discovery_grps()
1453 (void **) uc_info, 0); in create_eng_caps_discovery_grps()
1457 uc_info[0] = get_ucode(&fw_info, OTX2_CPT_IE_TYPES); in create_eng_caps_discovery_grps()
1458 if (uc_info[0] == NULL) { in create_eng_caps_discovery_grps()
1467 (void **) uc_info, 0); in create_eng_caps_discovery_grps()
1582 struct otx2_cpt_uc_info_t *uc_info[OTX2_CPT_MAX_ETYPES_PER_GRP] = {}; in otx2_cpt_dl_custom_egrp_create() local
1711 uc_info[0] = get_ucode(&fw_info, engs[0].type); in otx2_cpt_dl_custom_egrp_create()
1712 if (uc_info[0] == NULL) { in otx2_cpt_dl_custom_egrp_create()
1719 uc_info[1] = get_ucode(&fw_info, engs[1].type); in otx2_cpt_dl_custom_egrp_create()
1720 if (uc_info[1] == NULL) { in otx2_cpt_dl_custom_egrp_create()
1728 (void **)uc_info, 1); in otx2_cpt_dl_custom_egrp_create()