Lines Matching refs:tar_arch

283 			    struct tar_arch_info_t *tar_arch, char *filename,  in process_tar_file()  argument
331 list_add_tail(&tar_info->list, &tar_arch->ucodes); in process_tar_file()
336 static void release_tar_archive(struct tar_arch_info_t *tar_arch) in release_tar_archive() argument
340 if (!tar_arch) in release_tar_archive()
343 list_for_each_entry_safe(curr, temp, &tar_arch->ucodes, list) { in release_tar_archive()
348 release_firmware(tar_arch->fw); in release_tar_archive()
349 kfree(tar_arch); in release_tar_archive()
353 struct tar_arch_info_t *tar_arch, in get_uc_from_tar_archive() argument
358 list_for_each_entry(curr, &tar_arch->ucodes, list) { in get_uc_from_tar_archive()
383 static void print_tar_dbg_info(struct tar_arch_info_t *tar_arch, in print_tar_dbg_info() argument
389 pr_debug("Tar archive pointer %p, size %ld\n", tar_arch->fw->data, in print_tar_dbg_info()
390 tar_arch->fw->size); in print_tar_dbg_info()
391 list_for_each_entry(curr, &tar_arch->ucodes, list) { in print_tar_dbg_info()
407 struct tar_arch_info_t *tar_arch = NULL; in load_tar_archive() local
414 tar_arch = kzalloc(sizeof(struct tar_arch_info_t), GFP_KERNEL); in load_tar_archive()
415 if (!tar_arch) in load_tar_archive()
418 INIT_LIST_HEAD(&tar_arch->ucodes); in load_tar_archive()
421 ret = request_firmware(&tar_arch->fw, tar_filename, dev); in load_tar_archive()
425 if (tar_arch->fw->size < TAR_BLOCK_LEN) { in load_tar_archive()
430 tar_size = tar_arch->fw->size; in load_tar_archive()
431 tar_blk = (struct tar_blk_t *) tar_arch->fw->data; in load_tar_archive()
453 ret = process_tar_file(dev, tar_arch, in load_tar_archive()
455 &tar_arch->fw->data[tar_offs], in load_tar_archive()
471 if (is_mem_zero(&tar_arch->fw->data[tar_offs], in load_tar_archive()
476 tar_blk = (struct tar_blk_t *) &tar_arch->fw->data[tar_offs]; in load_tar_archive()
479 print_tar_dbg_info(tar_arch, tar_filename); in load_tar_archive()
480 return tar_arch; in load_tar_archive()
482 release_tar_archive(tar_arch); in load_tar_archive()
1475 struct tar_arch_info_t *tar_arch = NULL; in otx_cpt_try_create_default_eng_grps() local
1506 tar_arch = load_tar_archive(&pdev->dev, tar_filename); in otx_cpt_try_create_default_eng_grps()
1507 if (!tar_arch) in otx_cpt_try_create_default_eng_grps()
1515 tar_info[0] = get_uc_from_tar_archive(tar_arch, OTX_CPT_SE_TYPES); in otx_cpt_try_create_default_eng_grps()
1532 tar_info[0] = get_uc_from_tar_archive(tar_arch, OTX_CPT_AE_TYPES); in otx_cpt_try_create_default_eng_grps()
1547 release_tar_archive(tar_arch); in otx_cpt_try_create_default_eng_grps()