fifo8: rename fifo8_peekpop_buf() to fifo8_peekpop_bufptr()
This is to emphasise that the function returns a pointer to the internal FIFO buffer. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Octavian Purdila <tavip@google.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240828122258.928947-2-mark.cave-ayland@ilande.co.uk> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
9e64bec80e
commit
f9309d965a
@ -71,8 +71,8 @@ uint8_t fifo8_pop(Fifo8 *fifo)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const uint8_t *fifo8_peekpop_buf(Fifo8 *fifo, uint32_t max,
|
static const uint8_t *fifo8_peekpop_bufptr(Fifo8 *fifo, uint32_t max,
|
||||||
uint32_t *numptr, bool do_pop)
|
uint32_t *numptr, bool do_pop)
|
||||||
{
|
{
|
||||||
uint8_t *ret;
|
uint8_t *ret;
|
||||||
uint32_t num;
|
uint32_t num;
|
||||||
@ -94,12 +94,12 @@ static const uint8_t *fifo8_peekpop_buf(Fifo8 *fifo, uint32_t max,
|
|||||||
|
|
||||||
const uint8_t *fifo8_peek_bufptr(Fifo8 *fifo, uint32_t max, uint32_t *numptr)
|
const uint8_t *fifo8_peek_bufptr(Fifo8 *fifo, uint32_t max, uint32_t *numptr)
|
||||||
{
|
{
|
||||||
return fifo8_peekpop_buf(fifo, max, numptr, false);
|
return fifo8_peekpop_bufptr(fifo, max, numptr, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint8_t *fifo8_pop_bufptr(Fifo8 *fifo, uint32_t max, uint32_t *numptr)
|
const uint8_t *fifo8_pop_bufptr(Fifo8 *fifo, uint32_t max, uint32_t *numptr)
|
||||||
{
|
{
|
||||||
return fifo8_peekpop_buf(fifo, max, numptr, true);
|
return fifo8_peekpop_bufptr(fifo, max, numptr, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t fifo8_pop_buf(Fifo8 *fifo, uint8_t *dest, uint32_t destlen)
|
uint32_t fifo8_pop_buf(Fifo8 *fifo, uint8_t *dest, uint32_t destlen)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user