Lines Matching refs:size
150 struct tnum tnum_cast(struct tnum a, u8 size) in tnum_cast() argument
152 a.value &= (1ULL << (size * 8)) - 1; in tnum_cast()
153 a.mask &= (1ULL << (size * 8)) - 1; in tnum_cast()
157 bool tnum_is_aligned(struct tnum a, u64 size) in tnum_is_aligned() argument
159 if (!size) in tnum_is_aligned()
161 return !((a.value | a.mask) & (size - 1)); in tnum_is_aligned()
172 int tnum_strn(char *str, size_t size, struct tnum a) in tnum_strn() argument
174 return snprintf(str, size, "(%#llx; %#llx)", a.value, a.mask); in tnum_strn()
178 int tnum_sbin(char *str, size_t size, struct tnum a) in tnum_sbin() argument
183 if (n < size) { in tnum_sbin()
194 str[min(size - 1, (size_t)64)] = 0; in tnum_sbin()