Home
last modified time | relevance | path

Searched refs:__bf_shf (Results 1 – 3 of 3) sorted by relevance

/dpdk/drivers/common/cnxk/
H A Droc_bitfield.h8 #define __bf_shf(x) (__builtin_ffsll(x) - 1) macro
10 #define FIELD_PREP(mask, val) (((typeof(mask))(val) << __bf_shf(mask)) & (mask))
13 ((typeof(mask))(((reg) & (mask)) >> __bf_shf(mask)))
/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_nsp.h16 #define __bf_shf(x) (__builtin_ffsll(x) - 1) macro
21 (typeof(_x))(((_reg) & (_x)) >> __bf_shf(_x)); \
27 !((((typeof(_x))_val) << __bf_shf(_x)) & ~(_x)); \
33 ((typeof(_x))(_val) << __bf_shf(_x)) & (_x); \
H A Dnfp_nsp_eth.c17 #define __bf_shf(x) (__builtin_ffsll(x) - 1) macro
22 (typeof(_x))(((_reg) & (_x)) >> __bf_shf(_x)); \
28 !((((typeof(_x))_val) << __bf_shf(_x)) & ~(_x)); \
34 ((typeof(_x))(_val) << __bf_shf(_x)) & (_x); \
551 nfp_eth_set_bit_config(nsp, raw_idx, _x, __bf_shf(_x), \