Searched refs:stm32prog_data (Results 1 – 5 of 5) sorted by relevance
112 struct stm32prog_data { struct146 extern struct stm32prog_data *stm32prog_data; argument153 int stm32prog_otp_start(struct stm32prog_data *data);160 int stm32prog_pmic_start(struct stm32prog_data *data);165 int stm32prog_dfu_init(struct stm32prog_data *data);166 void stm32prog_next_phase(struct stm32prog_data *data);167 void stm32prog_do_reset(struct stm32prog_data *data);169 char *stm32prog_get_error(struct stm32prog_data *data);180 void stm32prog_clean(struct stm32prog_data *data);184 bool stm32prog_serial_loop(struct stm32prog_data *data);[all …]
13 struct stm32prog_data *stm32prog_data; variable47 struct stm32prog_data *data; in do_stm32prog()96 stm32prog_data = data; in do_stm32prog()125 free(stm32prog_data); in do_stm32prog()126 stm32prog_data = NULL; in do_stm32prog()162 free(stm32prog_data); in do_stm32prog()163 stm32prog_data = NULL; in do_stm32prog()179 if (stm32prog_data) in stm32prog_get_tee_partitions()180 return stm32prog_data->tee_detected; in stm32prog_get_tee_partitions()187 if (stm32prog_data) in stm32prog_get_fsbl_nor()[all …]
67 ret = stm32prog_set_phase(stm32prog_data, phase, address); in stm32prog_cmd_write()91 phase = stm32prog_data->phase; in stm32prog_cmd_read()94 dfu_offset = stm32prog_data->offset; in stm32prog_cmd_read()108 err_msg = stm32prog_get_error(stm32prog_data); in stm32prog_cmd_read()115 stm32prog_do_reset(stm32prog_data); in stm32prog_cmd_read()117 *pt_buf++ = stm32prog_data->part_nb ? 1 : 0; in stm32prog_cmd_read()137 return stm32prog_otp_write(stm32prog_data, (u32)offset, in stm32prog_write_medium_virt()159 return stm32prog_otp_read(stm32prog_data, (u32)offset, in stm32prog_read_medium_virt()208 if (stm32prog_data->phase == PHASE_FLASHLAYOUT) { in stm32prog_usb_loop()210 if (ret || stm32prog_data->phase == PHASE_DO_RESET) in stm32prog_usb_loop()[all …]
1715 if (!stm32prog_data) in dfu_flush_callback()1720 stm32prog_otp_start(stm32prog_data); in dfu_flush_callback()1722 stm32prog_pmic_start(stm32prog_data); in dfu_flush_callback()1729 stm32prog_end_phase(stm32prog_data); in dfu_flush_callback()1734 if (!stm32prog_data->cur_part) in dfu_flush_callback()1738 stm32prog_end_phase(stm32prog_data); in dfu_flush_callback()1739 stm32prog_next_phase(stm32prog_data); in dfu_flush_callback()1745 if (!stm32prog_data) in dfu_initiated_callback()1748 if (!stm32prog_data->cur_part) in dfu_initiated_callback()1753 dfu->offset = stm32prog_data->offset; in dfu_initiated_callback()[all …]
79 static int stm32prog_write(struct stm32prog_data *data, u8 *buffer, in stm32prog_write()296 static u8 stm32prog_header(struct stm32prog_data *data) in stm32prog_header()468 static void get_cmd_command(struct stm32prog_data *data) in get_cmd_command()486 static void get_version_command(struct stm32prog_data *data) in get_version_command()497 static void get_id_command(struct stm32prog_data *data) in get_id_command()511 static void get_phase_command(struct stm32prog_data *data) in get_phase_command()546 static void read_memory_command(struct stm32prog_data *data) in read_memory_command()591 static void start_command(struct stm32prog_data *data) in start_command()623 static void download_command(struct stm32prog_data *data) in download_command()908 bool stm32prog_serial_loop(struct stm32prog_data *data) in stm32prog_serial_loop()[all …]
Completed in 10 milliseconds