Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitfield.h Create Date:2022-07-28 06:33:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:be32_encode_bits

Proto:static inline __attribute__((__always_inline__)) __be32 be32_encode_bits(u32 v, u32 field)

Type:__be32

Parameter:

TypeParameterName
u32v
u32field
140  If __builtin_constant_p(v) && v & ~field_mask(field) Then __field_overflow()
140  Return If __builtin_constant_p((__u32)(((v & field_mask(field)) * field_multiplier(field)))) Then ( (v & field_mask(field)) * field_multiplier(field) & 0x000000ffUL) << 24 | ( (v & field_mask(field)) * field_multiplier(field) & 0x0000ff00UL) << 8 | ( (v & field_mask(field)) * field_multiplier(field) & 0x00ff0000UL) >> 8 | ( (v & field_mask(field)) * field_multiplier(field) & 0xff000000UL) >> 24 Else __fswab32(((v & field_mask(field)) * field_multiplier(field)))