/external/u-boot/drivers/dfu/ |
D | dfu.c | 96 unsigned char *dfu_get_buf(struct dfu_entity *dfu) in dfu_get_buf() argument 110 if (dfu->max_buf_size && dfu_buf_size > dfu->max_buf_size) in dfu_get_buf() 111 dfu_buf_size = dfu->max_buf_size; in dfu_get_buf() 138 static int dfu_write_buffer_drain(struct dfu_entity *dfu) in dfu_write_buffer_drain() argument 144 w_size = dfu->i_buf - dfu->i_buf_start; in dfu_write_buffer_drain() 149 dfu_hash_algo->hash_update(dfu_hash_algo, &dfu->crc, in dfu_write_buffer_drain() 150 dfu->i_buf_start, w_size, 0); in dfu_write_buffer_drain() 152 ret = dfu->write_medium(dfu, dfu->offset, dfu->i_buf_start, &w_size); in dfu_write_buffer_drain() 157 dfu->i_buf = dfu->i_buf_start; in dfu_write_buffer_drain() 160 dfu->offset += w_size; in dfu_write_buffer_drain() [all …]
|
D | dfu_mmc.c | 22 static int mmc_block_op(enum dfu_op op, struct dfu_entity *dfu, in mmc_block_op() argument 29 mmc = find_mmc_device(dfu->data.mmc.dev_num); in mmc_block_op() 31 pr_err("Device MMC %d - not found!", dfu->data.mmc.dev_num); in mmc_block_op() 39 *len = ALIGN(*len, dfu->data.mmc.lba_blk_size); in mmc_block_op() 41 blk_start = dfu->data.mmc.lba_start + in mmc_block_op() 42 (u32)lldiv(offset, dfu->data.mmc.lba_blk_size); in mmc_block_op() 43 blk_count = *len / dfu->data.mmc.lba_blk_size; in mmc_block_op() 45 dfu->data.mmc.lba_start + dfu->data.mmc.lba_size) { in mmc_block_op() 50 if (dfu->data.mmc.hw_partition >= 0) { in mmc_block_op() 53 dfu->data.mmc.dev_num, in mmc_block_op() [all …]
|
D | dfu_nand.c | 21 static int nand_block_op(enum dfu_op op, struct dfu_entity *dfu, in nand_block_op() argument 31 *len = dfu->data.nand.size; in nand_block_op() 35 start = dfu->data.nand.start + offset + dfu->bad_skip; in nand_block_op() 36 lim = dfu->data.nand.start + dfu->data.nand.size - start; in nand_block_op() 82 dfu->bad_skip += actual - count; in nand_block_op() 87 static inline int nand_block_write(struct dfu_entity *dfu, in nand_block_write() argument 90 return nand_block_op(DFU_OP_WRITE, dfu, offset, buf, len); in nand_block_write() 93 static inline int nand_block_read(struct dfu_entity *dfu, in nand_block_read() argument 96 return nand_block_op(DFU_OP_READ, dfu, offset, buf, len); in nand_block_read() 99 static int dfu_write_medium_nand(struct dfu_entity *dfu, in dfu_write_medium_nand() argument [all …]
|
D | dfu_sf.c | 14 static int dfu_get_medium_size_sf(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_sf() argument 16 *size = dfu->data.sf.size; in dfu_get_medium_size_sf() 21 static int dfu_read_medium_sf(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_sf() argument 24 return spi_flash_read(dfu->data.sf.dev, dfu->data.sf.start + offset, in dfu_read_medium_sf() 28 static u64 find_sector(struct dfu_entity *dfu, u64 start, u64 offset) in find_sector() argument 30 return (lldiv((start + offset), dfu->data.sf.dev->sector_size)) * in find_sector() 31 dfu->data.sf.dev->sector_size; in find_sector() 34 static int dfu_write_medium_sf(struct dfu_entity *dfu, in dfu_write_medium_sf() argument 39 ret = spi_flash_erase(dfu->data.sf.dev, in dfu_write_medium_sf() 40 find_sector(dfu, dfu->data.sf.start, offset), in dfu_write_medium_sf() [all …]
|
D | dfu_ram.c | 16 static int dfu_transfer_medium_ram(enum dfu_op op, struct dfu_entity *dfu, in dfu_transfer_medium_ram() argument 19 if (dfu->layout != DFU_RAM_ADDR) { in dfu_transfer_medium_ram() 20 pr_err("unsupported layout: %s\n", dfu_get_layout(dfu->layout)); in dfu_transfer_medium_ram() 24 if (offset > dfu->data.ram.size) { in dfu_transfer_medium_ram() 30 memcpy(dfu->data.ram.start + offset, buf, *len); in dfu_transfer_medium_ram() 32 memcpy(buf, dfu->data.ram.start + offset, *len); in dfu_transfer_medium_ram() 37 static int dfu_write_medium_ram(struct dfu_entity *dfu, u64 offset, in dfu_write_medium_ram() argument 40 return dfu_transfer_medium_ram(DFU_OP_WRITE, dfu, offset, buf, len); in dfu_write_medium_ram() 43 int dfu_get_medium_size_ram(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_ram() argument 45 *size = dfu->data.ram.size; in dfu_get_medium_size_ram() [all …]
|
D | dfu_tftp.c | 17 struct dfu_entity *dfu; in dfu_tftp_write() local 51 dfu = dfu_get_entity(alt_setting_num); in dfu_tftp_write() 52 if (!dfu) { in dfu_tftp_write() 58 ret = dfu_write_from_mem_addr(dfu, (void *)(uintptr_t)addr, len); in dfu_tftp_write()
|
D | Makefile | 6 obj-$(CONFIG_DFU) += dfu.o
|
/external/u-boot/include/ |
D | dfu.h | 112 int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); 114 int (*read_medium)(struct dfu_entity *dfu, 117 int (*write_medium)(struct dfu_entity *dfu, 120 int (*flush_medium)(struct dfu_entity *dfu); 121 unsigned int (*poll_timeout)(struct dfu_entity *dfu); 123 void (*free_entity)(struct dfu_entity *dfu); 156 unsigned char *dfu_get_buf(struct dfu_entity *dfu); 185 static inline void dfu_set_defer_flush(struct dfu_entity *dfu) in dfu_set_defer_flush() argument 187 dfu_defer_flush = dfu; in dfu_set_defer_flush() 202 int dfu_write_from_mem_addr(struct dfu_entity *dfu, void *buf, int size); [all …]
|
/external/u-boot/board/warp/ |
D | README | 8 - dfu-util: http://dfu-util.sourceforge.net/releases/ 40 => dfu 0 mmc 0 44 $ sudo dfu-util -D u-boot.imx -a boot
|
/external/u-boot/board/technexion/pico-imx6ul/ |
D | README | 8 - dfu-util: http://dfu-util.sourceforge.net/releases/ 41 => dfu 0 mmc 0 45 $ sudo dfu-util -D u-boot.imx -a boot
|
/external/u-boot/doc/ |
D | README.dfutftp | 42 The "dfu" command has been extended to support transfer via TFTP - one 43 needs to type for example "dfu tftp 0 mmc 0" 55 The "dfu tftp" command can be used in the "preboot" environment variable 84 3. If required, to update firmware on boot, put the "dfu tftp 0 mmc 0" in the 87 4. Inspect "dfu" specific variables: 119 * Extend dfu-util command to support TFTP based transfers
|
D | git-mailrc | 108 alias dfu uboot, lukma
|
D | README.x86 | 524 $ dfu-util -v -d 8087:0a99 --alt u-boot0 -D u-boot.bin
|
/external/u-boot/board/warp7/ |
D | README | 8 - dfu-util: http://dfu-util.sourceforge.net/releases/ (if you are in a 47 => dfu 0 mmc 0 51 $ sudo dfu-util -D u-boot.imx -a boot
|
/external/u-boot/board/bticino/mamoj/ |
D | README | 80 => dfu 0 mmc 2 84 # dfu-util -D SPL -a spl 89 => dfu 0 mmc 2 93 # dfu-util -D u-boot-dtb.img -a u-boot
|
/external/u-boot/drivers/usb/gadget/ |
D | f_dfu.c | 174 static inline int dfu_get_manifest_timeout(struct dfu_entity *dfu) in dfu_get_manifest_timeout() argument 176 return dfu->poll_timeout ? dfu->poll_timeout(dfu) : in dfu_get_manifest_timeout() 184 struct dfu_entity *dfu = dfu_get_entity(f_dfu->altsetting); in handle_getstatus() local 197 dfu_set_poll_timeout(dstat, dfu_get_manifest_timeout(dfu)); in handle_getstatus()
|
/external/u-boot/drivers/ |
D | Makefile | 45 obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/ 81 obj-y += dfu/
|
D | Kconfig | 27 source "drivers/dfu/Kconfig"
|
/external/u-boot/common/ |
D | Makefile | 67 obj-$(CONFIG_DFU_OVER_USB) += dfu.o 119 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
|
/external/u-boot/cmd/ |
D | dfu.c | 64 U_BOOT_CMD(dfu, CONFIG_SYS_MAXARGS, 1, do_dfu,
|
D | Makefile | 152 obj-$(CONFIG_CMD_DFU) += dfu.o
|
D | Kconfig | 653 bool "dfu" 656 Enables the command "dfu" which is used to have U-Boot create a DFU
|
/external/u-boot/ |
D | MAINTAINERS | 329 T: git git://git.denx.de/u-boot-dfu.git 330 F: drivers/dfu/
|
/external/u-boot/test/py/ |
D | README.md | 33 | dfu-util | 0.5-1 |
|
/external/u-boot/common/spl/ |
D | Kconfig | 729 the SPL built with dfu. The user can load binaries (u-boot/kernel) to 730 selected device partition from host-pc using dfu-utils.
|