Motr  M0
tx_credit.c File Reference
#include "be/tx_credit.h"
#include "lib/assert.h"
#include "lib/arith.h"
#include "lib/misc.h"
Include dependency graph for tx_credit.c:

Go to the source code of this file.

Functions

M0_INTERNAL void m0_be_tx_credit_add (struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL void m0_be_tx_credit_sub (struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL void m0_be_tx_credit_mul (struct m0_be_tx_credit *c, m0_bcount_t k)
 
M0_INTERNAL void m0_be_tx_credit_mul_bp (struct m0_be_tx_credit *c, unsigned bp)
 
M0_INTERNAL void m0_be_tx_credit_mac (struct m0_be_tx_credit *c, const struct m0_be_tx_credit *c1, m0_bcount_t k)
 
M0_INTERNAL bool m0_be_tx_credit_le (const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL bool m0_be_tx_credit_eq (const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL void m0_be_tx_credit_max (struct m0_be_tx_credit *c, const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL void m0_be_tx_credit_add_max (struct m0_be_tx_credit *c, const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 

Variables

const struct m0_be_tx_credit m0_be_tx_credit_invalid