Home
last modified time | relevance | path

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

/linux/fs/bcachefs/
H A Dfifo.h53 #define fifo_used(fifo) (((fifo)->back - (fifo)->front)) macro
54 #define fifo_free(fifo) ((fifo)->size - fifo_used(fifo))
57 #define fifo_full(fifo) (fifo_used(fifo) == (fifo)->size)
H A Djournal_reclaim.c836 !fifo_used(&j->pin); in journal_flush_done()
H A Djournal.c1447 prt_printf(out, "dirty journal entries:\t%llu/%llu\n", fifo_used(&j->pin), j->pin.size); in __bch2_journal_debug_to_text()
/linux/drivers/leds/
H A Dleds-sun50i-a100.c117 static void sun50i_a100_ledc_pio_xfer(struct sun50i_a100_ledc *priv, unsigned int fifo_used) in sun50i_a100_ledc_pio_xfer() argument
124 burst = min(length, LEDC_FIFO_DEPTH - fifo_used); in sun50i_a100_ledc_pio_xfer()
172 unsigned int fifo_used = 0; in sun50i_a100_ledc_start_xfer() local
177 sun50i_a100_ledc_pio_xfer(priv, fifo_used); in sun50i_a100_ledc_start_xfer()
/linux/drivers/md/bcache/
H A Dutil.h96 #define fifo_used(fifo) (((fifo)->back - (fifo)->front) & (fifo)->mask) macro
97 #define fifo_free(fifo) ((fifo)->size - fifo_used(fifo))
99 #define fifo_empty(fifo) (!fifo_used(fifo))
H A Dmovinggc.c217 fifo_used(&ca->free[RESERVE_MOVINGGC]); in bch_moving_gc()
H A Djournal.c569 #define last_seq(j) ((j)->seq - fifo_used(&(j)->pin) + 1)
715 pr_debug("journal_pin full (%zu)\n", fifo_used(&j->pin)); in bch_journal_next()
H A Dsuper.c617 fifo_used(&ca->free[RESERVE_PRIO]), in bch_prio_write()
618 fifo_used(&ca->free[RESERVE_NONE]), in bch_prio_write()
619 fifo_used(&ca->free_inc)); in bch_prio_write()
627 size_t avail = fifo_used(&ca->free[RESERVE_PRIO]) + in bch_prio_write()
628 fifo_used(&ca->free[RESERVE_NONE]); in bch_prio_write()
H A Dsysfs.c786 sysfs_print(active_journal_entries, fifo_used(&c->journal.pin)); in SHOW()
H A Dbtree.c1213 if (fifo_used(&ca->free[RESERVE_BTREE]) < reserve) { in btree_check_reserve()
/linux/include/trace/events/
H A Dbcache.h480 __entry->free = fifo_used(&ca->free[reserve]);
481 __entry->free_inc = fifo_used(&ca->free_inc);