Searched refs:type_is (Results 1 – 4 of 4) sorted by relevance
| /linux/fs/bcachefs/ |
| A D | util.h | 46 #define type_is(_val, _type) \ macro 148 ( type_is(*res, int) ? bch2_strtoint_h(cp, (void *) res)\ 149 : type_is(*res, long) ? bch2_strtol_h(cp, (void *) res)\ 150 : type_is(*res, long long) ? bch2_strtoll_h(cp, (void *) res)\ 187 type_is(var, int) ? "%i\n" \ 188 : type_is(var, unsigned) ? "%u\n" \ 189 : type_is(var, long) ? "%li\n" \ 190 : type_is(var, unsigned long) ? "%lu\n" \ 191 : type_is(var, s64) ? "%lli\n" \ 192 : type_is(var, u64) ? "%llu\n" \ [all …]
|
| A D | vstructs.h | 13 ( type_is((_s)->u64s, u64) ? le64_to_cpu((__force __le64) (_s)->u64s) \ 14 : type_is((_s)->u64s, u32) ? le32_to_cpu((__force __le32) (_s)->u64s) \ 15 : type_is((_s)->u64s, u16) ? le16_to_cpu((__force __le16) (_s)->u64s) \
|
| A D | error.h | 120 __bch2_fsck_err(type_is(c, struct bch_fs *) ? (struct bch_fs *) c : NULL,\ 121 type_is(c, struct btree_trans *) ? (struct btree_trans *) c : NULL,\ 146 if (type_is(c, struct bch_fs *)) \
|
| A D | extents.h | 31 BUILD_BUG_ON(!type_is(_entry, union bch_extent_crc *) && \ 32 !type_is(_entry, struct bch_extent_ptr *) && \ 33 !type_is(_entry, struct bch_extent_stripe_ptr *)); \
|
Completed in 9 milliseconds