Lines Matching refs:esiost_args

16 from esiost_args import EsiostArgs, exit_with_failure
72 def _bt_mode_handler(esiost_args): argument
78 output_file = _set_input_and_output(esiost_args)
79 _check_chip(output_file, esiost_args)
81 _copy_image(output_file, esiost_args)
82 _set_anchor(output_file, esiost_args)
83 _set_firmware_load_start_address(output_file, esiost_args)
84 _set_firmware_entry_point(output_file, esiost_args)
85 _set_firmware_length(output_file, esiost_args)
86 _set_firmware_load_hash(output_file, esiost_args)
87 _set_firmware_segment(output_file, esiost_args)
88 _set_firmware_segment_hash(output_file, esiost_args)
92 def _set_input_and_output(esiost_args): argument
105 input_file = esiost_args.input
106 output = esiost_args.output
135 if esiost_args.verbose == REG_VERBOSE:
142 def _check_chip(output, esiost_args): argument
151 if esiost_args.chip_name == INVALID_INPUT:
156 def _set_anchor(output, esiost_args): argument
171 if esiost_args.verbose == REG_VERBOSE:
177 def _set_firmware_load_start_address(output, esiost_args): argument
183 input_file_path = Path(esiost_args.input)
185 start_ram = esiost_args.chip_ram_address
186 end_ram = start_ram + esiost_args.chip_ram_size
187 fw_load_addr = esiost_args.firmware_load_address
188 fw_length = esiost_args.firmware_length
190 start_flash_addr = esiost_args.chip_flash_address + HEADER_SIZE
253 if esiost_args.verbose == REG_VERBOSE:
266 def _set_firmware_entry_point(output, esiost_args): argument
273 input_file_path = Path(esiost_args.input)
274 fw_entry_pt = esiost_args.firmware_entry_point
275 start_flash_addr = esiost_args.chip_flash_address + HEADER_SIZE
276 end_flash_addr = start_flash_addr + esiost_args.chip_flash_size
280 fw_entry_pt = esiost_args.firmware_load_address
303 if esiost_args.verbose == REG_VERBOSE:
321 def _set_firmware_length(output, esiost_args): argument
330 fw_length = esiost_args.firmware_length
336 if esiost_args.verbose == REG_VERBOSE:
342 def _set_firmware_load_hash(output, esiost_args): argument
364 def _set_firmware_segment(output, esiost_args): argument
373 fw_length = esiost_args.firmware_length
409 if esiost_args.verbose == REG_VERBOSE:
437 def _clearup_tempfiles(output, esiost_args): argument
450 def _set_firmware_segment_hash(output, esiost_args): argument
492 _clearup_tempfiles(output, esiost_args)
494 def _copy_image(output, esiost_args): argument
504 with open(esiost_args.input, "rb") as firmware_image:
510 input_file_size = Path(esiost_args.input).stat().st_size
519 input_file_size = Path(esiost_args.input).stat().st_size - HEADER_SIZE
523 with open(esiost_args.input, "rb") as firmware_image:
533 fw_length = esiost_args.firmware_length
535 esiost_args.firmware_length = input_file_size