Lines Matching refs:ext_buf
222 static void *get_fl_mem_nand(u32 off, u32 size, void *ext_buf) in get_fl_mem_nand() argument
224 u_char *buf = ext_buf ? (u_char*)ext_buf : (u_char*)malloc(size); in get_fl_mem_nand()
231 if (!ext_buf) in get_fl_mem_nand()
239 static void *get_node_mem_nand(u32 off, void *ext_buf) in get_node_mem_nand() argument
249 ext_buf))) { in get_node_mem_nand()
321 static void *get_fl_mem_onenand(u32 off, u32 size, void *ext_buf) in get_fl_mem_onenand() argument
323 u_char *buf = ext_buf ? (u_char *)ext_buf : (u_char *)malloc(size); in get_fl_mem_onenand()
330 if (!ext_buf) in get_fl_mem_onenand()
338 static void *get_node_mem_onenand(u32 off, void *ext_buf) in get_node_mem_onenand() argument
348 ext_buf); in get_node_mem_onenand()
371 static inline void *get_fl_mem_nor(u32 off, u32 size, void *ext_buf) in get_fl_mem_nor() argument
380 if (ext_buf) { in get_fl_mem_nor()
381 memcpy(ext_buf, (void *)addr, size); in get_fl_mem_nor()
382 return ext_buf; in get_fl_mem_nor()
387 static inline void *get_node_mem_nor(u32 off, void *ext_buf) in get_node_mem_nor() argument
395 pNode->totlen : sizeof(*pNode), ext_buf); in get_node_mem_nor()
404 static inline void *get_fl_mem(u32 off, u32 size, void *ext_buf) in get_fl_mem() argument
411 return get_fl_mem_nor(off, size, ext_buf); in get_fl_mem()
416 return get_fl_mem_nand(off, size, ext_buf); in get_fl_mem()
421 return get_fl_mem_onenand(off, size, ext_buf); in get_fl_mem()
431 static inline void *get_node_mem(u32 off, void *ext_buf) in get_node_mem() argument
438 return get_node_mem_nor(off, ext_buf); in get_node_mem()
444 return get_node_mem_nand(off, ext_buf); in get_node_mem()
449 return get_node_mem_onenand(off, ext_buf); in get_node_mem()
459 static inline void put_fl_mem(void *buf, void *ext_buf) in put_fl_mem() argument
465 if (buf == ext_buf) in put_fl_mem()