Lines Matching refs:dfu_buf_size
84 static unsigned long dfu_buf_size; variable
95 return dfu_buf_size; in dfu_get_buf_size()
107 dfu_buf_size = (unsigned long)simple_strtol(s, NULL, 0); in dfu_get_buf()
109 if (!s || !dfu_buf_size) in dfu_get_buf()
110 dfu_buf_size = CONFIG_SYS_DFU_DATA_BUF_SIZE; in dfu_get_buf()
112 if (dfu->max_buf_size && dfu_buf_size > dfu->max_buf_size) in dfu_get_buf()
113 dfu_buf_size = dfu->max_buf_size; in dfu_get_buf()
115 dfu_buf = memalign(CONFIG_SYS_CACHELINE_SIZE, dfu_buf_size); in dfu_get_buf()
118 __func__, dfu_buf_size); in dfu_get_buf()
560 unsigned long dfu_buf_size, write, left = size; in dfu_write_from_mem_addr() local
570 dfu_buf_size = dfu_get_buf_size(); in dfu_write_from_mem_addr()
571 debug("%s: dfu buf size: %lu\n", __func__, dfu_buf_size); in dfu_write_from_mem_addr()
574 write = min(dfu_buf_size, left); in dfu_write_from_mem_addr()