Searched refs:fifo_used (Results 1 – 11 of 11) sorted by relevance
/linux/fs/bcachefs/ |
H A D | fifo.h | 53 #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 D | journal_reclaim.c | 836 !fifo_used(&j->pin); in journal_flush_done()
|
H A D | journal.c | 1447 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 D | leds-sun50i-a100.c | 117 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 D | util.h | 96 #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 D | movinggc.c | 217 fifo_used(&ca->free[RESERVE_MOVINGGC]); in bch_moving_gc()
|
H A D | journal.c | 569 #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 D | super.c | 617 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 D | sysfs.c | 786 sysfs_print(active_journal_entries, fifo_used(&c->journal.pin)); in SHOW()
|
H A D | btree.c | 1213 if (fifo_used(&ca->free[RESERVE_BTREE]) < reserve) { in btree_check_reserve()
|
/linux/include/trace/events/ |
H A D | bcache.h | 480 __entry->free = fifo_used(&ca->free[reserve]); 481 __entry->free_inc = fifo_used(&ca->free_inc);
|