Searched refs:fifo (Results 1 – 2 of 2) sorted by relevance
21 fifo->count = 0; in fifo_init()36 if (fifo->get_ptr != fifo->put_ptr) { in fifo_get()37 *val = fifo->buf[fifo->get_ptr]; in fifo_get()38 fifo->get_ptr = (fifo->get_ptr + 1) % fifo->buf_size; in fifo_get()39 fifo->count = fifo->count - 1; in fifo_get()57 uint32_t newPutPtr = (fifo->put_ptr + 1) % fifo->buf_size; in fifo_put()61 fifo->buf[fifo->put_ptr] = *val; in fifo_put()63 fifo->count = fifo->count + 1; in fifo_put()65 if (fifo->count > fifo->high_water && fifo->reset_high_water == false) in fifo_put()66 fifo->high_water = fifo->count; in fifo_put()[all …]
46 uint32_t fifo_init(fifo_st *fifo, char *buf, uint32_t buf_size);60 uint32_t fifo_get(fifo_st *fifo, char *val);74 uint32_t fifo_put(fifo_st *fifo, char *val);86 uint32_t fifo_free_space(fifo_st *fifo);98 uint32_t fifo_count(fifo_st *fifo);110 uint32_t fifo_capacity(fifo_st *fifo);122 uint32_t fifo_high_water(fifo_st *fifo);134 uint32_t fifo_high_water_reset(fifo_st *fifo);146 uint32_t fifo_empty(fifo_st *fifo);
Completed in 3 milliseconds