|
#define | _SHR_DEFINE_PBMP_FUNCTIONS |
|
#define | _SHR_PBMP_AND(bma, bmb) _SHR_PBMP_BMOP(bma, bmb, &=) |
|
#define | _SHR_PBMP_ASSIGN(dst, src) (dst) = (src) |
|
#define | _SHR_PBMP_BMCLEAR(bm) |
|
#define | _SHR_PBMP_BMEQ(bma, bmb) (_shr_pbmp_bmeq(&bma, &bmb)) |
|
#define | _SHR_PBMP_BMNULL(bm) (_shr_pbmp_bmnull(&bm)) |
|
#define | _SHR_PBMP_BMOP(bma, bmb, op) |
|
#define | _SHR_PBMP_CLEAR(bm) _SHR_PBMP_BMCLEAR(bm) |
|
#define | _SHR_PBMP_COUNT(bm, count) |
|
#define | _SHR_PBMP_ENTRY(bm, port) (_SHR_PBMP_WORD_GET(bm,_SHR_PBMP_WENT(port))) |
|
#define | _SHR_PBMP_EQ(bma, bmb) (_SHR_PBMP_BMEQ(bma, bmb)) |
|
#define | _SHR_PBMP_FIRST(bm, first_port) |
|
#define | _SHR_PBMP_FMT(bm, buf) _shr_pbmp_format(bm, buf) |
|
#define | _SHR_PBMP_FMT_LEN ((_SHR_PBMP_WORD_MAX*8)+3) |
|
#define | _SHR_PBMP_IS_NULL(bm) (_SHR_PBMP_BMNULL(bm)) |
|
#define | _SHR_PBMP_ITER(bm, port) |
|
#define | _SHR_PBMP_LAST(bm, last_port) |
|
#define | _SHR_PBMP_MEMBER(bm, port) ((_SHR_PBMP_ENTRY(bm, port) & _SHR_PBMP_WBIT(port)) != 0) |
|
#define | _SHR_PBMP_NEGATE(bma, bmb) _SHR_PBMP_BMOP(bma, bmb, = ~) |
|
#define | _SHR_PBMP_NEQ(bma, bmb) (!_SHR_PBMP_BMEQ(bma, bmb)) |
|
#define | _SHR_PBMP_NOT_NULL(bm) (!_SHR_PBMP_BMNULL(bm)) |
|
#define | _SHR_PBMP_OR(bma, bmb) _SHR_PBMP_BMOP(bma, bmb, |=) |
|
#define | _SHR_PBMP_PORT_ADD(bm, port) (_SHR_PBMP_ENTRY(bm, port) |= _SHR_PBMP_WBIT(port)) |
|
#define | _SHR_PBMP_PORT_FLIP(bm, port) (_SHR_PBMP_ENTRY(bm, port) ^= _SHR_PBMP_WBIT(port)) |
|
#define | _SHR_PBMP_PORT_MAX 256 |
|
#define | _SHR_PBMP_PORT_REMOVE(bm, port) (_SHR_PBMP_ENTRY(bm, port) &= ~_SHR_PBMP_WBIT(port)) |
|
#define | _SHR_PBMP_PORT_SET(bm, port) |
|
#define | _SHR_PBMP_PORT_VALID(p) ((p) >= 0 && (p) < _SHR_PBMP_PORT_MAX) |
|
#define | _SHR_PBMP_REMOVE(bma, bmb) _SHR_PBMP_BMOP(bma, bmb, &= ~) |
|
#define | _SHR_PBMP_REVERSE_ITER(bm, port) |
|
#define | _SHR_PBMP_WBIT(port) (1U<<((port) % _SHR_PBMP_WORD_WIDTH)) |
|
#define | _SHR_PBMP_WENT(port) ((port)/_SHR_PBMP_WORD_WIDTH) |
|
#define | _SHR_PBMP_WIDTH (((_SHR_PBMP_PORT_MAX + 32 - 1)/32)*32) |
|
#define | _SHR_PBMP_WORD_GET(bm, word) ((bm).pbits[(word)]) |
|
#define | _SHR_PBMP_WORD_MAX ((_SHR_PBMP_WIDTH + _SHR_PBMP_WORD_WIDTH-1) / _SHR_PBMP_WORD_WIDTH) |
|
#define | _SHR_PBMP_WORD_SET(bm, word, val) ((bm).pbits[(word)] = (val)) |
|
#define | _SHR_PBMP_WORD_WIDTH 32 |
|
#define | _SHR_PBMP_XOR(bma, bmb) _SHR_PBMP_BMOP(bma, bmb, ^=) |
|