/u-boot/include/ |
A D | dfu.h | 116 struct dfu_entity { struct 135 int (*read_medium)(struct dfu_entity *dfu, argument 138 int (*write_medium)(struct dfu_entity *dfu, argument 141 int (*flush_medium)(struct dfu_entity *dfu); argument 142 unsigned int (*poll_timeout)(struct dfu_entity *dfu); argument 144 void (*free_entity)(struct dfu_entity *dfu); argument 186 int dfu_alt_init(int num, struct dfu_entity **dfu); 264 struct dfu_entity *dfu_get_entity(int alt); 300 unsigned char *dfu_get_buf(struct dfu_entity *dfu); 384 void dfu_flush_callback(struct dfu_entity *dfu); [all …]
|
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/ |
A D | stm32prog_serial.c | 82 struct dfu_entity *dfu_entity; in stm32prog_write() local 86 if (!dfu_entity) in stm32prog_write() 110 struct dfu_entity *dfu_entity; in stm32prog_read() local 128 if (dfu_entity) in stm32prog_read() 132 dfu_entity = NULL; in stm32prog_read() 139 if (!dfu_entity) { in stm32prog_read() 300 struct dfu_entity *dfu_entity; in stm32prog_header() local 304 if (!dfu_entity) in stm32prog_header() 317 dfu_entity->get_medium_size(dfu_entity, &size); in stm32prog_header() 349 struct dfu_entity *dfu_entity; in stm32prog_start() local [all …]
|
A D | stm32prog_usb.c | 126 int stm32prog_write_medium_virt(struct dfu_entity *dfu, u64 offset, in stm32prog_write_medium_virt() 148 int stm32prog_read_medium_virt(struct dfu_entity *dfu, u64 offset, in stm32prog_read_medium_virt() 170 int stm32prog_get_medium_size_virt(struct dfu_entity *dfu, u64 *size) in stm32prog_get_medium_size_virt()
|
A D | stm32prog.c | 999 struct dfu_entity *dfu, in stm32prog_alt_add() 1110 static int stm32prog_alt_add_virt(struct dfu_entity *dfu, in stm32prog_alt_add_virt() 1130 struct dfu_entity *dfu; in dfu_init_entities() 1408 struct dfu_entity *dfu; in stm32prog_copy_fsbl() 1713 void dfu_flush_callback(struct dfu_entity *dfu) in dfu_flush_callback() 1743 void dfu_initiated_callback(struct dfu_entity *dfu) in dfu_initiated_callback()
|
/u-boot/arch/arm/mach-stm32mp/include/mach/ |
A D | stm32prog.h | 8 int stm32prog_write_medium_virt(struct dfu_entity *dfu, u64 offset, 10 int stm32prog_read_medium_virt(struct dfu_entity *dfu, u64 offset, 12 int stm32prog_get_medium_size_virt(struct dfu_entity *dfu, u64 *size);
|
/u-boot/drivers/dfu/ |
A D | dfu_virt.c | 11 int __weak dfu_write_medium_virt(struct dfu_entity *dfu, u64 offset, in dfu_write_medium_virt() 19 int __weak dfu_get_medium_size_virt(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_virt() 26 int __weak dfu_read_medium_virt(struct dfu_entity *dfu, u64 offset, in dfu_read_medium_virt() 35 int dfu_fill_entity_virt(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_virt()
|
A D | dfu.c | 35 __weak void dfu_flush_callback(struct dfu_entity *dfu) in dfu_flush_callback() 99 struct dfu_entity *dfu; in dfu_config_interfaces() 188 unsigned char *dfu_get_buf(struct dfu_entity *dfu) in dfu_get_buf() 531 struct dfu_entity *dfu, *p, *t = NULL; in dfu_free_entities() 547 int dfu_alt_init(int num, struct dfu_entity **dfu) in dfu_alt_init() 572 struct dfu_entity *p_dfu; in dfu_alt_add() 591 struct dfu_entity *dfu; in dfu_config_entities() 628 struct dfu_entity *dfu; in dfu_show_entities() 644 struct dfu_entity *dfu_get_entity(int alt) in dfu_get_entity() 646 struct dfu_entity *dfu; in dfu_get_entity() [all …]
|
A D | dfu_ram.c | 17 static int dfu_transfer_medium_ram(enum dfu_op op, struct dfu_entity *dfu, in dfu_transfer_medium_ram() 38 static int dfu_write_medium_ram(struct dfu_entity *dfu, u64 offset, in dfu_write_medium_ram() 44 int dfu_get_medium_size_ram(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_ram() 51 static int dfu_read_medium_ram(struct dfu_entity *dfu, u64 offset, in dfu_read_medium_ram() 57 int dfu_fill_entity_ram(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_ram()
|
A D | dfu_nand.c | 22 static int nand_block_op(enum dfu_op op, struct dfu_entity *dfu, in nand_block_op() 93 static inline int nand_block_write(struct dfu_entity *dfu, in nand_block_write() 99 static inline int nand_block_read(struct dfu_entity *dfu, in nand_block_read() 105 static int dfu_write_medium_nand(struct dfu_entity *dfu, in dfu_write_medium_nand() 122 int dfu_get_medium_size_nand(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_nand() 129 static int dfu_read_medium_nand(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_nand() 146 static int dfu_flush_medium_nand(struct dfu_entity *dfu) in dfu_flush_medium_nand() 185 unsigned int dfu_polltimeout_nand(struct dfu_entity *dfu) in dfu_polltimeout_nand() 197 int dfu_fill_entity_nand(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_nand()
|
A D | dfu_sf.c | 17 static int dfu_get_medium_size_sf(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_sf() 24 static int dfu_read_medium_sf(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_sf() 31 static u64 find_sector(struct dfu_entity *dfu, u64 start, u64 offset) in find_sector() 37 static int dfu_write_medium_sf(struct dfu_entity *dfu, in dfu_write_medium_sf() 56 static int dfu_flush_medium_sf(struct dfu_entity *dfu) in dfu_flush_medium_sf() 75 static unsigned int dfu_polltimeout_sf(struct dfu_entity *dfu) in dfu_polltimeout_sf() 88 static void dfu_free_entity_sf(struct dfu_entity *dfu) in dfu_free_entity_sf() 142 int dfu_fill_entity_sf(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_sf()
|
A D | dfu_mmc.c | 25 static int mmc_block_op(enum dfu_op op, struct dfu_entity *dfu, in mmc_block_op() 97 static int mmc_file_op(enum dfu_op op, struct dfu_entity *dfu, in mmc_file_op() 160 static int mmc_file_buf_write(struct dfu_entity *dfu, u64 offset, void *buf, long *len) in mmc_file_buf_write() 185 static int mmc_file_buf_write_finish(struct dfu_entity *dfu) in mmc_file_buf_write_finish() 197 int dfu_write_medium_mmc(struct dfu_entity *dfu, in dfu_write_medium_mmc() 224 int dfu_flush_medium_mmc(struct dfu_entity *dfu) in dfu_flush_medium_mmc() 248 int dfu_get_medium_size_mmc(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_mmc() 273 static int mmc_file_buf_read(struct dfu_entity *dfu, u64 offset, void *buf, in mmc_file_buf_read() 298 int dfu_read_medium_mmc(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_mmc() 319 void dfu_free_entity_mmc(struct dfu_entity *dfu) in dfu_free_entity_mmc() [all …]
|
A D | dfu_mtd.c | 21 static int mtd_block_op(enum dfu_op op, struct dfu_entity *dfu, in mtd_block_op() 159 static int dfu_get_medium_size_mtd(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_mtd() 166 static int dfu_read_medium_mtd(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_mtd() 183 static int dfu_write_medium_mtd(struct dfu_entity *dfu, in dfu_write_medium_mtd() 200 static int dfu_flush_medium_mtd(struct dfu_entity *dfu) in dfu_flush_medium_mtd() 238 static unsigned int dfu_polltimeout_mtd(struct dfu_entity *dfu) in dfu_polltimeout_mtd() 251 int dfu_fill_entity_mtd(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_mtd()
|
A D | dfu_alt.c | 31 struct dfu_entity *dfu; in dfu_write_by_name() 96 struct dfu_entity *dfu; in dfu_write_by_alt()
|
/u-boot/drivers/usb/gadget/ |
A D | f_thor.c | 154 struct dfu_entity *dfu_entity = dfu_get_entity(alt_setting_num); in download_head() local 155 void *transfer_buffer = dfu_get_buf(dfu_entity); in download_head() 217 struct dfu_entity *dfu_entity; in download_tail() local 223 dfu_entity = dfu_get_entity(alt_setting_num); in download_tail() 224 if (!dfu_entity) { in download_tail() 229 transfer_buffer = dfu_get_buf(dfu_entity); in download_tail() 236 ret = dfu_write(dfu_entity, transfer_buffer, left, cnt++); in download_tail() 250 ret = dfu_flush(dfu_entity, transfer_buffer, 0, cnt); in download_tail()
|
A D | f_dfu.c | 48 struct dfu_entity *dfu_defer_flush; 176 static inline int dfu_get_manifest_timeout(struct dfu_entity *dfu) in dfu_get_manifest_timeout() 186 struct dfu_entity *dfu = dfu_get_entity(f_dfu->altsetting); in handle_getstatus() 632 struct dfu_entity *de = NULL; in dfu_prepare_strings()
|
/u-boot/board/st/common/ |
A D | stm32mp_dfu.c | 211 int dfu_read_medium_virt(struct dfu_entity *dfu, u64 offset, in dfu_read_medium_virt() 229 int dfu_write_medium_virt(struct dfu_entity *dfu, u64 offset, in dfu_write_medium_virt() 239 int __weak dfu_get_medium_size_virt(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_virt()
|
/u-boot/lib/efi_loader/ |
A D | efi_firmware.c | 127 struct dfu_entity *dfu; in efi_get_dfu_info()
|