/external/u-boot/include/ |
D | dfu.h | 97 struct dfu_entity { struct 112 int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); argument 114 int (*read_medium)(struct dfu_entity *dfu, argument 117 int (*write_medium)(struct dfu_entity *dfu, argument 120 int (*flush_medium)(struct dfu_entity *dfu); argument 121 unsigned int (*poll_timeout)(struct dfu_entity *dfu); argument 123 void (*free_entity)(struct dfu_entity *dfu); argument 151 struct dfu_entity *dfu_get_entity(int alt); argument 156 unsigned char *dfu_get_buf(struct dfu_entity *dfu); 161 int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num); [all …]
|
/external/u-boot/drivers/dfu/ |
D | dfu.c | 96 unsigned char *dfu_get_buf(struct dfu_entity *dfu) in dfu_get_buf() 138 static int dfu_write_buffer_drain(struct dfu_entity *dfu) in dfu_write_buffer_drain() 167 void dfu_transaction_cleanup(struct dfu_entity *dfu) in dfu_transaction_cleanup() 183 int dfu_transaction_initiate(struct dfu_entity *dfu, bool read) in dfu_transaction_initiate() 209 int dfu_flush(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num) in dfu_flush() 229 int dfu_write(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num) in dfu_write() 296 static int dfu_read_buffer_fill(struct dfu_entity *dfu, void *buf, int size) in dfu_read_buffer_fill() 348 int dfu_read(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num) in dfu_read() 385 static int dfu_fill_entity(struct dfu_entity *dfu, char *s, int alt, in dfu_fill_entity() 423 struct dfu_entity *dfu, *p, *t = NULL; in dfu_free_entities() [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() 21 static int dfu_read_medium_sf(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_sf() 28 static u64 find_sector(struct dfu_entity *dfu, u64 start, u64 offset) in find_sector() 34 static int dfu_write_medium_sf(struct dfu_entity *dfu, in dfu_write_medium_sf() 53 static int dfu_flush_medium_sf(struct dfu_entity *dfu) in dfu_flush_medium_sf() 58 static unsigned int dfu_polltimeout_sf(struct dfu_entity *dfu) in dfu_polltimeout_sf() 63 static void dfu_free_entity_sf(struct dfu_entity *dfu) in dfu_free_entity_sf() 117 int dfu_fill_entity_sf(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_sf()
|
D | dfu_nand.c | 21 static int nand_block_op(enum dfu_op op, struct dfu_entity *dfu, in nand_block_op() 87 static inline int nand_block_write(struct dfu_entity *dfu, in nand_block_write() 93 static inline int nand_block_read(struct dfu_entity *dfu, in nand_block_read() 99 static int dfu_write_medium_nand(struct dfu_entity *dfu, in dfu_write_medium_nand() 116 int dfu_get_medium_size_nand(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_nand() 123 static int dfu_read_medium_nand(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_nand() 140 static int dfu_flush_medium_nand(struct dfu_entity *dfu) in dfu_flush_medium_nand() 179 unsigned int dfu_polltimeout_nand(struct dfu_entity *dfu) in dfu_polltimeout_nand() 191 int dfu_fill_entity_nand(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_nand()
|
D | dfu_mmc.c | 22 static int mmc_block_op(enum dfu_op op, struct dfu_entity *dfu, in mmc_block_op() 94 static int mmc_file_buffer(struct dfu_entity *dfu, void *buf, long *len) in mmc_file_buffer() 108 static int mmc_file_op(enum dfu_op op, struct dfu_entity *dfu, in mmc_file_op() 174 int dfu_write_medium_mmc(struct dfu_entity *dfu, in dfu_write_medium_mmc() 195 int dfu_flush_medium_mmc(struct dfu_entity *dfu) in dfu_flush_medium_mmc() 211 int dfu_get_medium_size_mmc(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_mmc() 235 static int mmc_file_unbuffer(struct dfu_entity *dfu, u64 offset, void *buf, in mmc_file_unbuffer() 256 int dfu_read_medium_mmc(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_mmc() 277 void dfu_free_entity_mmc(struct dfu_entity *dfu) in dfu_free_entity_mmc() 298 int dfu_fill_entity_mmc(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_mmc()
|
D | dfu_ram.c | 16 static int dfu_transfer_medium_ram(enum dfu_op op, struct dfu_entity *dfu, in dfu_transfer_medium_ram() 37 static int dfu_write_medium_ram(struct dfu_entity *dfu, u64 offset, in dfu_write_medium_ram() 43 int dfu_get_medium_size_ram(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_ram() 50 static int dfu_read_medium_ram(struct dfu_entity *dfu, u64 offset, in dfu_read_medium_ram() 56 int dfu_fill_entity_ram(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_ram()
|
D | dfu_tftp.c | 17 struct dfu_entity *dfu; in dfu_tftp_write()
|
/external/u-boot/drivers/usb/gadget/ |
D | f_thor.c | 149 struct dfu_entity *dfu_entity = dfu_get_entity(alt_setting_num); in download_head() local 150 void *transfer_buffer = dfu_get_buf(dfu_entity); in download_head() 212 struct dfu_entity *dfu_entity; in download_tail() local 218 dfu_entity = dfu_get_entity(alt_setting_num); in download_tail() 219 if (!dfu_entity) { in download_tail() 224 transfer_buffer = dfu_get_buf(dfu_entity); in download_tail() 231 ret = dfu_write(dfu_entity, transfer_buffer, left, cnt++); in download_tail() 245 ret = dfu_flush(dfu_entity, transfer_buffer, 0, cnt); in download_tail()
|
D | f_dfu.c | 46 struct dfu_entity *dfu_defer_flush; 174 static inline int dfu_get_manifest_timeout(struct dfu_entity *dfu) in dfu_get_manifest_timeout() 184 struct dfu_entity *dfu = dfu_get_entity(f_dfu->altsetting); in handle_getstatus() 625 struct dfu_entity *de = NULL; in dfu_prepare_strings()
|