Home
last modified time | relevance | path

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

/openbmc/u-boot/lib/
H A Dmembuff.c235 int topsize, botsize; in membuff_makecontig() local
251 topsize = mb->end - mb->tail; in membuff_makecontig()
258 if (mb->head + topsize >= mb->tail) in membuff_makecontig()
260 memmove(mb->start + topsize, mb->start, botsize); in membuff_makecontig()
261 debug(" - memmove(%d, %d, %d)", topsize, 0, botsize); in membuff_makecontig()
265 topsize = mb->head - mb->tail; in membuff_makecontig()
270 memcpy(mb->start, mb->tail, topsize); in membuff_makecontig()
271 debug(" - memcpy(%d, %d, %d)", 0, (int)(mb->tail - mb->start), topsize); in membuff_makecontig()
275 mb->head = mb->start + topsize + botsize; in membuff_makecontig()