• Home
  • Raw
  • Download

Lines Matching refs:pblimg

165 } pblimg;  variable
335 switch (pblimg.chassis) { in add_pbi_stop_cmd()
354 pblimg.chassis); in add_pbi_stop_cmd()
376 switch (pblimg.chassis) { in add_pbi_stop_cmd()
395 if (pblimg.chassis == CHASSIS_2) { in add_pbi_stop_cmd()
407 switch (pblimg.chassis) { in add_pbi_stop_cmd()
472 switch (pblimg.chassis) { in add_boot_ptr_cmd()
478 pblimg.ep = BYTE_SWAP_32(pblimg.ep); in add_boot_ptr_cmd()
491 pblimg.chassis); in add_boot_ptr_cmd()
502 if (pblimg.ep != 0) { in add_boot_ptr_cmd()
503 if (fwrite(&pblimg.ep, sizeof(pblimg.ep), NUM_MEM_BLOCK, in add_boot_ptr_cmd()
510 printf("\nBoot Location Pointer= %x\n", BYTE_SWAP_32(pblimg.ep)); in add_boot_ptr_cmd()
538 switch (pblimg.chassis) { in add_blk_cpy_cmd()
541 blk_cpy_hdr = blk_cpy_hdr_map_ch3[pblimg.boot_src]; in add_blk_cpy_cmd()
542 pblimg.src_addr += base_addr_ch3[pblimg.boot_src]; in add_blk_cpy_cmd()
546 blk_cpy_hdr = blk_cpy_hdr_map_ch32[pblimg.boot_src]; in add_blk_cpy_cmd()
547 pblimg.src_addr += base_addr_ch32[pblimg.boot_src]; in add_blk_cpy_cmd()
555 file_size = get_filesize(pblimg.sec_imgnm); in add_blk_cpy_cmd()
568 num_pad_bytes = pblimg.src_addr % 4; in add_blk_cpy_cmd()
571 if (fwrite(&pblimg.src_addr + num_pad_bytes, in add_blk_cpy_cmd()
572 sizeof(pblimg.src_addr), NUM_MEM_BLOCK, in add_blk_cpy_cmd()
580 if (fwrite(&pblimg.addr, sizeof(pblimg.addr), in add_blk_cpy_cmd()
621 altcbar = pblimg.addr; in add_cpy_cmd()
622 dst_offset = pblimg.addr; in add_cpy_cmd()
623 fp_img = fopen(pblimg.sec_imgnm, "rb"); in add_cpy_cmd()
626 pblimg.sec_imgnm); in add_cpy_cmd()
629 file_size = get_filesize(pblimg.sec_imgnm); in add_cpy_cmd()
706 memset(&pblimg, 0x0, sizeof(struct pbl_image)); in main()
712 pblimg.addr = strtoull(optarg, &ptr, 16); in main()
720 pblimg.rcw_nm = optarg; in main()
721 file = fopen(pblimg.rcw_nm, "r"); in main()
732 pblimg.ep = strtoull(optarg, &ptr, 16); in main()
743 pblimg.sec_imgnm = optarg; in main()
744 file = fopen(pblimg.sec_imgnm, "r"); in main()
761 pblimg.chassis = CHASSIS_2; in main()
766 pblimg.chassis = CHASSIS_3; in main()
770 pblimg.chassis = CHASSIS_3_2; in main()
780 pblimg.imagefile = optarg; in main()
788 pblimg.boot_src = QSPI_BOOT; in main()
790 pblimg.boot_src = IFC_NOR_BOOT; in main()
792 pblimg.boot_src = IFC_NAND_BOOT; in main()
794 pblimg.boot_src = SD_BOOT; in main()
796 pblimg.boot_src = EMMC_BOOT; in main()
798 pblimg.boot_src = FLXSPI_NOR_BOOT; in main()
800 pblimg.boot_src = FLXSPI_NAND_BOOT; in main()
802 pblimg.boot_src = FLXSPI_NAND4K_BOOT; in main()
810 pblimg.src_addr = strtoull(optarg, &ptr, 16); in main()
828 fp_rcw_pbi_ip = fopen(pblimg.rcw_nm, "rb"); in main()
831 __func__, pblimg.rcw_nm); in main()
835 fp_rcw_pbi_op = fopen(pblimg.imagefile, "wb+"); in main()
838 __func__, pblimg.imagefile); in main()
842 printf("\nInput Boot Source: %s\n", boot_src_string[pblimg.boot_src]); in main()
843 printf("Input RCW File: %s\n", pblimg.rcw_nm); in main()
844 printf("Input BL2 Binary File: %s\n", pblimg.sec_imgnm); in main()
845 printf("Input load address for BL2 Binary File: 0x%x\n", pblimg.addr); in main()
847 printf("Chassis Type: %d\n", pblimg.chassis); in main()
848 switch (pblimg.chassis) { in main()
984 pblimg.imagefile); in main()