Lines Matching full:bits
25 * which are wrappers of btrfs_set_token_#bits functions and
26 * btrfs_get_token_#bits functions, which are defined in this file.
40 #define DEFINE_BTRFS_SETGET_BITS(bits) \ argument
41 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \
52 int size = sizeof(u##bits); \
53 u##bits res; \
62 res = get_unaligned_le##bits(p + off); \
68 __le##bits leres; \
71 return le##bits##_to_cpu(leres); \
74 res = get_unaligned_le##bits(p + off); \
79 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
89 int size = sizeof(u##bits); \
90 u##bits res; \
95 __le##bits leres; \
98 return le##bits##_to_cpu(leres); \
101 res = get_unaligned_le##bits(p + off); \
104 void btrfs_set_token_##bits(struct extent_buffer *eb, \
106 u##bits val, \
116 int size = sizeof(u##bits); \
125 put_unaligned_le##bits(val, p + off); \
131 __le##bits val2; \
133 val2 = cpu_to_le##bits(val); \
138 put_unaligned_le##bits(val, p + off); \
142 void btrfs_set_##bits(struct extent_buffer *eb, void *ptr, \
143 unsigned long off, u##bits val) \
152 int size = sizeof(u##bits); \
157 __le##bits val2; \
159 val2 = cpu_to_le##bits(val); \
164 put_unaligned_le##bits(val, p + off); \