Lines Matching refs:dfu_entity
35 __weak void dfu_flush_callback(struct dfu_entity *dfu) in dfu_flush_callback()
43 __weak void dfu_initiated_callback(struct dfu_entity *dfu) in dfu_initiated_callback()
99 struct dfu_entity *dfu; in dfu_config_interfaces()
188 unsigned char *dfu_get_buf(struct dfu_entity *dfu) in dfu_get_buf()
235 static int dfu_write_buffer_drain(struct dfu_entity *dfu) in dfu_write_buffer_drain()
264 void dfu_transaction_cleanup(struct dfu_entity *dfu) in dfu_transaction_cleanup()
280 int dfu_transaction_initiate(struct dfu_entity *dfu, bool read) in dfu_transaction_initiate()
307 int dfu_flush(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num) in dfu_flush()
329 int dfu_write(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num) in dfu_write()
396 static int dfu_read_buffer_fill(struct dfu_entity *dfu, void *buf, int size) in dfu_read_buffer_fill()
450 int dfu_read(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num) in dfu_read()
487 static int dfu_fill_entity(struct dfu_entity *dfu, char *s, int alt, in dfu_fill_entity()
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()
563 *dfu = calloc(sizeof(struct dfu_entity), dfu_alt_num); in dfu_alt_init()
570 int dfu_alt_add(struct dfu_entity *dfu, char *interface, char *devstr, char *s) in dfu_alt_add()
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()
658 struct dfu_entity *dfu; in dfu_get_alt()
693 int dfu_write_from_mem_addr(struct dfu_entity *dfu, void *buf, int size) in dfu_write_from_mem_addr()