Home
last modified time | relevance | path

Searched refs:dfu_entity (Results 1 – 9 of 9) sorted by relevance

/openbmc/u-boot/include/
H A Ddfu.h96 struct dfu_entity { struct
111 int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); argument
113 int (*read_medium)(struct dfu_entity *dfu, argument
116 int (*write_medium)(struct dfu_entity *dfu, argument
119 int (*flush_medium)(struct dfu_entity *dfu); argument
120 unsigned int (*poll_timeout)(struct dfu_entity *dfu); argument
122 void (*free_entity)(struct dfu_entity *dfu); argument
150 struct dfu_entity *dfu_get_entity(int alt); argument
155 unsigned char *dfu_get_buf(struct dfu_entity *dfu);
168 extern struct dfu_entity *dfu_defer_flush;
[all …]
/openbmc/u-boot/drivers/dfu/
H A Ddfu_sf.c14 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()
H A Ddfu.c98 unsigned char *dfu_get_buf(struct dfu_entity *dfu) in dfu_get_buf()
140 static int dfu_write_buffer_drain(struct dfu_entity *dfu) in dfu_write_buffer_drain()
169 void dfu_transaction_cleanup(struct dfu_entity *dfu) in dfu_transaction_cleanup()
185 int dfu_transaction_initiate(struct dfu_entity *dfu, bool read) in dfu_transaction_initiate()
387 static int dfu_fill_entity(struct dfu_entity *dfu, char *s, int alt, in dfu_fill_entity()
425 struct dfu_entity *dfu, *p, *t = NULL; in dfu_free_entities()
443 struct dfu_entity *dfu; in dfu_config_entities()
493 struct dfu_entity *dfu; in dfu_show_entities()
509 struct dfu_entity *dfu_get_entity(int alt) in dfu_get_entity()
511 struct dfu_entity *dfu; in dfu_get_entity()
[all …]
H A Ddfu_nand.c21 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()
H A Ddfu_ram.c16 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()
H A Ddfu_mmc.c22 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()
169 int dfu_write_medium_mmc(struct dfu_entity *dfu, in dfu_write_medium_mmc()
190 int dfu_flush_medium_mmc(struct dfu_entity *dfu) in dfu_flush_medium_mmc()
206 int dfu_get_medium_size_mmc(struct dfu_entity *dfu, u64 *size) in dfu_get_medium_size_mmc()
230 static int mmc_file_unbuffer(struct dfu_entity *dfu, u64 offset, void *buf, in mmc_file_unbuffer()
251 int dfu_read_medium_mmc(struct dfu_entity *dfu, u64 offset, void *buf, in dfu_read_medium_mmc()
272 void dfu_free_entity_mmc(struct dfu_entity *dfu) in dfu_free_entity_mmc()
293 int dfu_fill_entity_mmc(struct dfu_entity *dfu, char *devstr, char *s) in dfu_fill_entity_mmc()
H A Ddfu_tftp.c17 struct dfu_entity *dfu; in dfu_tftp_write()
/openbmc/u-boot/drivers/usb/gadget/
H A Df_thor.c149 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()
H A Df_dfu.c46 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()