Searched refs:lsoffset (Results 1 – 3 of 3) sorted by relevance
/external/u-boot/drivers/net/fsl-mc/dpio/ |
D | qbman_private.h | 59 static inline uint32_t e32_##t(uint32_t lsoffset, uint32_t width, t val) \ 62 return ((uint32_t)val & MAKE_MASK32(width)) << lsoffset; \ 64 static inline t d32_##t(uint32_t lsoffset, uint32_t width, uint32_t val) \ 67 return (t)((val >> lsoffset) & MAKE_MASK32(width)); \ 69 static inline uint32_t i32_##t(uint32_t lsoffset, uint32_t width, \ 73 return e32_##t(lsoffset, width, d32_##t(lsoffset, width, val)); \ 75 static inline uint32_t r32_##t(uint32_t lsoffset, uint32_t width, \ 79 return ~(MAKE_MASK32(width) << lsoffset) & val; \
|
D | qbman_portal.h | 119 unsigned int lsoffset; /* encoding offset from ls-bit */ member 130 return d32_uint32_t(code->lsoffset, code->width, cacheline[code->word]); in qb_attr_code_decode() 139 r32_uint32_t(code->lsoffset, code->width, cacheline[code->word]) in qb_attr_code_encode() 140 | e32_uint32_t(code->lsoffset, code->width, val); in qb_attr_code_encode()
|
/external/u-boot/include/fsl-mc/ |
D | fsl_mc_cmd.h | 13 static inline uint64_t mc_enc(int lsoffset, int width, uint64_t val) in mc_enc() argument 15 return (uint64_t)(((uint64_t)val & MAKE_UMASK64(width)) << lsoffset); in mc_enc() 17 static inline uint64_t mc_dec(uint64_t val, int lsoffset, int width) in mc_dec() argument 19 return (uint64_t)((val >> lsoffset) & MAKE_UMASK64(width)); in mc_dec()
|